joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4082ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x408318
lea eax, [esi + 0x88]
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
cmp ecx, edi
je 0x40830a
mov dword [ecx], edi
mov eax, dword [eax]
mov dword [eax + 0xc], 2
xor eax, eax
inc eax
jmp 0x408372
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x88]
mov dword [ebp - 4], edi
push dword [eax]
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x408357
mov ecx, dword [ebp - 4]
add dword [esi + 0x4c], ecx
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x88]
sbb ecx, ecx
add ecx, 3
mov dword [edx + 0xc], ecx
jmp 0x408360
mov ecx, dword [esi + 0x88]
mov dword [ecx + 0xc], edi
mov ecx, dword [esi + 0x88]
mov ecx, dword [ecx + 8]
cmp ecx, edi
je 0x408372
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop edi
leave
ret 4

Function at 0x4086ce
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
call fcn.00408449
mov edi, ebx
call fcn.0040882f
cmp dword [ebx + 0x7c], 0
je 0x408793
lea edi, [ebx + 0x3c]
mov eax, dword [edi]
cmp dword [eax - 8], 0
je 0x408793
call fcn.004081bc
test eax, eax
je 0x40877f
mov eax, dword [edi]
lea esi, [ebx + 0x38]
mov ecx, dword [esi]
push eax
push ecx
call fcn.0040ebb0
test eax, eax
pop ecx
pop ecx
je 0x408748
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x408733
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408748
push 0
push 0
lea eax, [ebx + 0xd0]
push eax
push dword [edi]
call fcn.0040a5c3
add esp, 0x10
push str..xml
push edi
lea eax, [ebp - 4]
push eax
call fcn.00405b12
mov edi, dword [ebp - 4]
mov eax, edi
call fcn.004067ec
test eax, eax
je 0x40876c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi - 0xc]
cmp eax, dword [0x41cc24]
je 0x40879e
push eax
call fcn.0040171a
jmp 0x40879e
push ecx
mov ecx, edi
mov esi, esp
call fcn.00401678
mov eax, 0x41d6a0
call fcn.004057f4
lea esi, [ebx + 0x38]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.00407f8c
mov eax, esi
call fcn.004019bc
xor eax, eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x30]
call fcn.004019bc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409023
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x6c]
mov ebp, dword [esi + 0x70]
or dword [eax + 0x34], 0xffffffff
inc dword [eax + 0x38]
mov ebx, ecx
mov eax, esi
call fcn.00408028
cmp dword [ebx + 0x20], 2
jne 0x409067
push edi
call fcn.00407ea9
mov edi, eax
test edi, edi
je 0x40906b
push ebp
mov ecx, esi
call fcn.00406e46
mov eax, esi
call fcn.00406f60
mov dword [edi + 0x34], 2
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0040817d
test eax, eax
je 0x409066
call fcn.0040814b
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x40908f
call edi
sub eax, dword [ebx + 0x54]
cmp eax, 0x3a98
jae 0x4090a3
mov eax, ebx
call fcn.00408449
push 2
mov eax, ebx
call fcn.00408377
test eax, eax
jne 0x409066
lea eax, [esi + 0x28]
lea esi, [ebx + 0x28]
call fcn.0040a51f
call edi
mov ecx, eax
sub ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
cmp ecx, eax
jb 0x4090c1
call edi
sub eax, dword [ebx + 0x54]
and dword [ebx + 0x54], 0
pop edi
pop esi
mov dword [ebx + 0x5c], eax
pop ebp
mov eax, ebx
pop ebx
jmp fcn.00408494

Function at 0x40a92e
Capabilities:
Parse url

Disassembly:
push esi
mov esi, eax
push edi
push esi
push dword [esp + 0x14]
mov eax, 0x81
push 0
push dword [esp + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov eax, 0x801
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov edi, eax
test edi, edi
je 0x40a98d
push 0x3f
push dword [esp + 0x10]
call fcn.0040ed63
test eax, eax
pop ecx
pop ecx
je 0x40a98d
push eax
add esi, 0x1486
push esi
call fcn.0040ed47
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x40abae
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40b813
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x41c0b0]
push ebx
mov dword [ebp - 4], eax
mov ebx, ecx
mov eax, dword [ebx]
mov eax, dword [eax - 8]
cdq
push esi
sub eax, edx
mov esi, eax
push edi
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x1c]
sar esi, 1
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x64
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x29
mov byte [ebp - 0xb], 0x25
mov byte [ebp - 0xa], 0x21
mov byte [ebp - 9], 0x24
mov byte [ebp - 8], 0
call fcn.0040bacf
jmp 0x40b881
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ba47
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], esi
jl 0x40b874
mov eax, esi
lea ecx, [ebp - 0x1c]
call fcn.00404c1b
mov eax, dword [0x41cc20]
mov dword [ebp - 0x18], eax
lea eax, [esi + 1]
lea ecx, [ebp - 0x18]
call fcn.00404c82
mov ecx, dword [ebx]
lea edi, [esi - 1]
test edi, edi
mov dword [ebp - 0x24], ecx
jl 0x40b8ff
mov ecx, eax
sub ecx, edi
lea ecx, [ecx + esi - 1]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi*2]
call fcn.0040b6ae
mov bl, al
mov eax, dword [ebp - 0x24]
mov al, byte [eax + edi*2 + 1]
call fcn.0040b6ae
test bl, bl
jl 0x40b8ff
test al, al
jl 0x40b8ff
mov ecx, dword [ebp - 0x20]
shl bl, 4
add bl, al
mov eax, dword [ebp - 0x28]
xor bl, byte [ecx + eax]
dec edi
mov byte [eax], bl
inc eax
test edi, edi
mov dword [ebp - 0x28], eax
jge 0x40b8c5
mov eax, esi
lea ecx, [ebp - 0x18]
call fcn.00404c1b
lea eax, [ebp - 0x20]
push eax
push 0xd
pop eax
lea ecx, [ebp - 0x18]
call fcn.0040b9bb
mov eax, dword [eax]
push 0x419d44
push eax
call fcn.0040ee29
mov ebx, eax
mov eax, dword [ebp - 0x20]
neg ebx
sbb bl, bl
add eax, 0xfffffff4
pop ecx
inc bl
cmp eax, dword [0x41cc24]
pop ecx
je 0x40b943
push eax
call fcn.0040171a
test bl, bl
je 0x40b979
push ecx
lea ecx, [ebp - 0x18]
mov esi, esp
call fcn.004054ee
lea eax, [ebp - 0x20]
call fcn.0040b7a3
mov edi, eax
pop ecx
lea eax, [ebp - 0x18]
call fcn.004054ab
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x40b979
push eax
call fcn.0040171a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.004054ee
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x40b998
push eax
call fcn.0040171a
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x40b9ac
push eax
call fcn.0040171a
mov ecx, dword [ebp - 4]
mov eax, esi
call fcn.0040f289
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ecbc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x40ecd9
call fcn.004127a1
mov dword [eax], 0x16
xor eax, eax
jmp 0x40ed43
push esi
push 0x8c
push 1
call fcn.00412826
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40ed2e
push esi
call fcn.004110f2
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x40ed0c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40ec27
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40ed42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0040e2c0
test ebx, ebx
pop ecx
je 0x40ed40
push ebx
call fcn.004127b3
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40efbd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x418370
call fcn.0040f298
mov edi, 0x94
mov eax, edi
call fcn.00412ad0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41d06c], ecx
mov eax, dword [esi + 4]
mov dword [0x41d078], eax
mov edx, dword [esi + 8]
mov dword [0x41d07c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41d070], esi
cmp ecx, 2
je 0x40f01d
or esi, 0x8000
mov dword [0x41d070], esi
shl eax, 8
add eax, edx
mov dword [0x41d074], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f058
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f058
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f070
cmp eax, 0x20b
je 0x40f05d
mov dword [ebp - 0x1c], esi
jmp 0x40f084
cmp dword [ecx + 0x84], 0xe
jbe 0x40f058
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f07e
cmp dword [ecx + 0x74], 0xe
jbe 0x40f058
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00410191
pop ecx
test eax, eax
jne 0x40f098
push 0x1c
call fcn.0040ef99
pop ecx
call fcn.004112ec
test eax, eax
jne 0x40f0a9
push 0x10
call fcn.0040ef99
pop ecx
call fcn.004134d4
mov dword [ebp - 4], esi
call fcn.004132d6
test eax, eax
jge 0x40f0c2
push 0x1b
call fcn.0040ef74
pop ecx
call fcn.00413237
mov dword [0x41eaf4], eax
call fcn.004130cd
mov dword [0x41d05c], eax
call fcn.00413037
test eax, eax
jge 0x40f0e7
push 8
call fcn.0040ef74
pop ecx
call fcn.00412e04
test eax, eax
jge 0x40f0f8
push 9
call fcn.0040ef74
pop ecx
push 1
call fcn.0040ff94
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f10e
push eax
call fcn.0040ef74
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00412dbe
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f12f
movzx eax, word [ebp - 0x40]
jmp 0x40f132
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004024de
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f150
push edi
call fcn.004100c1
call fcn.004100e3
jmp 0x40f182
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f2d3
ret
Function at 0x40fffe
Capabilities:
Terminate process

Disassembly:
push 8
push 0x418400
call fcn.0040f298
push 8
call fcn.00410335
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41d0ac], esi
jne 0x410032
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41d0a8], esi
mov al, byte [ebp + 0x10]
mov byte [0x41d0a4], al
cmp dword [ebp + 0xc], edi
jne 0x41007c
cmp dword [0x41eaec], edi
je 0x41006c
mov eax, dword [0x41eae8]
sub eax, 4
mov dword [0x41eae8], eax
cmp eax, dword [0x41eaec]
jb 0x41006c
mov eax, dword [eax]
cmp eax, edi
je 0x41004d
call eax
jmp 0x41004d
push 0x41c04c
mov eax, 0x41c044
call fcn.0040ff7c
pop ecx
push 0x41c058
mov eax, 0x41c050
call fcn.0040ff7c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4100ad
cmp dword [ebp + 0x10], edi
jne 0x4100bb
mov dword [0x41d0ac], esi
push dword [ebp + 8]
call fcn.0040ff3a
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4100ba
push 8
call fcn.00410280
pop ecx
ret
call fcn.0040f2d3
ret

Function at 0x4129e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412ad0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412a83
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41d06c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x412a83
cmp eax, 1
je 0x412aa4
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412a83
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412a50
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x412a7f
xor eax, eax
inc eax
jmp 0x412ac3
cmp edi, eax
jae 0x412a87
xor eax, eax
jmp 0x412ac3
cmp eax, esi
jae 0x412a8e
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41d06c]
jmp 0x412aa7
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412c0e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41c0b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41c680]
je 0x412c43
inc eax
cmp eax, 0x13
jb 0x412c34
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41c680]
jne 0x412d69
mov eax, dword [0x41d060]
cmp eax, 1
je 0x412d41
cmp eax, edx
jne 0x412c73
cmp dword [0x41c0a4], 1
je 0x412d41
cmp ecx, 0xfc
je 0x412d69
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412ca9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004128f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040eaa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412cdd
mov eax, edi
push eax
call fcn.0040eaa0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x418ad0
push edi
call fcn.00414730
add esp, 0x10
push edi
call fcn.0040eaa0
push dword [esi + 0x41c684]
mov ebx, eax
call fcn.0040eaa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412ad0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004128f0
push edi
push ebx
call fcn.00412900
push 0x418ab0
push ebx
call fcn.00412900
push dword [esi + 0x41c684]
push ebx
call fcn.00412900
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414c6e
add esp, 0x2c
jmp 0x412d69
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41c684]
push dword [esi]
call fcn.0040eaa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040f289
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4130cd
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x41d43c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x413116
call ebp
mov esi, eax
cmp esi, ebx
je 0x4130fc
mov dword [0x41d43c], 1
jmp 0x41311b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x413111
push 2
pop eax
mov dword [0x41d43c], eax
jmp 0x413116
mov eax, dword [0x41d43c]
cmp eax, 1
jne 0x413173
cmp esi, ebx
jne 0x41312e
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41312e
xor eax, eax
jmp 0x41321a
cmp word [esi], bx
mov eax, esi
je 0x413143
inc eax
inc eax
cmp word [eax], bx
jne 0x413135
inc eax
inc eax
cmp word [eax], bx
jne 0x413135
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040e3d8
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x413166
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41321a
push ebp
push esi
push edi
call fcn.0040e400
add esp, 0xc
jmp 0x413158
cmp eax, 2
je 0x41317c
cmp eax, ebx
jne 0x413127
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x413127
cmp byte [ebp], bl
mov esi, ebp
je 0x4131b2
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x413127
push esi
add edi, eax
call fcn.0040eaa0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41318f
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040e3d8
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41322b
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41320c
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x413221
push edi
call fcn.0040eaa0
push esi
lea edi, [edi + eax + 1]
call fcn.0040e3ea
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4131d2
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040e2c0
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x413127
Function at 0x413237
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x41d440]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x413277
call esi
test eax, eax
je 0x41325c
mov dword [0x41d440], 1
jmp 0x41327c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x413273
mov dword [0x41d440], 2
jmp 0x413285
xor eax, eax
jmp 0x4132d3
cmp eax, 1
jne 0x413280
call esi
jmp 0x4132d3
cmp eax, 2
jne 0x413273
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x4132cb
lea eax, [esi + esi]
push eax
call fcn.0040e3d8
mov ebp, eax
test ebp, ebp
pop ecx
je 0x4132cb
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x4132cf
push ebp
call fcn.0040e2c0
pop ecx
xor eax, eax
jmp 0x4132d1
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4137fa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x413828
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41382f
cmp ebx, dword [eax + 4]
jae 0x41382f
xor eax, eax
jmp 0x413a1f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x413840
xor eax, eax
inc eax
jmp 0x413a1e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x413856
cmp ecx, edx
jae 0x41399b
cmp dword [eax + 4], 0
je 0x41385f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x413847
cmp dword [ebp + 8], 0
je 0x413881
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41399b
cmp eax, esi
jae 0x41399b
mov eax, dword [0x41d448]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4138a6
cmp dword [esi*4 + 0x41d450], edi
je 0x41399f
inc esi
cmp esi, eax
jl 0x413894
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413a1b
cmp dword [ebp - 8], 0x1000000
jne 0x413a1b
test byte [ebp - 0xc], 0xcc
je 0x413924
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x413a1b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413a1b
cmp word [eax + 0x18], 0x10b
jne 0x413a1b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x413a1b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x413924
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x413924
test byte [ecx + 0x27], 0x80
jne 0x41399b
push 1
push 0x41d490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x413838
mov ecx, dword [0x41d448]
test ecx, ecx
mov edx, ecx
jle 0x413958
lea eax, [ecx*4 + 0x41d44c]
cmp dword [eax], edi
je 0x413958
dec edx
sub eax, 4
test edx, edx
jg 0x41394c
test edx, edx
jne 0x413989
push 0xf
pop ebx
cmp ecx, ebx
jg 0x413965
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41397d
lea eax, [edx*4 + 0x41d450]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41396b
cmp ecx, 0x10
jge 0x413989
inc ecx
mov dword [0x41d448], ecx
push 0
push 0x41d490
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x413838
xor eax, eax
jmp 0x413a1e
test esi, esi
jle 0x413838
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41d490
call ebx
test eax, eax
jne 0x413838
cmp dword [esi*4 + 0x41d450], edi
je 0x4139f5
mov eax, dword [0x41d448]
lea esi, [eax - 1]
test esi, esi
jl 0x4139e3
cmp dword [esi*4 + 0x41d450], edi
je 0x4139df
dec esi
jns 0x4139d3
test esi, esi
jge 0x4139f3
cmp eax, 0x10
jge 0x4139ee
inc eax
mov dword [0x41d448], eax
lea esi, [eax - 1]
jmp 0x4139f5
je 0x413a0d
xor ecx, ecx
test esi, esi
jl 0x413a0d
lea eax, [ecx*4 + 0x41d450]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4139fb
push 0
push 0x41d490
call ebx
jmp 0x413838
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret