joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026b0
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026be
call dword [0x483014]
or eax, eax
je 0x4026bf
ret
mov al, 1
jmp fcn.0040273c

Function at 0x4026c8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026d6
call dword [0x483018]
or eax, eax
jne 0x4026d7
ret
mov al, 2
jmp fcn.0040273c

Function at 0x4026e0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x402718
test edx, edx
je 0x402702
push eax
mov eax, ecx
call dword [0x48301c]
pop ecx
or eax, eax
je 0x402711
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040273c
mov dword [eax], edx
mov eax, ecx
call dword [0x483018]
or eax, eax
jne 0x4026fb
ret
mov al, 1
jmp fcn.0040273c
test edx, edx
je 0x40272c
push eax
mov eax, edx
call dword [0x483014]
pop ecx
or eax, eax
je 0x402711
mov dword [ecx], eax
ret

Function at 0x40273c
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x485004]
test ecx, ecx
je 0x40274c
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402765]
jns 0x402760
call fcn.00405f9c
mov eax, dword [eax + 4]
jmp fcn.00403950

Function at 0x402780
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.00405f9c
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x402795
ret
xor eax, eax
jmp fcn.0040273c

Function at 0x40288c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028bb
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ac4
jmp 0x4028d9
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402814
mov edi, eax
test ebx, ebx
je 0x4028d9
cmp dword [esi], 0
je 0x4028d9
dec ebx
jmp 0x4028c2
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
imul edx, dword [0x485040], 0x8088405
inc edx
mov dword [0x485040], edx
mul edx
mov eax, edx
ret

Function at 0x402c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ca8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c88
xor eax, eax
push ebp
push 0x402c81
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402cc4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f38
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402f52
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402f52
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402f3e
mov al, 0xa
jmp fcn.0040273c
ret
Function at 0x446a08
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x118]
mov edx, dword [ebp + 8]
add eax, dword [edx - 0x11c]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x120]
jl 0x446afa
mov eax, dword [ebp + 8]
cmp byte [eax - 0x121], 0
je 0x446a4a
mov dword [ebp - 4], 0xffffffff
jmp 0x446b7f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x128]
mov edx, dword [ebp + 8]
mov al, byte [edx + eax - 0x113]
mov edx, dword [ebp + 8]
mov byte [edx - 0x111], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x128]
mov edx, dword [ebp + 8]
mov al, byte [edx + eax - 0x112]
mov edx, dword [ebp + 8]
mov byte [edx - 0x110], al
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffef1
call fcn.004469ac
pop ecx
xor al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 0x121], al
mov eax, dword [ebp + 8]
cmp byte [eax - 9], 0
je 0x446ab4
mov dword [ebp - 4], 0xffffffff
jmp 0x446b7f
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 1]
add eax, 2
mov edx, dword [ebp + 8]
mov dword [edx - 0x128], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x118]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x120]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx - 0x118], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x128]
shl eax, 3
mov edx, dword [ebp + 8]
mov dword [edx - 0x120], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x118]
mov edx, eax
shr edx, 3
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx - 0x111]
mov dword [ebp - 8], edx
and eax, 7
movzx edx, word [eax*2 + 0x483a34]
mov ebx, 1
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 0x11c]
dec ecx
test ecx, ecx
jl 0x446b6d
inc ecx
test dword [ebp - 8], edx
jle 0x446b45
or dword [ebp - 4], ebx
add edx, edx
add ebx, ebx
inc eax
cmp eax, 8
jl 0x446b6a
xor eax, eax
mov edx, 1
inc dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
movzx esi, byte [esi + edi - 0x111]
mov dword [ebp - 8], esi
dec ecx
jne 0x446b3d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x11c]
mov edx, dword [ebp + 8]
add dword [edx - 0x118], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c19c
Capabilities:
Inspect section memory permissions

Disassembly:
or al, 0xeb
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x44c1bd
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x44c1db
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x44c239
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x44c220
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x44c229
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x44c233
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x44c215
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x44c19f
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x44c286
dec eax
je 0x44c27d
sub eax, 3
je 0x44c274
mov dword [ebp - 4], 0x40
jmp 0x44c2a3
mov dword [ebp - 4], 4
jmp 0x44c289
mov dword [ebp - 4], 0x20
jmp 0x44c289
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x44c2d5
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x44c255
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0044bae6
and ebp, dword [edx + ecx*2 + 0x1475ff07]
push 1
push esi
call edi
mov eax, esi
jmp 0x44c2e1
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44c324
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edx + 0x51fffffc], esi
mov byte [ebp - 0x34d], 0x75
invalid
invalid
invalid
Function at 0x44c344
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [esi - 0x3a]
test dword [edi + 0x40fffffc], esi
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0044baf6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044baab
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0044baf6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044baab
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0044baf6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0044baab
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0044bae6
or dword [ebp - 0x5a7f8f87], ebp
int3

Function at 0x459530
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x459581
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x459568
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x459558
jmp 0x459581
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x459569
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b63c
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
sub edi, edi
add eax, 0x2485e8fa
inc edi
call fcn.0043b69a
push 0x7f70dcd8
pop edi
or edi, edi
add eax, 0x17b2fd0e
xor dword [edx], ebx
sub eax, 0x7e5becd1
inc eax
mov edi, edi
add edx, 1
mov eax, 0xe14d7e0
sub eax, edi
add eax, edi
cmp edx, esi
jne fcn.0043b63c
sub eax, 0x9081fe35
sub esp, 4
mov dword [esp], 0x1ee194d6
mov edi, dword [esp]
add esp, 4
sub edi, eax
ret
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x439f34]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x43d580
mov dword [esp + 0x1c], edi
call fcn.004238d5
lea ecx, [esp + 0xc]
or eax, 0xffffffff
push ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
call fcn.004226c6
lea edx, [esp + 0xc]
push edx
call fcn.004226c6
lea eax, [esp + 0xc]
push eax
call fcn.004226c6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40101d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x439f34]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x43d580
mov dword [esp + 0x1c], edi
call fcn.004238d5
lea ecx, [esp + 0xc]
or eax, 0xffffffff
push ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
call fcn.004226c6
lea edx, [esp + 0xc]
push edx
call fcn.004226c6
lea eax, [esp + 0xc]
push eax
call fcn.004226c6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4010a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42c630
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], ebx
push eax
push ecx
push edx
call fcn.004239e1
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 1
call fcn.00423885
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.00423798
mov eax, dword [edi]
push 1
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
call fcn.00414350
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add eax, ecx
mov dword [esi + 0x30], ebx
adc edx, ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
lea edx, [esi + 0x18]
lea eax, [edi + 4]
push edx
push eax
mov dword [esi + 0x2c], ebx
call fcn.00401170
lea ecx, [esi + 0x1c]
lea edx, [edi + 0xc]
push ecx
push edx
call fcn.00401170
lea eax, [esi + 0x20]
add edi, 0x14
push eax
push edi
call fcn.00401170
mov ecx, dword [esp + 0x40]
add esp, 0x18
mov dword [esi], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00423798
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4081b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x198]
push ecx
mov ecx, esi
call fcn.00408390
mov ecx, dword [esi + 0x19c]
mov dword [esi + 0x198], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [esi + 0x1a0]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
mov dl, byte [esi + 0x19f]
mov byte [esp + 8], dl
mov eax, dword [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00408390
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x408740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d335
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x3c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00423806
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x408784
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00423806
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4087bb
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.0042350d
mov dword [esp + 8], 1
jmp 0x4088e9
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4087e4
push 0x43851c
lea ecx, [esp + 0x44]
call fcn.00422c41
mov cl, byte [0x42fce0]
push ecx
lea ecx, [esp + 0x44]
call fcn.00423b4f
push 0x43851c
lea ecx, [esp + 0x10]
call fcn.00422c41
mov eax, dword [0x439f34]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 7
mov dword [esp + 0x14], 0x42fc5c
call fcn.0040c530
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x40885e
mov al, byte [esi + 4]
test al, al
je 0x408858
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0040c730
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x408880
lea eax, [esp + 0xc]
jmp 0x408880
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.00408520
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.00423b64
test bl, 4
mov dword [esp + 0x30], 9
je 0x4088a7
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.00423798
test bl, 2
mov dword [esp + 0x30], 8
je 0x4088c4
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.00423798
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0042350d
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.0040c4b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00423798
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.00423798
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x40bd90
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42d7e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00409270
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0040d040
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.004092b0
mov edx, dword [esi + 4]
mov ecx, 0x438ac4
cmp edx, dword [ecx]
je 0x40be7c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004092a0
xor al, al
jmp 0x40bf0f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.004092e0
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d040
test bp, bp
je 0x40bec8
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.004092e0
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d040
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x40bef0
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.004092e0
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.0040d040
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x50]
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.004092a0
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4