joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407590
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x40762b
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x40762b
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x40762b
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x40762b
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x40762b
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
test eax, eax
jne 0x40762b
mov eax, dword [esi]
test eax, eax
je 0x40761a
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov dword [esi], 0
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x8003
push dword [esi]
mov dword [ebp - 4], 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x407697
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x407661
mov ecx, dword [eax]
push 0
push dword [eax + 0x10]
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407697
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4076ae
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x4076ae
mov dword [ebp - 4], eax
jmp 0x4076b9
mov dword [ebp - 4], 0
test bl, bl
jne 0x4076d2
mov eax, dword [ebp - 8]
test eax, eax
je 0x4076c7
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004073f0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407f80
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab12d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
xorps xmm0, xmm0
xor ecx, ecx
mov edx, 7
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov dword [ebp - 0x18], edx
movups xmmword [ebp - 0x2c], xmm0
mov word [ebp - 0x2c], si
mov dword [ebp - 4], esi
mov edi, eax
cmp dword [eax + 0x14], edx
jbe 0x407fed
mov edi, dword [eax]
mov esi, edi
mov dword [ebp - 0x34], edi
jmp 0x407ff2
mov esi, eax
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
lea eax, [edx + eax*2]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp edi, eax
je 0x4080a6
nop dword [eax]
movzx edi, word [esi]
cmp ecx, edx
jae 0x408034
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax + ecx*2], di
mov word [eax + ecx*2 + 2], dx
jmp 0x408045
push edi
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b900
mov eax, 0x5c
cmp ax, di
jne 0x40808a
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40808a
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40808a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40809d
mov edx, dword [ebp - 0x18]
add esi, 2
cmp esi, dword [ebp - 0x38]
je 0x4080a6
mov ecx, dword [ebp - 0x1c]
jmp 0x408010
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x2d], 0
jmp 0x4080aa
mov byte [ebp - 0x2d], 1
cmp edx, 7
jbe 0x4080dd
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4080d3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080fe
push edx
push ecx
call fcn.0042dd9f
add esp, 8
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042db10
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047a9c0
int3
Function at 0x40a0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab510
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], edx
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.00477660
add esp, 0xc
cmp dword [ebx + 0x14], 7
jbe 0x40a13e
mov ebx, dword [ebx]
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push eax
push 0xf003f
push 0
push ebx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40a2c9
mov eax, dword [ebp - 0x220]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x234], edi
cmp dword [eax + 0x14], 7
mov dword [ebp - 0x230], 0
jbe 0x40a19a
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0x208
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a2c0
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x40a1df
cmp eax, 2
jne 0x40a2c0
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x40a206
test bl, 1
jne 0x40a2ba
mov eax, ebx
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x40a20f
jmp 0x40a2ba
xor eax, eax
mov word [ebp - 0x218], ax
mov edx, dword [esi + 0x10]
shr ebx, 1
mov dword [ebp - 0x220], edx
cmp ebx, edx
ja 0x40a233
mov dword [esi + 0x10], ebx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x40a22b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x40a297
mov eax, dword [esi + 0x14]
mov ecx, ebx
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x40a27f
cmp dword [esi + 0x14], 7
mov edx, esi
mov dword [esi + 0x10], ebx
jbe 0x40a24d
mov edx, dword [esi]
mov eax, dword [ebp - 0x220]
lea eax, [edx + eax*2]
mov dword [ebp - 0x220], eax
test ecx, ecx
je 0x40a277
mov edi, dword [ebp - 0x220]
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x228]
xor eax, eax
mov word [edx + ebx*2], ax
jmp 0x40a297
push 0
push ecx
mov byte [ebp - 0x228], 0
push dword [ebp - 0x228]
push ecx
mov ecx, esi
call fcn.0040ba50
cmp dword [esi + 0x14], 7
jbe 0x40a29f
mov esi, dword [esi]
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00477010
add esp, 0xc
mov byte [ebp - 0x219], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40a2d0
push edi
call ebx
xor edi, edi
test edi, edi
je 0x40a2d0
push edi
call ebx
mov al, byte [ebp - 0x219]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042db10
mov esp, ebp
pop ebp
ret
Function at 0x40a880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab637
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x6370c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x42c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x428], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x410
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 1
push eax
call fcn.00477660
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a98c
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00403fd0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 7
jbe 0x40a93d
mov eax, dword [esi]
mov edx, dword [esi + 0x10]
cmp word [eax + edx*2 - 2], 0x5c
mov eax, esi
je 0x40a98e
cmp ecx, 7
jbe 0x40a951
mov eax, dword [esi]
cmp word [eax + edx*2 - 2], 0x2f
je 0x40a98c
cmp edx, ecx
jae 0x40a975
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 7
jbe 0x40a96c
mov eax, dword [esi]
mov dword [eax + edx*2], 0x5c
jmp 0x40a98c
push 0x5c
mov byte [ebp - 0x424], 0
push dword [ebp - 0x424]
push ecx
mov ecx, esi
call fcn.0040b900
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042db10
mov esp, ebp
pop ebp
ret
Function at 0x410540
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abcd5
mov eax, dword fs:[0]
push eax
mov eax, dword [0x6370c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 7
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4105a7
lea ecx, [ebp + 0x20]
call fcn.00407f80
cmp dword [ebp + 0x34], 7
lea ecx, [ebp + 0x20]
push 0
cmova ecx, dword [ebp + 0x20]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 7
push ecx
cmova eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x4105dd
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4105d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410638
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 7
jbe 0x410627
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41061d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410638
push ecx
push edx
call fcn.0042dd9f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x30
call fcn.0047a9c0
int3
Function at 0x4222e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad2c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6370c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0042db1e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0042cddd
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00422510
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42eb57
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42eb96
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42eb96
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42eb96
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42eb96
cmp dword [ecx + 0x74], 0xe
jbe 0x42eb96
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4421a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x6370c0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.004426f0
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x44224f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44221d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x44224f
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0046d130
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.00441e00
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042db10
add esp, 0x104
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x560]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4427a8
cmp dword [ebx + ecx*4 + 0x438], 0x4420c0
jne 0x4427a8
cmp dword [esi], 0
je 0x44273c
test edi, edi
je 0x4427a8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0044fe10
add esp, 0x14
cmp eax, 0xffffffff
je 0x4427a8
test al, 1
je 0x4427a8
cmp dword [esi], 0
jne 0x442791
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x637130]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x442791
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4427a8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x474], 0
je 0x44293d
push eax
call fcn.0043bd10
add esp, 4
test eax, eax
jne 0x44295f
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x44293a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x44295f
xor al, al
ret
mov al, 1
ret
Function at 0x443580
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6370c0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x4437ba
cmp byte [esi + 0x516], 0
jne 0x4437ba
cmp byte [esi + 0x529], 0
jne 0x4437ba
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x443631
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0046d130
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00441e00
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042db10
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.00477660
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4436a5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0046d130
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00441e00
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042db10
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.004427b0
add esp, 0x10
test al, al
jne 0x443716
call fcn.0047fdfc
mov esi, eax
call fcn.0047fdfc
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0046d130
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00441e00
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042db10
add esp, 0x20c
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.004427b0
add esp, 0x10
test al, al
jne 0x4437ba
call fcn.0047fdfc
mov esi, eax
call fcn.0047fdfc
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0046d130
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00441e00
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042db10
add esp, 0x20c
ret
push esi
call fcn.004431c0
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042db10
add esp, 0x20c
ret
Function at 0x444630
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x5b2114
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x44464a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5b2128
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5b2138
push esi
call fcn.0048cebd
add esp, 8
test eax, eax
je 0x444692
test ebp, ebp
je 0x444683
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_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4446b8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4446b8
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_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x444787
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4446d5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x637130]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44477d
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44477d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444716
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444731
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x444745
test ebp, ebp
je 0x444774
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x637134]
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_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x637134]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x448be0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x568], 2
jne 0x448bf6
mov dword [esp + 4], eax
jmp fcn.00448b90
mov al, 1
ret

Function at 0x4495d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x4495e6
mov dword [esp + 4], eax
jmp fcn.0046f3a0
mov dword [esp + 4], eax
jmp fcn.00437e30
Function at 0x44e5c0
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 [0x6370c0]
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 0x44e7a5
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
push 0x7f000001
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 0x44e793
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x44e793
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 0x44e793
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x44e793
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x44e793
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x44e793
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x44e793
push ebx
push 0x5b3a48
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004514b0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x44e6f1
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 0x44e793
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 0x44e793
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x44e746
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x44e74b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x44e735
cmp esi, 0xfffffffc
je 0x44e778
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x44e793
cmp esi, 0xfffffffd
je 0x44e778
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x44e793
cmp esi, 0xfffffffe
je 0x44e778
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x44e793
cmp esi, 0xffffffff
je 0x44e778
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x44e793
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.0042db10
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.0042db10
add esp, 0x34
ret