joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bea80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov byte [ebp - 1], 0
push esi
push edi
mov ecx, 0x40
mov esi, 0x629a70
mov edi, ebx
mov dword [ebx + 0x200], 1
mov dword [ebx + 0x204], 1
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, edx
nop
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div dword [ebp + 8]
movzx eax, byte [edx + edi]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x4beac0
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4beb10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x200]
sub edx, eax
mov bh, byte [edi + 0x208]
add ecx, eax
sub esi, eax
mov dword [ebp - 4], ecx
mov dword [ebp + 8], esi
cmp eax, ecx
jae 0x4beb75
sub edx, esi
mov dword [ebp + 0xc], edx
movzx esi, al
mov bl, byte [esi + edi]
add bh, bl
movzx edx, bh
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
mov byte [edx + edi], bl
movzx ecx, byte [esi + edi]
mov edx, dword [ebp + 8]
add cl, bl
mov esi, dword [ebp + 0xc]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + edi]
xor cl, byte [esi + edx]
mov byte [edx], cl
cmp eax, dword [ebp - 4]
jb 0x4beb40
mov byte [edi + 0x208], bh
mov dword [edi + 0x200], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4c5040
mov dword [edx*4 + 0xa3ec80], ecx
inc edx
cmp edx, 0x100
jb 0x4c503b
mov esi, 0x800
jmp 0x4c5089
mov ecx, dword [edx*4 + 0xa3e880]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0xa3ec80]
mov dword [edx*4 + 0xa3ec80], ecx
inc edx
cmp edx, esi
jb 0x4c506d
mov dword [0xa28f98], 0x4c5d53
call fcn.004c5bcc
mov ecx, dword [0xa28f98]
test eax, eax
mov edx, 0x4c5dec
cmove ecx, edx
mov dword [0xa28f98], ecx
pop esi
ret
Function at 0x4c60ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x4c60cd
xor eax, eax
jmp 0x4c6222
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x4c60f9
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4c60f6
inc edx
cmp edx, ecx
jb 0x4c60e9
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x4c6206
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4c6131
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x4c616e
cmp al, 0xff
je 0x4c616e
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x4c61ff
dec ecx
shl esi, cl
and esi, 7
je 0x4c6111
movzx eax, byte [esi + 0x5e9ee8]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x5e9ee0], 0
mov al, byte [ecx + 4]
je 0x4c6158
test al, al
je 0x4c6158
cmp al, 0xff
jne 0x4c6111
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x4c60e0
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x4c619b
add ebx, edi
add ebx, edx
jmp 0x4c619f
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x4c61d5
movzx eax, byte [esi + 0x5e9ee8]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x4c61c4
cmp al, 0xff
jne 0x4c61d5
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x4c618f
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x4c6163
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4da956
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x170]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x4da97c
call fcn.004d1124
jmp 0x4da9a8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d0600
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x4da9a8
push 1
push ecx
push ecx
push eax
push 0x61edcc
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc

Function at 0x4de14d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, ecx
sub eax, 9
je 0x4de1ae
sub eax, 1
je 0x4de190
sub eax, 3
je 0x4de190
test dword [edi + 0x370], 0x2000
je 0x4de1c9
push esi
call fcn.00515c5c
pop ecx
test eax, eax
jne 0x4de1c9
cmp esi, 0x2d
je 0x4de1c9
cmp esi, 0x2e
je 0x4de1c9
cmp esi, 0x2c
je 0x4de1c9
jmp 0x4de1e4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4de1c9
test dword [edi + 0x370], 0x1000
jmp 0x4de1c7
test byte [edi + 0x374], 0x80
jne 0x4de1c9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4de1e4
mov eax, dword [edi + 0x380]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4de451
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x2c]
push edi
push esi
call fcn.004cd26e
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [ebp - 0x2c], 0x5ed3c8
mov dword [ebp - 0x24], 0x5ed3d8
mov byte [ebp - 4], bl
mov dword [ebp - 0xc], edi
call dword [eax + 0x94]
cmp byte [ebp - 4], bl
jne 0x4de4ba
cmp edi, 0xd
jne 0x4de4bf
test dword [esi + 0x370], 0x1000
jne 0x4de4bf
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4de4bf
mov dword [esi + 0x10], ebx
jmp 0x4de4d9
mov eax, dword [esi + 0x380]
push ebx
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x6c]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e0560
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0050ba40
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x4e05bb
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4e05cf
cmp byte [ebp - 6], 1
jne 0x4e05cf
cmp dword [ebp - 0x11c], 6
jne 0x4e05cf
xor eax, eax
inc eax
jmp 0x4e05d1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret

Function at 0x4e36b6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x624fd0
push dword [ebp + 8]
call fcn.00514aee
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e3713
push ebx
push edi
push esi
call fcn.00513bfd
push eax
call fcn.00526a0d
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4e36f2
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4e3708
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.005145c1
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.00513897
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x4e7dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x78
pop ecx
mov ax, word [edi + 0x210]
add ax, word [ebp + 0xc]
cwde
cdq
idiv ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [edi + 0x210], dx
cdq
xor eax, edx
sub eax, edx
movzx ebx, ax
xor eax, eax
cmp ax, bx
jge 0x4e7e76
xor ecx, ecx
cmp word [ebp + 0xc], ax
setle cl
xor edx, edx
mov dword [ebp - 4], ecx
inc edx
mov eax, dword [edi]
push 0
push ecx
push edx
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
je 0x4e7e3e
mov ecx, edi
call fcn.004e9159
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x4e7e19
cmp si, bx
jge 0x4e7e76
push dword [ebp + 0x14]
or eax, 0xffffffff
mov ecx, ebx
push dword [ebp + 0x10]
sub ecx, esi
cmp word [ebp + 0xc], 0
push 1
pop edx
cmovg eax, edx
movsx ecx, cx
cwde
imul ecx, eax
movsx eax, cx
mov ecx, edi
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.004d0788
test bx, bx
je 0x4e7eb5
mov ecx, edi
call fcn.004ce68d
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ebb85
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x4ebb92
xor eax, eax
jmp 0x4ebbc0
push dword [ecx + 4]
call fcn.004e714f
pop ecx
test eax, eax
je 0x4ebbad
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x4ebb8e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4

Function at 0x4ebcae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.004ebb85
test eax, eax
je 0x4ebce3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.004eb72d
xor eax, eax
inc eax
jmp 0x4ebde0
push esi
push dword [ebx + 4]
call fcn.004e714f
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4ebd8d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x4ebd8d
cmp edi, 0x25
je 0x4ebd1d
cmp edi, 0x27
je 0x4ebd2b
cmp edi, 0x26
je 0x4ebd1d
cmp edi, 0x28
jne 0x4ebd8d
cmp edi, 0x27
je 0x4ebd2b
cmp edi, 0x28
je 0x4ebd2b
push 2
jmp 0x4ebd2d
push 3
pop edi
jmp 0x4ebd3b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4ebd77
push edi
mov ecx, esi
call fcn.004ceebc
mov esi, eax
test esi, esi
jne 0x4ebd30
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.004cebb1
mov ecx, eax
jmp 0x4ebd6a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4ebd77
push edi
mov ecx, esi
call fcn.004ceebc
mov esi, eax
test esi, esi
jne 0x4ebd5c
jmp 0x4ebd88
push 1
mov ecx, esi
call fcn.004cedf0
push eax
mov ecx, ebx
call fcn.004ec068
xor eax, eax
inc eax
jmp 0x4ebddf
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.004edcc9
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004ebe34
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00401a70
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f1f18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x4f1f3b
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4f1fd8
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.004f1b2e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f1f5e
push ebx
call fcn.00513897
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4f1fb4
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x640244]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x4f1f89
call fcn.00513897
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4f1fb4
push esi
push 1
push eax
call fcn.005145c1
push ebx
mov esi, eax
call fcn.00513897
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x4f1fbd
push dword [ebp - 4]
call dword [0x640248]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x4f1fd7
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004f1ec3
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f9535
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f9555
xor eax, eax
jmp 0x4f95b4
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4f9551
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f9551
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4f9551
push edi
mov ecx, ebx
call fcn.004f908a
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004f906c
mov ecx, ebx
mov dword [ebx], esi
call fcn.004f9610
test eax, eax
jne 0x4f95b3
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4f984a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0xc
pop edi
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 4], ebx
push eax
call fcn.004c25cb
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x4f98c0
cmp dword [esi], edi
jbe 0x4f98aa
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebp - 4]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [eax + edi]
mov byte [ebp - 8], bl
push dword [ebp - 8]
call fcn.004f99dd
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x4f9873
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004c2396
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
add dword [esi], 0xfffffff4
inc eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f990b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jae 0x4f992c
xor eax, eax
jmp 0x4f9974
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
xor esi, esi
push ebx
movzx eax, word [ecx + 0x18]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp + esi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.004f99dd
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x4f9937
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 0x18
cmp byte [ebp - 5], cl
pop ebx
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi + 0x10], eax
movzx eax, al
add eax, dword [edi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x4fa960
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
xor edi, edi
cmp dword [0xa39208], 0x40
jae 0x4faa58
mov ecx, dword [ebp + 8]
mov edx, 1
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
add eax, ecx
mov dword [ebp - 0x24], edi
push ebx
cmp eax, 0x80000000
mov ebx, 0xfff80000
push esi
lea esi, [eax - 0x7fff0000]
cmovb esi, edx
add ecx, dword [ebp + 0x14]
cmp ecx, 0x80000000
movups xmmword [ebp - 0x44], xmm0
lea eax, [ecx + 0x7ff80000]
cmovb ebx, eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], ebx
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, ebx
jae 0x4faa56
mov ebx, dword [0x5e7d18]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x4faa27
cmp dword [ebp - 0x10], 0x10000
jne 0x4faa1a
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x4faa1d
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x4faa1d
lea eax, [ecx - 1]
xor edx, edx
add eax, esi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [0x5e7d0c]
mov edi, eax
test edi, edi
jne 0x4faa2b
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, eax
cmp esi, dword [ebp - 4]
jb 0x4fa9d3
test edi, edi
je 0x4faa56
xor eax, eax
nop dword [eax]
cmp dword [eax*4 + 0xa39108], 0
je 0x4faa49
inc eax
cmp eax, 0x40
jb 0x4faa30
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0xa39208]
mov dword [eax*4 + 0xa39108], edi
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x52efe9
Capabilities:
Read file on windows

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

Function at 0x5336d5
Capabilities:
Set environment variable

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

Function at 0x5338ea
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005337ef
Function at 0x53ba3e
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5e5c4f
call fcn.004c299a
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x53bb5b
cmp byte [ebx + 0x3e], 0
je 0x53bb5b
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004c2a42
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x53ba8a
xor al, al
jmp 0x53bb5d
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00412400
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x53baba
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.004c2a42
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x53baef
sub eax, 1
je 0x53baf3
dec eax
sub eax, 1
je 0x53bb49
xor bl, bl
jmp 0x53bb4b
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x53bb03
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x53bb2b
cmp eax, 0x10
jae 0x53bb12
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00513e5b
add esp, 0x10
cmp esi, eax
jne 0x53baeb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x53bb49
test esi, esi
jne 0x53baae
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00412fd0
jmp 0x53baa8
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004062e0
mov al, bl
jmp 0x53bb5d
mov al, 1
call fcn.004c2944
ret
Function at 0x53e8c6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x53e8d3
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0053e8df

Function at 0x546076
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5460dd
push esi
call fcn.00546359
pop ecx
test al, al
jne 0x5460dd
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.005462f8
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x5460d6
mov al, byte [esi]
push eax
call fcn.005515fe
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x5460b9
pop edi
movzx eax, bl
pop ebx
jmp 0x5460df
xor eax, eax
pop esi
pop ebp
ret

Function at 0x546df7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x546e18
cmp dword [esi + 0x8c], 0
je 0x546e18
push 2
push 3
push esi
call fcn.005520c9
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005524d8
pop ecx
test esi, esi
je 0x546e38
cmp dword [esi + 0x8c], 0
je 0x546e38
push 3
push esi
call fcn.00552104
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x54f029
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x54f068
push 1
push esi
call fcn.00542a7e
push dword [esi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x608]
push 0
push esi
mov edi, eax
call fcn.00542a7e
add esp, 0x24
jmp 0x54f09e
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x54f09e
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x6034cc
push eax
call fcn.00513e5b
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00513e5b
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x54f46e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + eax*4 + 0x1a8]
push eax
push ebx
mov dword [ebp - 0x88], ecx
call fcn.0054f922
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
cmp esi, 0xffffffff
jne 0x54f519
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x54f4e3
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x54f519
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00572d5f
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0054f0a4
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcac], edi
mov eax, dword [ebp - 0x88]
mov dword [eax], 0x37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret