joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047f4
Capabilities:
Get common file path
Get system information on windows
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x404978
call sub.KERNEL32.DLL_GlobalFree
mov ebx, eax
test ebx, ebx
je 0x404859
push 0x404988
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404859
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x404859
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
jmp 0x40496e
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x404899
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x40496e
mov eax, dword [ebp - 4]
add eax, 2
call fcn.004047e0
mov ebx, eax
cmp byte [ebx], 0
je 0x40496e
lea eax, [ebx + 1]
call fcn.004047e0
mov ebx, eax
cmp byte [ebx], 0
je 0x40496e
jmp 0x40489f
mov ebx, dword [ebp - 4]
add ebx, 2
mov esi, ebx
sub esi, dword [ebp - 4]
lea eax, [esi + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x404955
lea eax, [ebx + 1]
call fcn.004047e0
mov edi, eax
mov eax, edi
sub eax, ebx
mov edx, eax
add edx, esi
inc edx
cmp edx, 0x105
jg 0x40496e
inc eax
push eax
push ebx
lea eax, [ebp - 0x24f]
add eax, esi
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40496e
push ebx
call sub.KERNEL32.DLL_GetSystemInfo
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_MoveFileExA
lea edx, [esi + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x40496e
mov byte [ebp + esi - 0x24f], 0x5c
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, esi
inc eax
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_MoveFileExA
inc eax
add esi, eax
mov ebx, edi
cmp byte [ebx], 0
jne 0x4048bd
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40499c
Capabilities:
Inspect load icon resource
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GlobalAlloc
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404b58
push 0x80000001
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4049fd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404b74
push 0x80000001
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x404a6f
xor eax, eax
push ebp
push 0x404a68
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004047f4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_LoadIconA
test eax, eax
je 0x404a51
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404b94
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_LoadIconA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a6f
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetSysColor
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_InitializeCriticalSection
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GlobalReAlloc
push eax
call sub.KERNEL32.DLL_GetVersionExA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404b50
cmp byte [ebp - 0xd], 0
jne 0x404ab1
cmp byte [ebp - 0x12], 0
je 0x404b50
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_MoveFileExA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404aca
dec ebx
cmp byte [ebx], 0x2e
je 0x404ad9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ac9
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404b50
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404b06
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_InitializeCriticalSection
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov esi, eax
test esi, esi
jne 0x404b50
cmp byte [ebp - 0xd], 0
je 0x404b50
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_InitializeCriticalSection
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov esi, eax
test esi, esi
jne 0x404b50
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_InitializeCriticalSection
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40afc8
Capabilities:
Get file size

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, ecx
mov ebx, edx
call fcn.0040afc4
push eax
mov dword [esp + 4], esi
mov byte [esp + 8], 0
lea eax, [esp + 4]
push eax
push 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x40a574]
call fcn.004080d0
jmp fcn.004030d8
Function at 0x40b854
Capabilities:
Get file size

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, ecx
mov ebx, edx
call fcn.0040b850
push eax
mov dword [esp + 4], esi
mov byte [esp + 8], 0
lea eax, [esp + 4]
push eax
push 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x40a5cc]
call fcn.004080d0
jmp fcn.004030d8

Function at 0x40d550
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x40d57b
cmp byte [ebx + 0xc], 0
je 0x40d568
push eax
call sub.KERNEL32.DLL_RtlUnwind
jmp 0x40d56e
push eax
call sub.KERNEL32.DLL_CreateThread
xor eax, eax
mov dword [ebx + 4], eax
lea eax, [ebx + 0x10]
call fcn.00403684
pop ebx
ret

Function at 0x40e664
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x40e66a
ret
Function at 0x4187e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x41880e
mov eax, ebx
call fcn.00419284
cmp dword [ebx + 0x3c], 0
je 0x418807
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x41887f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x418871
cmp dword [ebx + 8], 0
je 0x418830
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x418842
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x418871
cmp dword [ebx + 8], 0
je 0x418823
cmp eax, 3
je 0x418855
dec eax
jne 0x418823
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x418823
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x418823
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x41889d
cmp dword [ebx + 0x10], 0xcc
je 0x41889d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004188a8
pop ebx
ret

Function at 0x42928c
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
pop ebp
ret 0x14

Function at 0x429518
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
ret
Function at 0x40a230
Capabilities:
Get file attributes

Disassembly:
call fcn.004049b0
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40a244
dec eax
and al, 0x10
sete al
ret

Function at 0x40a2a0
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.00403540
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.00404fd4
ret

Function at 0x40a300
Capabilities:
Read .ini file

Disassembly:
or eax, 0
je 0x40a2f2
lea eax, [esi + 4]
call fcn.00404e7c
mov dword [esi], eax
lea edx, [esi + 4]
inc eax
add esi, eax
mov eax, edi
call fcn.004090ec
cmp byte [esi + 4], 0
jne 0x40a2d5
pop eax
call fcn.004027f0
pop ecx
pop ebx
pop edi
pop esi
ret
push esi
push edi
push ebx
push ecx
mov ebx, eax
mov eax, 0x8003
mov edi, edx
call fcn.004027c0
mov esi, eax
push eax
or byte [ebx + 0x18], 0
jne 0x40a335
push dword [ebx + 0x19]
mov eax, 0x7fff
push eax
lea eax, [esi + 4]
push eax
push dword [ebx + 0x1d]
call sub.kernel32.dll_GetPrivateProfileSectionA
jmp 0x40a2d0
push ebx
push esi
push edx
push ebp
mov edx, 0
mov ebp, dword [edi + 0x1c]
mov ebx, 0x7ffd
or ebp, ebp
je 0x40a376
or ebx, ebx
je 0x40a376
push edx
mov eax, edi
call fcn.0040613c
push eax
call fcn.00404e7c
pop eax
xor ecx, 0xffffffff
mov edx, esi
sub ebx, ecx
ja 0x40a36a
add ecx, ebx
xor ebx, ebx
add esi, ecx
call fcn.004028d4
pop edx
inc edx
dec ebp
jmp 0x40a348
mov word [esi], 0
pop ebp
pop edx
pop esi
pop ebx
mov eax, ebx
call fcn.00405430
push dword [ebx + 0x19]
push esi
push dword [ebx + 0x1d]
call sub.kernel32.dll_WritePrivateProfileSectionA
pop eax
call fcn.004027f0
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x40e310
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4179c4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x40e332
shr eax, 1
xor eax, 0xedb88320
jmp 0x40e334
shr eax, 1
dec edx
jne 0x40e320
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40e319
mov byte [0x417dc4], 1
pop esi
pop ebx
ret

Function at 0x40e350
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x417dc4], 0
jne 0x40e367
call fcn.0040e310
mov eax, edi
dec eax
test eax, eax
jl 0x40e390
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4179c4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x40e371
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0xa14000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xa1400a
jmp 0xa1600f
jmp fcn.007d80b0
Function at 0x407e2f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x811c50]
jne 0x407e39
repz ret
jmp fcn.0040c56d

Function at 0x40b2c0
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.00406060
and dword [ebp - 4], 0
cmp dword [0x81b620], 0
mov ebx, eax
jne 0x40b371
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b422
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b422
push eax
call fcn.00405fee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81b620], eax
call esi
push eax
call fcn.00405fee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81b624], eax
call esi
push eax
call fcn.00405fee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81b628], eax
call esi
push eax
call fcn.00405fee
pop ecx
mov dword [0x81b630], eax
test eax, eax
je 0x40b371
push 0x80df10
push edi
call esi
push eax
call fcn.00405fee
pop ecx
mov dword [0x81b62c], eax
mov eax, dword [0x81b62c]
cmp eax, ebx
je 0x40b3c9
cmp dword [0x81b630], ebx
je 0x40b3c9
push eax
call fcn.00406069
push dword [0x81b630]
mov esi, eax
call fcn.00406069
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3c9
test edi, edi
je 0x40b3c9
call esi
test eax, eax
je 0x40b3c0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3c0
test byte [ebp - 0xc], 1
jne 0x40b3c9
or dword [ebp + 0x10], 0x200000
jmp 0x40b402
mov eax, dword [0x81b624]
cmp eax, ebx
je 0x40b402
push eax
call fcn.00406069
pop ecx
test eax, eax
je 0x40b402
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b402
mov eax, dword [0x81b628]
cmp eax, ebx
je 0x40b402
push eax
call fcn.00406069
pop ecx
test eax, eax
je 0x40b402
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81b620]
call fcn.00406069
pop ecx
test eax, eax
je 0x40b422
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b424
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4060b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x50b310
cmp edx, dword [eax]
je 0x4060da
add eax, 8
inc ecx
cmp eax, 0x50b3a0
jl 0x4060cb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x50b310]
jne 0x406208
mov eax, dword [0x50baec]
cmp eax, 1
je 0x4061e2
test eax, eax
jne 0x40610b
cmp dword [0x509244], 1
je 0x4061e2
cmp edx, 0xfc
je 0x406208
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x406142
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406185
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409464
push edi
call fcn.004077b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407310
lea eax, [ebp - 0xa0]
push 0x409444
push eax
call fcn.00407310
push dword [esi + 0x50b314]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407725
add esp, 0x2c
pop edi
jmp 0x406208
lea eax, [ebp + 8]
lea esi, [esi + 0x50b314]
push 0
push eax
push dword [esi]
call fcn.00406580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x703008], 0x8088405
inc edx
mov dword [ebx + 0x703008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x6e754a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e7551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x6e88af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x705348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x705348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x704178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e88b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret