joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be980
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, 0x629ac0
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 0x4be9c0
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 0x4bea10
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 0x4bea75
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 0x4bea40
mov byte [edi + 0x208], bh
mov dword [edi + 0x200], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c4f48
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 0x4c4f50
mov dword [edx*4 + 0xa3f480], ecx
inc edx
cmp edx, 0x100
jb 0x4c4f4b
mov esi, 0x800
jmp 0x4c4f99
mov ecx, dword [edx*4 + 0xa3f080]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0xa3f480]
mov dword [edx*4 + 0xa3f480], ecx
inc edx
cmp edx, esi
jb 0x4c4f7d
mov dword [0xa29798], 0x4c5c63
call fcn.004c5adc
mov ecx, dword [0xa29798]
test eax, eax
mov edx, 0x4c5cfc
cmove ecx, edx
mov dword [0xa29798], ecx
pop esi
ret
Function at 0x4c5fbc
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 0x4c5fdd
xor eax, eax
jmp 0x4c6132
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 0x4c6009
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4c6006
inc edx
cmp edx, ecx
jb 0x4c5ff9
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x4c6116
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4c6041
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x4c607e
cmp al, 0xff
je 0x4c607e
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x4c610f
dec ecx
shl esi, cl
and esi, 7
je 0x4c6021
movzx eax, byte [esi + 0x5e9ee8]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x5e9ee0], 0
mov al, byte [ecx + 4]
je 0x4c6068
test al, al
je 0x4c6068
cmp al, 0xff
jne 0x4c6021
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 0x4c5ff0
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 0x4c60ab
add ebx, edi
add ebx, edx
jmp 0x4c60af
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x4c60e5
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 0x4c60d4
cmp al, 0xff
jne 0x4c60e5
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 0x4c609f
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 0x4c6073
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 0x4da85e
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 0x4da884
call fcn.004d1020
jmp 0x4da8b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d04fc
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x4da8b0
push 1
push ecx
push ecx
push eax
push 0x61ee04
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc

Function at 0x4de08b
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 0x4de0ec
sub eax, 1
je 0x4de0ce
sub eax, 3
je 0x4de0ce
test dword [edi + 0x370], 0x2000
je 0x4de107
push esi
call fcn.0051668f
pop ecx
test eax, eax
jne 0x4de107
cmp esi, 0x2d
je 0x4de107
cmp esi, 0x2e
je 0x4de107
cmp esi, 0x2c
je 0x4de107
jmp 0x4de122
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4de107
test dword [edi + 0x370], 0x1000
jmp 0x4de105
test byte [edi + 0x374], 0x80
jne 0x4de107
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4de122
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 0x4de38f
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.004cd1c0
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], 0x5eb768
mov dword [ebp - 0x24], 0x5ed3e0
mov byte [ebp - 4], bl
mov dword [ebp - 0xc], edi
call dword [eax + 0x94]
cmp byte [ebp - 4], bl
jne 0x4de3f8
cmp edi, 0xd
jne 0x4de3fd
test dword [esi + 0x370], 0x1000
jne 0x4de3fd
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4de3fd
mov dword [esi + 0x10], ebx
jmp 0x4de417
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 0x4e049e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x64106c]
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.0050b930
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 0x4e04f9
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4e050d
cmp byte [ebp - 6], 1
jne 0x4e050d
cmp dword [ebp - 0x11c], 6
jne 0x4e050d
xor eax, eax
inc eax
jmp 0x4e050f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c2233
mov esp, ebp
pop ebp
ret

Function at 0x4e3521
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x624fac
push dword [ebp + 8]
call fcn.005149de
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e357e
push ebx
push edi
push esi
call fcn.00513aed
push eax
call fcn.0052697d
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4e355d
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4e3573
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.005144b1
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.00513787
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x4e7c74
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 0x4e7d1a
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 0x4e7ce2
mov ecx, edi
call fcn.004e8ffd
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x4e7cbd
cmp si, bx
jge 0x4e7d1a
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.004d0684
test bx, bx
je 0x4e7d59
mov ecx, edi
call fcn.004ce589
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 0x4eba82
Capabilities:
Log keystrokes via polling

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

Function at 0x4ebbab
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.004eba82
test eax, eax
je 0x4ebbe0
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.004eb62a
xor eax, eax
inc eax
jmp 0x4ebcdd
push esi
push dword [ebx + 4]
call fcn.004e7013
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4ebc8a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x4ebc8a
cmp edi, 0x25
je 0x4ebc1a
cmp edi, 0x27
je 0x4ebc28
cmp edi, 0x26
je 0x4ebc1a
cmp edi, 0x28
jne 0x4ebc8a
cmp edi, 0x27
je 0x4ebc28
cmp edi, 0x28
je 0x4ebc28
push 2
jmp 0x4ebc2a
push 3
pop edi
jmp 0x4ebc38
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4ebc74
push edi
mov ecx, esi
call fcn.004cedb8
mov esi, eax
test esi, esi
jne 0x4ebc2d
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.004ceaad
mov ecx, eax
jmp 0x4ebc67
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4ebc74
push edi
mov ecx, esi
call fcn.004cedb8
mov esi, eax
test esi, esi
jne 0x4ebc59
jmp 0x4ebc85
push 1
mov ecx, esi
call fcn.004cecec
push eax
mov ecx, ebx
call fcn.004ebf9c
xor eax, eax
inc eax
jmp 0x4ebcdc
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.004edc92
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004ebd31
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 0x4f1dd8
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 0x4f1dfb
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4f1e98
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.004f19ee
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f1e1e
push ebx
call fcn.00513787
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4f1e74
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x641244]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x4f1e49
call fcn.00513787
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4f1e74
push esi
push 1
push eax
call fcn.005144b1
push ebx
mov esi, eax
call fcn.00513787
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x4f1e7d
push dword [ebp - 4]
call dword [0x641248]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x4f1e97
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.004f1d83
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f9442
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 0x4f9462
xor eax, eax
jmp 0x4f94c1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4f945e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f945e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4f945e
push edi
mov ecx, ebx
call fcn.004f8f97
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004f8f79
mov ecx, ebx
mov dword [ebx], esi
call fcn.004f951d
test eax, eax
jne 0x4f94c0
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 0x4f9757
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.004c24ba
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x4f97cd
cmp dword [esi], edi
jbe 0x4f97b7
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.004f98ea
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x4f9780
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004c2285
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 0x4f9818
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x64106c]
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 0x4f9839
xor eax, eax
jmp 0x4f9881
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.004f98ea
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x4f9844
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.004c2233
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f98ea
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 0x4fa870
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
xor edi, edi
cmp dword [0xa39a08], 0x40
jae 0x4fa968
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 0x4fa966
mov ebx, dword [0x5e7cf8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x4fa937
cmp dword [ebp - 0x10], 0x10000
jne 0x4fa92a
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x4fa92d
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x4fa92d
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 [0x5e7cec]
mov edi, eax
test edi, edi
jne 0x4fa93b
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, eax
cmp esi, dword [ebp - 4]
jb 0x4fa8e3
test edi, edi
je 0x4fa966
xor eax, eax
nop dword [eax]
cmp dword [eax*4 + 0xa39908], 0
je 0x4fa959
inc eax
cmp eax, 0x40
jb 0x4fa940
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
inc dword [0xa39a08]
mov dword [eax*4 + 0xa39908], edi
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x52ef6d
Capabilities:
Read file on windows

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

Function at 0x5335d4
Capabilities:
Set environment variable

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

Function at 0x5337e9
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005336ee
Function at 0x53b92e
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5e5c2f
call fcn.004c2889
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x53ba4b
cmp byte [ebx + 0x3e], 0
je 0x53ba4b
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004c2931
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x53b97a
xor al, al
jmp 0x53ba4d
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.00411f40
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x53b9aa
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.004c2931
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x53b9df
sub eax, 1
je 0x53b9e3
dec eax
sub eax, 1
je 0x53ba39
xor bl, bl
jmp 0x53ba3b
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x53b9f3
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x53ba1b
cmp eax, 0x10
jae 0x53ba02
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00513d4b
add esp, 0x10
cmp esi, eax
jne 0x53b9db
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x53ba39
test esi, esi
jne 0x53b99e
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00412b10
jmp 0x53b998
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405e30
mov al, bl
jmp 0x53ba4d
mov al, 1
call fcn.004c2833
ret
Function at 0x53e7b6
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x545f63
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 0x545fca
push esi
call fcn.00546246
pop ecx
test al, al
jne 0x545fca
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.005461e5
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 0x545fc3
mov al, byte [esi]
push eax
call fcn.005514eb
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 0x545fa6
pop edi
movzx eax, bl
pop ebx
jmp 0x545fcc
xor eax, eax
pop esi
pop ebp
ret

Function at 0x546ce8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x546d09
cmp dword [esi + 0x8c], 0
je 0x546d09
push 2
push 3
push esi
call fcn.00551fb6
add esp, 0xc
push dword [ebp + 0xc]
call fcn.005523d0
pop ecx
test esi, esi
je 0x546d29
cmp dword [esi + 0x8c], 0
je 0x546d29
push 3
push esi
call fcn.00551ff1
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x54ef16
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 0x54ef55
push 1
push esi
call fcn.0054296b
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.0054296b
add esp, 0x24
jmp 0x54ef8b
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x54ef8b
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x6034cc
push eax
call fcn.00513d4b
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00513d4b
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x64106c]
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.0054f80f
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 0x54f406
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x54f3d0
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x54f406
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00572c54
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0054ef91
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.004c2233
mov esp, ebp
pop ebp
ret