joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x47278e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x472750
mov eax, dword [edi]
jmp 0x472879
cmp eax, 0x4e0
jb 0x472879
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4727b0
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x472800
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x472c71
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x472c60
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x475250
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638455
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6d3f68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
call fcn.0044a480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4753a6
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x47539f
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
nop
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x475325
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x475391
cmp byte [ebp + 0x14], 0
je 0x47533f
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 1
push 6
push edi
call ebx
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x475352
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp dword [esi + 4], 0x17
jne 0x47536c
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1b
push 0x29
push edi
call ebx
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x47538a
push 5
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4753d5
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4752f0
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4753ea
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4753e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4753e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4753a9
push edx
push ecx
call fcn.0062ea39
add esp, 8
mov ecx, dword [ebp + 0x40]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
test ecx, ecx
je 0x475414
mov esi, dword [ecx]
lea eax, [ebp + 0x1c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret
Function at 0x4762c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638633
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6d3f68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], edx
mov byte [esi + 0x64], 0
mov dword [esi + 0x68], eax
test byte [edi + 8], 8
je 0x4763be
test dl, 0x10
jne 0x4763be
mov al, 1
jmp 0x4763c0
xor al, al
mov edx, dword [ebp + 0x10]
mov byte [esi + 0x6c], al
mov dword [esi + 0x70], edx
push dword [edi + 0x18]
call fcn.00476500
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x479990
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6389f3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6d3f68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ecx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0x88
mov dword [ebp - 0x1c], 0
call fcn.0062e7b8
add esp, 4
mov dword [ebp - 0x1c], eax
add eax, 0x10
mov dword [ebp - 4], 1
push esi
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0044d550
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
add esi, 0x28
push edi
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0044d550
lea eax, [edi + 0x18]
mov byte [ebp - 4], 3
lea ecx, [esi + 0x18]
push eax
call fcn.0044d550
lea eax, [edi + 0x30]
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
push eax
call fcn.0044d550
lea eax, [edi + 0x48]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x48]
push eax
call fcn.0044d550
mov edx, dword [ebp - 0x1c]
mov dword [edx], ebx
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov word [edx + 0xc], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 6
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx + 0xd], al
jne 0x479aba
mov edx, dword [ebp - 0x10]
mov esi, ebx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov edi, dword [eax + 0x10]
mov ebx, esi
jb 0x479a86
mov eax, dword [eax]
cmp dword [edx + 0x14], 0x10
mov ecx, edx
jb 0x479a90
mov ecx, dword [edx]
mov edx, dword [ebp - 0x18]
push edi
push eax
call fcn.0044f970
add esp, 8
test eax, eax
jns 0x479aa5
mov esi, dword [esi]
jmp 0x479aa8
mov esi, dword [esi + 8]
mov edx, dword [ebp - 0x10]
shr eax, 0x1f
cmp byte [esi + 0xd], 0
je 0x479a76
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0x1e1e1e1
je 0x479aea
push edx
push eax
push ebx
call fcn.004579e0
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044ab10
int3
Function at 0x480e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6d78a0]
sub esp, 0x24
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, dword [eax]
je 0x480f83
test edi, edi
je 0x480f83
push 0x18
call dword [0x6d4188]
mov esi, eax
add esp, 4
test esi, esi
jne 0x480e9b
call dword [0x6d4190]
jmp 0x480ee8
push 5
call dword [0x6d4188]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x480ec3
call dword [0x6d4190]
push esi
mov dword [esi + 8], ebx
call dword [0x6d418c]
add esp, 4
xor esi, esi
jmp 0x480ee8
mov dword [esi + 8], ebx
mov dword [esi], 0
mov dword [esi + 4], 1
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
push esi
mov dword [eax], 1
mov byte [eax + 4], 0
call fcn.0045cfa0
mov edx, eax
add esp, 4
test edx, edx
je 0x480f66
movaps xmm0, xmmword [0x6c6e00]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 4], 0
movaps xmm0, xmmword [0x6c6d90]
movups xmmword [ebp - 0x14], xmm0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x1f
jb 0x480f23
push edx
lea eax, [ebp - 0x23]
mov byte [ebp - 4], 0
push eax
sub esp, 0x18
mov ecx, esp
push 2
push 0x6c3194
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0044e760
call fcn.00481200
add esp, 0x20
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x6d7898]
xor edx, edx
push 0
mov ecx, edi
mov dword [edi + 0x30], eax
call fcn.0045fea0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x480f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6d3f68]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [0x6d78a0]
mov ebx, dword [eax]
test ecx, ecx
je 0x4810e3
test ebx, ebx
je 0x4810e3
mov esi, dword [ebp + 0x20]
add esi, 5
push 0x18
mov dword [ebp - 0x14], esi
call dword [0x6d4188]
mov edi, eax
add esp, 4
test edi, edi
jne 0x480ffe
call dword [0x6d4190]
jmp 0x48102a
test esi, esi
jne 0x48110f
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], esi
mov dword [edi], 0
mov dword [edi + 4], 1
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov esi, dword [edi + 8]
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x24], 0x10
push dword [ebp + 0x20]
cmovae eax, dword [ebp + 0x10]
push eax
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x20]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push edi
mov byte [eax + esi + 4], 0
call fcn.0045cfa0
mov edx, eax
add esp, 4
test edx, edx
je 0x4810c6
movaps xmm0, xmmword [0x6c6e20]
xor ecx, ecx
movups xmmword [ebp - 0x38], xmm0
mov byte [ebp - 0x18], 0
movaps xmm0, xmmword [0x6c6dd0]
movups xmmword [ebp - 0x28], xmm0
mov al, byte [ebp - 0x38]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0x1f
jb 0x481083
push edx
lea eax, [ebp - 0x37]
mov byte [ebp - 0x18], 0
push eax
sub esp, 0x18
mov ecx, esp
push 2
push 0x6c3194
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0044e760
call fcn.00481200
add esp, 0x20
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x6d7898]
xor edx, edx
push 0
mov ecx, ebx
mov dword [ebx + 0x30], eax
call fcn.0045fea0
add esp, 4
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x481147
mov ecx, dword [ebp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48113d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x48113d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call dword [0x6d4188]
mov esi, eax
add esp, 4
test esi, esi
jne 0x481006
call dword [0x6d4190]
push edi
mov dword [edi + 8], esi
call dword [0x6d418c]
add esp, 4
xor edi, edi
jmp 0x48102a
push edx
push ecx
call fcn.0062ea39
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x48b0a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x6d3f68]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x48b16b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.004a55e0
add esp, 0xc
test eax, eax
jne 0x48b16b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.004a55e0
add esp, 0xc
test eax, eax
jne 0x48b16b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x48b0f4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004a55b0
add esp, 0xc
test eax, eax
je 0x48b128
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004a55b0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x48b12a
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x48b156
mov al, byte [esi]
push eax
call fcn.00498840
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x48b138
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0062e5ad
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.0062e5ad
add esp, 0x18
ret
Function at 0x4957d0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x608], 0
je 0x495814
push 1
push edi
call fcn.00486cd0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00486cd0
add esp, 0x24
mov eax, esi
pop edi
pop esi
ret
mov edx, dword [esp + 0x10]
mov ecx, edx
sub ecx, 0
je 0x495829
sub ecx, 1
je 0x495829
sub ecx, 1
jne 0x49585a
push dword [edi + 0x598]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [edx*2 + 0x63ba30]
push 1
add eax, edx
push 2
push eax
call esi
push dword [edi + 0x598]
push 1
push dword [esp + 0x30]
push dword [esp + 0x30]
call esi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

Function at 0x495f60
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov eax, dword [0x6d3f68]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ebx
mov ebx, dword [esp + 0x114]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x128]
mov ecx, dword [ebx + 0x424]
cmp edx, ecx
push esi
sete al
mov esi, 0x448
push edi
lea eax, [eax*4 + 0x420]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x458
cmove esi, eax
mov eax, dword [ebx + 0x548]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x49606e
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x438]
cmp dword [eax + ebx], 0x495b20
jne 0x49606e
cmp dword [esi], 0
je 0x495ff8
test edi, edi
je 0x49606e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.004a3d90
add esp, 0x14
cmp eax, 0xffffffff
je 0x49606e
test al, 1
je 0x49606e
mov ecx, dword [esi]
test ecx, ecx
jne 0x49604b
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x496067
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x49606e
add dword [esi + 8], eax
jmp 0x49606e
mov dword [esi + 4], 0
push 0
push dword [esp + 0x130]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4960d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4960a8
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x4960dc
push 0x100
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004bd020
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.00495860
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xd44], esi
mov eax, 0x37
jmp 0x4960d9
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0062e5ad
add esp, 0x10c
ret
Function at 0x496510
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x49652d
push eax
call fcn.0048f490
add esp, 4
test eax, eax
jne 0x49654c
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x49652a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49652a
mov al, 1
ret
Function at 0x498320
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x49833a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x63bea8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x498383
test ebp, ebp
je 0x498374
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4983a9
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4983a9
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x49845f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4983c6
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x498455
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x498455
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4983f8
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x498410
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x498420
test ebp, ebp
je 0x49844c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6d0004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x6d0004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x49c450
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x49c464
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov al, byte [eax + 0xe7]
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x49c478
xor al, al
ret
push eax
push 0
call fcn.00496440
add esp, 8
mov al, 1
ret
Function at 0x4a22b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x6d3f68]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2496
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x20], xmm0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4a2484
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4a2484
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a2484
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4a2484
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4a2484
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4a2484
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x4a2484
push ebx
push 0x63d644
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.00484e20
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a23e2
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4a2484
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4a2484
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x4a2437
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a243c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4a2426
cmp esi, 0xfffffffc
je 0x4a2469
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4a2484
cmp esi, 0xfffffffd
je 0x4a2469
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4a2484
cmp esi, 0xfffffffe
je 0x4a2469
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4a2484
cmp esi, 0xffffffff
je 0x4a2469
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4a2484
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0062e5ad
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0062e5ad
add esp, 0x34
ret