joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404204
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push str.SHELL32.DLL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404392
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
test eax, eax
je 0x404384
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x404384
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x404384
xor ebx, ebx
cmp byte [0x4088c0], bl
jne 0x4042c6
push 0x4088c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x4088c0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40428d
sub ecx, edx
lea eax, [ecx + 0x4088c0]
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x4042c6
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x4042c6
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x4087a0], bl
mov dword [ebp - 0x30], esi
mov esi, esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x24], 0x408598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x4041e0
mov dword [ebp - 0x18], 0x4088c0
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x40430f
mov ecx, 4
int 0x29
mov dword [ebp - 8], eax
test eax, eax
je 0x404370
mov ebx, dword [ebp - 0xc]
mov esi, esp
push 0x4088c0
push eax
mov ecx, ebx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404336
mov ecx, 4
int 0x29
cmp byte [0x4088c0], 0
je 0x404353
push 0x4088c0
mov edx, 0x104
mov ecx, 0x4087a0
call fcn.004016a0
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
mov ecx, ebx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404370
mov ecx, 4
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x4087a0], al
setne al
jmp 0x4043a7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x404397
mov edx, 0x4c2
xor ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.00404495
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404669
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xa
mov edi, ecx
mov ebx, edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x4046d5
test ebx, ebx
je 0x4046d5
test esi, esi
je 0x4046d3
push 0xa
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4046d3
push esi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x4046d5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x404747
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00406656
test eax, eax
jne 0x404758
inc eax
pop esi
ret
cmp dword [0x4091dc], 0
push edi
jne 0x4047a6
test byte [0x408a38], 1
jne 0x4047a6
push 6
xor edi, edi
mov dword [0x409404], esi
push edi
push 0x403440
push dword [0x408584]
mov edx, 0x7d3
call fcn.004064c3
sub eax, 6
je 0x4047a6
sub eax, 1
je 0x4047b5
sub eax, 0x832
jne 0x4047a6
mov dword [0x4091dc], 1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x4048e6
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
mov edi, ecx
mov cl, byte [edi]
test cl, cl
je 0x40494d
mov al, byte [edi + 1]
push ebx
xor ebx, ebx
push esi
lea esi, [edi + 2]
cmp al, 0x3a
jne 0x404909
cmp byte [esi], 0x5c
jne 0x404909
lea esi, [edi + 3]
jmp 0x404945
cmp cl, 0x5c
jne 0x404917
cmp al, cl
jne 0x404917
push 2
pop ebx
jmp 0x404945
lea esi, [edi + 1]
jmp 0x404947
cmp al, 0x5c
jne 0x40493c
cmp byte [esi - 1], 0x3a
je 0x40493c
test ebx, ebx
je 0x40492d
dec ebx
jmp 0x40493c
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x40491c
pop esi
pop ebx
pop edi
ret
Function at 0x404fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
mov esi, 0x40134c
push ebx
xor edx, edx
mov ecx, esi
call fcn.00404669
push 0xa
push esi
push ebx
mov dword [0x409144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x409140], eax
test eax, eax
je 0x405121
mov eax, dword [0x408584]
test eax, eax
je 0x405017
push ebx
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x841
push dword [0x408584]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00404ecb
test eax, eax
jne 0x40503c
mov ecx, dword [0x408584]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.00404495
mov esi, ebx
jmp 0x4050c7
push edi
push 0x409148
push 1
push 0x404b90
push fcn.00404b30
push 0x404aa0
push 0x404a20
push fcn.00404950
push 0x404c90
push 0x404c70
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x4050a8
push 0x409140
push ebx
push 0x404ca0
push ebx
push 0x401140
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4050c6
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
test eax, eax
jne 0x4050c6
mov edx, dword [0x409148]
mov ecx, dword [0x408584]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.00404495
mov esi, ebx
pop edi
mov eax, dword [0x409140]
test eax, eax
je 0x4050dd
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409140], ebx
test esi, esi
jne 0x4050fa
cmp dword [0x4091d8], ebx
jne 0x4050fa
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
xor ecx, ecx
call fcn.00404495
test byte [0x408a38], 1
jne 0x40511f
test byte [0x409a34], 1
jne 0x40511f
push ebx
push esi
push 0xfa1
push dword [0x408584]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x405276
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
test esi, esi
je 0x4052d7
push edi
cmp dword [0x408a24], 0
mov edi, esi
jne 0x4052c0
cmp dword [0x409a30], 0
jne 0x4052c0
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x405297
pop edi
mov eax, dword [0x408a20]
pop esi
test eax, eax
je 0x405339
cmp dword [0x408a24], 0
jne 0x405339
cmp dword [0x409a30], 0
jne 0x405339
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.004017a1
test byte [0x409a34], 0x20
je 0x40531e
lea ecx, [ebp - 0x108]
call fcn.00406592
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.00402395
mov eax, dword [0x408a20]
cmp word [0x409a40], 1
je 0x40534c
test eax, eax
je 0x40534c
call fcn.00401fec
mov ecx, dword [ebp - 4]
and dword [0x408a20], 0
xor ecx, ebp
call fcn.00406c80
leave
ret

Function at 0x40535f
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
xor edi, edi
push edi
push 0x401378
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040173e
add esp, 0x10
mov edx, 0x104
mov ecx, esi
inc edi
push ebx
call fcn.004016a0
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.00406534
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40540b
cmp edi, 0x190
jl 0x40537d
push esi
xor edi, edi
push edi
push 0x401384
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4053f8
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c80
leave
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4053d3
xor edi, edi
inc edi
mov dword [0x408a20], edi
jmp 0x4053f8
Function at 0x405880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405890
sub edx, ecx
lea esi, [edx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4058cf
xor esi, esi
mov edx, 0x4b5
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.00404495
call fcn.00406233
mov dword [0x409124], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push edi
mov edx, esi
mov ecx, ebx
call fcn.004016a0
push 0x4013b8
mov edx, esi
mov ecx, ebx
call fcn.00406534
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4058be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4058be
test al, 0x10
je 0x4058be
xor eax, eax
mov dword [0x409124], esi
inc eax
jmp 0x4058ca
Function at 0x4061ce
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406218
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.00404495
call fcn.00406233
mov dword [0x409124], eax
xor eax, eax
jmp 0x406227
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.00405933
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406c80
leave
ret

Function at 0x406246
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013d4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.0040173e
jmp 0x4062e9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40630d
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406296
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a288]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x4062c4
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x406303
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013d4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.0040173e
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x406279
jmp 0x406319
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x406319
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406c80
leave
ret

Function at 0x406443
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.004017a1
mov edi, 0x4011d8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.00406534
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4064af
test al, 0x10
jne 0x4064af
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4064b6
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406c80
leave
ret

Function at 0x406656
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406667
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x4067cb
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x4068ec
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4068e6
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x4068e6
cmp dword [ebp - 0xa0], 4
jne 0x4068e6
cmp dword [ebp - 0x9c], 0xa
jae 0x4068e6
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4068e6
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068e6
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401140
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4068e6
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.004066a1
test eax, eax
je 0x4068e6
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x4068de
cmp eax, 0xd
jne 0x4068e6
mov dword [0x4081d8], edi
jmp 0x4068ec
mov edi, dword [0x4081d8]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406c80
leave
ret

Function at 0x4068fc
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x40694b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40694b
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
leave
ret
Function at 0x406a00
Capabilities:
Terminate process

Disassembly:
call fcn.00407105
jmp 0x406a0a
push 0x58
push 0x407268
call fcn.004071b8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4088ac
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406a5c
cmp eax, esi
jne 0x406a4f
xor esi, esi
inc esi
mov edi, esi
jmp 0x406a5f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406a33
xor esi, esi
inc esi
cmp dword [0x4088b0], esi
jne 0x406a71
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406aab
cmp dword [0x4088b0], ebx
jne 0x406aa5
mov dword [0x4088b0], esi
push 0x4010cc
push 0x4010c0
call fcn.00406be9
pop ecx
pop ecx
test eax, eax
je 0x406aab
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406bd9
mov dword [0x4081e4], esi
cmp dword [0x4088b0], esi
jne 0x406ace
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test edi, edi
jne 0x406adb
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406b07
push 0x4088b4
call fcn.00407010
pop ecx
test eax, eax
je 0x406b07
push ebx
push 2
push ebx
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a288]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406b65
test cl, cl
je 0x406b34
test edi, edi
jne 0x406b65
test cl, cl
je 0x406b34
cmp cl, 0x20
ja 0x406b34
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x406b23
test byte [ebp - 0x3c], 1
je 0x406b40
movzx eax, word [ebp - 0x38]
jmp 0x406b43
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406bbe
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406b76
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406b89
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406b14
cmp dword [0x4081e4], 0
jne 0x406bd2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406ef4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407288
call fcn.004071b8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x406f54
cmp eax, 0xffffffff
je 0x406f54
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x406f4d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x406f4d
cmp edx, 0x10000000
jae 0x406f4d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x406f4a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x406ffe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x406ff6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407000
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x406fe6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4070d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407101
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407101
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407101
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4051c9
mov al, byte [esp]
jmp 0x4051cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40693c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406984
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004068d8
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40698b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406b8c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c1a
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406bd7
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406c04
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406beb
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406bfa
lea edx, [ebp - 4]
call fcn.00406a50
test ebx, ebx
je 0x406bfa
dec ebx
jmp 0x406bdc
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c21
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c28
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d30
add esp, 0x104
pop ebx
ret