joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4020e4
mov eax, 1
jmp 0x40229d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x450]
dec eax
mov dword [ebp - 0x30c], eax
jmp 0x402120
dec dword [ebp - 0x30c]
cmp dword [ebp - 0x30c], 0
jl 0x40215c
mov eax, dword [ebp - 0x30c]
movsx eax, byte [ebp + eax - 0x304]
cmp eax, 0x5c
jne 0x402157
mov eax, dword [ebp - 0x30c]
mov byte [ebp + eax - 0x303], 0
jmp 0x40215c
jmp 0x40211a
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x44c], 0x10
je 0x402246
movsx eax, byte [ebp - 0x420]
cmp eax, 0x2e
je 0x402241
push str..
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x204]
push eax
call fcn.004020b0
add esp, 4
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x450]
movsx eax, byte [ebp + eax - 0x205]
cmp eax, 0x5c
jne 0x402234
mov eax, dword [ebp - 0x450]
mov byte [ebp + eax - 0x205], 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402265
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x44c]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x308], eax
cmp dword [ebp - 0x308], 1
je 0x40215c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x40229d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022a2
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
push 0x407130
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022cf
mov eax, 1
jmp 0x40241a
push 0x407230
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022f0
mov eax, 1
jmp 0x40241a
push 0x407330
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402311
mov eax, 1
jmp 0x40241a
push 0x407430
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402332
mov eax, 1
jmp 0x40241a
push 0x407530
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402353
mov eax, 1
jmp 0x40241a
push 0x407630
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402374
mov eax, 1
jmp 0x40241a
push 0x407730
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402395
mov eax, 1
jmp 0x40241a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp + 8]
movsx eax, byte [eax + ecx - 1]
cmp eax, 0x5c
jne 0x4023ca
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx - 1], 0
lea eax, [ebp - 0x144]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4023f2
mov eax, 1
jmp 0x40241a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push pe_nt_image_headers32
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40241a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402855
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x402880
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jge 0x4028b6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movsx eax, byte [eax + ecx]
cmp eax, 0x2c
jne 0x4028b1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
inc dword [ebp - 0x10]
jmp 0x4028b6
jmp 0x40287d
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
jmp 0x4028ce
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jge 0x402904
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movsx eax, byte [eax + ecx]
cmp eax, 0x2c
jne 0x4028ff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], 0
inc dword [ebp - 0x10]
jmp 0x402904
jmp 0x4028cb
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push str.HKEY_CLASSES_ROOT
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402930
mov dword [ebp - 0x20], 0x80000000
jmp 0x4029fd
push str.HKEY_CURRENT_CONFIG
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402953
mov dword [ebp - 0x20], 0x80000005
jmp 0x4029fd
push str.HKEY_CURRENT_USER
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402976
mov dword [ebp - 0x20], 0x80000001
jmp 0x4029fd
push str.HKEY_LOCAL_MACHINE
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402999
mov dword [ebp - 0x20], 0x80000002
jmp 0x4029fd
push str.HKEY_USERS
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4029bc
mov dword [ebp - 0x20], 0x80000003
jmp 0x4029fd
push str.HKEY_PERFORMANCE_DATA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4029df
mov dword [ebp - 0x20], 0x80000004
jmp 0x4029fd
push str.HKEY_DYN_DATA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4029fd
mov dword [ebp - 0x20], 0x80000006
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402a34
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402a39
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a3e
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x44c]
movsx eax, byte [ebp + eax - 0x309]
cmp eax, 0x5c
je 0x402a97
push 0x407948
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40794c
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402acf
jmp 0x402c1d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x44c]
movsx eax, byte [ebp + eax - 0x105]
cmp eax, 0x5c
je 0x402b1c
push 0x407950
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x448], 0x10
je 0x402b82
movsx eax, byte [ebp - 0x41c]
cmp eax, 0x2e
je 0x402b82
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x407954
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x204]
push eax
call fcn.00402a3e
add esp, 4
lea eax, [ebp - 0x448]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 1
je 0x402acf
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
movsx eax, byte [ebp + eax - 0x309]
cmp eax, 0x5c
jne 0x402bf9
mov eax, dword [ebp - 0x208]
mov byte [ebp + eax - 0x309], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402c1d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push str.RT_RCDATA
push 0x44c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x402c9b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x402ccb
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
jmp 0x402ccb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402d1d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402d4a
xor eax, eax
jmp 0x402d5f
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00402cd0
add esp, 8
jmp 0x402d5f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402d64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402d91
xor eax, eax
jmp 0x402da6
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00402cd0
add esp, 8
jmp 0x402da6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402dab
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402dd8
xor eax, eax
jmp 0x402ded
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00402cd0
add esp, 8
jmp 0x402ded
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402df2
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 7
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402e1f
xor eax, eax
jmp 0x402e34
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00402cd0
add esp, 8
jmp 0x402e34
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402e39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionGrpConvMapGroups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x402e7d
xor eax, eax
jmp 0x402f25
mov dword [ebp - 4], 0x100
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Quick_Launch
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10c], 0
je 0x402ece
xor eax, eax
jmp 0x402f25
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
movsx eax, byte [ebp + eax - 0x109]
cmp eax, 0x5c
je 0x402f0a
push 0x4079b0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
jmp 0x402f25
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f2a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x1a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402f57
xor eax, eax
jmp 0x402f80
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00402cd0
add esp, 8
push str.MicrosoftInternet_ExplorerQuick_Launch_
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 1
jmp 0x402f80
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403540
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x404524
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x407a90], eax
xor eax, eax
mov al, byte [0x407a91]
mov dword [0x407a9c], eax
mov eax, dword [0x407a90]
shr dword [0x407a90], 0x10
and eax, 0xff
mov dword [0x407a98], eax
shl eax, 8
add eax, dword [0x407a9c]
mov dword [0x407a94], eax
call fcn.004044e0
test eax, eax
jne 0x4035b4
push 0x1c
call fcn.004036e0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404300
call fcn.004042f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4090d0], eax
call fcn.00403ea0
mov dword [0x407a70], eax
test eax, eax
je 0x4035e7
cmp dword [0x4090d0], 0
jne 0x4035f1
push 0xffffffffffffffff
call fcn.00403740
add esp, 4
call fcn.00403c20
call fcn.00403b30
call fcn.00403710
mov esi, dword [0x4090d0]
mov al, byte [esi]
cmp al, 0x22
je 0x403618
cmp al, 0x20
jbe 0x403645
inc esi
cmp byte [esi], 0x20
ja 0x403610
jmp 0x403645
inc esi
cmp byte [esi], 0x22
je 0x403644
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40363f
xor eax, eax
mov al, bl
push eax
call fcn.00403ad0
add esp, 4
test eax, eax
je 0x403639
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x403621
cmp byte [esi], 0x22
jne 0x403645
inc esi
cmp byte [esi], 0
je 0x403655
cmp byte [esi], 0x20
ja 0x403655
inc esi
cmp byte [esi], 0
jne 0x40364a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x403679
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403740
jmp 0x4036ba
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403780
Capabilities:
Terminate process

Disassembly:
cmp dword [0x407acc], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40379e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x407ac8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x407ac4], bl
jne 0x4037f8
cmp dword [0x4090c8], 0
je 0x4037e6
mov edi, dword [0x4090c4]
sub edi, 4
cmp edi, dword [0x4090c8]
jb 0x4037e6
mov eax, dword [edi]
test eax, eax
je 0x4037db
call eax
sub edi, 4
cmp edi, dword [0x4090c8]
jae 0x4037d3
push 0x407014
push 0x407010
call fcn.00403830
add esp, 8
push 0x40701c
push 0x407018
call fcn.00403830
add esp, 8
test ebx, ebx
jne 0x40381f
mov dword [0x407acc], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x403ea0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x407b70], ebx
jne 0x403eef
call esi
cmp eax, ebx
mov edi, eax
je 0x403ecd
mov dword [0x407b70], 1
jmp 0x403eef
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x403ee5
mov dword [0x407b70], 2
jmp 0x403eef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407b70], 1
jne 0x403f9e
test edi, edi
jne 0x403f12
call esi
mov edi, eax
test edi, edi
jne 0x403f12
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x403f2c
add esi, 2
cmp word [esi], 0
jne 0x403f1a
add esi, 2
cmp word [esi], 0
jne 0x403f1a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403f8d
push ebp
call fcn.00404890
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403f8d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403f7c
push ebx
call fcn.00404840
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407b70], 2
jne 0x404022
test ebx, ebx
jne 0x403fc1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403fc1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403fd6
inc ebp
cmp byte [ebp], 0
jne 0x403fc8
inc ebp
cmp byte [ebp], 0
jne 0x403fc8
sub ebp, ebx
inc ebp
push ebp
call fcn.00404890
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403ffb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x407da0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x404667
add eax, 8
inc ecx
cmp eax, 0x407e30
jb 0x404658
cmp dword [ecx*8 + 0x407da0], edx
lea ebx, [ecx*8]
jne 0x40482b
cmp dword [0x407a7c], 1
je 0x4047e7
cmp dword [0x407a7c], 0
jne 0x40469e
cmp dword [0x407a80], 1
je 0x4047e7
cmp edx, 0xfc
je 0x40482b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4046db
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40471f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4062e0
push ebp
call fcn.00405140
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4062c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x407da4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004050a0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x408fc0], 0
je 0x4047fd
mov eax, dword [0x408fc0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404807
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x407da4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret