joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063b0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4321d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x43fd18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00401dd0
mov dword [ebp - 4], 0
push 0x434ec8
lea eax, [ebp - 0x14]
push eax
call fcn.0042aa00
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00403060
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00401eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401e90
push 0
mov ecx, dword [ebp - 0x24]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406498
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406498
lea eax, [ebp - 0x1c]
push eax
call fcn.0042aa00
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00401eb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401e90
mov ecx, dword [ebp - 0x24]
call fcn.00401f10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4064e0
lea eax, [ebp - 0x20]
push eax
call fcn.004018d0
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
push eax
push str._CSetExtractionDir::CSetExtractionDir__Error___s
call fcn.00428d80
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401e90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4148ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fd18]
jne 0x4148f9
repz ret
jmp fcn.00419c8c
Function at 0x422520
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041967a
and dword [ebp - 4], 0
cmp dword [0x443cc8], 0
mov ebx, eax
jne 0x4225d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422682
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x438440
push edi
call esi
test eax, eax
je 0x422682
push eax
call fcn.00419608
mov dword [esp], 0x438430
push edi
mov dword [0x443cc8], eax
call esi
push eax
call fcn.00419608
mov dword [esp], 0x43841c
push edi
mov dword [0x443ccc], eax
call esi
push eax
call fcn.00419608
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x443cd0], eax
call esi
push eax
call fcn.00419608
pop ecx
mov dword [0x443cd8], eax
test eax, eax
je 0x4225d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419608
pop ecx
mov dword [0x443cd4], eax
mov eax, dword [0x443cd4]
cmp eax, ebx
je 0x422629
cmp dword [0x443cd8], ebx
je 0x422629
push eax
call fcn.00419683
push dword [0x443cd8]
mov esi, eax
call fcn.00419683
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422629
test edi, edi
je 0x422629
call esi
test eax, eax
je 0x422620
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422620
test byte [ebp - 0xc], 1
jne 0x422629
or dword [ebp + 0x10], 0x200000
jmp 0x422662
mov eax, dword [0x443ccc]
cmp eax, ebx
je 0x422662
push eax
call fcn.00419683
pop ecx
test eax, eax
je 0x422662
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422662
mov eax, dword [0x443cd0]
cmp eax, ebx
je 0x422662
push eax
call fcn.00419683
pop ecx
test eax, eax
je 0x422662
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x443cc8]
call fcn.00419683
pop ecx
test eax, eax
je 0x422682
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422684
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42a3d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x42a410
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42a40c
mov edx, dword [ebp - 4]
and edx, 1
je 0x42a410
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42a410
xor al, al
jmp 0x42a420
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 8
Function at 0x42aa00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4330f1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43fd18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x10]
call fcn.00401dd0
mov dword [ebp - 4], 1
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401f20
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x104
jbe 0x42aa7a
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f20
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42aad0
push str._PSMisc::GetTempPathName_
lea edx, [ebp - 0x18]
push edx
call fcn.0042a430
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
push 0x10000
call fcn.00428db0
add esp, 8
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402210
push 0
lea ecx, [ebp - 0x10]
call fcn.00406a75
jmp 0x42aada
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00406a75
mov ecx, dword [ebp - 0x10]
sub ecx, 0x10
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.004026e0
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
or edx, 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402210
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x42ab40
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x42ab82
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42ab82
mov edx, dword [ebp - 8]
and edx, 1
je 0x42ab82
mov eax, dword [ebp - 8]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42ab82
xor al, al
jmp 0x42aba7
movzx edx, byte [ebp + 0x10]
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42abb0
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42abe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
je 0x42abde
cmp dword [ebp - 0xc], 2
jne 0x42abe2
xor al, al
jmp 0x42ac46
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x42ac1e
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x42ac1e
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x42ac1e
mov ecx, dword [ebp - 0x10]
and ecx, 0xfffffffe
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42ac1e
xor al, al
jmp 0x42ac46
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
neg eax
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x42b370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433180
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x43fd18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x14]
call fcn.00401dd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x400
push 0x400
lea ecx, [ebp - 0x14]
call fcn.0040b433
mov dword [ebp - 0x10], 0
push 0xa
mov eax, dword [ebp + 8]
push eax
call fcn.00415f03
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42b404
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 8]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x42b3c2
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e630
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
cmp dword [ebp + 0x14], 0
jne 0x42e65c
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00414900
add esp, 0xc
mov dword [ebp - 0x48], 0x44
lea ecx, [ebp - 0x48]
mov dword [ebp + 0x14], ecx
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42e69a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
xor al, al
jmp 0x42e6c6
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x60]
call fcn.0042b1c0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov al, 1
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
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
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408938
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
and esi, esi
add eax, 1
call fcn.00408970
mov esi, 0x9c824390
dec esi
xor dword [ecx], ebx
sub eax, 0xc69e9d57
add esi, 0x98b4b5b4
inc ecx
cmp ecx, edi
jne fcn.00408938
mov eax, 0x44dbc0c5
add eax, 1
ret
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
enter 0x14, 0
push ebx
push esi
push edi
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [ebp - 4], eax
push section.DATA
push dword [ebp + 8]
push dword [ebp - 4]
call sub.KERNEL32.dll_FindResourceA
cmp eax, 0
je 0x401099
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.KERNEL32.dll_LoadResource
cmp eax, 0
je 0x401099
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_LockResource
cmp eax, 0
je 0x401099
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 0x14], eax
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401099
mov ebx, eax
push 0
push esp
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push ebx
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4010a2
Capabilities:
Create process on windows

Disassembly:
enter 0x54, 0
push ebx
push esi
push edi
lea esi, [ebp - 0x10]
lea edi, [ebp - 0x54]
push 0x44
push edi
call sub.KERNEL32.dll_RtlZeroMemory
mov dword [edi], 0x44
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push 0
call sub.KERNEL32.dll_CreateProcessA
cmp eax, 0
je 0x4010f6
cmp dword [ebp + 8], 0
je 0x4010f6
push dword [ebp + 8]
push dword [edi]
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401100
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x418004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
push eax
push dword [0x4191c4]
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
mov dword [ebp - 0x110], ebx
call fcn.00410060
mov edi, esp
test edi, edi
je 0x4011a0
push edi
push ebx
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4011a0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x416480
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov eax, dword [ebp - 0x114]
movzx eax, word [eax + 0xe]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], esi
jae 0x4011da
test byte [0x4191c0], 2
je 0x4011c0
push str.This_program_was_built_with_a_later_version_of_the_Dyalog_APL_runtime._Please_contact_the_software_vendor_for_details_on_obtaining_the_latest_runtime_engine.
call fcn.00401010
add esp, 4
jmp 0x4011d4
push 0
push 0x416461
push str.This_program_was_built_with_a_later_version_of_the_Dyalog_APL_runtime._Please_contact_the_software_vendor_for_details_on_obtaining_the_latest_runtime_engine.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x10c], esi
sbb eax, eax
inc eax
lea esp, [ebp - 0x120]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401671
mov esp, ebp
pop ebp
ret
Function at 0x401460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0xa
push 2
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4014ba
push esi
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4014ba
push esi
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [0x41930c]
add esp, 8
test eax, eax
je 0x4014ba
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4014c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xa
push 0xc
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401546
push eax
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401546
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401546
mov eax, dword [eax]
sub eax, 1
je 0x401546
sub eax, 1
je 0x401540
sub eax, 1
jne 0x401546
push esi
xor esi, esi
call fcn.00404b58
cmp dword [eax], esi
jle 0x401535
lea ecx, [ecx]
call fcn.00404b5e
push str._unicode
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.00405ac8
add esp, 8
test eax, eax
je 0x401539
inc esi
call fcn.00404b58
cmp esi, dword [eax]
jl 0x401510
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401580
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
mov edi, dword [ebp + 8]
push 0xa
push 3
push edi
mov dword [0x4191c8], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4015c2
push eax
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4015c2
push eax
call ebx
test eax, eax
je 0x4015c2
mov eax, dword [eax]
jmp 0x4015c4
xor eax, eax
push 0xa
push 5
push dword [0x4191c8]
mov dword [0x4191c0], eax
call esi
test eax, eax
je 0x4015f5
push eax
push dword [0x4191c8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4015f5
push eax
call ebx
test eax, eax
je 0x4015f5
mov edx, dword [eax]
jmp 0x4015f7
xor edx, edx
mov ecx, dword [0x4191c0]
and ecx, 8
call fcn.00401200
test eax, eax
jne 0x401615
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0x10
push 0xa
push 4
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x401637
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401637
push eax
call ebx
mov esi, eax
push 0x401550
push dword [0x4191c0]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push 0
call dword [0x4192fc]
add esp, 0x14
test eax, eax
je 0x401668
call fcn.00401460
test eax, eax
je 0x401668
call dword [0x419300]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x10
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x65a0100b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x52354be5
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40df28
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040e0d8
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40e026
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40dfc9
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40e00c
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40dfe0
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40dffb
test al, 0x40
je 0x40dff2
mov ecx, dword [edi + 0x20]
jmp 0x40dff9
test al, 0x80
je 0x40e00c
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40e00c
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40df98
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret