joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ed74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44ef56
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x44edbe
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e844
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040ca50
cmp al, 1
jne 0x44edbe
dec ebx
mov edi, ebx
mov eax, esi
call fcn.0044eb58
test al, al
je 0x44eef6
test edi, edi
jge 0x44edd5
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e844
mov eax, dword [ebp - 0x204]
call fcn.00403e68
cmp ebx, eax
jge 0x44ee1c
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e844
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x48a634]
and eax, 0xff
bt dword [edx], eax
jae 0x44ee1c
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x44ee2a
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.0044ed50
cmp ebx, edi
je 0x44eeee
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x44ee54
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.00403138
and eax, 0x7f
movzx eax, word [eax*2 + 0x489b40]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403138
and eax, 0x7f
movzx eax, word [eax*2 + 0x489b40]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.0043254c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00403138
and eax, 0x7f
movzx eax, word [eax*2 + 0x489b40]
push eax
push 0x101
mov eax, esi
call fcn.0043254c
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x44ef3d
test edi, edi
jge 0x44eefc
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e844
mov eax, dword [ebp - 0x204]
call fcn.00403e68
cmp edi, eax
jl 0x44ef32
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e844
mov eax, dword [ebp - 0x204]
call fcn.00403e68
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.0044ed50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef5d
lea eax, [ebp - 0x204]
call fcn.00403bec
ret
Function at 0x4521ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x45234f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041ab5c
cmp byte [ebp + 8], 0
je 0x452205
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041aa2c
jmp 0x452213
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041aa2c
mov eax, dword [ebx + 0x10]
call fcn.0041ab54
dec eax
jle 0x452259
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041aa24
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041ab54
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041aaec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.00403138
test al, al
je 0x4522a2
test esi, esi
jne 0x4522a2
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x4522d8
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041b5a4
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402880
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or eax, 0xffffffff
mov word [ebp - 0xc], ax
push ebx
xor ecx, ecx
mov eax, 0x65
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov edx, 2
mul edx
seto cl
push esi
push edi
mov dword [ebp - 0x20], ebx
Function at 0x4096a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
Function at 0x40f5c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00422240
xor eax, eax
nop
mov cl, byte [eax + 0x4921a0]
mov dl, byte [eax + 0x492198]
mov byte [ebp + eax - 0x20], cl
mov byte [ebp + eax - 0x18], dl
inc eax
cmp eax, 8
jl 0x40f5d0
lea eax, [ebp - 8]
clc
push 0x488140
push eax
call fcn.00413650
push 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00410e60
add esp, 0x14
push ebx
push esi
mov dword [ebp - 0xc], 0
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x10000
lea edx, [ebp - 0x10020]
push 1
push edx
call fcn.00414d04
add esp, 0x10
cmp eax, 0x18
jl 0x40f691
mov edi, eax
lea esi, [edi - 0x14]
test esi, esi
jle 0x40f660
xor edx, edx
xor ecx, ecx
mov bl, byte [ebp + ecx - 0x20]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x10020]
je 0x40f67e
cmp ecx, 0x14
je 0x425d1e
inc edx
cmp edx, esi
jl 0x40f640
loopne 0x40f5ec
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
lea edx, [ecx + edi - 0x14]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffec
push ecx
mov dword [ebp - 0xc], edx
call fcn.004150d1
add esp, 0xc
jmp 0x40f614
dec ebp
hlt
mov bl, byte [ebp + ecx - 0x1f]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001f]
je 0x40f69f
inc ecx
jmp 0x40f652
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp + ecx - 0x1e]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001e]
je 0x40f6b4
add ecx, 2
jmp 0x40f652
mov bl, byte [ebp + ecx - 0x1d]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001d]
jne 0x425d16
mov bl, byte [ebp + ecx - 0x1c]
lea eax, [ecx + edx]
cmp bl, byte [ebp + eax - 0x1001c]
je 0x425d05
add ecx, 4
jmp 0x40f652
int3
test dword [esi + 4], 0x51b80c8b
call 0x114111e9
cmp dword [ebp + 4], 0x47
add al, 0x47
cmp edi, dword [esi + 8]
jb 0x425cf7
pop edi
jmp 0x4109f7
stc
adc al, 0xf
invalid
jmp 0x40f65f

Function at 0x40f820
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00412f40
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x4330b7
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov eax, 0xec8b55c3
sub esp, 0x18
push esi
mov esi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 0xc]
push 0x48612c
push eax
call 0xd4132a8
test dword [ebp + 0x14], 0xe8558d51
push 0x48612c
push edx
call fcn.004132a8
inc dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call 0xd4114b8
add esp, 0x20
cdq
push edx
jne 0x4330bc
push 0xe
push esi
mov esi, dword [ebp + 8]
push esi
call dword [0x55ff2200]
mov ebp, esp
jne 0x4330c8
cld
xor ecx, eax
call fcn.00438f6c
mov eax, 0x505410c2
push eax
push esi
call dword [0x55ff2204]
mov ebp, esp
je 0x4330bc
push ebx
push edi
push eax
call dword [0x1482208]
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], 0
cmp dx, word [eax + 4]
jae 0x6719a4
lea ebx, [eax + 6]
lea ebx, [ebx]
movzx eax, word [ebx + 0xc]
push 3
push eax
push esi
call dword [0x55ff2200]
and edi, eax
test edi, edi
je 0x433178
push edi
push esi
call dword [0x55ff2204]
mov dword [ebp + 0x14], eax
test eax, eax
je 0x433178
push edi
push esi
call dword [0x143d8b0c]
and ecx, dword [ebp + 0x14]
push ecx
mov edi, eax
call dword [0x1482208]
movzx edx, byte [ebx]
mov ecx, dword [0x497530]
cmp edx, ecx
jne 0x433158
movzx edx, byte [ebx + 1]
cmp edx, dword [0x49752c]
jne 0x433158
movzx edx, word [ebx + 6]
cmp edx, dword [0x497528]
je 0x433186
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
movzx edx, word [ecx + 4]
inc eax
add ebx, 0xe
mov dword [ebp + 0x10], eax
cmp eax, edx
jb 0x4330fc
pop edi
pop ebx
xor eax, eax
pop esi
add byte [eax], al
mov eax, 0x5f5410c2
pop edi
pop ebx
cld
xor ecx, eax
call fcn.0043902a
mov eax, 0x8b5410c2
adc eax, 0x49752c
mov edx, dword [0x49752c]
push 0
push edx
push ecx
push 0xce030000
push 1
push edi
push eax
call dword [0x482560]
mov dword [0x497534], eax
pop edi
pop ebx
xor eax, eax
pop esi
add byte [eax], al
mov eax, 0x555410c2
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x41341a4b
jne 0x4331d2
dec ecx
invalid
cmp esi, 0xf
jae 0x433244
mov edi, dword [0xc0950f94]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x433244
lea ecx, [ebp - 0x28]
push ecx
call dword [0x544821fc]
dec ecx
invalid
push esi
call dword [0x48215c]
pop edi
pop esi
add byte [eax], al
mov eax, 0xec8b55c3
push ebp
mov ebp, esp

Function at 0x4341a2
Capabilities:
Encode data using xor

Disassembly:
cmp ecx, 0xffffffff
jne 0x4341ad
xor dl, byte [eax]
mov eax, 0x89000cc2
or byte [ebx + 0x2073dc1], cl
add byte [eax], al
mov dword [eax], ecx
mov eax, ecx
cmp eax, 0x207
jge 0x4341a7
cmp dword [edx + eax*4 - 0x44aefe4c], 0
setne al
mov eax, 0x55000cc2
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x4341e4
cmp byte [edi], 0
je 0x4341e4
push eax
call dword [0x33572704]
mov dword [esi], 0x23e800
mov byte [edi], 0
pop edi
pop esi
pop ebp
ret 0x5408
Function at 0x442e95
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
or dword [esi + 4], 0xffffff8b
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x2570f0cc]
adc al, 0xc6
add al, 0x33
clc
dec edx
mov dword [esi - 4], edi
jne 0x442e6a
mov edx, 0x18c
push esi
push ecx
call 0x492b295
mov edi, dword [esi]
mov al, cl
or dword [esi + 4], 0xffffff8b
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x7c00008c]
sti
mov byte [ebx + esi], pe_nt_image_headers32
dec edx
mov dword [esi - 4], edi
jne 0x442ea5
mov ecx, dword [0x4a7540]
mov dl, cl
add dword [eax], eax
add dword [eax], eax
mov dh, 0xc2
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x7c00008c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
inc ebx

Function at 0x44affc
Capabilities:
Encode data using xor

Disassembly:
dec ebp
dec eax
add bh, bh
or byte [ebx + 0x5bc1e8ce], cl
cld
call dword [esi - 0x18]
mul dword [ecx - 4]
sbb byte [edi], cl
xchg dword [ebx + ecx*4], eax
invalid

Function at 0x45e760
Capabilities:
Encode data using xor

Disassembly:
and dword [ebp + 0x2058b84d], ecx
xor byte [edi], cl
call fcn.00422269
cmp byte [0x4974e2], 0x83
push ebx
call 0xf4caf6d1
add dword [ebx + 0x8b68be1], eax
cmp dword [eax + 0xf8], 1
je 0xf75e971
mov edx, dword [0x497520]
mov ebx, dword [0x4825d0]
push 0x1560fff
lea ecx, [ebp - 0x2054]
push ecx
push 0x66
push edx
call ebx
lea edi, [ebp - 0x2054]
lea esi, [ebp - 0x50]
call fcn.00401b39
rsqrtps xmm0, xmm3
mov edx, dword [0x497520]
push 0x1560fff
push edi
push ecx
push edx
call ebx
lea esi, [ebp - 0x40]
call fcn.00401b39
mov esi, dword [esi - 0xb4f72f8]
add byte [esi + 0x25e85653], dh
popal
std
call dword [esi - 0x77]
inc ebp
loopne 0x45e7cf
xor di, dx
dec dword [ebx - 0x4f72f74a]
hlt
call 0x8c45e54c
clc
push esi
mov dword [ebp - 0x18], edi
call fcn.00434958
push eax
call fcn.00434931
mov ebx, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x2054]
test ebx, ebx
je 0x45e80f
push ebx
push edi
jmp 0x45e81a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x53b600c8]
push eax
push esi
push 0x4856b0
push ecx
call 0x194132c4
ja 0xad03753b
invalid
Function at 0x7ffe5366
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
not eax
not eax
add al, 0
pushf
popf
push eax
pop eax
push bx
inc esp
inc esp
push eax
pop eax
push bx
inc esp
inc esp
add al, 0
push bx
inc esp
inc esp
inc esi
dec esi
xor eax, ecx
xor eax, ecx
and al, 0xff
add al, 4
sub al, 4
inc esi
dec esi
not eax
not eax
and al, 0xff
not eax
not eax
push es
pop ds
xor eax, ecx
xor eax, ecx
push eax
pop eax
pushf
popf
push eax
pop eax
xor eax, ecx
xor eax, ecx
add al, 0
push bx
inc esp
inc esp
inc esi
dec esi
push bx
inc esp
inc esp
add al, 0
not eax
not eax
and al, 0xff
add al, 4
sub al, 4
push es
pop ds
not eax
not eax
push es
pop ds
xor eax, ecx
xor eax, ecx
add al, 0
add al, 4
sub al, 4
push es
pop ds
pushf
popf
inc esi
dec esi
add al, 4
sub al, 4
add al, 0
add al, 4
sub al, 4
inc esi
dec esi
push bx
inc esp
inc esp
push eax
pop eax
xor eax, ecx
xor eax, ecx
add al, 0
add al, 4
sub al, 4
add al, 0
not eax
not eax
push eax
pop eax
add al, 4
sub al, 4
inc esi
dec esi
xor eax, ecx
xor eax, ecx
inc esi
dec esi
nop
call 0x7ffe541a
pop edx
inc esi
dec esi
pushf
popf
xor dx, dx
push eax
pop eax
cld
push es
pop ds
add edx, 0xd5e0
xor ecx, ecx
add al, 4
sub al, 4
inc esi
dec esi
cld
mov cl, 0x1e
add al, 0
xor byte [ecx + edx], 0x6b
loop 0x7ffe543c
cld
push dword fs:[0x24]
pop dword [edx + 0xa]
add al, 0
not eax
not eax
inc esi
dec esi
and al, 0xff
clc
mov cl, 0xff
add al, 0
push edx
loop 0x7ffe545c
and al, 0xff
and bh, 0xff
mov dword [edx + 0x11], 0xffffacbb
and al, 0xff
xor eax, ecx
xor eax, ecx
add al, 0
mov ecx, dword [eax + 0x2c]
xor eax, ecx
xor eax, ecx
add al, 0
not eax
not eax
nop
mov dword [edx + 0x1b], ecx
pushf
popf
add al, 0
mov dword [edx + 0x100], ecx
not eax
not eax
push eax
pop eax
add al, 0
cld
mov dword [eax + 0x2c], esp
xor eax, ecx
xor eax, ecx
push 0
push eax
pop eax
xor eax, ecx
xor eax, ecx
cld
push 0
push es
pop ds
push 0
push es
pop ds
push eax
pop eax
nop
push 0
add al, 4
sub al, 4
add al, 0
and al, 0xff
push 0x30
and al, 0xff
push bx
inc esp
inc esp
and al, 0xff
clc
add al, 0
push 0x20
xor eax, ecx
xor eax, ecx
push es
pop ds
push 0
cld
push 0
add edx, 0xffff7f33
cld
inc esi
dec esi
push edx
add al, 0
not eax
not eax
inc esi
dec esi
push eax
pop eax
push edx
clc
push 0
xor eax, ecx
xor eax, ecx
call dword [edx + 0x8210]
cld
push es
pop ds
add esp, 0x3f8
push eax
pop eax
xor eax, eax
cld
inc eax
push es
pop ds
and al, 0xff
ret 0xc
Function at 0x40b470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4273d4]
jne 0x40b47a
repz ret
jmp fcn.0041166c

Function at 0x41731c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4273d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e41f
and dword [ebp - 0x14], 0
cmp dword [0x5277ec], 0
mov dword [ebp - 0x18], eax
jne 0x4173cf
push 0x4037ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417477
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4037e0
push ebx
call edi
test eax, eax
je 0x417477
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4037d0
push ebx
mov dword [0x5277ec], eax
call edi
push eax
call esi
push 0x4037bc
push ebx
mov dword [0x5277f0], eax
call edi
push eax
call esi
push 0x4037a0
push ebx
mov dword [0x5277f4], eax
call edi
push eax
call esi
mov dword [0x5277fc], eax
test eax, eax
je 0x4173cf
push 0x403788
push ebx
call edi
push eax
call esi
mov dword [0x5277f8], eax
mov eax, dword [0x5277f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417428
cmp dword [0x5277fc], ecx
je 0x417428
push eax
call esi
push dword [0x5277fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417428
test ebx, ebx
je 0x417428
call edi
test eax, eax
je 0x41741f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41741f
test byte [ebp - 8], 1
jne 0x417428
or dword [ebp + 0x10], 0x200000
jmp 0x41745b
mov eax, dword [0x5277f0]
cmp eax, dword [ebp - 0x18]
je 0x41745b
push eax
call esi
test eax, eax
je 0x41745b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41745b
mov eax, dword [0x5277f4]
cmp eax, dword [ebp - 0x18]
je 0x41745b
push eax
call esi
test eax, eax
je 0x41745b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5277ec]
call esi
test eax, eax
je 0x417477
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417479
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b470
leave
ret
Function at 0x41f630
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.0041e7e0
cmp dword [0x8c8570], 0x37
jne 0x41f6c1
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x40441c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x404428
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x8c8574]
mov edx, dword [0x8c49e0]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x402a04
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a41
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a61
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404c10
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c64
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.004049a0
test esi, esi
jne 0x402c9a
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.00404a90
jmp 0x402cb8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b78
mov edi, eax
test esi, esi
je 0x402cb8
cmp dword [ebx], 0
je 0x402cb8
dec esi
jmp 0x402ca1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403a3c
Capabilities:
Query or enumerate registry value

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

Function at 0x4047a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cd04c], 0
je 0x404801
cmp word [0x4cd220], 0xd7b2
jne 0x4047c9
cmp dword [0x4cd228], 0
jbe 0x4047c9
mov eax, 0x4cd21c
call dword [0x4cd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4c6094
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 0x404828
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c6034], 0
jne 0x40481d
push 0
push 0x4c608c
push 0x4c6094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404954
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.004027f0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4cd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40491c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc