joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41166b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x41176e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x41a2c4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41a2c4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41a2c4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41a2c4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41a2c4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41a2c4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41a2c4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41a2c4]
xor eax, edx
inc ecx
dec edi
jne 0x411686
pop edi
test esi, esi
je 0x411790
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41a2c4]
xor eax, edx
inc ecx
dec esi
jne 0x411772
pop esi
pop ebx
not eax
ret

Function at 0x4117a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov edx, dword [ecx]
and esi, 0xff
mov eax, edx
and eax, 0xff
xor eax, esi
shr edx, 8
mov eax, dword [eax*4 + 0x41a2c4]
xor eax, edx
mov edx, dword [ecx + 4]
mov dword [ecx], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 8]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 4], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x41a2c4]
xor eax, edx
mov dword [ecx + 8], eax
ret
Function at 0x4121c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x412201
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4121f6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x412214
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x1c], ecx
pop ebp
pop ebx
ret
Function at 0x412d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
jne 0x412d4e
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x18], ebx
jne 0x412d60
pop edi
pop esi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x412d6e
push edi
call fcn.004131a0
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push edi
call fcn.00412b30
add esp, 0x10
test eax, eax
je 0x412d97
pop edi
pop esi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x412dba
pop edi
pop esi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
push 0x4000
call ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x44], ecx
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x412df2
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
sete al
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
cmp eax, ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
jne 0x412e40
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00411a50
add esp, 4
test eax, eax
jne 0x412e40
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x412e6d
mov edx, dword [edi + 0x38]
shr edx, 8
mov byte [esi + 0x80], dl
jmp 0x412e79
mov eax, dword [edi + 0x3c]
shr eax, 0x18
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
sbb ecx, ecx
lea ebx, [esi + 0x70]
and ecx, 0xc
mov dword [esi + 0x74], 0x23456789
test ebp, ebp
mov dword [esi + 0x7c], ecx
mov dword [ebx], 0x12345678
mov dword [esi + 0x78], 0x34567890
je 0x412eb9
mov al, byte [ebp]
test al, al
je 0x412eb9
push eax
push ebx
call fcn.004117a0
add esp, 8
inc ebp
jne 0x412ea5
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], 0
lea ecx, [edx + eax + 0x1e]
xor eax, eax
mov dword [esi + 0x3c], ecx
mov dword [edi + 0x7c], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4132f0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4133d2
cmp dword [ebp + 4], 0xffffffff
jne 0x4133d2
push ebx
lea ebx, [ebp + 0x140]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov cl, byte [ecx + ebp + 0x13f]
cmp cl, 0x5c
je 0x413362
cmp cl, 0x2f
je 0x413362
mov edi, 0x41f9c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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 [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp edi, 1
pop ebx
jne 0x41338e
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41338e
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push edi
push ecx
push esi
call fcn.00411f70
add esp, 0x10
test eax, eax
jne 0x4133b1
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00412490
add esp, 4
mov dword [ebp], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc
Function at 0x413930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x413958
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413958
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x413a32
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x413978
cmp cl, 0x5c
jne 0x41397a
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x41396e
push esi
cmp eax, ebp
push edi
je 0x4139bc
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.00413930
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x4139e8
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x413a32
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x4143d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push 3
push 0
push 0
push eax
push 0x41f47c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x414930
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x417e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
push 0xa
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00415a80
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
cmp ecx, 5
jl 0x4149ff
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x40]
push 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x41f9c8
push eax
call esi
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4149fb
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
cmp dword [eax - 8], 5
jge 0x41498c
jmp 0x4149ff
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
mov ebx, 3
cmp ecx, ebx
jle 0x414a72
push eax
call fcn.00414800
add esp, 4
test eax, eax
jne 0x414a72
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStringList::AddHead
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x414a72
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x3a
je 0x414a72
cmp ecx, ebx
jg 0x414a0b
mov esi, dword [esp + 0x18]
test esi, esi
je 0x414aa2
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov esi, dword [esi]
add eax, 8
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0xc]
push 0
push eax
call edi
test eax, eax
je 0x414ad8
test esi, esi
jne 0x414a80
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415eb2
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415eb2
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x414b40
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x414b80
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 8]
mov eax, edi
sub eax, ecx
pop edi
xor edx, edx
pop esi
pop ecx
ret

Function at 0x414e50
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x417e2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
push 0x41fa64
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x414eac
mov esi, dword [esp + 0x1c]
push 0x41fbcc
mov ecx, esi
call fcn.00415abc
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebp, eax
lea ecx, [ebp + 1]
push ecx
call sub.MFC42.DLL_operatornew
push 0
push 0
push esi
mov edi, eax
call ebx
push esi
mov ebx, 1
push ebp
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x60]
add esp, 0x34
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call sub.MFC42.DLL_AfxGetEmptyString
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::operator_1
push edi
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x2c]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x415940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x104]
lea edx, [esp]
push ecx
push 0
push 0x41fbb0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x20c]
lea eax, [esp + 0x104]
push eax
push 0x41e1e0
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x214
ret
Function at 0x4159a0
Capabilities:
Delete file
Set current directory

Disassembly:
sub esp, 0x12c
push esi
mov esi, dword [esp + 0x13c]
push edi
push esi
call fcn.00414930
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
push eax
push ecx
call fcn.00414000
mov edi, eax
add esp, 8
test edi, edi
jne 0x4159e6
pop edi
pop esi
add esp, 0x12c
ret
lea edx, [esp + 8]
push edx
push 0xffffffffffffffff
push edi
call fcn.00414020
add esp, 0xc
test eax, eax
je 0x415a0e
push edi
call fcn.004140e0
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x12c
ret
mov eax, dword [esp + 8]
push ebx
xor esi, esi
push ebp
test eax, eax
mov ebx, eax
mov ebp, 1
jle 0x415a4c
lea eax, [esp + 0x10]
push eax
push esi
push edi
call fcn.00414020
add esp, 0xc
test eax, eax
jne 0x415a4a
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call fcn.004140c0
add esp, 0xc
inc esi
cmp esi, ebx
jl 0x415a21
jmp 0x415a4c
xor ebp, ebp
push edi
call fcn.004140e0
mov eax, dword [esp + 0x150]
add esp, 4
test eax, eax
je 0x415a6e
mov edx, dword [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x12c
ret
Function at 0x406910
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040af80
call fcn.00406ac0
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 0x406948
jmp 0x4069e4
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x406947
cmp cl, 0x22
je 0x4069a0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
je 0x4069c0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x4069c0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test edx, eax
jne 0x406980
jmp 0x4069c0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test edx, eax
jne 0x4069a0
cmp cl, 0x22
je 0x406a20
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x4069de
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4069d0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x406a02
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.00406c20
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x4069c0
Function at 0x406c20
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 0x406c70
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 0x406db8
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 0x406da4
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 0x406d40
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.0040c774
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004055b8
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406d68
lock dec dword [eax]
setne dl
test dl, dl
je 0x406d8c
mov eax, dword [ebp - 0xc]
lock dec dword [eax]
setne dl
test dl, dl
jne 0x406d81
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 0x406d68
mov edx, dword [eax + 0xc]
lea ecx, [eax + 0x10]
cmp edx, ecx
jne 0x406ce1
jmp 0x406cf7
call dword [sym.imp.QtCore4.dll_qBadAlloc__]
jmp 0x406c96
Function at 0x401277
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x4012cd
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x14], ecx
jge 0x401395
mov edx, dword [ebp - 8]
cmp dword [edx + 0x10], 0
jne 0x401340
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jle 0x40133b
mov esi, esp
push 4
push 0x1000
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [0x440174]
cmp esi, esp
call 0x402ca5
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call 0x402cc0
add esp, 0xc
jmp 0x4012bb
mov esi, esp
push 4
push 0x1000
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [0x440174]
cmp esi, esp
call 0x402ca5
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call 0x402970
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x4012bb
pop esi
add esp, 0x14
cmp ebp, esp
call 0x402ca5
mov esp, ebp
pop ebp
ret