joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bea65
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5beb7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5beb7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.006140a1
mov esi, eax
test esi, esi
je 0x5beb7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x5beb7d
mov ecx, esi
call fcn.005be9f0
cmp edi, eax
jge 0x5beb7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5beb03
mov dword [esp + 0x34], 1
jmp 0x5beb5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x5beb7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.005bdf90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x5d6d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x622df3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.006186f4
xor eax, eax
mov dword [esi + 0x10], 0x74a73c
mov dword [esp + 0x10], eax
mov dword [esi + 0x14], eax
mov ecx, 1
mov dword [esi], method.CDC.virtual_0
mov byte [esp + 0x10], cl
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [ecx], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], eax
push edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.005d6e60
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x5d6df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x622e1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], method.CDC.virtual_0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 1
push eax
call fcn.005d7aa0
lea ecx, [esi + 0x10]
mov dword [esp + 8], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x14], 2
call fcn.00619342
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00618829
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5e8060
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 0x5e80ac
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x5e80ac
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x5e8096
push eax
call ebp
test ax, ax
jl 0x5e80a4
inc esi
add edi, 4
cmp esi, 6
jb 0x5e8088
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.005e7d60
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5ebd80
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x5ebde0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5ebde0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x5ebde0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x5ebde0
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 0x5ebdf0
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 0x614a45
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x614a7d
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.00612acf
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00612aa7
jmp 0x614a89
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x616138
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 0x61617a
call fcn.0061be19
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x61617a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x616171
xor eax, eax
jmp 0x616182
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00616188
pop edi
pop esi
pop ebx
ret 4

Function at 0x61c349
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 0x61c377
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x61c395
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0061c2af
jmp 0x61c395
mov eax, dword [esi + 0x14]
test eax, eax
je 0x61c395
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0061c2af
test edi, edi
mov eax, edi
jne 0x61c37f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40b730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65efc5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x710ef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
call dword [0x682400]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x40b78f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [0x6823fc]
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00421786
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x40b8d2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov ebx, 1
test edi, edi
jle 0x40b808
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40b7ec
push edi
lea ecx, [ebp - 0x10]
call fcn.00403550
mov esi, dword [ebp - 0x10]
push edi
push 0x20
push esi
call fcn.00604290
add esp, 0xc
cmp edi, dword [esi - 8]
jg 0x40b8c8
mov dword [esi - 0xc], edi
mov byte [esi + edi], 0
mov dword [ebp - 4], 2
test edi, edi
js 0x40b8c8
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, edi
or ebx, eax
jge 0x40b82f
push edi
lea ecx, [ebp - 0x10]
call fcn.00403550
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0
push eax
push edi
push esi
push ebx
call dword [0x6823f8]
push ebx
call dword [0x682410]
push dword [esi - 8]
push esi
call fcn.00625290
add esp, 8
test eax, eax
js 0x40b8c8
cmp eax, dword [esi - 8]
jg 0x40b8c8
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
cmp edi, dword [ebp - 0x18]
je 0x40b86d
xor edi, edi
jmp 0x40b89c
or edx, 0xffffffff
mov ebx, esi
test edi, edi
je 0x40b890
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x71ecb0]
sub edi, 1
jne 0x40b876
mov eax, dword [ebp + 0xc]
not edx
mov edi, 1
mov dword [eax], edx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b8b4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402190
push 0x80004005
call fcn.00402190
int3
Function at 0x40c9f0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
nop word [eax + eax]
xor eax, eax
test cl, 1
je 0x40ca0b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x40ca16
bts eax, 6
shr ecx, 1
test cl, 1
je 0x40ca21
bts eax, 5
shr ecx, 1
test cl, 1
je 0x40ca2c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x40ca37
bts eax, 3
shr ecx, 1
test cl, 1
je 0x40ca42
bts eax, 2
shr ecx, 1
test cl, 1
je 0x40ca4d
bts eax, 1
test cl, 2
je 0x40ca56
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
xor edx, edx
lea ecx, [edx + 1]
nop dword [eax]
test bl, 1
je 0x40caef
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x40cae0
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x71ecb0], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x40ca00
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415b20
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x686dd8]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x686dd8]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x4183f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4183fe
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x4184bd
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
sub edi, 1
jne 0x418416
pop edi
test esi, esi
je 0x4184db
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x686dd8]
sub esi, 1
jne 0x4184c1
not eax
pop esi
pop ebp
ret
Function at 0x41a710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x710ef0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 0x3c], eax
call dword [0x682430]
test eax, eax
jne 0x41a760
mov eax, 0x200
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00600d24
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x38]
push esi
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
test bl, 2
push edi
cmove ecx, esi
mov edi, 0x41000000
mov edx, ecx
or edx, 4
test bl, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [ebp - 0x40], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
test bl, 0x20
cmove ecx, eax
mov eax, dword [ebp - 0x40]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x41a7c7
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
mov ebx, dword [ebp - 0x3c]
push 0
push ebx
call dword [0x6823fc]
mov esi, eax
cmp esi, 0x28
jbe 0x41a877
push 0
push 0
push 0
push ebx
call dword [0x68236c]
push 0
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [0x6823f8]
push 0
push 0
push 0x24
push ebx
call dword [0x68236c]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x40]
push eax
push ebx
call dword [0x6823f8]
mov eax, 0x54ad
cmp word [ebp - 0x3c], ax
jne 0x41a877
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x41a877
push 0
push 0
push ecx
push ebx
call dword [0x68236c]
push 0
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [0x6823f8]
mov eax, dword [ebp - 0x48]
cmp eax, 0x5a4d
je 0x41a871
cmp eax, 0x454e
je 0x41a871
cmp eax, 0x454c
je 0x41a871
cmp eax, 0x4550
jne 0x41a877
or edi, 0x400000
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x41a880
mov dword [eax], edi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x41a889
mov dword [eax], esi
mov ebx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x41a8c7
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041bf10
push esi
push edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.0041bf10
push dword [ebp - 0x30]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
call fcn.0041bf10
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x41a8ef
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
push edi
call fcn.0041be90
movzx ecx, word [ebp - 0x3c]
add esp, 0x10
movzx eax, word [ebp - 0x40]
shl ecx, 0x10
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00600d24
mov esp, ebp
pop ebp
ret
Function at 0x41b2e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41b2ee
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41b3ad
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
sub edi, 1
jne 0x41b306
pop edi
test esi, esi
je 0x41b3cb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x687a38]
sub esi, 1
jne 0x41b3b1
not eax
pop esi
pop ebp
ret
Function at 0x41deb0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x687a38]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x687a38]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x6027cc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x682470]
test eax, eax
je 0x60280b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x60280b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x60280b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x60280b
cmp dword [ecx + 0x74], 0xe
jbe 0x60280b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x647b73
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00647766

Function at 0x647b7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006478f0

Function at 0x65dac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x65daed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x65daed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4054a0
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x436c48], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4054e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x42c508]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42c50c]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00405499
mov eax, dword [0x42c510]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x42c514]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x436c48], 0xc
mov dword [ebp - 4], eax
jne 0x405576
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x436c48]
cmp eax, 0xfa9
jne 0x405592
mov dword [0x4361e4], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40559f
mov dword [0x435b90], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x4361e0], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x436c48], 0x213
mov dword [ebp - 0x14], edx
jne 0x4055d9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00405493
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x40551c
cmp dword [0x436c48], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x405642
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x40564b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x436c48]
mov ecx, dword [0x435b98]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4056bb
mov edi, ecx
mov ebx, eax
cmp dword [0x436c48], 0x959
jne 0x4056af
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004054a0
add edi, 8
dec ebx
jne 0x40566f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4059af
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x436c48], 0x400
push edi
jne 0x405a16
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00405ee5
push esi
push esi
call fcn.00406148
push esi
push esi
push esi
call fcn.00406569
add esp, 0x20
mov dword [esp], esi
call fcn.00405417
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004053f4
fstp st(0)
push esi
call fcn.0040661f
pop ecx
push esi
push esi
call fcn.00405dd9
pop ecx
pop ecx
mov eax, dword [0x42cb94]
mov dword [0x436c48], eax
mov eax, dword [0x42cb6c]
mov dword [0x436c4c], eax
call fcn.004056da
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405a7d
cmp dword [esp + 0x18], 0x785074d5
jne 0x405a8b
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405a38
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x405174
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405abc
cmp dword [esp + 0x18], 0x785074d5
jne 0x405ac5
inc edi
cmp edi, 0x11915
jl 0x405a8d
mov eax, dword [0x435b98]
mov dword [0x4361dc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x406f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b118]
jne 0x406f9a
repz ret
jmp fcn.0040b5d2