joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43abf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4906e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00489200
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a590
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048912e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004859ef
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004859ef
push 1
push 0
push 0
mov ecx, esi
call fcn.00485997
push 1
push 0
push 1
mov ecx, esi
call fcn.00485997
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00489272
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ad70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x490708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00489200
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a590
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048912e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ae34
cmp dword [esp + 0x40], 1
jne 0x43ae32
cmp ecx, eax
jge 0x43ae34
mov eax, ecx
cmp eax, 0xc8
jge 0x43ae40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043abf0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00489272
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b5c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x490773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00483e10
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004894a8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048a9c4
test eax, eax
je 0x43b6dc
mov ecx, dword [esp + 0x3c]
call fcn.004894d5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b6a0
push edi
mov ecx, esi
call fcn.00486b3a
mov ecx, esi
call fcn.0043b840
cmp dword [esp + 0x38], 1
jne 0x43b6d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00486c75
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e110
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e143
push esi
call fcn.00441200
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e13c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e1c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e1b2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e167
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e1ae
cmp eax, 2
je 0x43e1b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e15a
cmp eax, 3
je 0x43e18d
cmp eax, 1
jne 0x43e15a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e15a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e15a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e1f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e1d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e1f0
add esp, 4
pop esi
ret
Function at 0x4501e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45022c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45022c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x450216
push eax
call ebp
test ax, ax
jl 0x450224
inc esi
add edi, 4
cmp esi, 6
jb 0x450208
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0044fee0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x453f10
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x453f70
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x453f70
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x453f70
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x453f70
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x453f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4563b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
call fcn.00455da0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x4563f5
xor eax, eax
jmp 0x4563fa
mov eax, dword [eax + 8]
add eax, ecx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004569e0
mov esi, dword [esp + 0x48]
mov dl, byte [esp + 0x28]
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x4e6d58]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00455b20
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x456478
mov al, byte [ecx - 1]
cmp al, bl
je 0x45646e
cmp al, 0xff
je 0x45646e
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.004825cb
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x45be30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4912c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0045c150
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x52e664
call fcn.00462395
mov ecx, dword [0x4e6d58]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00455b20
mov esi, 0x4e6dc0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x45bed7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x45bece
cmp al, 0xff
je 0x45bece
dec al
mov byte [ecx], al
jmp 0x45bed7
push ecx
call fcn.004825cb
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0047e8e0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x45bf1d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x45bf14
cmp al, 0xff
je 0x45bf14
dec al
mov byte [ecx], al
jmp 0x45bf1d
push ecx
call fcn.004825cb
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0046241c
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x478de0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x492260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0046dc7c
mov eax, dword [0x4e99d8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0046dbae
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00479890
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x478e87
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x478e7e
cmp al, 0xff
je 0x478e7e
dec al
mov byte [ecx], al
jmp 0x478e87
push ecx
call fcn.004825cb
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x478eb8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x478eaf
cmp al, 0xff
je 0x478eaf
dec al
mov byte [ecx], al
jmp 0x478eb8
push ecx
call fcn.004825cb
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x484c05
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484c3d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00482cbc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00482c94
jmp 0x484c49
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4862f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x486339
call fcn.0048bf3a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x486339
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486330
xor eax, eax
jmp 0x486341
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486347
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c46a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48c498
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c4b6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c3d0
jmp 0x48c4b6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c4b6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c3d0
test edi, edi
mov eax, edi
jne 0x48c4a0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, reloc.gdi32.dll_SetViewportExtEx
nop
sub eax, 0x403d50
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
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x403860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sbb ch, ah
sub esp, 0x14
mov eax, dword [0x3141cca8]
mov dh, 0xd
adc al, dl
inc eax
add byte [ebx + 0x56], dl
cmp eax, ecx
push edi
jge 0x403a7a
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 0xc], ebx
cmp eax, ebx
mov dword [esi + 0x79], ebx
or byte [esi + 0xf80885], bl
mov dword [esi - 0x75e8f7e0], ebx
mov dword [esi + 0xd60828], ebx
sbb bl, byte [esi - 0x29]
je 0x4038aa
push eax
call int.00404ce0
jmp 0x4038eb
scasd eax, dword es:[edi]
or eax, 0x3d41404c
push ebx
push ebx
push ecx
push esi
call fcn.00404f60
mov esp, dword [ebx]
mov eax, dword [0x412e63]
push edx
push ebx
mov ecx, dword [eax + 0x10]
lea esi, [edx + 4]
push 1
push ecx
push edi
push cs
pop ds
sub eax, 0x103b08e4
je 0x4038e3
je 0x40393f
cmp al, ch
inc eax
add al, ch
pushal
in eax, 0xff
jmp dword [ecx + 0x178b08c4]
mov edx, dword [edi]
push 1
push 8
push edx
call 0x8240e0b0
cmp eax, ebx
je 0x403901
shl dword [edi - 0x3cc47e00], 0x74
push cs
push eax
push 0x26e838
call fcn.00401ee4
add bh, byte [edi + 0x2b9a108]
sub byte [eax], al
mov eax, dword [0x2802b9]
cmp eax, ebx
je 0x40395b
push eax
mov eax, dword [edi]
push 0x40
push eax
call 0x738db0
call 0x3d55addd
xchg dword [ecx], edx
add dword [eax], eax
mov eax, 0x1468500e
call 0x16283968
in eax, 0xff
jmp [ecx]
imul eax, dword [eax], 0
cmp ecx, ebx
je 0x40395b
cmp eax, 0x111ef
je 0x40395b
push eax
push str.socket_receive_buffer
call fcn.00401e40
add esp, 8
hlt
sti
pop esi
cmpsb byte [esi], byte es:[edi]
mov esp, ebp
pop ebp
invalid
Function at 0x403a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov ebx, dword [esi + 0x468bdf08]
or al, 0x85
sal byte [ebp + 0x22], 0xe0
xchg byte [ebp + 0x65], cl
add byte [eax], al
not byte [esp + esi*2 + 0x18]
sbb al, 0xb4
add al, byte [ecx]
test eax, eax
je 0x403c25
dec eax
xchg dword [edx + 2], esi
inc ecx
add cl, ch
or al, byte [ecx]
add byte [eax], al
xchg esp, eax
cmp eax, 0x4102b4
add dword [ebp + 0xa], esi
mov eax, dword [esi + 0x10]
insd dword es:[edi], dx
dec ebx
add al, byte [ecx]
jmp 0x403afb
mov eax, dword [0x4102ac]
mov ecx, dword [0x3e402010]
cmp esi, dword [edx + 0x1178de5]
add byte [eax], al
mov edx, dword [0x1041b2a3]
mov edi, eax
shl edi, 5
add esi, dword [esi + 0x74]
mov dword [0x4102e6], eax
mov esp, 0x2eda
mov dword [0xaf0b1f], eax
mov dword [0x410ba4], edx
mov dword [esi - 0x53ffbdb0], eax
mov edx, dword [0xf2f20b4e]
pushfd
xchg byte [eax], dh
or byte [eax], al
add byte [edi + 0x854f1], al
add byte [eax + 7], cl
mov ecx, dword [esi + 0x822]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x77000838]
mov eax, dword [esi + 0x6b1630]
mov ebx, dword [esp + esi + 0x2f]
add byte [eax], al
sub ecx, dword [ecx]
mov eax, dword [esi - 0x393cf7c4]
sbb eax, edx
test eax, eax
fmul dword [edx]
jl 0x403b7a
test ecx, ecx
jae 0x403b7e
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x10], ecx
mov dword [edi - 0x4e], eax
mov ecx, dword [esi + 0x970850]
mov edx, dword [eax + esi - 0x66]
salc
add byte [ebx + 0xfe3496], cl
add byte [esi - 0x38], al
mov eax, dword [esi - 0x52acf7ac]
sbb eax, edx
test eax, eax
jg 0x403bae
jl 0x403baa
test ecx, ecx
jae 0x403bae
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x18], ecx
mov dword [edx + 0x488e8b1c], ebx
or byte [eax], al
dec edi
mov eax, dword [esi - 0x72fff7c0]
mov edx, dword [esi + 0x837]
sub ecx, eax
xor eax, dword [esi + 0x200084c]
sbb eax, edx
test eax, eax
jg 0x403c46
inc esp
add al, 0x85
leave
jae 0x403bde
xor ebp, dword [esi + 0x33]
ror byte [ecx + 0x4789084f], 0xe3
mov dword [edi + 8], ecx
mov dword [edi - 0x1d], eax
mov ecx, dword [0xe8fc9014]
lcall 0x6090, 0x90000002
invalid
invalid
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
add dl, 0x30
xlatb
push ss
inc esi
add cl, 0x30
mov byte [esi], cl
mov al, byte [0xffffab59]
mov eax, edx
invalid
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x63], 0x4f
jne 0x407f03
invalid
fld qword [ebp - 0xe]
fcomp qword [0x40c230]
mov ecx, dword [ebp + 0x57]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
xor esi, esi
outsd dx, dword [esi]
fnstsw ax
mov dword [ebp - 4], esi
xor dl, al
inc eax
add byte [ebx - 0x74aca8b3], cl
pop ebp
and byte [esi + 0x33], dl
imul byte [edi - 0x21]
loopne 0x407ea3
jne 0x407f18
sbb al, 0x4c
out 0xc4, eax
add eax, 0x1b7afb13
fld qword [ebp - 0x66]
dec edx
loopne 0x407f08
jae 0x407f35
invalid
or al, 0x8b
push ebp
or byte [ebp + 0x6450ec45], cl
xor edi, edi
adc eax, sym.imp.MSVCRT.dll_modf
fucomp st(4)
or ch, bl
inc ebp
in al, dx
fcomp qword [0x40bc30]
add esp, 0xc
fnstsw ax
test ah, 0x44
jnp 0x407fcd
lea esi, [ebx + 0x50]
or eax, 0xdd5876f3
inc ebp
in al, dx
fcomp qword [0xdc274]
test eax, esp
test ah, 0x44
jnp 0x407fba
fld qword [ebp - 0x14]
fmul qword [0x40c310]
and byte [ebp - 0x14], al
push eax
sub esp, 8
fisttp qword [esp - 1]
adc eax, 0x405d99
invalid
lea eax, [ebx - 0xf]
cmp esi, eax
jae 0x40801d
mov dl, byte [esi]
and eax, 0x3b4647f2
lock add edx, dword [eax - 0x15]
push eax
fld qword [eax - 0x5e288f8]
ret 0x40
scasb al, byte es:[edi]
inc ebp
adc byte [ebp + 0x458b1834], cl
test eax, 0x6566c085
jnp 0x4080a1
cld
mov al, 0x4d
adc al, 0x3b
invalid
fsincos
invalid
Function at 0x402a9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404174
test esi, esi
jne 0x402ad2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404264
jmp 0x402af0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029b0
mov edi, eax
test esi, esi
je 0x402af0
cmp dword [ebx], 0
je 0x402af0
dec esi
jmp 0x402ad9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403288
xor eax, eax
push ebp
push 0x403281
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 0x4032c4
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 0x403288
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x480024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48204c], 0
je 0x403fd5
cmp word [0x482220], 0xd7b2
jne 0x403f9d
cmp dword [0x482228], 0
jbe 0x403f9d
mov eax, 0x48221c
call dword [0x482238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x480070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ffc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x480034], 0
jne 0x403ff1
push 0
push 0x480068
push 0x480070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404128
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402774
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040f0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc