joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b596c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4cbf28]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b59b2
cmp word [ebx], dx
jne 0x4b59b2
or byte [eax + edi + 0x28], 4
jmp 0x4b59b7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4b5b1a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4b5afa
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4b59f8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b5a2e
cmp eax, edx
jae 0x4b5a3c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4b59d3
jmp 0x4b5b1a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b5af5
cmp dword [ebp - 0x18], 0
je 0x4b5af5
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4cbf28]
test byte [eax + edi + 0x28], 0x48
je 0x4b5acb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4b5a8f
mov word [esi], cx
jmp 0x4b5ac6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4cbf28]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4cbf28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4cbf28]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4b5b1a
pop eax
cmp word [ebp - 4], ax
jne 0x4b5adb
cmp esi, ebx
jne 0x4b5adb
mov word [esi], ax
jmp 0x4b5b17
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b2bd4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b5b1a
push 0xd
pop eax
jmp 0x4b5ad6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4cbf28]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4b5b14
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4b5b1a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ba558
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004ba6ef
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4ba6c7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4ba6c7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4ba67c
jg 0x4ba5b4
test eax, eax
je 0x4ba672
push 1
push 0x1000
call fcn.004ae124
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4ba5d7
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ba669
push 0x8000
push ebx
call fcn.004a449b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4ba600
jg 0x4ba5fb
cmp ecx, 0x1000
jb 0x4ba600
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b3b66
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ba645
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4ba5fb
jl 0x4ba62c
test ecx, ecx
jne 0x4ba5ed
push dword [ebp - 0xc]
push ebx
call fcn.004a449b
push esi
call fcn.004acddf
add esp, 0xc
xor ebx, ebx
jmp 0x4ba6d5
cmp byte [edi + 0x24], 0
je 0x4ba65c
cmp dword [edi + 0x20], 5
jne 0x4ba65c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4ba667
mov ebx, dword [edi + 0x18]
jmp 0x4ba669
xor ebx, ebx
push esi
call fcn.004acddf
pop ecx
jmp 0x4ba6d5
test ecx, ecx
jg 0x4ba63e
jl 0x4ba67c
test eax, eax
jae 0x4ba63e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b2bd4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4ba69c
cmp byte [edi + 0x1c], 0
je 0x4ba63e
jmp 0x4ba6cd
push ebx
call fcn.004b3259
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ba63e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4ba6d5
cmp byte [edi + 0x1c], 0
je 0x4ba6d2
mov ebx, dword [edi + 0x18]
jmp 0x4ba6d5
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b2bd4
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x438ca6
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
sub edi, edi
or edi, edi
call fcn.00438cd9
and edi, edx
mov edi, 0xf9ffc77c
xor dword [ecx], ebx
inc edx
mov edx, edi
and edi, edx
inc ecx
mov edi, edx
sub edi, edx
add edi, 1
cmp ecx, esi
jne fcn.00438ca6
mov edx, 0xb9cfa155
ret
Function at 0x4024d0
Capabilities:
Encode data using xor

Disassembly:
clc
mov ebx, dword [ebp - 0x80]
cmp ebx, ecx
mov ecx, dword [ebp - 4]
ja 0x4024e4
mov ecx, dword [edi - 8]
mov dword [esi - 0x7c], ebx
mov dword [eax], edi
mov byte [ebx - 0x3fa274f7], cl
mov ecx, dword [ecx]
mov ebx, dword [ebp - 0x40]
psubusw mm1, qword [ebx + 0x5d89b04d]
ror ah, 0x5d
les esp, [edi + 0x49]
add al, 0x13
inc edi
mov edx, dword [ebp + 6]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ecx + 8]
add ebx, ecx
mov ecx, dword [ebp - 0x28]
and dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ecx + 0xc]
adc ebx, ecx
mov ecx, dword [ebp + 0x74]
jns 0x4024f0
mov edi, ecx
call 0x8b5582aa
pop ebp
xchg esp, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 4]
adc ebx, eax
mov esp, dword [ebx + 0x2f5d89f8]
mov ebx, dword [ebp - 0x14]
add edx, eax
mov ebx, dword [esp + esi*8]
mov dword [ebp - 0x18], edx
adc ebx, edi
add ecx, 0x20
dec eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
jne 0x3fa4d5
mov eax, dword [0x978702ac]
cdq
mov ebx, edx
mov edx, dword [ebp - 0x3c]
mov edi, dword [ecx - 0x75]
inc ebp
rcl byte [ebx + 0x57], 0x52
push eax
test ebx, esp
nop
add byte es:[ebx + 0x5589cc37], cl
cld
mov edx, dword [ebp - 0x38]
push ebx
pop ds
das
push edx
mov dword [ebp - 8], eax
call fcn.0040b590
mov ecx, dword [eax + 0x4a]
mov dword [ebp - 0x68], eax
cmovne esp, esp
push ebx
push edi
push eax
xchg ecx, eax
mov dword [ebp - 0x64], edx
call fcn.0040b590
mov byte [0x553bccb2], al
or byte [ecx + 0x458bc818], cl
call 0x50927cf7
dec esp
out 0x2c, eax
and al, byte [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [0x410239]
test dword [ecx + 0xfc45589], ebp
mov cs, word [eax - 0x20da0000]
insd dword es:[edi], dx
cwde
sal esp, cl
enter 0x410b, 0x6c
fstp qword [ebp - 0x28]
fild qword [ebp - 8]
fcomp st(7)
insd dword es:[edi], dx
clc
xor al, byte [ecx + 0x10]
mov ecx, dword [0xcce702ac]
and byte [ebp - 0x20], bl
fisttp word [esi - 0x38]
fstp qword [ebp - 0x18]
fild qword [ebp - 0x40]
fnstsw word [edx + 0x7885ddf0]
add bh, bh
jl 0x4025c7
inc ebp
test al, 0xdd
inc ebp
mov ch, bl
inc ebp
nop
fild qword [eax + 0x7e]
fld qword [ebp - 0x28]
add eax, 0x20
dec ecx
fsubr st(1)
fld st(0)
fmul st(1)
rol dh, 1
fstp st(0)
jl 0x402615
mov eax, dword [0xd8e04538]
jmp 0xca18e6eb
fcomp st(1)
leave
fcomp st(6)
fsub qword [ebp - 0x28]
fxch st(1)
fstp st(0)
sub eax, eax
aam 0xc9
faddp st(3)
fst qword [edi + ebx*8]
push 0xf065dcd8
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jne 0x4025f2
fstp qword [ebp - 0x70]
fstp qword [ebp - 0x78]
fisttp qword [ebx - 0x22f91406]
test dword [eax - 1], edi
invalid
Function at 0x405e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebx
adc eax, sym.imp.KERNEL32.dll_FreeEnvironmentStringsW
mov esi, dword [sym.imp.MSVCRT.dll___p__wenviron]
pop edi
salc
mov ecx, dword [eax]
pop ebx
test dword [esp + esi*2 - 0x740b000e], ebx
cmp bh, bh
cmp byte [edi - 0x39], dl
push cs
in al, 0
rcr ebx, 1
call dword [sym.imp.WS2_32.dll_WSASend]
sub esi, 4
xor eax, eax
in eax, dx
cld
mov esp, ebp
pop ebp
ret 0x6e
jnp 0x45cc0742
or al, 0x23
mov ebx, dword [ebp + 0x10]
push esi
test ebx, ebx
push edi
jge 0x405e79
mov ebx, 1
cmp word [eax], 0
jne 0x405e02
add word [edx + eax*4], 0
je 0x405e79
inc ebx
add eax, 2
jmp 0x405e66
sub eax, dword [ebp + 0xc]
dec eax
rol byte [edx], 0xd1
clc
mov dword [ebp + 0x10], eax
dec ecx
add al, 0x9d
add al, 0
add byte [eax], al
out dx, eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
mov eax, dword [ebp + 0x10]
lea esi, [eax + eax*2 + 1]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCRT.dll_malloc]
ljmp 0x894e

Function at 0x40a9a1
Capabilities:
Encode data using xor

Disassembly:
mov ebx, edx
sub esp, 0x62
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, dword [edi]
test dword [ecx], ecx
mov dword [ebp + 0x3e], edx
jne 0x40a9c3
xchg ebp, eax
movsd dword es:[edi], dword [esi]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x14]
loope 0x40aa01
add byte [edx + ebp*8 - 0x6d], dh
jne 0x40a9d6
xor ecx, dword [edi - 0x76]
push es
inc esi
aad 0xc0
mov eax, esp
or byte [eax + 0x19], bh
loopne 0x40a9e0
js 0x40a9f3
lodsd eax, dword [esi]
mov dword [edi], edx
mov edx, dword [ecx]
dec edx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
add ecx, 2
mov ebp, esp
adc cl, ch
enter 1, 0
mov esi, eax
and ecx, 0xc0
sti
stc
rcl bl, 0x85
xchg dword [eax], eax
add byte [eax], al
sub al, 0xbf
add byte [eax], al
add byte [edi + edi*4], ch
loopne 0x40aa08
add byte [eax], al
mov ecx, eax
mov dword [ebp - 0x10], edx
and ecx, edi
cmp dword [eax - 0x42], edx
loope 0x40aa25
mov byte [0x3b9f3362], al
iretd
sal dword [ebp + 0x30], cl
mov eax, edi
mov edx, ebx
mov ecx, 0xdc008dd9
fcmovnu st(0), st(2)
cmp eax, dword [eax]
xor byte [ebx], cl
clc
or ebx, edx
inc esi
cmp esi, 3
mov esp, 0x4825fc2d
mov esi, dword [ecx]
in al, dx
mov ecx, dword [ebp - 0x10]
and eax, edi
adc eax, 0x75c7b733
add al, 0x3b
xor esi, dword [edx + ebx*4 - 0x75]
inc ebp
in al, dx
loope 0x40aa3a
invalid
Function at 0x401a70
Capabilities:
Create thread

Disassembly:
call fcn.00401620
push 0
push 0
push 0
push 0x401990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call dword [sym.imp.MSVCR100.dll_getchar]
xor eax, eax
ret
Function at 0x414555
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505

Function at 0x414aca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x45095d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042581a
add esp, 0x10
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov edx, dword [ecx]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x414af0
Function at 0x420bd8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c7283]
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], al
push 0x8000
push esi
mov edi, edx
call fcn.0042491e
pop ecx
push eax
call fcn.0042474c
cmp dword [edi + 0xc], 0xb
mov ebx, eax
pop ecx
pop ecx
je 0x456938
lea ecx, [ebp - 0x18]
call fcn.004140e5
mov ecx, edi
call fcn.00404d4f
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.00414042
push dword [ebp - 0x18]
push 0x492ca8
push esi
call fcn.00424b1d
add esp, 0xc
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x456958
lea ecx, [ebp - 0x18]
call fcn.00411cce
mov edi, dword [ebp - 8]
push esi
call fcn.00424ce2
pop ecx
cmp ebx, 0xffffffff
je 0x420c76
push ebx
push esi
call fcn.0042491e
pop ecx
push eax
call fcn.0042474c
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4000
jmp 0x420c5e
push esi
mov ecx, edi
call fcn.00468d2b
push eax
push 1
call fcn.00468ce8
push eax
call fcn.00424a9b
add esp, 0x10
mov edi, eax
jmp 0x420c51
mov ecx, edi
call fcn.00404d4f
mov eax, dword [edi + 8]
push dword [eax]
call dword [0x490244]
jmp 0x420c46
Function at 0x45ff10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebx]
push 2
pop edx
mov esi, dword [ecx + edi]
lea eax, [ecx + 4]
mov dword [ebx], eax
xor ecx, ecx
mov dword [ebp + 8], esi
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420ffe
mov ecx, dword [ebx]
add esi, esi
add ecx, edi
mov edi, eax
push esi
push ecx
push edi
call fcn.00421088
add dword [ebx], esi
xor eax, eax
mov ecx, dword [ebp + 8]
add esp, 0x10
mov word [esi + edi], ax
test ecx, ecx
jle 0x45ff6b
xor word [edi + eax*2], cx
inc eax
cmp eax, ecx
jl 0x45ff62
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x465066
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], eax
mov byte [0x4c72b7], 0
mov ebx, edx
test edi, edi
je 0x4650b8
mov byte [0x4c72b8], 1
call dword [0x490180]
mov dword [ebp - 0xc], eax
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 8], edi
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x465530
push ecx
push ecx
call fcn.004240c9
mov esi, eax
add esp, 0x18
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push eax
call dword [0x4906b8]
mov edi, eax
test esi, esi
je 0x4650e3
push 0xffffffffffffffff
push esi
mov byte [0x4c72b8], 0
call dword [0x49016c]
push esi
call dword [0x490358]
cmp byte [0x4c72b7], 1
jne 0x4650f1
or eax, 0xffffffff
jmp 0x4650f3
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468d75
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c5190]
jne 0x468d82
call fcn.00468e5c
mov eax, dword [0x4c8ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c8ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x468dba
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c5190]
jne 0x468dcc
call fcn.00468e5c
mov eax, dword [0x4c8ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c8ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468e0f
fadd qword [0x4bcac8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bcaa0]
mov esp, ebp
pop ebp
ret

Function at 0x468e1f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4c8530], ecx
inc esi
mov ecx, 0x4c8530
mov edx, esi
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x4c8eec
jl 0x468e30
mov dword [0x4c5190], esi
mov dword [0x4c8518], esi
pop esi
ret
Function at 0x468e5c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4c8518], 0
push esi
push edi
mov esi, 0x4c8530
jne 0x468e7b
push 0
call fcn.00425442
pop ecx
mov ecx, eax
call fcn.00468e1f
mov dword [0x4c5190], 0x270
mov edi, 0xe3
mov dword [0x4c8ef0], esi
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi], eax
mov esi, edx
dec edi
jne 0x468e90
mov edi, 0x18c
lea edx, [esi + 4]
mov al, byte [edx]
and al, 1
movzx ecx, al
mov eax, dword [esi]
neg ecx
sbb ecx, ecx
xor eax, dword [edx]
and eax, 0x7ffffffe
and ecx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, ecx
mov dword [esi], eax
lea esi, [edx]
dec edi
jne 0x468ec5
mov ecx, dword [0x4c8530]
mov al, cl
and al, 1
movzx edx, al
mov eax, dword [esi]
neg edx
pop edi
sbb edx, edx
xor eax, ecx
and eax, 0x7ffffffe
and edx, 0x9908b0df
xor eax, dword [esi]
shr eax, 1
xor eax, dword [esi - 0x38c]
xor eax, edx
mov dword [esi], eax
pop esi
ret

Function at 0x469364
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x469389
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00421088
add esp, 0xc
jmp 0x46939c
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0042581a
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push str.Default
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.004258c8
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x469472
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x460]
test eax, eax
je 0x469488
cmp eax, ecx
jne 0x4694a3
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x458]
call fcn.0042581a
add esp, 0x10
and dword [esi + 0x460], 0
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x460], ecx
pop esi
ret

Function at 0x4694bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x45c]
mov esi, dword [edi + 0x454]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x45c]
cmp dword [edi + 0x45c], eax
jne 0x469502
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x454]
call fcn.00424a9b
add esp, 0x10
and dword [edi + 0x45c], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x469508
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x45c]
test eax, eax
je 0x469530
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x454]
call fcn.00424a9b
add esp, 0x10
and dword [esi + 0x45c], 0
pop esi
ret

Function at 0x4696dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.00469532
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.00469578
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x469720
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.004696b0
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x46970a
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4729d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x4729e1
pop ebp
jmp fcn.00472aa2
pop ebp
jmp fcn.004729e7

Function at 0x472d80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x472dbd
cmp byte [ebp + 8], 0
je 0x472dbd
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.00471e1e
push esi
push 0
push 0x472e38
call fcn.00425f04
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x472dc5
push dword [ebp + 8]
call fcn.00471ff2
pop esi
pop ebp
ret 4
Function at 0x402ed4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402f2d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d70
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d70
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402f17
inc ebx
jmp 0x402f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f34
lea eax, [ebp - 8]
call fcn.00404c48
ret

Function at 0x402f3c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c48
test esi, esi
jne 0x402f73
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404d38
jmp 0x402f94
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d70
mov dword [esp], eax
test esi, esi
je 0x402f94
cmp dword [ebx], 0
je 0x402f94
dec esi
jmp 0x402f7b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403bc0
Capabilities:
Query or enumerate registry value

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

Function at 0x404a20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e804c], 0
je 0x404a81
cmp word [0x4e8220], 0xd7b2
jne 0x404a49
cmp dword [0x4e8228], 0
jbe 0x404a49
mov eax, 0x4e821c
call dword [0x4e8238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4e5074
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 0x404aa8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5034], 0
jne 0x404a9d
push 0
push 0x4e506c
push 0x4e5074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404bfc
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.00402b10
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4e804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bc4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc