joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003dd6e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1004be18
call fcn.100464e0
push ecx
push ecx
mov al, byte [ebp - 0xd]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x10]
push edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1003ed3a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1004beaf
call fcn.100464e0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0x1004ff7c
mov al, byte [ebp - 0xd]
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push ebx
mov dword [ebp - 4], ebx
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push ebx
mov byte [ebp - 4], 1
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x30]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
mov byte [ecx], al
mov al, byte [ebp - 0xd]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.1002a0a5
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x54]
mov dword [esi + 0x50], ebx
push ebx
mov byte [ebp - 4], 4
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x64], bx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi], 0x1004ff48
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1003ee53
Capabilities:
Create thread

Disassembly:
mov eax, 0x1004bed0
call fcn.100464e0
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x6c], edi
jne 0x1003eea2
cmp dword [esi + 4], edi
je 0x1003eea2
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea ecx, [esi + 0x10]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
cmp dword [esi + 8], edi
push 1
pop ebx
jne 0x1003ee9b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, edi
jne 0x1003eea9
xor eax, eax
jmp 0x1003ef62
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x68]
cmp ecx, edi
je 0x1003eebf
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [esi + 0x68], edi
call fcn.1003f7e6
test eax, eax
je 0x1003eeec
call fcn.1003fab5
cmp eax, ebx
jne 0x1003eeec
push 0x50
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x1003ef07
call fcn.1004507a
jmp 0x1003ef09
push 0x24
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, edi
mov dword [ebp - 4], ebx
je 0x1003ef07
call fcn.10044a81
jmp 0x1003ef09
xor eax, eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push str.STATIC
push edi
mov dword [esi + 0x68], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x1003f75c
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x10]
mov dword [esi + 0x6c], ebx
push eax
push edi
push esi
push 0x1003f205
push edi
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x1003ef59
mov dword [esi + 0x6c], edi
xor ecx, ecx
cmp eax, edi
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100419ed
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004c2d8
call fcn.100464e0
sub esp, 0x48
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x58], edi
je 0x10041a0c
xor eax, eax
jmp 0x10041b2b
mov ecx, esi
call fcn.100408f9
cmp byte [ebp + 8], 0
jne 0x10041a2e
mov eax, dword [esi + 0x6c]
cmp eax, 1
ja 0x10041a2e
inc eax
mov ecx, esi
mov dword [esi + 0x6c], eax
call fcn.1004071d
jmp 0x10041a3b
mov ecx, esi
call fcn.1004219d
mov dword [esi + 0x58], eax
mov dword [esi + 0x18], eax
push dword [esi + 0x70]
mov ecx, esi
call fcn.100416cd
push dword [esi + 0x74]
mov ecx, esi
call fcn.10041780
cmp dword [esi + 0x80], edi
je 0x10041a65
lea eax, [esi + 0x84]
mov ecx, esi
push eax
call fcn.100418f7
cmp dword [esi + 0x78], edi
je 0x10041a74
push dword [esi + 0x7c]
mov ecx, esi
call fcn.10041834
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.ReloadDownloadtask_begin
call ebx
mov al, byte [esi + 0x11d0]
lea edi, [esi + 0x11d0]
mov byte [ebp - 0x1c], al
lea ecx, [ebp - 0x1c]
mov al, byte [edi + 1]
mov byte [ebp - 0x1b], al
mov al, byte [edi + 8]
mov byte [ebp - 0x14], al
call fcn.10043031
push edi
lea ecx, [ebp - 0x1c]
call fcn.10042fc7
xor edi, edi
lea ecx, [esi + 0x11e0]
mov dword [ebp - 4], edi
call fcn.10042ac1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp + 8], eax
je 0x10041b14
push dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push edi
push eax
call fcn.100409b9
cmp eax, edi
jne 0x10041b04
push 0x38
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
or dword [ebp - 0x54], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, dword [esi + 0x64]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
push 0x59
call fcn.1003d1fb
lea ecx, [ebp + 8]
call fcn.100436d2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jne 0x10041aca
push 0x100605f8
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1004287d
push 1
pop eax
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10042826
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10042848
cmp word [eax], 0
je 0x10042848
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10042848
and al, 0x10
cmp al, 0x10
setne al
ret
xor al, al
ret

Function at 0x10044995
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push esi
push 0x64
lea eax, [ebp - 0xd4]
push 0
push eax
call sub.MSVCRT.dll_memset
movzx eax, byte [ebp + 0x14]
movzx ecx, byte [ebp + 0x15]
shl eax, 8
or eax, ecx
add esp, 0xc
movzx ecx, byte [ebp + 0x16]
shl eax, 8
or eax, ecx
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
movzx ecx, byte [ebp + 0x17]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp + 0x13]
push eax
movzx eax, byte [ebp + 0x12]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp + 0x11]
push eax
movzx eax, byte [ebp + 0x10]
shl eax, 8
or eax, ecx
push eax
movzx eax, word [ebp + 0xe]
push eax
movzx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0xd4]
push dword [ebp + 8]
push str._X__X__X__X__X_X
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x2dc]
push str.CLSID_sLocalServer32
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2dc]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10044a48
xor eax, eax
jmp 0x10044a7e
push 1
lea eax, [ebp - 0xc]
pop esi
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 8]
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10044a73
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x1004507a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1004c400
call fcn.100464e0
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x1004fff8
mov al, byte [ebp - 0xd]
xor edi, edi
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea eax, [esi + 0x38]
push 0x3e8
push eax
mov dword [esi], 0x1005003c
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10045bb6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x10061194], 0
jne 0x10045c22
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20a]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push str.winhttp.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x10061194], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
leave
ret
push 1
pop eax
leave
ret
Function at 0x10001020
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, 0xc
push esi
push 0xf0000000
xor esi, esi
lea eax, [ebp - 8]
push 0x18
push esi
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 0x100010f3
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 0x100010e8
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001072
push 0
sub ecx, edi
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop edi
test eax, eax
je 0x100010df
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 0x100010df
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x100010d1
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100010d6
mov eax, dword [ebp + 0x14]
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]
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, 0x108
lea eax, [ebp - 0x108]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.10050190
add esp, 8
mov byte [eax], 0
mov eax, str.0f40fc17.ppf
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001140
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001150
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 [0x1007dc28], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1007dc30], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x1007dc34
push dword [0x1007dc30]
mov dword [0x1007dc2c], eax
push eax
push dword [0x1007dc28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x1007dc28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push dword [0x1007dc30]
push dword [0x1007dc2c]
push str.d144917f_7d6f_e476_a455_dc4dba1c0ea7
call fcn.10001020
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10001270
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x1000127e
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0x40
jb 0x10001291
mov eax, 0x5a4d
cmp ax, word [ecx]
je 0x10001296
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x100012cf
cmp dword [edi + ecx], 0x4550
jne 0x100012cf
mov eax, 0x14c
cmp ax, word [edi + ecx + 4]
jne 0x100012cf
test byte [edi + ecx + 0x16], 2
je 0x100012cf
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x100012d5
pop edi
xor eax, eax
pop esi
pop ebp
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 0x1000130e
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 0x10001318
inc edx
cmp dx, di
jb 0x100012f0
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jbe 0x100018d8
mov eax, dword [eax + edi + 0x78]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov ebx, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
add ebx, edi
mov edx, dword [eax + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
cmp ecx, edx
ja 0x10001866
mov eax, dword [ebx + ecx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
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 - 8], edx
mov dword [ebp + 8], ecx
test ebx, ebx
je 0x100018d8
nop
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100018a8
test dl, dl
je 0x100018a4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100018a8
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001888
xor eax, eax
jmp 0x100018ad
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100018bd
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
cmp eax, dword [ebp - 4]
jbe 0x100018c7
inc esi
cmp esi, ebx
jae 0x100018d8
mov edx, dword [ebp - 8]
jmp 0x10001880
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100027b0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 8], 0x1006836b
mov ebx, 0x1006836b
mov dword [ebp - 4], 0x1006836b
push dword [esi + 0x1c]
push dword [esi + 0x18]
call fcn.10032bb0
add esp, 0xc
test eax, eax
jne 0x100028ce
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0xc]
push 0x17
call edi
cmp eax, 1
jne 0x1000280d
mov dword [ebp - 8], 0x1006839c
mov dword [ebp - 4], 0x100683a0
lea eax, [ebp - 0x18]
push eax
push dword [esi]
push 0x17
call edi
cmp eax, 1
jne 0x10002828
mov ebx, 0x1006839c
mov edi, 0x100683a0
jmp 0x1000282d
mov edi, 0x1006836b
mov eax, dword [esi + 0x14]
mov ecx, 0x1006836b
cmp eax, 8
je 0x10002855
cmp eax, 0x10
je 0x1000284e
cmp eax, 0x20
mov edx, ecx
mov eax, 0x10068368
cmove edx, eax
jmp 0x1000285a
mov edx, 0x10068364
jmp 0x1000285a
mov edx, 0x10068360
mov eax, dword [esi + 8]
cmp eax, 8
je 0x1000287b
cmp eax, 0x10
je 0x10002874
cmp eax, 0x20
mov eax, 0x10068368
cmove ecx, eax
jmp 0x10002880
mov ecx, 0x10068364
jmp 0x10002880
mov ecx, 0x10068360
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x38]
inc eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp - 4]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [ebp - 8]
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 + 0xc]
call sym.libcurl.dll_curl_mfprintf
add esp, 0x50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006cf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007dc54]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10006d42
push 3
push 2
push eax
push eax
push 6
call fcn.1004d790
add esp, 0x14
test al, al
je 0x10006d36
mov dword [0x1007dc54], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1007dc54], 1
jmp 0x10006d47
cmp eax, 2
je 0x10006d87
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 0x10006d6e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10006d87
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 0x10007620
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 0x10007660
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [ebp + 0xc]
call fcn.10007a90
add esp, 0xc
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
mov byte [edi + 0x156], 1
push ebx
call fcn.10007880
push dword [edi + 0x118]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x11c]
lea eax, [edi + 0xea]
mov ecx, 0x10068c34
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.1000ffa0
push 1
push dword [edi + 0x98]
call fcn.10032700
add esp, 0x34
xor eax, eax
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
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 dword [ebp + 0xc]
mov dword [edi], 0
mov dword [ebp + 8], eax
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007758
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10007723
mov dword [edi], 0x51
jmp 0x10007755
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.100419a0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.1000fec0
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 + 8]
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.1000ffa0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007880
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x180
push ebx
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x1000797c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x1000797c
push 0x80
lea eax, [ebp - 0x80]
mov dword [ebp + 8], 0x80
push 0
push eax
call fcn.10051710
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1000791d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x180]
push pe_nt_image_headers32
push eax
push esi
call fcn.100419a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.1000fec0
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x80]
push eax
call fcn.10009b10
add esp, 0x10
test al, al
jne 0x1000797c
call fcn.100518f7
mov esi, eax
call fcn.100518f7
mov edi, eax
lea eax, [ebp - 0x180]
push pe_nt_image_headers32
push eax
push dword [esi]
call fcn.100419a0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1000fec0
add esp, 0x1c
mov eax, 2
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 0x10007b90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10007be0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
push esi
call fcn.1000ff60
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x630]
mov dword [ebp - 0x10], 1
call fcn.1004d9d0
push dword [esi + 0x634]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
call fcn.1004d9d0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
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 0x10007c50
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.1000ff60
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret