joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073e0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov byte [ebp - 1], 1
push eax
mov ebx, ecx
mov dword [ebp - 0x1c], 4
push 8
push ebx
mov esi, edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
jne 0x407422
xor al, al
mov byte [ebp - 1], al
jmp 0x407564
mov ecx, dword [ebp - 8]
shr ecx, 3
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push edi
mov edi, ecx
test ecx, ecx
jne 0x407458
mov ecx, 1
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov edi, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov ebx, dword [esi + 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0x24], ebx
div ecx
xor edx, edx
mov ecx, eax
mov eax, ebx
div dword [ebp - 0x10]
test edx, edx
je 0x407474
inc ecx
test edx, edx
cmove edi, dword [ebp - 0x14]
test edx, edx
mov eax, dword [ebp - 0x18]
cmove eax, dword [ebp - 0x1c]
cmp dword [esi + 0x14], 0xf
jbe 0x407494
mov eax, dword [esi]
imul edi, ecx
mov ecx, eax
sub edi, ebx
add eax, ebx
jmp 0x4074a0
mov edi, eax
lea eax, [ebx + esi]
imul edi, ecx
mov ecx, esi
sub edi, ebx
push 0
sub eax, ecx
mov ecx, esi
push edi
push eax
call fcn.0040b4d0
mov ecx, 0x3e8
xor edx, edx
mov eax, ecx
xor ebx, ebx
div dword [ebp - 8]
sub ecx, edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x24]
sub eax, edi
cmp eax, ecx
jg 0x4074d3
mov dword [ebp - 0xc], eax
mov ebx, 1
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x4074dd
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
add eax, edi
push ecx
push eax
push 0
push ebx
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x407501
mov ecx, dword [ebp - 0xc]
add edi, ecx
test ebx, ebx
je 0x4074c2
jmp 0x407506
xor al, al
mov byte [ebp - 1], al
mov ecx, dword [esi + 0x10]
cmp edi, ecx
ja 0x40751e
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 0xf
jbe 0x407518
mov esi, dword [esi]
mov byte [esi + edi], 0
jmp 0x40755d
mov edx, dword [esi + 0x14]
mov ebx, edi
mov eax, edx
sub ebx, ecx
sub eax, ecx
cmp ebx, eax
ja 0x40754b
mov dword [esi + 0x10], edi
cmp edx, 0xf
jbe 0x407537
mov esi, dword [esi]
push ebx
add esi, ecx
push 0
push esi
call fcn.00477510
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x40755d
push 0
push ebx
mov byte [ebp - 0x24], 0
mov ecx, esi
push dword [ebp - 0x24]
push ebx
call fcn.0040bd60
mov ebx, dword [ebp - 0x20]
mov al, byte [ebp - 1]
pop edi
test ebx, ebx
je 0x407572
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407580
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 0x40761b
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 0x40761b
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x40761b
push 0x20
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x40761b
push 0x28
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call edi
test eax, eax
jne 0x40761b
push eax
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push str.MyContainer
push esi
call edi
test eax, eax
jne 0x40761b
mov eax, dword [esi]
test eax, eax
je 0x40760a
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 0x407687
mov eax, dword [ebp + 0xc]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x407651
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 0x407687
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 0x40769e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x40769e
mov dword [ebp - 4], eax
jmp 0x4076a9
mov dword [ebp - 4], 0
test bl, bl
jne 0x4076c2
mov eax, dword [ebp - 8]
test eax, eax
je 0x4076b7
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.004073e0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407f70
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 0x5ab04d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x6360c0]
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 0x407fdd
mov edi, dword [eax]
mov esi, edi
mov dword [ebp - 0x34], edi
jmp 0x407fe2
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 0x408096
nop dword [eax]
movzx edi, word [esi]
cmp ecx, edx
jae 0x408024
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 0x408035
push edi
mov byte [ebp - 0x34], 0
push dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040b8f0
mov eax, 0x5c
cmp ax, di
jne 0x40807a
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 0x40807a
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 0x40807a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40808d
mov edx, dword [ebp - 0x18]
add esi, 2
cmp esi, dword [ebp - 0x38]
je 0x408096
mov ecx, dword [ebp - 0x1c]
jmp 0x408000
mov edx, dword [ebp - 0x18]
mov byte [ebp - 0x2d], 0
jmp 0x40809a
mov byte [ebp - 0x2d], 1
cmp edx, 7
jbe 0x4080cd
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4080c3
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4080ee
push edx
push ecx
call fcn.0042dc6f
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.0042d9e0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0047a870
int3
Function at 0x40a0c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab430
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x6360c0]
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.00477510
add esp, 0xc
cmp dword [ebx + 0x14], 7
jbe 0x40a12e
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 0x40a2b9
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 0x40a18a
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 0x40a2b0
mov eax, dword [ebp - 0x220]
cmp eax, 1
je 0x40a1cf
cmp eax, 2
jne 0x40a2b0
mov ebx, dword [ebp - 0x224]
test ebx, ebx
je 0x40a1f6
test bl, 1
jne 0x40a2aa
mov eax, ebx
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x40a1ff
jmp 0x40a2aa
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 0x40a223
mov dword [esi + 0x10], ebx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x40a21b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x40a287
mov eax, dword [esi + 0x14]
mov ecx, ebx
sub ecx, edx
sub eax, edx
cmp ecx, eax
ja 0x40a26f
cmp dword [esi + 0x14], 7
mov edx, esi
mov dword [esi + 0x10], ebx
jbe 0x40a23d
mov edx, dword [esi]
mov eax, dword [ebp - 0x220]
lea eax, [edx + eax*2]
mov dword [ebp - 0x220], eax
test ecx, ecx
je 0x40a267
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 0x40a287
push 0
push ecx
mov byte [ebp - 0x228], 0
push dword [ebp - 0x228]
push ecx
mov ecx, esi
call fcn.0040ba40
cmp dword [esi + 0x14], 7
jbe 0x40a28f
mov esi, dword [esi]
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00476ec0
add esp, 0xc
mov byte [ebp - 0x219], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40a2c0
push edi
call ebx
xor edi, edi
test edi, edi
je 0x40a2c0
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.0042d9e0
mov esp, ebp
pop ebp
ret
Function at 0x40a870
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab557
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x6360c0]
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.00477510
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a97c
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00403fd0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 7
jbe 0x40a92d
mov eax, dword [esi]
mov edx, dword [esi + 0x10]
cmp word [eax + edx*2 - 2], 0x5c
mov eax, esi
je 0x40a97e
cmp ecx, 7
jbe 0x40a941
mov eax, dword [esi]
cmp word [eax + edx*2 - 2], 0x2f
je 0x40a97c
cmp edx, ecx
jae 0x40a965
lea eax, [edx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp ecx, 7
jbe 0x40a95c
mov eax, dword [esi]
mov dword [eax + edx*2], 0x5c
jmp 0x40a97c
push 0x5c
mov byte [ebp - 0x424], 0
push dword [ebp - 0x424]
push ecx
mov ecx, esi
call fcn.0040b8f0
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.0042d9e0
mov esp, ebp
pop ebp
ret
Function at 0x410410
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abbd5
mov eax, dword fs:[0]
push eax
mov eax, dword [0x6360c0]
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 0x410477
lea ecx, [ebp + 0x20]
call fcn.00407f70
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 0x4104ad
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4104a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410508
push ecx
push edx
call fcn.0042dc6f
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 0x4104f7
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4104ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410508
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x30
call fcn.0047a870
int3
Function at 0x4221b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad1c0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6360c0]
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.0042d9ee
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0042ccad
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004223e0
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 0x42ea27
Capabilities:
Parse pe header

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x6360c0]
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.004425e0
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 0x44213f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44210d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x44213f
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0046cff0
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.00441cf0
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.0042d9e0
add esp, 0x104
ret

Function at 0x4425e0
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 0x442698
cmp dword [ebx + ecx*4 + 0x438], 0x441fb0
jne 0x442698
cmp dword [esi], 0
je 0x44262c
test edi, edi
je 0x442698
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0044fce0
add esp, 0x14
cmp eax, 0xffffffff
je 0x442698
test al, 1
je 0x442698
cmp dword [esi], 0
jne 0x442681
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x636130]
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 0x442681
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 0x442698
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6360c0]
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 0x4436aa
cmp byte [esi + 0x516], 0
jne 0x4436aa
cmp byte [esi + 0x529], 0
jne 0x4436aa
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 0x443521
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0046cff0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00441cf0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d9e0
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.00477510
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 0x443595
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.0046cff0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00441cf0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d9e0
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.004426a0
add esp, 0x10
test al, al
jne 0x443606
call fcn.0047fcac
mov esi, eax
call fcn.0047fcac
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0046cff0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00441cf0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d9e0
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.004426a0
add esp, 0x10
test al, al
jne 0x4436aa
call fcn.0047fcac
mov esi, eax
call fcn.0047fcac
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.0046cff0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00441cf0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0042d9e0
add esp, 0x20c
ret
push esi
call fcn.004430b0
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042d9e0
add esp, 0x20c
ret
Function at 0x444520
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x5b1114
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x44453a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5b1128
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5b1138
push esi
call fcn.0048cd5d
add esp, 8
test eax, eax
je 0x444582
test ebp, ebp
je 0x444573
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 0x4445a8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4445a8
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 0x444677
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4445c5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x636130]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x44466d
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x44466d
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x444606
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 0x444621
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 0x444635
test ebp, ebp
je 0x444664
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x636134]
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 [0x636134]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x448ac0
Capabilities:
Create udp socket

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

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x4494c6
mov dword [esp + 4], eax
jmp fcn.0046f260
mov dword [esp + 4], eax
jmp fcn.00437d10