joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418455
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x426034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x160
lea eax, [ebp - 0x170]
mov dword [ebp - 4], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov byte [0x426998], 0
lea eax, [ebp - 0x170]
lea ecx, [ebp + 8]
push 0x400
push 0x160
push eax
push 0
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x60]
push eax
push 0x426998
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [0x426998], 0
jne 0x4061eb
push 0x2e
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120.dll_Ordinal_12697]
push 0x5c
lea ecx, [ebp + 8]
mov edi, eax
call dword [sym.imp.mfc120.dll_Ordinal_12697]
cmp edi, eax
jle 0x4061db
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120.dll_Ordinal_8599]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc120.dll_Ordinal_1521]
lea ecx, [ebp - 0x174]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc120.dll_Ordinal_1041]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120.dll_Ordinal_8561]
push 0x20
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x174]
push eax
call fcn.004055f0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
push 0x426998
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x174]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
push str.File
push 0x426998
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, 0x426998
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417198
mov esp, ebp
pop ebp
ret 4

Function at 0x406270
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x426034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x164]
push edi
push 0x4001
push 0x160
push eax
push 0
push 0x41c2d0
mov ebx, ecx
call esi
push 0x4000
push 0x160
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x164]
push eax
push 0
push 0x41c2d0
call esi
mov edi, eax
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x40630e
test edi, edi
je 0x40630e
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 1
push 0x1003
push dword [ebx + 0x20]
call esi
push edi
push 0
push 0x1003
push dword [ebx + 0x20]
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417198
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417198
mov esp, ebp
pop ebp
ret
Function at 0x4083e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x426034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0xf003f
push 1
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40848d
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0xff
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push str.EmailName
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40846b
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1524]
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417198
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00417198
mov esp, ebp
pop ebp
ret 4

Function at 0x408ad0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x426034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x160
lea eax, [ebp - 0x164]
mov esi, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x164]
cmp dword [esi + 0xac], 0
mov ecx, 0x10
push 0x110
push 0x160
push eax
mov eax, 0x80
cmovne eax, ecx
lea ecx, [esi + 0xb8]
push eax
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0
push dword [ebp - 0x164]
mov ecx, esi
push 0x170
push 0x3301
call sub.mfc120.dll_Ordinal_12915
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00417198
mov esp, ebp
pop ebp
ret
Function at 0x4118d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41989c
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x426034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call sub.mfc120.dll_Ordinal_10302
lea ecx, [ebp - 0x184]
call dword [sym.imp.mfc120.dll_Ordinal_316]
push dword [ebx + 0x9c]
lea eax, [ebp - 0x184]
mov dword [ebp - 4], 0
push str.This_folder_already_contains_a_file_named__s
push eax
call dword [sym.imp.mfc120.dll_Ordinal_4764]
add esp, 0xc
lea ecx, [ebp - 0x184]
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
push 0x3007
mov ecx, ebx
call sub.mfc120.dll_Ordinal_13267
push 0x160
lea eax, [ebp - 0x180]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x180]
lea ecx, [ebx + 0x9c]
push 0x110
push 0x160
push eax
push 0x80
call dword [sym.imp.mfc120.dll_Ordinal_1656]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0
push dword [ebp - 0x180]
mov ecx, ebx
push 0x170
push 0x300c
call sub.mfc120.dll_Ordinal_12915
push 0
push dword [ebp - 0x180]
mov ecx, ebx
push 0x170
push 0x300d
call sub.mfc120.dll_Ordinal_12915
cmp dword [ebx + 0x98], 1
jne 0x411a86
xorps xmm0, xmm0
mov ecx, ebx
push 7
movdqu xmmword [ebp - 0x20], xmm0
call sub.mfc120.dll_Ordinal_5306
lea ecx, [ebp - 0x20]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call sub.mfc120.dll_Ordinal_12840
push 6
mov ecx, ebx
call sub.mfc120.dll_Ordinal_5306
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
sub ecx, esi
mov edx, dword [ebp - 0x20]
push 1
push ecx
mov ecx, dword [ebp - 0x18]
sub ecx, edx
push ecx
push esi
push edx
mov ecx, eax
call sub.mfc120.dll_Ordinal_8658
push 2
mov ecx, ebx
call sub.mfc120.dll_Ordinal_5306
lea ecx, [ebp - 0x20]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call sub.mfc120.dll_Ordinal_12840
push 7
mov ecx, ebx
call sub.mfc120.dll_Ordinal_5306
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
sub ecx, esi
mov edx, dword [ebp - 0x20]
push 1
push ecx
mov ecx, dword [ebp - 0x18]
sub ecx, edx
push ecx
push esi
push edx
mov ecx, eax
call sub.mfc120.dll_Ordinal_8658
push 0
push 2
mov ecx, ebx
call sub.mfc120.dll_Ordinal_5306
mov ecx, eax
call sub.mfc120.dll_Ordinal_14009
push 0
push 0x3207
mov ecx, ebx
call sub.mfc120.dll_Ordinal_5306
mov ecx, eax
call sub.mfc120.dll_Ordinal_14009
lea ecx, [ebp - 0x184]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417198
mov esp, ebp
pop ebp
ret
Function at 0x412580
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x426034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x164]
push 0x160
push 0
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4125f2
neg eax
sbb eax, eax
and eax, 2
or eax, 0x4011
push eax
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x10
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x160]
mov dword [0x426030], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417198
mov esp, ebp
pop ebp
ret
neg eax
sbb eax, eax
and eax, 2
or eax, 0x4011
push eax
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x80
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x160]
xor ecx, ebp
pop esi
call fcn.00417198
mov esp, ebp
pop ebp
ret

Function at 0x412c90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418999
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x426034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xd4], 0
jne 0x412de7
mov eax, dword [esi + 0xd8]
cmp dword [esi + 0x154], eax
jle 0x412cdb
test eax, eax
jne 0x412de7
xor ebx, ebx
push ebx
push ebx
push 0x1004
push dword [esi + 0x100]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x412de7
push 4
push ebx
lea eax, [ebp - 0x10]
lea edi, [esi + 0xe0]
push eax
mov ecx, edi
call sub.mfc120.dll_Ordinal_5729
push ebx
mov ecx, edi
mov dword [ebp - 4], 0
call sub.mfc120.dll_Ordinal_5695
push str.Queued
lea ecx, [ebp - 0x10]
mov edi, eax
call dword [sym.imp.mfc120.dll_Ordinal_2944]
test eax, eax
jne 0x412d98
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x412d69
lea esp, [esp]
mov eax, ecx
test ecx, ecx
je 0x412dd9
mov eax, dword [eax + 8]
mov ecx, dword [ecx]
cmp dword [eax + 0x30], edi
je 0x412d5a
test ecx, ecx
jne 0x412d40
jmp 0x412d69
inc dword [esi + 0x154]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x412d98
mov ecx, eax
test eax, eax
je 0x412dd9
mov ecx, dword [ecx + 8]
mov eax, dword [eax]
cmp dword [ecx + 0x30], edi
je 0x412d89
test eax, eax
jne 0x412d73
jmp 0x412d98
inc dword [esi + 0x154]
push dword [ecx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xd8]
cmp dword [esi + 0x154], eax
jl 0x412daa
test eax, eax
jne 0x412dde
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc120.dll_Ordinal_1041]
push 0
push 0
push 0x1004
push dword [esi + 0x100]
inc ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebx, eax
jge 0x412de7
jmp 0x412cf8
call sub.mfc120.dll_Ordinal_2339
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120.dll_Ordinal_1041]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414980
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi + 0x128]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [edi + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
mov ebx, 1
cmp ebx, eax
sbb eax, eax
neg eax
je 0x4149c2
lea esp, [esp]
cmp eax, 0xffffffff
je 0x4149c2
push dword [edi + 0x2c]
call esi
cmp ebx, eax
sbb eax, eax
neg eax
jne 0x4149b0
push 1
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [edi + 0x124]
call esi
push 0xffffffffffffffff
push dword [edi + 0x2c]
call esi
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
pop edi
pop esi
pop ebx
ret
Function at 0x1212e43
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
jmp 0x1212e5a
mov dword [ebp - 4], 0
Function at 0x1212f1e
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
jmp 0x1212f35
mov dword [ebp - 4], 0
Function at 0x40375c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403785
cmp al, 0x22
je 0x40377d
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403771
cmp byte [esi], 0x22
jne 0x40378f
inc esi
jmp 0x40378f
cmp al, 0x20
jle 0x40378f
inc esi
cmp byte [esi], 0x20
jg 0x403789
mov al, byte [esi]
test al, al
je 0x403799
cmp al, 0x20
jle 0x403782
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00403807
push 0x405004
push section..data
call fcn.004037ed
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4037c9
movzx eax, word [ebp - 0x14]
jmp 0x4037cc
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040381f
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x432006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x285b2570
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1e3d73f7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4201e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00424898
call fcn.00420390
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x420218
jmp 0x4202b4
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x420217
cmp cl, 0x22
je 0x420270
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x420290
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x420290
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x420250
jmp 0x420290
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x420270
cmp cl, 0x22
je 0x4202f0
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4202ae
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4202a0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x4202d2
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004204f0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x420290
Function at 0x4204f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
call sub.KERNEL32.dll_GetCommandLineW
lea ebx, [ebp - 0x10]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [method.QString.fromWCharArray_wchar_t_const__int_]
push edx
lea esi, [ebp - 0xc]
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [method.QString.toLocal8Bit___const]
push eax
mov eax, dword [ebp - 0x10]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x420540
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [method.QString.free_QString::Data_]
mov dword [ebp - 0x14], 0
mov dword [esp + 4], 4
mov dword [esp], 0x30
call dword [method.QVectorData.allocate_int__int_]
mov ebx, eax
test eax, eax
je 0x420688
mov dword [ebp - 0x18], ebx
mov dword [ebx], 1
mov dword [ebx + 8], 8
mov dword [ebx + 4], 8
mov al, byte [ebx + 0xc]
or eax, 1
and eax, 0xfffffffd
mov byte [ebx + 0xc], al
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
add ebx, 0x10
mov dword [esp], ebx
call dword [sym.imp.QtCore4.dll_qMemSet_void__int__unsigned_int_]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
dec edx
je 0x420674
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [method.QByteArray.realloc_int_]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xc]
lea ebx, [ebp - 0x18]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.QtCore4.dll_qWinMain_HINSTANCE____HINSTANCE____char__int__int__QVector_char__
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
dec edx
je 0x420610
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00426700
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004013b0
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420638
lock dec dword [eax]
setne dl
test dl, dl
je 0x42065c
mov eax, dword [ebp - 0xc]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x420651
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.QtCore4.dll_qFree_void_]
mov eax, ebx
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret 0x10
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [method.QVectorData.free_QVectorData__int_]
jmp 0x420638
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x10]
cmp edx, ecx
jne 0x4205b1
jmp 0x4205c7
call dword [sym.imp.QtCore4.dll_qBadAlloc__]
jmp 0x420566
Function at 0x40466c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4046ae
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4046ce
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00407de8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404924
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406d30
test esi, esi
jne 0x40495a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406eb8
jmp 0x404978
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404808
mov edi, eax
test esi, esi
je 0x404978
cmp dword [ebx], 0
je 0x404978
dec esi
jmp 0x404961
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4049ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x645008], 0x8088405
inc edx
mov dword [ebx + 0x645008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x4059b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405d9c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405b39
test edi, edi
je 0x405b39
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405a70
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405a4b
cmp edi, 0xffffffff
je 0x405a0f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a0f
mov byte [esp], 0
jmp 0x405b39
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405a4b
test ebx, ebx
jne 0x405a44
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026c8
test eax, eax
jne 0x405a44
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405b39
pause
dec ebp
test ebp, ebp
jg 0x4059f4
cmp edi, 0xffffffff
je 0x405a70
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405a6e
mov byte [esp], 0
jmp 0x405b39
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4059be
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026c8
cmp ebx, eax
jne 0x405a70
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405bac
mov edx, eax
mov ebx, dword [0x6608cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ad7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ad5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ad7
xor edi, edi
cmp byte [esp], 0
je 0x405b00
mov ebx, dword [esi]
test bl, 1
jne 0x405b19
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026c8
cmp ebx, eax
jne 0x405add
mov byte [esp + 1], 1
jmp 0x405b19
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026c8
cmp ebx, eax
jne 0x405b00
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405a8a
cmp byte [esp], 0
je 0x405b39
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406994
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x660054], 0
je 0x4069f5
cmp word [0x660330], 0xd7b2
jne 0x4069bd
cmp dword [0x660338], 0
jbe 0x4069bd
mov eax, 0x66032c
call dword [0x660348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406a20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x645028], 0
jne 0x406a11
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret