joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c9f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x260]
mov edi, 0x80000000
push eax
mov ebx, 0x104
push str..htm
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x41caf6
lea eax, [ebp - 0x260]
push str._shellopencommand
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
push edi
call esi
test eax, eax
jne 0x41caf6
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x15c]
push str.netscape.exe
push eax
call fcn.0041ffc0
xor esi, esi
pop ecx
cmp eax, esi
pop ecx
je 0x41caf8
lea ecx, [ebp - 0x15c]
sub eax, ecx
add eax, 0xd
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x364]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x58]
call fcn.0041b09f
lea eax, [ebp - 0x364]
lea ecx, [ebp - 0x58]
push eax
call fcn.0041e562
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, ecx
mov dword [ebp - 0x58], 0x42ae10
shr edx, 0x10
mov word [eax + 0x16], cx
lea ecx, [ebp - 0x58]
mov word [eax + 0x14], dx
call fcn.0041b107
xor eax, eax
jmp 0x41cb6a
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41cb59
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41cb59
movsx ax, byte [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
sub eax, 0x30
cmp dword [ebp - 4], esi
mov word [ecx + 0x14], ax
je 0x41cb55
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x41cb69
cmp dword [ebp - 4], esi
je 0x41cb67
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cb6f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.0041ebc0
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push str.SOFTWARENetscapeNetscape_NavigatorProxy_Information
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41cd3d
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push str.Proxy_Type
push dword [ebp - 4]
mov dword [ebp - 0x48], str.http
mov dword [ebp - 0x44], str.HTTP_Proxy
mov dword [ebp - 0x40], str.HTTP_ProxyPort
mov dword [ebp - 0x3c], str.https
mov dword [ebp - 0x38], str.HTTPS_Proxy
mov dword [ebp - 0x34], str.HTTPS_ProxyPort
mov dword [ebp - 0x30], str.ftp
mov dword [ebp - 0x2c], str.FTP_Proxy
mov dword [ebp - 0x28], str.FTP_ProxyPort
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x41cd3d
cmp dword [ebp - 0x14], 1
jne 0x41cd3d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41cd00
cmp byte [ebp - 0x148], al
je 0x41cd00
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41ccf2
lea eax, [ebp - 0x96c]
push 0x4334d8
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x433c08
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x433478
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x41cc56
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.0041c73c
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x41cd4b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d908
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x41d940
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x41d94c
mov eax, dword [esi + 0x5c]
jmp 0x41d995
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x41d993
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x41d971
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x41d955
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x41dffb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x429d8f
call fcn.0041eb94
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0041e3e7
test al, 0x10
pop ecx
je 0x41e176
push 1
lea eax, [ebp + 8]
pop edi
push 0x433e70
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041e2f6
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00413045
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00411ba6
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x41e121
test edi, edi
je 0x41e11a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x433e6c
push eax
call edi
test eax, eax
je 0x41e105
lea eax, [ebp - 0x1bc]
push 0x433e68
push eax
call edi
test eax, eax
je 0x41e105
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x42ab58
mov dword [ebp - 0x20], 0x42ab50
call fcn.004137c9
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call 0x41e1ab
add esp, 0xc
call fcn.0041dffb
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00411ba6
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x41e07f
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00413045
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41e150
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.00413671
lea eax, [ebp - 0x60]
push 0x42e618
push eax
call fcn.0041f184
cmp dword [ebp - 0x10], 0xffffffff
je 0x41e15b
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00411ba6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.00413045
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41e15b
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00413671
lea eax, [ebp - 0xa8]
push 0x42e618
push eax
call fcn.0041f184
mov eax, 0x429dbb
call fcn.0041eb94
sub esp, 0x2c
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov ebx, 0x42ab58
push dword [ebp + 0xc]
mov edi, 0x42ab50
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00412e7a
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.0041e224
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00412e7a
mov dword [ebp - 0x10], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00411ba6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e3e7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.00413045
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41e41c
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.00413671
lea eax, [ebp - 0x48]
push 0x42e618
push eax
call fcn.0041f184
leave
ret

Function at 0x41e562
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x41e5b4
push eax
call fcn.0041f2b0
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41e5b4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x433e94
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41e5b8
xor al, al
jmp 0x41e619
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41e617
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0041f2b0
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41e617
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x41e605
mov al, 1
pop ebx
leave
ret 4
Function at 0x423d69
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x434660
cmp edx, dword [eax]
je 0x423d8b
add eax, 8
inc ecx
cmp eax, 0x4346f0
jl 0x423d7c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x434660]
jne 0x423eb9
mov eax, dword [0x435084]
cmp eax, 1
je 0x423e93
test eax, eax
jne 0x423dbc
cmp dword [0x433ef8], 1
je 0x423e93
cmp edx, 0xfc
je 0x423eb9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423df3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041f1c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041f2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x423e36
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041f2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42b40c
push edi
call fcn.00424e00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041f1c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041f1d0
lea eax, [ebp - 0xa0]
push 0x42b3ec
push eax
call fcn.0041f1d0
push dword [esi + 0x434664]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041f1d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425c99
add esp, 0x2c
pop edi
jmp 0x423eb9
lea eax, [ebp + 8]
lea esi, [esi + 0x434664]
push 0
push eax
push dword [esi]
call fcn.0041f2c0
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]
pop esi
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xd0
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
mov dword [esp + 0xc], edi
cmp eax, edi
je 0x403177
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x40
push eax
push str.SOFTWAREZSMCUSBCAMERAZC0303TWAIN
push 0x80000002
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403177
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push edi
push str.DeviceName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea edx, [esp + 0x5c]
movzx cx, byte [esp + eax + 0x1c]
cmp cx, di
mov word [edx], cx
je 0x4030b1
inc eax
add edx, 2
cmp eax, 0x40
jl 0x40309a
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
cmp eax, edi
je 0x4030ca
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x10], edi
mov dword [ebx], edi
mov dword [esi + 0x14], edi
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
push ebx
push edx
mov ecx, dword [eax]
push edi
push edi
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x403170
cmp dword [ebx], edi
je 0x403170
mov eax, dword [esp + 0xc]
push ebp
xor ebp, ebp
cmp eax, edi
jbe 0x403152
mov eax, dword [ebx]
lea ecx, [esp + 0x60]
mov dword [esi + 0x10], eax
push ecx
mov edx, dword [edi + eax + 0x114]
push edx
call fcn.00403aa0
add esp, 8
test eax, eax
jne 0x403143
mov eax, dword [esi + 0x14]
mov dword [esi + eax*4 + 0x18], ebp
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
shl eax, 8
mov edx, dword [edi + ecx + 0x120]
lea ecx, [eax + esi + 0x218]
push edx
push ecx
call fcn.00403a70
mov eax, dword [esi + 0x14]
add esp, 8
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x10]
inc ebp
add edi, 0x124
cmp ebp, eax
jb 0x4030f6
mov eax, dword [esp + 0xe8]
mov edx, dword [esi + 0x14]
pop ebp
pop edi
mov dword [eax], edx
pop esi
mov eax, 1
pop ebx
add esp, 0xd0
ret 8
mov ecx, esi
call fcn.00402fc0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xd0
ret 8

Function at 0x4035e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x8228]
test eax, eax
je 0x40363b
mov eax, dword [esi + 0x8230]
test eax, eax
je 0x40363b
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0x8238], eax
je 0x40363b
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x403650
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x8234], eax
jne 0x403633
mov edi, 0x80004005
mov eax, edi
pop edi
pop esi
pop ecx
ret 4
pop edi
mov eax, 0x80004005
pop esi
pop ecx
ret 4
Function at 0x403b00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4081d8
push 0x405d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40c0fc], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40c0f8], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40c0f4], ecx
shr eax, 0x10
mov dword [0x40c0f0], eax
call fcn.00404590
test eax, eax
jne 0x403b6a
push 0x1c
call fcn.00403cd0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405a90
call fcn.00405a80
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d5d8], eax
call fcn.00405440
mov dword [0x40c0b0], eax
test eax, eax
je 0x403b9d
mov eax, dword [0x40d5d8]
test eax, eax
jne 0x403ba7
push 0xffffffffffffffff
call fcn.00404da0
add esp, 4
call fcn.00405190
call fcn.004050a0
call fcn.00404d70
mov esi, dword [0x40d5d8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x403c86
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x403bee
test al, al
je 0x403bee
and eax, 0xff
push eax
call fcn.00405040
add esp, 4
test eax, eax
je 0x403bc8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403bc8
cmp byte [esi], 0x22
jne 0x403bf7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x403c07
cmp al, 0x20
ja 0x403c07
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403bf7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x403c28
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x403c2d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00404da0
jmp 0x403c6b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x403bf7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x403c86

Function at 0x403cd0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40c0b8], 1
jne 0x403cde
call fcn.00405e60
mov eax, dword [esp + 4]
push eax
call fcn.00405ea0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4040f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40d5c0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40429d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40d4c0]
lea edi, [ecx*4 + 0x40d4c0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40429d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40415e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40416f
push 2
push ebp
push eax
call fcn.00406490
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4042ce
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x404219
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4041ca
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4041b7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40419a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4042bf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x404215
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404196
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40428e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404262
cmp eax, 5
jne 0x40424b
mov dword [0x40c0e8], eax
mov dword [0x40c0e4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00406080
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404282
cmp byte [ebp], 0x1a
jne 0x404282
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40c0e4], 0x1c
jmp 0x4042a7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40c0e4], 9
pop edi
pop esi
pop ebp
mov dword [0x40c0e8], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404215
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4042ff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x404219
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x404219
Function at 0x404de0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40c12c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x404dff
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40c128], 1
mov byte [0x40c124], bl
jne 0x404e59
mov ecx, dword [0x40d5cc]
test ecx, ecx
je 0x404e47
mov esi, dword [0x40d5c8]
sub esi, 4
cmp esi, ecx
jb 0x404e47
mov eax, dword [esi]
test eax, eax
je 0x404e40
call eax
mov ecx, dword [0x40d5cc]
sub esi, 4
cmp esi, ecx
jae 0x404e32
push 0x40901c
push 0x409014
call fcn.00404e90
add esp, 8
push 0x409024
push 0x409020
call fcn.00404e90
add esp, 8
test ebx, ebx
jne 0x404e80
push ebp
mov dword [0x40c12c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x405440
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40c240]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405482
call edi
mov esi, eax
test esi, esi
je 0x40546c
mov eax, 1
jmp 0x40547d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40558f
mov eax, 2
mov dword [0x40c240], eax
cmp eax, 1
jne 0x405522
test esi, esi
jne 0x40549b
call edi
mov esi, eax
test esi, esi
je 0x40558f
cmp word [esi], 0
mov eax, esi
je 0x4054b5
add eax, 2
cmp word [eax], 0
jne 0x4054a3
add eax, 2
cmp word [eax], 0
jne 0x4054a3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405514
push edi
call fcn.00403910
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405514
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405506
push ebx
call fcn.00403d00
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40558f
test ebx, ebx
jne 0x405533
call ebp
mov ebx, eax
test ebx, ebx
je 0x40558f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40554b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40553b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40553b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403910
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40556d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret