joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5f2c
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 0x4c5f4d
xor eax, eax
jmp 0x4c60a2
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 0x4c5f79
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4c5f76
inc edx
cmp edx, ecx
jb 0x4c5f69
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x4c6086
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x4c5fb1
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x4c5fee
cmp al, 0xff
je 0x4c5fee
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x4c607f
dec ecx
shl esi, cl
and esi, 7
je 0x4c5f91
movzx eax, byte [esi + 0x5e9ee8]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x5e9ee0], 0
mov al, byte [ecx + 4]
je 0x4c5fd8
test al, al
je 0x4c5fd8
cmp al, 0xff
jne 0x4c5f91
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 0x4c5f60
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 0x4c601b
add ebx, edi
add ebx, edx
jmp 0x4c601f
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x4c6055
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 0x4c6044
cmp al, 0xff
jne 0x4c6055
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 0x4c600f
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 0x4c5fe3
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 0x4dded9
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 0x4ddf3a
sub eax, 1
je 0x4ddf1c
sub eax, 3
je 0x4ddf1c
test dword [edi + 0x370], 0x2000
je 0x4ddf55
push esi
call fcn.0051668f
pop ecx
test eax, eax
jne 0x4ddf55
cmp esi, 0x2d
je 0x4ddf55
cmp esi, 0x2e
je 0x4ddf55
cmp esi, 0x2c
je 0x4ddf55
jmp 0x4ddf70
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4ddf55
test dword [edi + 0x370], 0x1000
jmp 0x4ddf53
test byte [edi + 0x374], 0x80
jne 0x4ddf55
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4ddf70
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 0x4de1dd
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.004cd023
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], 0x5eb408
mov dword [ebp - 0x24], 0x5ed3c4
mov byte [ebp - 4], bl
mov dword [ebp - 0xc], edi
call dword [eax + 0x94]
cmp byte [ebp - 4], bl
jne 0x4de246
cmp edi, 0xd
jne 0x4de24b
test dword [esi + 0x370], 0x1000
jne 0x4de24b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x4de24b
mov dword [esi + 0x10], ebx
jmp 0x4de265
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 0x4e02ec
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.0050b8e0
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 0x4e0347
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4e035b
cmp byte [ebp - 6], 1
jne 0x4e035b
cmp dword [ebp - 0x11c], 6
jne 0x4e035b
xor eax, eax
inc eax
jmp 0x4e035d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x4e3378
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x624fc4
push dword [ebp + 8]
call fcn.005149de
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e33d5
push ebx
push edi
push esi
call fcn.00513aed
push eax
call fcn.005268cd
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4e33b4
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4e33ca
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 0x4e7bf2
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 0x4e7c98
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 0x4e7c60
mov ecx, edi
call fcn.004e8f7b
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x4e7c3b
cmp si, bx
jge 0x4e7c98
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.004d04e3
test bx, bx
je 0x4e7cd7
mov ecx, edi
call fcn.004ce3e8
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 0x4eba17
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x4eba24
xor eax, eax
jmp 0x4eba52
push dword [ecx + 4]
call fcn.004e6f1a
pop ecx
test eax, eax
je 0x4eba3f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x4eba20
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4
Function at 0x4ebb74
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.004eba17
test eax, eax
je 0x4ebba9
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.004eb5ac
xor eax, eax
inc eax
jmp 0x4ebca6
push esi
push dword [ebx + 4]
call fcn.004e6f1a
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4ebc53
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x4ebc53
cmp edi, 0x25
je 0x4ebbe3
cmp edi, 0x27
je 0x4ebbf1
cmp edi, 0x26
je 0x4ebbe3
cmp edi, 0x28
jne 0x4ebc53
cmp edi, 0x27
je 0x4ebbf1
cmp edi, 0x28
je 0x4ebbf1
push 2
jmp 0x4ebbf3
push 3
pop edi
jmp 0x4ebc01
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4ebc3d
push edi
mov ecx, esi
call fcn.004cec17
mov esi, eax
test esi, esi
jne 0x4ebbf6
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.004ce90c
mov ecx, eax
jmp 0x4ebc30
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4ebc3d
push edi
mov ecx, esi
call fcn.004cec17
mov esi, eax
test esi, esi
jne 0x4ebc22
jmp 0x4ebc4e
push 1
mov ecx, esi
call fcn.004ceb4b
push eax
mov ecx, ebx
call fcn.004ebf30
xor eax, eax
inc eax
jmp 0x4ebca5
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.004edb5f
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004ebcfa
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 0x4f1cfb
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 0x4f1d1e
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4f1dbb
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.004f1911
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f1d41
push ebx
call fcn.00513787
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4f1d97
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 0x4f1d6c
call fcn.00513787
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4f1d97
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 0x4f1da0
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 0x4f1dba
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.004f1ca6
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f93d6
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 0x4f93f6
xor eax, eax
jmp 0x4f9455
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4f93f2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4f93f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4f93f2
push edi
mov ecx, ebx
call fcn.004f8f2b
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004f8f0d
mov ecx, ebx
mov dword [ebx], esi
call fcn.004f94b1
test eax, eax
jne 0x4f9454
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 0x4f96eb
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.004c244f
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x4f9761
cmp dword [esi], edi
jbe 0x4f974b
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.004f987e
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x4f9714
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.004c221a
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 0x4f97ac
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 0x4f97cd
xor eax, eax
jmp 0x4f9815
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.004f987e
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x4f97d8
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.004c21c3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f987e
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 0x4fa800
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 0x4fa8f8
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 0x4fa8f6
mov ebx, dword [0x5e7cf8]
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x4fa8c7
cmp dword [ebp - 0x10], 0x10000
jne 0x4fa8ba
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x4fa8bd
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x4fa8bd
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 0x4fa8cb
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, eax
cmp esi, dword [ebp - 4]
jb 0x4fa873
test edi, edi
je 0x4fa8f6
xor eax, eax
nop dword [eax]
cmp dword [eax*4 + 0xa39908], 0
je 0x4fa8e9
inc eax
cmp eax, 0x40
jb 0x4fa8d0
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 0x52ef0a
Capabilities:
Read file on windows

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

Function at 0x533574
Capabilities:
Set environment variable

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

Function at 0x533789
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053368e
Function at 0x53b8ce
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x5e5c1f
call fcn.004c281e
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x53b9eb
cmp byte [ebx + 0x3e], 0
je 0x53b9eb
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.004c28c6
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x53b91a
xor al, al
jmp 0x53b9ed
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.00411f50
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x53b94a
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.004c28c6
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x53b97f
sub eax, 1
je 0x53b983
dec eax
sub eax, 1
je 0x53b9d9
xor bl, bl
jmp 0x53b9db
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x53b993
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x53b9bb
cmp eax, 0x10
jae 0x53b9a2
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00513d4b
add esp, 0x10
cmp esi, eax
jne 0x53b97b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x53b9d9
test esi, esi
jne 0x53b93e
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00412b20
jmp 0x53b938
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405e30
mov al, bl
jmp 0x53b9ed
mov al, 1
call fcn.004c27c8
ret
Function at 0x53e756
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x545f06
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 0x545f6d
push esi
call fcn.005461ea
pop ecx
test al, al
jne 0x545f6d
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.00546189
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 0x545f66
mov al, byte [esi]
push eax
call fcn.0055148b
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 0x545f49
pop edi
movzx eax, bl
pop ebx
jmp 0x545f6f
xor eax, eax
pop esi
pop ebp
ret

Function at 0x546c88
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x546ca9
cmp dword [esi + 0x8c], 0
je 0x546ca9
push 2
push 3
push esi
call fcn.00551f47
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00552356
pop ecx
test esi, esi
je 0x546cc9
cmp dword [esi + 0x8c], 0
je 0x546cc9
push 3
push esi
call fcn.00551f82
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x54eeb6
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 0x54eef5
push 1
push esi
call fcn.0054290e
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.0054290e
add esp, 0x24
jmp 0x54ef2b
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x54ef2b
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x6034dc
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 0x54f2fb
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.0054f7af
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 0x54f3a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x54f370
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x54f3a6
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00572beb
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0054ef31
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.004c21c3
mov esp, ebp
pop ebp
ret
Function at 0x54f7af
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2a8]
mov edx, dword [esi + ecx*4 + 0x1a8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x54f897
cmp dword [esi + ecx*4 + 0x1bc], 0x54f236
jne 0x54f897
xor eax, eax
cmp dword [esi + edi*8 + 0x1cc], eax
je 0x54f80b
test ebx, ebx
je 0x54f897
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0054ead6
add esp, 0x14
cmp eax, 0xffffffff
je 0x54f897
test al, 1
je 0x54f897
xor ecx, ecx
cmp dword [esi + edi*8 + 0x1cc], ecx
jne 0x54f872
mov eax, dword [esi]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x6672b4]
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
xor ecx, ecx
mov dword [esi + edi*8 + 0x1cc], eax
mov dword [esi + edi*8 + 0x1d4], ecx
mov dword [esi + edi*8 + 0x1d8], ecx
test eax, eax
jne 0x54f872
mov dword [esi + edi*8 + 0x1d0], ecx
jmp 0x54f897
mov eax, dword [esi + edi*8 + 0x1cc]
add eax, dword [esi + edi*8 + 0x1d4]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x54f897
add dword [esi + edi*8 + 0x1d4], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x54f95b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x54f979
push eax
call fcn.005491b1
pop ecx
test eax, eax
jne 0x54f995
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x54f975
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x54f971
mov al, 1
pop ebp
ret

Function at 0x550076
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0xa3a738]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x5500bd
push 3
push esi
push eax
push 6
call fcn.005511da
add esp, 0x10
test al, al
je 0x5500b5
mov dword [0xa3a738], esi
jmp 0x5500fd
xor eax, eax
inc eax
mov dword [0xa3a738], eax
cmp eax, esi
je 0x5500fd
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x5500eb
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x5500fc
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret