joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002100
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x20]
xor eax, eax
test ebp, ebp
je 0x100022d1
mov edi, dword [esp + 0x24]
test edi, edi
je 0x100022d1
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x100022d1
mov edx, 0x62
mov eax, dword [ecx]
mov dword [esp], eax
test eax, eax
jne 0x10002160
cmp dword [ecx + 0x10], 0
jne 0x10002160
cmp dword [ecx + 8], 0
jne 0x10002160
cmp dword [ecx + 0xc], 0
jne 0x10002160
cmp dword [ecx + 4], 0
je 0x100022d9
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
mov eax, dword [esp + 0x28]
mov al, byte [esi + eax]
test al, al
je 0x100021cc
add esi, dword [esp + 0x28]
mov ebx, ebp
mov ah, byte [ebx]
add ebx, 1
add esi, 1
nop dword [eax]
test ah, ah
je 0x100021cc
or al, 0x20
or ah, 0x20
cmp al, ah
jne 0x100021b6
movzx eax, byte [esi]
cmp al, 0x2e
jne 0x100021b0
mov ah, byte [ebx]
add ebx, 1
add esi, 1
mov al, 0x2e
cmp ah, 0x2e
jne 0x10002180
jmp 0x100021cc
test al, al
jne 0x10002174
jmp 0x100021cc
add ecx, 0x14
mov eax, 1
sub edx, 1
jae 0x10002132
jmp 0x100022d1
mov ebx, dword [edi]
mov eax, 2
test ebx, ebx
je 0x100022d1
mov eax, dword [esp + 0x28]
add dword [esp], eax
mov ecx, dword [ecx + 0x10]
add ecx, eax
mov dword [esp + 4], ecx
jmp 0x100021fe
mov ebx, dword [edi + 8]
add edi, 8
test ebx, ebx
je 0x100022cc
mov eax, dword [esp]
mov eax, dword [eax]
test eax, eax
je 0x100021f0
mov esi, dword [esp + 4]
mov ebp, dword [esp]
mov ecx, dword [esp + 0x28]
mov cl, byte [eax + ecx + 2]
test cl, cl
je 0x10002290
mov edx, dword [esp + 0x28]
add edx, eax
add edx, 2
mov eax, ebx
mov ch, byte [eax]
add eax, 1
add edx, 1
nop dword [eax]
test ch, ch
je 0x10002290
or cl, 0x20
or ch, 0x20
cmp cl, ch
jne 0x10002270
movzx ecx, byte [edx]
cmp cl, 0x2e
jne 0x10002260
mov ch, byte [eax]
add eax, 1
add edx, 1
mov cl, 0x2e
cmp ch, 0x2e
jne 0x10002230
jmp 0x10002290
test cl, cl
jne 0x10002225
jmp 0x10002290
add esi, 4
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x1000220e
jmp 0x100021f0
test esi, esi
je 0x100021f0
mov dword [esp + 8], 0
lea ebx, [esp + 8]
push ebx
push 0x40
push 4
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebp
test eax, eax
je 0x100021f0
mov eax, dword [edi + 4]
mov dword [esi], eax
push ebx
push 0x20
push 4
push esi
call ebp
jmp 0x100021f0
mov eax, 2
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 1
jmp 0x100022d1

Function at 0x10003dc0
Capabilities:
Manipulate console buffer

Disassembly:
push eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop ecx
ret

Function at 0x100040a0
Capabilities:
Get process image filename

Disassembly:
jmp 0x10004318
jmp dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]

Function at 0x100040b0
Capabilities:
Get process image filename

Disassembly:
jmp 0x1000431e
jmp dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
Function at 0x100040f0
Capabilities:
Get disk information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
ret 0xc
Function at 0x1001c9c0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001c9ff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c9ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c9ff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001c9ff
cmp dword [ecx + 0x74], 0xe
jbe 0x1001c9ff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001f6bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001f75a
push ebx
push esi
call fcn.1001f686
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001f61a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001f707
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f759
push edi
push eax
call fcn.1001d6fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001f727
call fcn.1001e162
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001f758
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001f61a
add esp, 0x20
test eax, eax
jne 0x1001f746
push edi
call fcn.1001e162
jmp 0x1001f74e
push ebx
call fcn.1001e162
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001f9c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027d10
push 0x10027d08
push str.FlsAlloc
push 0x1f
call fcn.1001f8e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001f9fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002614c]
call esi
jmp 0x1001fa01
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001fa45
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027d20
push 0x10027d18
push str.FlsGetValue
push 0x21
call fcn.1001f8e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001fa7c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002614c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001fa84
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027d28
push 0x10027d20
push str.FlsSetValue
push 0x22
call fcn.1001f8e3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001fabe
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002614c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10025060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002508d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002508d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x2336058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.023361a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x233607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x233606a
add dl, dl
jne 0x2336089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x23360dc
xor eax, eax
add dl, dl
jne 0x2336096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x233617d
add dl, dl
jne 0x23360a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x23360b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x23360bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x23360c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x23360d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2336075
mov eax, 1
add dl, dl
jne 0x23360ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x23360f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x23360e1
sub eax, ebx
mov ebx, 1
jne 0x2336128
mov ecx, 1
add dl, dl
jne 0x233610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2336119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2336105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2336075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x233613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x233614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2336136
cmp eax, 0x7d00
jae 0x233616d
cmp eax, 0x500
jb 0x2336168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2336075
cmp eax, 0x7f
ja 0x2336170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2336075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x233619e
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 0x2336075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x400984
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x400d18], eax
call fcn.00400449
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4059d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x405a4d
cmp al, 9
je 0x405a40
cmp al, 0x20
je 0x405a40
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x405aa0
cmp al, 0x22
je 0x405ab0
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x405a4d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x405a00
test edi, 1
jne 0x405a00
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x405a40
cmp al, 0x20
je 0x405a40
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x405a68
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x405a17
and dword [ebp - 0x54], 1
jne 0x405a10
xor edi, 1
jmp 0x405a17

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

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
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 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x66526ae4
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x101d642d
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [esp + edx + 0x3329c085]
mov esp, esp
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esi, dword [0x40c0ef]
call esi
test eax, eax
sbb dword [ebp + 0x5e], esp
pop ebp
jo 0x40a405
add bh, bh
push eax
add eax, 0x25fc80
pop esi
pop ebp
cwde
or byte [eax], al
xor ebp, edi
pop ebp
ret 0x6508
Function at 0x4011a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x7c
mov dword [esp + 8], 4
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_OpenServiceW]
sub esp, 0xc
test eax, eax
je 0x4012b8
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_QueryServiceStatus]
sub esp, 8
mov edi, eax
test eax, eax
jne 0x401210
test byte [section..data], 2
jne 0x401320
mov dword [esp], ebx
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], 0x4050fa
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
cmp eax, 7
jbe 0x401308
mov edx, dword [ebp - 0x34]
mov eax, str.WIN32_SHARE_PROCESS
cmp edx, 0x20
je 0x401265
mov eax, str.WIN32
cmp edx, 0x30
je 0x401265
cmp edx, 0x10
mov eax, str.WIN32_OWN_PROCESS
mov ecx, 0x4050fa
cmovne eax, ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], esi
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esp], str.SERVICE_NAME:__ls_n________TYPE_______________:__lx___ls_n________STATE______________:__lx___ls_n________WIN32_EXIT_CODE____:__lu___0x_lx__n________SERVICE_EXIT_CODE__:__lu___0x_lx__n________CHECKPOINT_________:_0x_lx_n________WAIT_HINT__________:_0x_lx_n
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x10], ecx
call fcn.004010a0
jmp 0x4011f3
xor edi, edi
test byte [section..data], 2
je 0x4011ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_open_service__lu_n
mov dword [esp + 8], str.query_service
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [eax*4 + 0x405680]
mov dword [ebp - 0x40], eax
jmp 0x40123e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_to_query_service_status__lu_n
mov dword [esp + 8], str.query_service
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x404000
mov dword [esp], 1
call fcn.00401150
jmp 0x4011f3
Function at 0x402f20
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402f90
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401380
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d254
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 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
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 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
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 0x41d27c
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 0x41f3b0
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 0x53589e
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 0x41f3ff
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 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
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 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
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 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
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 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
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 0x5358a5
ret