joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0eb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bcfb
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x14]
mov dword [eax + 0x6e0], 0
mov ecx, dword [ebp - 0xa8]
cmp dword [ecx + 4], 0
jne 0x4e0fc4
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0xa8]
call fcn.004e0850
mov dword [ebp - 0xb0], 0x40000000
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
push 0
mov eax, dword [ebp - 0xb0]
push eax
push 0
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0xa8]
mov edx, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [edx + 0x24]
call eax
mov ecx, eax
call fcn.00472ca0
push eax
mov ecx, dword [ebp - 0xa8]
call fcn.0047b660
push 1
mov ecx, dword [ebp - 0xa8]
mov ecx, dword [ecx + 0x14]
call fcn.004d5ee0
push eax
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x14]
mov eax, dword [edx + 0x24]
call eax
mov ecx, eax
call fcn.00472780
mov ecx, dword [eax]
push ecx
push 0x30
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0xa8]
mov edx, dword [eax]
mov ecx, dword [ecx + 0x14]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xb8]
call fcn.00481cd0
mov byte [ebp - 0xa9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00481030
movzx edx, byte [ebp - 0xa9]
test edx, edx
je 0x4e1041
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 0x14]
add ecx, 0x6d0
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 0x14]
add eax, 0x6d0
push eax
push 0
push 0x1002
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0xa8]
mov byte [ecx + 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret 4
Function at 0x4e10b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.00483cc0
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6e8], 0
je 0x4e114c
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x6e8]
call fcn.004e0850
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e111d
push 0
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x6e8]
call fcn.0047b6a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4e114c
push 0x54
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6e8]
call fcn.0047b6a0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e12b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a83f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [ebp + 0x18]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x18]
call fcn.00486480
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6e8], 0
je 0x4e1360
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x6e8]
call fcn.004e0850
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e1331
push 0
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x6e8]
call fcn.0047b6a0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4e1360
push 0x54
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x6e8]
call fcn.0047b6a0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ec22
mov esp, ebp
pop ebp
ret 0x14
Function at 0x50b2b9
Capabilities:
Read file on windows

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

Function at 0x50c8e8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0050c5a8
Function at 0x515990
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov eax, 1
push ebx
push ebp
push esi
mov edx, dword [ecx + 0x10c]
push edi
lea edi, [ecx + 0x114]
mov dword [esp + 0x10], 0x3020100
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
nop dword [eax + eax]
add ecx, 0x4040404
mov dword [edi + eax*4], ecx
inc eax
cmp eax, edx
jbe 0x5159c0
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
xor esi, esi
test ebp, ebp
je 0x515a14
or edx, 0xffffffff
sub edx, edi
nop
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
movzx ecx, byte [esi + eax]
or ebx, ecx
mov al, byte [ecx + edi]
mov byte [esi + ebp], al
mov ebp, dword [esp + 0x1c]
mov byte [edi - 1], al
lea eax, [edi + 1]
add eax, ecx
mov cl, byte [eax - 2]
lea eax, [eax - 1]
mov byte [eax], cl
lea ecx, [edx + eax]
test ecx, ecx
jns 0x515a00
inc esi
cmp esi, ebp
jb 0x5159e0
mov eax, dword [esp + 0x20]
pop edi
pop esi
shr ebx, 2
pop ebp
mov dword [eax + 0x10c], ebx
pop ebx
pop ecx
ret
Function at 0x519c20
Capabilities:
Get hostname

Disassembly:
sub esp, 0x20
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
test byte [esi + 0x44], 1
jne 0x519c49
mov dword [esi], 0x100
cmp dword [esi + 0x38], ebx
jne 0x519c55
mov dword [esi + 0x38], 0x4d0
cmp dword [esi + 4], ebx
jne 0x519c61
mov dword [esi + 4], 0x7d0
cmp dword [esi + 8], ebx
jne 0x519c6d
mov dword [esi + 8], 3
push dword [esi + 0x84]
call fcn.0051df30
add esp, 4
test eax, eax
jne 0x519d0a
test dword [esi], 0x200
je 0x519ca2
pop edi
pop esi
mov eax, 0x1a
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046ec22
add esp, 0x20
ret
push 0x7f000001
mov dword [esp + 0x18], 2
call dword [sym.imp.WS2_32.dll_htonl]
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0051c3d0
add esp, 0x14
test eax, eax
jne 0x519e34
push eax
push dword [esp + 0x10]
push esi
call fcn.0051cbd0
push dword [esp + 0x18]
mov ebx, eax
call fcn.0051d910
add esp, 0x10
test ebx, ebx
je 0x519d0a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046ec22
add esp, 0x20
ret
push ebp
cmp dword [esi + 0x28], edi
jne 0x519dd7
mov ebp, 0x40
mov dword [esi + 0x28], edi
push ebp
mov dword [esp + 0x18], ebp
call dword [0x5a8f50]
mov edi, eax
add esp, 4
test edi, edi
jne 0x519d46
lea eax, [ebp - 0x31]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046ec22
add esp, 0x20
ret
push ebp
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x519d7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x519d83
mov eax, dword [esp + 0x14]
add ebp, ebp
add eax, eax
push eax
push edi
mov dword [esp + 0x1c], eax
call dword [0x5a8f54]
add esp, 8
test eax, eax
je 0x519da9
mov edi, eax
jmp 0x519d46
test eax, eax
je 0x519d86
mov byte [edi], 0
push 0x2e
push edi
call fcn.004efd70
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x519dd7
push 4
call dword [0x5a8f50]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
jne 0x519db0
mov ebx, 0xf
jmp 0x519e23
lea eax, [ebp + 1]
push eax
call fcn.0051e600
mov ecx, dword [esi + 0x24]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
cmp dword [eax], 0
jne 0x519dd0
mov ebx, 0xf
jmp 0x519e23
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0
jne 0x519de4
mov dword [esi + 0x2c], 0
cmp dword [esi + 0x34], 0
jne 0x519e04
push 0x5729b4
call fcn.0051e600
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
mov ecx, 0xf
cmove ebx, ecx
test dword [esi + 0x44], 0x800000
jne 0x519e23
mov eax, 0xa
mov dword [esi + 0xd4], 0x1388
mov word [esi + 0xd0], ax
test edi, edi
je 0x519e31
push edi
call dword [0x5a8f58]
add esp, 4
mov eax, ebx
pop ebp
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x20
ret
Function at 0x51d750
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
test ebx, ebx
je 0x51d7bb
mov edi, dword [esp + 0xc]
test edi, edi
je 0x51d7bb
push esi
push 0x14
call fcn.00519810
mov esi, eax
add esp, 4
test esi, esi
jne 0x51d77a
lea eax, [esi + 0xf]
pop esi
pop edi
pop ebx
ret
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x51d7d0
push 0
push 0
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0x51d7b3
push esi
call dword [0x5a8f58]
add esp, 4
mov eax, 3
pop esi
pop edi
pop ebx
ret
mov dword [edi], esi
xor eax, eax
pop esi
pop edi
pop ebx
ret
pop edi
mov eax, 2
pop ebx
ret

Function at 0x51e860
Capabilities:
Generate random numbers via rtlgenrandom
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
xor esi, esi
sub eax, 1
je 0x51e950
sub eax, 1
je 0x51e89a
sub eax, 2
jne 0x51e8d4
push ebx
lea eax, [edi + 8]
push ebp
push eax
call fcn.0051ea80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
push dword [edi + 8]
push ebx
push 1
push ebp
call fcn.004fd0f5
add esp, 0x10
test eax, eax
je 0x51e8d4
nop dword [eax]
add esi, eax
cmp esi, ebx
je 0x51e957
push dword [edi + 8]
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + ebp]
push 1
push eax
call fcn.004fd0f5
add esp, 0x10
test eax, eax
jne 0x51e8b0
mov eax, dword [edi]
sub eax, 2
jne 0x51e8e6
push dword [edi + 8]
call fcn.004f2d0d
add esp, 4
mov eax, dword [edi + 4]
mov dword [edi + 0x210], 0
test al, 1
jne 0x51e902
mov dword [edi], 1
jmp 0x51e870
test al, 2
jne 0x51e939
push 0x54fd04
push str._dev_urandom
mov dword [edi], 2
call fcn.004f2c80
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x51e939
push 0
push 4
push 0
push eax
call fcn.0054862e
add esp, 0x10
jmp 0x51e870
lea eax, [edi + 8]
mov dword [edi], 4
push eax
call fcn.0051e9f0
add esp, 4
jmp 0x51e870
push ebx
push ebp
call sub.ADVAPI32.dll_SystemFunction036
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x51f370
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x51f3a8
cmp eax, 0xea
jne 0x51f405
mov eax, dword [esp + 4]
test eax, eax
je 0x51f405
inc eax
push eax
call dword [0x5a8f50]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x51f405
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51f3f4
mov ecx, dword [esp + 4]
cmp ecx, 1
je 0x51f3f4
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
pop ecx
ret
push dword [esi]
call dword [0x5a8f58]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0x5217c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
test eax, eax
je 0x5218a3
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x5218a3
push esi
push edi
push 0x54fd04
push eax
call fcn.004f2c80
mov edi, eax
add esp, 8
test edi, edi
jne 0x52180d
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
mov ecx, 1
cmp ecx, eax
pop edi
sbb esi, esi
and esi, 0xa
add esi, 4
mov eax, esi
pop esi
pop ebx
ret
push 2
push 0
push edi
call fcn.004fd47a
add esp, 0xc
test eax, eax
je 0x521832
push edi
mov esi, 0xe
call fcn.004f2d0d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
push edi
call fcn.004fe1c7
mov esi, eax
add esp, 4
test esi, esi
js 0x52181e
push 0
push 0
push edi
call fcn.004fd47a
add esp, 0xc
test eax, eax
jne 0x52181e
test esi, esi
je 0x521892
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
push ebx
call fcn.00520ed0
add esp, 8
test eax, eax
jne 0x52187e
push edi
lea esi, [eax + 0xf]
call fcn.004f2d0d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
push edi
push esi
push 1
push eax
call fcn.004fd0f5
add esp, 0x10
cmp eax, esi
jne 0x52181e
add dword [ebx + 4], esi
xor esi, esi
push edi
call fcn.004f2d0d
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, 2
pop ebx
ret
Function at 0x522a40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x224]
mov dword [esi], ecx
mov eax, dword [eax + 0xc0]
test eax, eax
je 0x522a80
push eax
call fcn.0051e600
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x522ab5
cmp dword [esp + 0x220], 0
je 0x522ad0
test ecx, ecx
je 0x522a98
push ecx
call dword [0x5a8f58]
add esp, 4
push str.CARES_HOSTS
call fcn.005120bb
push eax
call fcn.0051e600
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x522bc4
mov eax, 0xf
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046ec22
add esp, 0x214
ret
test ecx, ecx
jne 0x522bc4
push 0x104
push ecx
lea eax, [esp + 0x14]
push eax
call fcn.004efc10
add esp, 0xc
mov dword [esp + 8], 0x104
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x522b2e
mov eax, 4
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046ec22
add esp, 0x214
ret
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x114]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x522b75
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x572d8c]
mov word [ecx + 4], ax
mov al, byte [0x572d8e]
mov byte [ecx + 6], al
lea eax, [esp + 0xc]
push eax
call fcn.0051e600
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x522bc4
lea eax, [ecx + 0xf]
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0046ec22
add esp, 0x214
ret
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [esp + 0x214]
pop esi
xor ecx, esp
call fcn.0046ec22
add esp, 0x214
ret

Function at 0x524ce0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 2
jne 0x524cee
lea ecx, [eax + 2]
jmp 0x524cf6
cmp eax, 0x17
jne 0x524d59
lea ecx, [eax - 7]
push esi
sub eax, 2
je 0x524d21
sub eax, 0x15
je 0x524d11
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x524d39
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.00524bf0
jmp 0x524d2f
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.00524890
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x524d48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x524d48
xor eax, eax
pop esi
ret
xor eax, eax
cmp esi, 0xffffffff
pop esi
setg al
lea eax, [eax*2 - 1]
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
ret
Function at 0x525a30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
movzx ecx, word [ebx]
mov eax, ecx
sub eax, 2
je 0x525a52
sub eax, 0x15
je 0x525a48
xor eax, eax
pop ebx
ret
mov dword [esp + 0xc], 0x1c
jmp 0x525a5a
mov dword [esp + 0xc], 0x10
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x11
push 2
push ecx
push edi
call fcn.005296a0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x525a90
call fcn.004fd50e
pop edi
pop esi
pop ebx
mov eax, dword [eax]
sub eax, 0x273f
neg eax
sbb eax, eax
ret
push dword [esp + 0x14]
push ebx
push esi
push edi
call fcn.005292d0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x525ac1
call fcn.004fd50e
cmp dword [eax], 0x2714
je 0x525a90
push esi
push edi
call fcn.00529290
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
push esi
push edi
test eax, eax
je 0x525ae6
call fcn.00529290
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
call fcn.00529290
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x5292d0
Capabilities:
Connect socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x5292fd
mov eax, dword [eax + 8]
test eax, eax
je 0x5292fd
push dword [ecx + 0xb8]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call eax
add esp, 0x10
ret
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
ret
Function at 0x5296e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x529713
mov eax, dword [eax + 0xc]
test eax, eax
je 0x529713
push dword [ecx + 0xb8]
push 0
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
add esp, 0x1c
ret
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_recv]
ret

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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x529769
mov eax, dword [eax + 0xc]
test eax, eax
je 0x529769
push dword [ecx + 0xb8]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call eax
add esp, 0x1c
ret
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
ret

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

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
mov eax, dword [ecx + 0xb4]
test eax, eax
je 0x5297d2
mov edx, dword [eax + 0x10]
test edx, edx
je 0x5297d2
push dword [ecx + 0xb8]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 1
push eax
push dword [esp + 0x1c]
call edx
add esp, 0x10
add esp, 8
ret
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
add esp, 8
ret
Function at 0x5297f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [ebx + 0x88]
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x52982c
cmp dword [eax], 0
je 0x52982c
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046ec22
add esp, 0x24
ret
push ebp
push edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x529873
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebp
cmp eax, 0xffffffff
je 0x529969
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x529895
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebp
cmp eax, 0xffffffff
je 0x529969
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x5298c7
cmp dword [esi + 0x68], 0
je 0x5298c7
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov word [esp + 0x14], ax
push dword [esi + 0x68]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
mov eax, 0x10
jmp 0x529958
cmp eax, 0x17
jne 0x5298f6
cmp dword [ebx + 0x5c], 0
jne 0x5298f6
lea eax, [esi + 0x6c]
mov edx, 0x572df8
mov dword [esp + 0x10], eax
mov ecx, eax
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x529927
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5298e5
cmp dword [ebx + 4], 0x17
jne 0x529912
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1b
push 0x29
push edi
call ebp
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046ec22
add esp, 0x24
ret
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
movups xmmword [esp + 0x14], xmm0
mov eax, 0x17
movq qword [esp + 0x24], xmm0
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x10]
movups xmm0, xmmword [eax]
mov eax, 0x1c
movups xmmword [esp + 0x1c], xmm0
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x5298f6
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x24
ret
Function at 0x52a230
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x52a256
push edi
mov edi, dword [esp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x52a244
pop edi
mov eax, edx
pop esi
ret

Function at 0x52a260
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x52a294
push ebp
mov ebp, dword [esp + 0x14]
movzx eax, byte [esi + ebp]
push eax
call fcn.0051e560
movzx eax, al
inc esi
xor eax, edi
add esp, 4
imul edi, eax, 0x1000193
cmp esi, ebx
jb 0x52a276
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret