joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503da2
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x57618c
call fcn.00524444
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0054562f
mov eax, dword [0x61d784]
mov dword [esp + 0x14], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
push ebp
push ebp
push 0x14b
mov dword [esp + 0x60], ebp
push dword [esi + 0xe4]
call edi
mov dword [esp + 0x10], 0x663640
mov ebx, 0x14a
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
jne 0x503e0f
lea eax, [ebp + 1]
push eax
lea eax, [esp + 0x1c]
push 0x5caba0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push dword [esi + 0xe4]
call edi
add dword [esp + 0x10], 0x19
inc ebp
cmp dword [esp + 0x10], 0x663834
jl 0x503deb
mov eax, dword [esi + 0x1160]
xor ebp, ebp
push ebp
push eax
push 0x14e
push dword [esi + 0xe4]
call edi
push ebp
push ebp
push 0x14b
push dword [esi + 0xa8]
call edi
push dword [ebp*4 + 0x5cab5c]
lea ecx, [esp + 0x18]
call fcn.00545796
mov eax, dword [esi + 0x1170]
lea ecx, [esi + 0x1168]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0053d7d1
cmp ebp, 5
jl 0x503e9b
mov eax, dword [esi + 0x1160]
lea eax, [ebp + eax*8 - 5]
imul eax, eax, 0x19
cmp byte [eax + 0x663b60], 0
lea eax, [eax + 0x663b60]
je 0x503e9b
push eax
jmp 0x503ea4
mov eax, dword [esi + 0x116c]
push dword [eax + ebp*4]
push ebp
push ebx
push dword [esi + 0xa8]
call edi
inc ebp
cmp ebp, 0xd
jl 0x503e50
xor ebx, ebx
push ebx
push ebx
push 0x14e
push dword [esi + 0xa8]
call edi
mov eax, dword [esi + 0x1160]
mov dword [esi + 0x1164], ebx
imul eax, eax, 0xd
xor ecx, ecx
cmp dword [esi + eax*4 + 0x940], ebx
setne cl
mov dword [esi + 0x10c], ecx
mov eax, dword [esi + eax*4 + 0xd50]
mov ecx, esi
mov dword [esi + 0x110], eax
call fcn.00503f89
push ebx
mov ecx, esi
call fcn.00543016
or dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0053eb4f
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x504d91
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5763c0
call fcn.00524444
sub esp, 0x82c
mov eax, dword [0x61d784]
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
and byte [ebp - 0x38], 0
push str._CG
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0053ecd8
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x14b
push dword [edi + 0x78]
call ebx
mov esi, 0x622c94
push esi
push dword [ebp - 0x10]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x504e53
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push 0xa
push ecx
push eax
call fcn.00525629
add esp, 0xc
lea eax, [ebp - 0x838]
push dword [edi + 0xdc]
push 0x800
push eax
lea eax, [ebp - 0x38]
push esi
push eax
push 0x5cabe0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x838]
lea ecx, [ebp - 0x10]
push eax
call fcn.0053ecd8
push esi
push dword [ebp - 0x10]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x504dde
push dword [ebp - 0x10]
push 0
push 0x143
push dword [edi + 0x78]
call ebx
jmp 0x504dde
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x504fe6
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x576410
call fcn.00524444
sub esp, 0x830
mov eax, dword [0x61d784]
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
lea eax, [edi + 0xe0]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push str.Tag_Group__
push eax
call fcn.0053ee58
and byte [ebp - 0x3c], 0
push str._CG
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0053ecd8
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x184
push dword [edi + 0xb4]
call ebx
mov esi, 0x622c94
push esi
push dword [ebp - 0x10]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x5050da
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push 0xa
push ecx
push eax
call fcn.00525629
add esp, 0xc
lea eax, [ebp - 0x83c]
push dword [edi + 0xdc]
push 0x800
push eax
lea eax, [ebp - 0x3c]
push esi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x10]
push eax
call fcn.0053ecd8
push esi
push dword [ebp - 0x10]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x50504f
push 0x5c896c
push str._:UEDS:
lea ecx, [ebp - 0x10]
call fcn.0053a701
push dword [ebp - 0x10]
push 0
push 0x180
push dword [edi + 0xb4]
call ebx
jmp 0x50504f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x505c0d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5764d4
call fcn.00524444
sub esp, 0x834
mov eax, dword [0x61d784]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x1ec]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x18]
push str.Tag_Group__
push eax
call fcn.0053ee58
and byte [ebp - 0x40], 0
push str._CG
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0053ecd8
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x184
push dword [esi + 0x144]
call edi
mov ebx, 0x622c94
push ebx
push dword [ebp - 0x10]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x505d4b
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
push 0xa
push ecx
push eax
call fcn.00525629
add esp, 0xc
lea eax, [ebp - 0x840]
push dword [esi + 0x1f0]
push 0x800
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x840]
lea ecx, [ebp - 0x10]
push eax
call fcn.0053ecd8
push ebx
push dword [ebp - 0x10]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x505c76
cmp dword [0x634108], 0
je 0x505cf9
push 0x5c896c
push str._:UEDS:
lea ecx, [ebp - 0x10]
call fcn.0053a701
jmp 0x505d34
push str._:UEDS:
lea ecx, [ebp - 0x10]
call fcn.0053aa84
cmp eax, 0xffffffff
je 0x505d34
add eax, 7
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0053a8b5
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0053ec88
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0053eb4f
push dword [ebp - 0x10]
push 0
push 0x180
push dword [esi + 0x144]
call edi
jmp 0x505c76
xor ebx, ebx
push ebx
push ebx
push 0x18b
push dword [esi + 0x144]
call edi
push 0x169
mov ecx, esi
mov edi, eax
call fcn.00543b26
cmp eax, ebx
je 0x505d7f
cmp edi, 1
jge 0x505d76
push ebx
jmp 0x505d78
push 1
mov ecx, eax
call fcn.00543e5c
push ebx
mov ecx, esi
call fcn.00543016
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0053eb4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x505dae
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x5764f0
call fcn.00524444
sub esp, 0x830
mov eax, dword [0x61d784]
or dword [ebp - 0x18], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
and byte [ebp - 0x3c], 0
push str._CG
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0053ecd8
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x14b
push dword [esi + 0x108]
call edi
mov ebx, 0x622c94
push ebx
push dword [ebp - 0x14]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x505eb0
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x3c]
push 0xa
push ecx
push eax
call fcn.00525629
add esp, 0xc
lea eax, [ebp - 0x83c]
push dword [esi + 0x1f0]
push 0x800
push eax
lea eax, [ebp - 0x3c]
push ebx
push eax
push 0x5cac6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x83c]
lea ecx, [ebp - 0x14]
push eax
call fcn.0053ecd8
push ebx
push dword [ebp - 0x14]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
je 0x505e97
push dword [ebp - 0x14]
push 0
push 0x143
push dword [esi + 0x108]
call edi
push dword [esi + 0x1ec]
push dword [ebp - 0x14]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
jne 0x505e97
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0x14]
call fcn.00524dbe
pop ecx
test eax, eax
pop ecx
jne 0x505e15
cmp dword [ebp - 0x10], 1
jg 0x505ef6
mov eax, dword [0x61d784]
mov dword [ebp - 0x10], eax
push 0x80d5
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00545796
push dword [ebp - 0x10]
xor ebx, ebx
push ebx
push 0x143
push dword [esi + 0x108]
call edi
push ebx
push ebx
push 0x14e
push dword [esi + 0x108]
call edi
and byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.0053eb4f
cmp dword [ebp - 0x18], 0xffffffff
je 0x505f0e
push 0
push dword [ebp - 0x18]
push 0x14e
push dword [esi + 0x108]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x50a046
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 8]
jne 0x50a05e
mov eax, dword [ebp + 0xc]
push 4
xor edi, eax
pop eax
mov ecx, edi
shr ecx, 0x18
mov bl, cl
movzx edx, cl
and bl, 0x80
mov esi, edx
neg bl
sbb ebx, ebx
and esi, 0x7f
and ebx, 0x14d
and cl, 1
and ebx, 0xff
shl esi, 1
xor esi, ebx
mov ebx, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr ebx, 1
xor ecx, ebx
xor ecx, esi
mov ebx, ecx
shl ebx, 8
xor ebx, esi
shl ebx, 8
xor ebx, ecx
xor ebx, edi
shl ebx, 8
xor ebx, edx
dec eax
mov edi, ebx
jne 0x50a063
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x50a052
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50a0c6
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x64f940
mov bl, byte [edi + 0x5cae24]
mov al, bl
mov byte [ebp - 1], bl
and al, 2
mov dl, bl
neg al
sbb al, al
and eax, 0xb4
and byte [ebp - 1], 1
sete cl
dec ecx
and ecx, 0x5a
shr dl, 2
mov byte [ebp - 2], cl
xor dl, cl
mov cl, bl
xor dl, al
shr cl, 1
xor cl, bl
xor dl, bl
shr cl, 1
cmp byte [ebp - 1], 0
sete bl
dec ebx
and ebx, 0xb4
xor cl, bl
mov bl, byte [edi + 0x5caf24]
xor cl, byte [ebp - 2]
mov byte [ebp - 1], bl
xor cl, al
mov al, bl
xor cl, byte [edi + 0x5cae24]
and al, 2
neg al
sbb al, al
and eax, 0xb4
and byte [ebp - 1], 1
mov byte [ebp - 2], al
mov al, byte [edi + 0x5caf24]
sete bl
dec ebx
and ebx, 0x5a
shr al, 2
xor al, bl
mov byte [ebp - 3], bl
xor al, byte [ebp - 2]
mov bl, byte [edi + 0x5caf24]
xor al, bl
mov byte [ebp - 5], al
mov al, bl
shr al, 1
xor al, bl
shr al, 1
cmp byte [ebp - 1], 0
sete bl
dec ebx
and ebx, 0xb4
xor al, bl
mov bl, byte [edi + 0x5caf24]
xor al, byte [ebp - 3]
mov byte [ebp - 0xc], bl
xor al, byte [ebp - 2]
xor al, bl
mov bl, byte [ebp - 5]
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0xc], cl
mov dword [esi - 0x400], ebx
mov bl, byte [edi + 0x5cae24]
mov byte [ebp - 0xb], cl
mov byte [ebp - 0xa], dl
mov byte [ebp - 9], bl
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 0xb], al
mov dword [esi], ebx
mov bl, byte [ebp - 5]
mov byte [ebp - 0xc], bl
mov bl, byte [edi + 0x5caf24]
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], al
add esi, 4
mov eax, dword [ebp - 0xc]
mov byte [ebp - 0xc], dl
mov dword [esi + 0x3fc], eax
mov al, byte [edi + 0x5cae24]
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
inc edi
mov eax, dword [ebp - 0xc]
cmp esi, 0x64fd40
mov dword [esi + 0x7fc], eax
jl 0x50a0d6
and dword [0x5cb024], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50c42a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c0]
cmp eax, 0x270
jb 0x50c4ed
cmp eax, 0x271
jne 0x50c44f
push 0x1105
call fcn.0050c3eb
push ebx
push edi
mov ecx, esi
mov ebx, 0xe3
mov edx, bind
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edi
and eax, edx
xor eax, edi
mov edi, eax
and edi, 1
shr eax, 1
mov edi, dword [edi*4 + 0x5cb060]
xor edi, eax
xor edi, dword [ecx + 0x634]
mov dword [ecx], edi
add ecx, 4
dec ebx
jne 0x50c45d
lea ecx, [esi + 0x38c]
mov ebx, 0x18c
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
xor eax, edi
and eax, edx
xor eax, edi
mov edi, eax
and edi, 1
shr eax, 1
mov edi, dword [edi*4 + 0x5cb060]
xor edi, eax
xor edi, dword [ecx - 0x38c]
mov dword [ecx], edi
add ecx, 4
dec ebx
jne 0x50c491
mov ecx, dword [esi + 0x9bc]
pop edi
mov eax, ecx
pop ebx
xor eax, dword [esi]
and eax, edx
xor eax, ecx
mov ecx, eax
and ecx, 1
shr eax, 1
mov ecx, dword [ecx*4 + 0x5cb060]
xor ecx, dword [esi + 0x630]
xor ecx, eax
and dword [esi + 0x9c0], 0
mov dword [esi + 0x9bc], ecx
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4]
inc eax
mov dword [esi + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
pop esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x510795
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c4], 0xffffffff
je 0x5107ad
push 1
pop eax
jmp 0x510832
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov dword [esi + 4], eax
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea edi, [esi + 0x1c8]
push 0x10
push 0
push edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], eax
call fcn.00524810
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0xc]
mov word [esi + 0x1ca], ax
mov word [edi], bx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
mov dword [esi + 0x1cc], eax
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x1c4], eax
pop ebx
jne 0x51081e
push 2
jmp 0x5107a7
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
inc eax
neg eax
sbb eax, eax
and al, 0xfd
add eax, 3
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x51085b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1d8], 0xffffffff
je 0x510879
push 1
pop eax
jmp 0x510964
push ebx
lea edi, [esi + 0x1dc]
push 0x10
push 0
push edi
call fcn.00524810
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x1de], ax
mov ax, word [ebp + 0x10]
push 0
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [ebp + 0x14]
cmp ebx, eax
jne 0x51090c
cmp dword [ebp + 0x18], 0xffffffff
je 0x51090c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x10
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x51090c
push 0xff
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00529d40
and byte [ebp - 0x11], 0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 0x1e0], eax
jmp 0x510912
mov dword [esi + 0x1e0], ebx
push dword [esi + 0x28]
movsx eax, word [ebp + 0x10]
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x1d8], eax
pop ebx
jne 0x510935
push 2
jmp 0x510873
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x51094b
push 3
jmp 0x510873
push dword [ebp + 0xc]
push dword [esi + 0x1d8]
call dword [sym.imp.WS2_32.dll_listen]
inc eax
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
pop edi
pop esi
leave
ret 0x14

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
test edi, edi
jg 0x510a7f
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp dword [esi + 0x5fc], 0
je 0x510a94
push edi
mov ecx, esi
push dword [esp + 0x10]
call fcn.0051125b
mov esi, dword [esi + 0x1c4]
cmp esi, 0xffffffff
jne 0x510aa4
push 1
pop eax
jmp 0x510ab2
push 0
push edi
push dword [esp + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
ret 8
Function at 0x510bfb
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [esp + 0xc], 0
push esi
mov esi, ecx
jle 0x510c18
push 0
push dword [esp + 0x14]
call fcn.00510b9c
test eax, eax
je 0x510c18
xor eax, eax
jmp 0x510c2e
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esi + 0x1c4]
call dword [sym.imp.WS2_32.dll_recv]
pop esi
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
cmp dword [ebp + 0xc], 0
jle 0x510dba
xor edi, edi
cmp dword [ebp + 0x10], edi
jle 0x510ce8
push edi
mov ecx, esi
push dword [ebp + 0x10]
call fcn.00510b9c
test eax, eax
jne 0x510dba
push 2
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x1c4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jl 0x510dba
xor edx, edx
cmp eax, edx
jle 0x510d22
mov cl, byte [edi + ebx]
cmp cl, 0xd
jne 0x510d18
cmp byte [edi + ebx + 1], 0xa
je 0x510d56
cmp cl, 0xa
je 0x510d88
inc edi
cmp edi, eax
jl 0x510d09
push edx
push eax
push ebx
push dword [esi + 0x1c4]
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [esi + 0x5fc], 0
mov edi, eax
je 0x510d45
push edi
push ebx
mov ecx, esi
call fcn.0051125b
add dword [ebp - 4], edi
and byte [ebx + edi], 0
add ebx, edi
sub dword [ebp + 0xc], edi
jmp 0x510cc4
lea eax, [edi + 2]
push edx
push eax
push ebx
push dword [esi + 0x1c4]
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [esi + 0x5fc], 0
je 0x510d7a
push eax
push ebx
mov ecx, esi
call fcn.0051125b
mov eax, dword [ebp - 4]
and byte [edi + ebx + 2], 0
lea eax, [edi + eax + 2]
jmp 0x510dbd
lea eax, [edi + 1]
push edx
push eax
push ebx
push dword [esi + 0x1c4]
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [esi + 0x5fc], 0
je 0x510dac
push eax
push ebx
mov ecx, esi
call fcn.0051125b
mov eax, dword [ebp - 4]
and byte [edi + ebx + 1], 0
lea eax, [edi + eax + 1]
jmp 0x510dbd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x510f74
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x510f93
cmp byte [eax + esi], 0x40
je 0x510f92
dec eax
jmp 0x510f85
inc eax
add eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x510fa4
push 2
jmp 0x510fda
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax]
mov byte [ebp + 8], cl
mov cl, byte [eax + 1]
mov byte [ebp + 9], cl
mov cl, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [ebp + 0xa], cl
mov byte [ebp + 0xb], al
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
test esi, esi
je 0x510fa0
push esi
call edi
inc eax
cmp eax, dword [ebp + 0x10]
jle 0x510fdd
push 1
pop eax
jmp 0x510fe9
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x511006
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [ebp + 0x10], 0
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_gethostname]
push edi
mov ebx, ecx
mov edi, 0x100
jne 0x51104c
lea eax, [ebp - 0x110]
push edi
push eax
call esi
cmp eax, 0xffffffff
je 0x51104c
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
mov ecx, ebx
push dword [ebp + 8]
push eax
call fcn.00510f74
test eax, eax
je 0x5110b9
mov eax, dword [ebx + 0x1c4]
cmp eax, 0xffffffff
je 0x511092
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0x10
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x511092
mov esi, dword [ebp + 0xc]
dec esi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.00529d40
add esp, 0xc
and byte [edi + esi], 0
jmp 0x5110b9
lea eax, [ebp - 0x110]
push edi
push eax
call esi
cmp eax, 0xffffffff
je 0x5110bd
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
mov ecx, ebx
push dword [ebp + 8]
push eax
call fcn.00510f74
test eax, eax
jne 0x5110bd
xor eax, eax
jmp 0x5110c0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x51133c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov edx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp edx, ebx
push edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], ebx
je 0x511389
mov eax, dword [ebp + 0xc]
lea edi, [edx + eax*4]
mov eax, dword [edx + eax*4]
mov dword [ebp + 8], eax
lea eax, [esi + esi*2]
shl eax, 2
xor esi, 1
mov ebx, dword [ebp + eax - 0x40]
lea ecx, [ebp + eax - 0x40]
lea eax, [ebp + eax - 0x38]
mov dword [edi], ebx
mov dword [ecx], edx
mov edx, dword [ebp + 8]
inc dword [eax]
test edx, edx
jne 0x511359
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 8], 1
je 0x51146c
xor eax, eax
mov edi, ecx
lea esi, [ebp + eax - 0x40]
xor edi, 2
lea edx, [ebp + eax - 0x34]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edi
lea eax, [edi + edi*2]
shl eax, 2
mov dword [ebp + eax - 0x2c], ebx
mov dword [ebp + eax - 0x38], ebx
cmp dword [esi + 8], ebx
je 0x511456
lea eax, [edi + edi*2]
lea ebx, [ebp + eax*4 - 0x40]
mov eax, dword [ebp - 8]
mov dword [ebp + 8], eax
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
je 0x51140a
cmp dword [esi + 8], eax
je 0x51140a
cmp dword [ebp + 8], eax
je 0x511403
cmp dword [edx + 8], eax
je 0x511403
push dword [ebp + 0x14]
push dword [edx]
push dword [esi]
call dword [ebp + 0x10]
add esp, 0xc
test eax, eax
jle 0x511403
mov eax, dword [ebp - 0xc]
jmp 0x511416
dec dword [ebp - 4]
mov eax, esi
jmp 0x511419
cmp dword [ebp + 8], eax
je 0x511448
cmp dword [edx + 8], eax
je 0x511448
mov eax, edx
dec dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
dec dword [eax + 8]
mov edx, dword [ecx + edx*4]
mov dword [eax], edx
cmp dword [ebx + 8], 0
jne 0x511430
mov dword [ebx], ecx
jmp 0x511439
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
mov eax, dword [ebx + 8]
mov edx, dword [ebp - 0xc]
inc eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
jmp 0x5113d7
xor edi, 1
cmp dword [esi + 8], eax
jne 0x5113c7
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
shl dword [ebp - 8], 1
lea eax, [ecx + ecx*2]
shl eax, 2
cmp dword [ebp + eax - 0x2c], ebx
jne 0x51139d
lea eax, [ecx + ecx*2]
shl eax, 2
mov ecx, dword [ebp + eax - 0x38]
cmp ecx, 1
jbe 0x511485
mov edx, dword [ebp + eax - 0x3c]
mov esi, dword [ebp + 0xc]
mov dword [edx + esi*4], ebx
mov edx, dword [ebp + 0x18]
pop edi
pop esi
cmp edx, ebx
pop ebx
je 0x511491
mov dword [edx], ecx
mov eax, dword [ebp + eax - 0x40]
leave
ret