joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44afe0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x452004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x44b00e
lea eax, [esp + 0xc]
push eax
push str.tuzudinuyodawiz_xivizevobikotuletife
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x44b042
cmp edi, 0x19f
jne 0x44b042
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.wofoyamev_wexededukocoh
push str.vazew_xajinoguwumofeforupatetonaxoc_vasufadogenanajeyu_wiwarerimefozenodav
push str.besudufawocugiforacir_nawiyay_yirideculaxabafulewasu_seyihet_zazadubavoxuyucawitiwituzunacare
push str.bemoxaxoyuguxejoxipavav_damilagorifoki_meyogupusosojezogayihasawuzerebu_moyeta
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push esi
xor esi, esi
test edi, edi
jle 0x44b0b2
lea esp, [esp]
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.0044afd0
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x44b0ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x44b050
pop esi
cmp edi, 0x2d
jne 0x44b0cc
mov dword [0x52c800], 0xa62e7790
mov dword [0x52c804], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret
Function at 0x4052e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4163c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41d490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x405471
cmp byte [ebx + 0x49], 0
je 0x405471
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x405465
lea esi, [ebp - 0x2c]
call fcn.00404f20
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x405353
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40538c
dec eax
je 0x405390
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40546c
call fcn.00403bf0
xor al, al
jmp 0x405473
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4053a0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4053cd
cmp edi, 0x10
jae 0x4053af
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00408501
add esp, 0x10
cmp esi, eax
jne 0x40545d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x405469
test esi, esi
jne 0x405347
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40548e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40548e
cmp edi, esi
jae 0x405446
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405ae0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x405347
mov ecx, eax
cmp edi, 0x10
jae 0x405422
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40543d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x405341
test esi, esi
jne 0x405418
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x405455
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x405341
lea ecx, [ebp - 0x2c]
call fcn.00403bf0
xor al, al
jmp 0x405473
lea ecx, [ebp - 0x2c]
call fcn.00403bf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407166
mov esp, ebp
pop ebp
ret
push 0x41a72c
call fcn.00406bd1
int3
Function at 0x4058a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41d490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], 0x41a75c
call fcn.00406d25
push 4
mov dword [ebp - 4], 0
call fcn.004086fe
mov edi, eax
add esp, 4
test edi, edi
je 0x40591c
call fcn.00406b20
mov dword [edi], eax
call fcn.004068df
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00406ce6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405912
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00406d0e
jmp 0x40591e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10001010
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10080c08]
push esi
push edi
mov edi, dword [0x10080c10]
xor esi, esi
push 0xf0000000
push 0x18
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100010f2
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100010e7
mov ecx, str.d144917f_7d6f_e476_a455_dc4dba1c0ea7
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001070
push 0
sub ecx, edx
push ecx
push str.d144917f_7d6f_e476_a455_dc4dba1c0ea7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100010de
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x100010de
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100010d0
mov ecx, dword [ebp + 0xc]
mov esi, 1
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x100010d5
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001100
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.10052820
add esp, 8
mov byte [eax], 0
mov eax, str.0f40fc17.ppf
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001144
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001154
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
lea eax, [ebp - 0x108]
push 0
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x10080c04], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x10080c08], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x10080c0c
push dword [0x10080c08]
mov dword [0x10080c10], eax
push eax
push dword [0x10080c04]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x10080c04]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push ecx
call fcn.10001010
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.100526c8
mov esp, ebp
pop ebp
ret

Function at 0x10001210
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10001100
mov esi, dword [0x10080c10]
mov ecx, esi
mov edx, dword [0x10080c08]
call fcn.10001300
test eax, eax
je 0x10001270
push 0
push 0
xor edx, edx
mov ecx, esi
call fcn.10001700
mov esi, eax
test esi, esi
je 0x10001270
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.10001b40
test eax, eax
je 0x1000125c
call eax
mov ecx, esi
pop esi
pop ebp
jmp fcn.100019b0
push 0x1007ae30
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
pop esi
pop ebp
jmp fcn.100019b0
push 0x1007ae4c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebp
ret

Function at 0x10001300
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, edx
test ecx, ecx
jne 0x1000130b
xor eax, eax
pop esi
ret
cmp esi, 0x40
jb 0x10001307
mov eax, 0x5a4d
cmp ax, word [ecx]
jne 0x10001307
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x10001353
cmp dword [edi + ecx], 0x4550
jne 0x10001353
mov eax, 0x14c
cmp ax, word [edi + ecx + 4]
jne 0x10001353
test byte [edi + ecx + 0x16], 2
je 0x10001353
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x10001358
pop edi
xor eax, eax
pop esi
ret
add eax, 0xffffff20
xor edx, edx
push ebx
movzx ebx, ax
xor eax, eax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
cmp ax, di
jae 0x10001391
movzx eax, dx
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x1000139a
inc edx
cmp dx, di
jb 0x10001373
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret
Function at 0x10001b40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jbe 0x10001bf6
mov eax, dword [eax + edi + 0x78]
mov ecx, edx
add eax, edi
mov ebx, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
add ebx, edi
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edx
cmp ecx, edx
ja 0x10001b85
mov eax, dword [ebx + ecx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0x20]
xor esi, esi
mov ecx, dword [eax + 0x24]
add edx, edi
mov ebx, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x10001bf6
mov edi, edi
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10001bc8
test dl, dl
je 0x10001bc4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10001bc8
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001ba8
xor eax, eax
jmp 0x10001bcd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10001bdd
mov eax, dword [ebp - 8]
movzx eax, word [eax + esi*2]
cmp eax, dword [ebp - 0xc]
jbe 0x10001be7
inc esi
cmp esi, ebx
jae 0x10001bf6
mov edx, dword [ebp - 0x10]
jmp 0x10001ba0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002910
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1006a33b
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0x1006a33b
push dword [esi + 0x1c]
mov dword [ebp - 0x40], 0x1006a33b
push dword [esi + 0x18]
call fcn.10034a80
add esp, 0xc
test eax, eax
jne 0x10002a3e
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
push 0x17
call edi
cmp eax, 1
jne 0x1000297d
mov dword [ebp - 0x3c], 0x1006a36c
mov dword [ebp - 0x40], 0x1006a370
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push 0x17
call edi
cmp eax, 1
jne 0x10002998
mov ebx, 0x1006a36c
mov edi, 0x1006a370
jmp 0x1000299d
mov edi, 0x1006a33b
mov eax, dword [esi + 0x14]
mov ecx, 0x1006a33b
cmp eax, 8
je 0x100029c5
cmp eax, 0x10
je 0x100029be
cmp eax, 0x20
mov edx, ecx
mov eax, 0x1006a338
cmove edx, eax
jmp 0x100029ca
mov edx, 0x1006a334
jmp 0x100029ca
mov edx, 0x1006a330
mov eax, dword [esi + 8]
cmp eax, 8
je 0x100029eb
cmp eax, 0x10
je 0x100029e4
cmp eax, 0x20
mov eax, 0x1006a338
cmove ecx, eax
jmp 0x100029f0
mov ecx, 0x1006a334
jmp 0x100029f0
mov ecx, 0x1006a330
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x34]
inc eax
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp - 0x40]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [ebp - 0x3c]
push edx
push eax
push edi
push dword [esi]
push ebx
push ecx
push str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__d_n
push dword [ebp - 0x44]
call sym.libcurl.dll_curl_mfprintf
add esp, 0x50
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100526c8
mov esp, ebp
pop ebp
ret
Function at 0x10006ff0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007fc20]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10007042
push 3
push 2
push eax
push eax
push 6
call fcn.1004faf0
add esp, 0x14
test al, al
je 0x10007036
mov dword [0x1007fc20], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1007fc20], 1
jmp 0x10007047
cmp eax, 2
je 0x10007087
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1000706e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10007087
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x10007a00
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10007a40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [ebp + 0xc]
call fcn.10007ef0
add esp, 0xc
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
mov byte [edi + 0x156], 1
push ebx
call fcn.10007c90
push dword [edi + 0x118]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x11c]
lea eax, [edi + 0xea]
mov ecx, 0x1006abf8
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [ebp + 0xc]
call fcn.10010bb0
push 1
push dword [edi + 0x98]
call fcn.10034570
add esp, 0x34
xor eax, eax
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
mov dword [ebp - 0x108], eax
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007b46
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10007b11
mov dword [edi], 0x51
jmp 0x10007b43
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.100437b0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.10010ab0
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8a8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
mov eax, dword [ebp - 0x108]
push esi
push dword [eax + 0x98]
push dword [ebp + 0x10]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.10010bb0
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100526c8
mov esp, ebp
pop ebp
ret
Function at 0x10007c90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x10007dbc
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x10007dbc
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.10053f40
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10007d4d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.100437b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10010ab0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.1000a040
add esp, 0x10
test al, al
jne 0x10007dbc
call fcn.10054127
mov esi, eax
call fcn.10054127
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.100437b0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10010ab0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100526c8
mov esp, ebp
pop ebp
ret

Function at 0x10008010
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x694], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1000805d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x100080c4
push dword [esi + 0x630]
mov dword [ebp - 0x10], 1
call fcn.1004fd90
push dword [esi + 0x634]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1004fd90
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100080cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push esi
call fcn.10010b70
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100526c8
mov esp, ebp
pop ebp
ret
Function at 0x100080e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10008142
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100437b0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.10010b70
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100526c8
mov esp, ebp
pop ebp
ret
Function at 0x1000cc50
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
add eax, esi
mov ecx, eax
sub ecx, esi
cmp esi, eax
push edi
cmova ecx, edx
mov edi, 0x1505
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1000cc99
mov al, byte [esi]
push eax
call fcn.10043460
movsx ecx, al
lea esi, [esi + 1]
mov eax, edi
inc ebx
shl eax, 5
add esp, 4
add eax, edi
xor ecx, eax
mov edi, ecx
cmp ebx, dword [ebp + 8]
jb 0x1000cc77
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000d740
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000d8d7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000d8c3
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000d79e
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d790
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1000d7a0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x1000d7b2
mov eax, 0x10
jmp 0x1000d7c0
cmp eax, 0x17
jne 0x1000d865
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x1000d865
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1000d865
cmp edx, eax
jb 0x1000d865
add eax, 0x20
add eax, ecx
push eax
call dword [0x1007d2a0]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d8b5
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.100538f0
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x1000d853
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.100538f0
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1000d862
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1000d780
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x1000d882
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1000d8bf
test ebx, ebx
je 0x1000d8a6
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1007d2a4]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x1000d890
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x1000d873
test ebx, ebx
jne 0x1000d8cf
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret