joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4109c0
Capabilities:
Get user security identifier
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [0x445080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x410
mov dword [ebp - 0xc40], eax
lea eax, [ebp - 0x414]
push ebx
push eax
mov dword [ebp - 0xc3c], ebx
mov dword [ebp - 0xc38], ebx
call fcn.00414fa0
push esi
push edi
push str._s_s
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.004092a0
lea eax, [ebp - 0x414]
push eax
push str.Resolve__:_szAccountName___s_n
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.004092a0
add esp, 0x30
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push ebx
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0xc3c]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x410a82
push eax
push 8
call esi
push eax
call edi
mov ebx, eax
mov ecx, dword [ebp - 0xc38]
test ecx, ecx
je 0x410a9a
add ecx, ecx
push ecx
push 8
call esi
push eax
call edi
mov edi, eax
jmp 0x410a9c
xor edi, edi
test ebx, ebx
je 0x410b2a
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc38]
push eax
push edi
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x410aec
push dword [ebp - 0xc40]
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x410b1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetSidFromEnumSess__:_ConvertSidToStringSid___err___d_n
jmp 0x410af8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UserByExplorer__:_LookupAccountNameW___err___d_n
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.004092a0
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x410b30
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x410b3c
push edi
push 0
call esi
push eax
call ebx
mov ebx, dword [ebp - 0xc40]
lea eax, [ebp - 0xc34]
push dword [ebx]
push str.Resolve__:_lpszSid___s_n
push 0x410
push eax
call fcn.004092a0
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00412b32
mov esp, ebp
pop ebp
ret
Function at 0x410c10
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432d38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x445080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x410c63
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._click_dtypestred_pid_d_cid_d_path_s__s_
push eax
call fcn.0040e130
add esp, 0x18
jmp 0x410c7d
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._click_dtypestred_pid_d_cid_d_path_s_
push eax
call fcn.0040e130
add esp, 0x14
mov edi, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
push str.setup_1.0.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x410cb1
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x410d64
push 0
push 0x50
push str.clck.yandex.ru
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x410ce3
mov dword [ebp - 4], 0xffffffff
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor edi, edi
jmp 0x410d64
push 0
push 0
push 0
push 0
push edi
push 0x434138
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
jne 0x410d1d
mov byte [ebp - 4], al
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov dword [ebp - 4], 0xffffffff
push ebx
call esi
xor edi, edi
jmp 0x410d64
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov esi, dword [ebp + 0x14]
mov edi, eax
test edi, edi
je 0x410d44
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
mov byte [ebp - 4], 1
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
mov byte [ebp - 4], 0
push dword [ebp - 0x14]
call esi
mov dword [ebp - 4], 0xffffffff
push ebx
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x410d71
push eax
call fcn.0040e720
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4181df
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437114
push 0x43710c
push str.FlsAlloc
push 0
call fcn.00418158
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418211
push dword [ebp + 8]
mov ecx, esi
call fcn.004130d5
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x418253
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x437124
push 0x43711c
push str.FlsGetValue
push 2
call fcn.00418158
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x418284
mov ecx, esi
call fcn.004130d5
call esi
jmp 0x41828a
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x41828d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x43712c
push 0x437124
push str.FlsSetValue
push 3
call fcn.00418158
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4182c1
mov ecx, esi
call fcn.004130d5
call esi
jmp 0x4182c7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x431c20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x445080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push esi
push edi
push eax
push 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x431ca3
call edi
mov esi, eax
test esi, esi
jle 0x431c8f
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x431ca3
push esi
push 0x67
push 0x43fde0
call fcn.0040fa20
jmp 0x431d24
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x12
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x431ccb
xor eax, eax
cmp dword [ebp - 0x18], 2
sete al
xor esi, esi
mov dword [ebx], eax
jmp 0x431d24
call edi
test eax, eax
jle 0x431cd9
movzx eax, ax
or eax, 0x80070000
xor esi, esi
cmp eax, 0x80070057
cmovne esi, eax
mov edi, esi
test edi, edi
js 0x431d24
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebx], eax
test eax, eax
je 0x431d24
push ebx
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x431d24
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x431d31
push eax
call fcn.0040e720
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x431d3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412b32
mov esp, ebp
pop ebp
ret 4
Function at 0x4a4ffc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x40
push edi
mov ecx, dword [esi]
lea edi, [esi + 0x18]
and ecx, 0x3f
mov byte [ecx + esi + 0x18], 0x80
inc ecx
sub eax, ecx
cmp eax, 8
jae 0x4a503f
push eax
lea eax, [esi + 0x18]
add eax, ecx
push 0
push eax
call fcn.004aa70c
push 0x40
push edi
push esi
call fcn.004a521c
add esp, 0x18
mov eax, 0x40
xor ecx, ecx
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, ecx
push 0
push eax
call fcn.004aa70c
shl dword [esi], 3
mov eax, dword [esi]
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x52], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x53], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
movzx eax, byte [esi + 6]
push 0x40
mov byte [esi + 0x56], al
movzx eax, byte [esi + 7]
push edi
push esi
mov byte [esi + 0x57], al
call fcn.004a521c
mov ecx, dword [ebp + 8]
movzx eax, byte [esi + 8]
push 0x98
push 0
mov byte [ecx], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [ecx + 1], al
movzx eax, byte [esi + 0xa]
mov byte [ecx + 2], al
movzx eax, byte [esi + 0xb]
mov byte [ecx + 3], al
movzx eax, byte [esi + 0xc]
mov byte [ecx + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [ecx + 5], al
movzx eax, byte [esi + 0xe]
mov byte [ecx + 6], al
movzx eax, byte [esi + 0xf]
mov byte [ecx + 7], al
movzx eax, byte [esi + 0x10]
mov byte [ecx + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [ecx + 9], al
movzx eax, byte [esi + 0x12]
mov byte [ecx + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [ecx + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [ecx + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [ecx + 0xd], al
movzx eax, byte [esi + 0x16]
mov byte [ecx + 0xe], al
movzx eax, byte [esi + 0x17]
push esi
mov byte [ecx + 0xf], al
call fcn.004aa70c
add esp, 0x24
pop edi
pop esi
pop ebp
ret

Function at 0x4a512c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax], 0
mov dword [eax + 4], 0
pop ebp
ret
Function at 0x4168e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov edi, edx
sub esp, 0x10
mov dword [esp], ecx
mov dword [esp + 4], 0x5c3293
call sym._json_object_get
mov ebx, eax
lea eax, [esi + 0x74c]
mov dword [esp], eax
call sym._cgtime
test ebx, ebx
je 0x4169a0
cmp dword [ebx], 7
je 0x4169a0
cmp byte [esi + 0x398], 0
mov edx, ebx
mov eax, esi
jne 0x416990
call sym._gbt_decode
test al, al
je 0x4169b0
lea ecx, [edi + 0x124]
lea eax, [edi + 0x120]
mov byte [edi + 0x1ac], 1
mov dword [edi + 0x120], 0
mov dword [edi + 0x13c], 0
xor edx, edx
and ecx, 0xfffffffc
sub eax, ecx
add eax, 0x20
and eax, 0xfffffffc
mov dword [ecx + edx], 0
add edx, 4
cmp edx, eax
jb 0x416965
add edi, 0x170
mov dword [esp], edi
call sym._cgtime
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym._gbt_solo_decode
add esp, 0x10
pop ebx
pop esi
pop edi
jmp sym._work_decode.part.62
xor eax, eax
jmp 0x416986
Function at 0x41d600
Capabilities:
Get socket status

Disassembly:
sub esp, 0x13c
mov ecx, 0
test edx, edx
cmovs edx, ecx
mov dword [esp + 0x30], eax
add eax, 1
mov dword [esp + 0x24], edx
lea edx, [esp + 0x24]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
test eax, eax
setg al
add esp, 0x13c
ret

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

Disassembly:
push edi
push esi
lea edi, [eax + 0x318]
push ebx
mov ebx, eax
sub esp, 0x10
mov dword [esp], edi
call dbg.pthread_mutex_lock
test eax, eax
jne 0x41db0d
mov esi, dword [sym.imp.WS2_32.dll_recv]
jmp 0x41dad8
mov edx, dword [ebx + 0x2c0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1ffc
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
sub esp, 0x10
test eax, eax
jle 0x41dae2
mov eax, dword [ebx + 0x2bc]
test eax, eax
jne 0x41dab2
mov ecx, 0x794
mov edx, str.clear_sock
mov eax, edi
call sym.__mutex_unlock_noyield.constprop.19
call dword [0x5bb9e0]
mov eax, dword [ebx + 0x2c0]
test eax, eax
je 0x41db06
mov byte [eax], 0
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov edx, 0x78d
mov eax, str.clear_sock
call sym.__mutex_lock.part.3.constprop.20
jmp 0x41daaa
Function at 0x41dc50
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
mov esi, ecx
sub esp, 0x14c
mov ebx, dword [eax + 0x2bc]
mov dword [esp], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
call sym._strlen
mov edx, 0xa
mov word [edi + eax], dx
lea eax, [esi + 1]
test eax, eax
mov dword [esp + 0x20], eax
jle 0x41ddba
lea ebp, [ebx + 1]
lea edi, [esp + 0x34]
lea esi, [esp + 0x3c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
nop
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebp
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
test eax, eax
jg 0x41dd10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x41dcb0
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x41dcb0
mov eax, 1
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x2bc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
test eax, eax
js 0x41dd90
sub dword [esp + 0x20], eax
add dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
jg 0x41dc9f
mov eax, dword [esp + 0x24]
cdq
mov ecx, dword [esp + 0x28]
add dword [ecx + 0x260], 1
adc dword [ecx + 0x264], 0
add dword [ecx + 0x268], eax
adc dword [ecx + 0x26c], edx
add dword [ecx + 0x270], eax
adc dword [ecx + 0x274], edx
xor eax, eax
jmp 0x41dd01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x41dc9f
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 0xb
je 0x41dc9f
mov eax, 2
jmp 0x41dd01
xor eax, eax
xor edx, edx
jmp 0x41dd5f
Function at 0x420640
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x2c0]
cmp byte [edx], 0
je 0x420655
mov eax, 1
ret
mov eax, dword [eax + 0x2bc]
xor edx, edx
jmp sym._socket_full.isra.5
Function at 0x427300
Capabilities:
Hash data using sha256

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [eax + 0x5bbb00]
mov dword [ecx + eax + 0x88], edx
add eax, 4
cmp eax, 0x20
jne 0x427310
mov dword [ecx + 4], 0
mov dword [ecx], 0
ret

Function at 0x4275a0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
xor eax, eax
sub esp, 0xc8
lea ebx, [esp + 0x18]
lea esi, [esi]
mov edx, dword [eax + 0x5bbb00]
mov dword [esp + eax + 0xa0], edx
add eax, 4
cmp eax, 0x20
jne 0x4275b0
mov eax, dword [esp + 0xd4]
mov dword [esp], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], eax
call sym._sha256_update
mov eax, dword [esp + 0xd8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._sha256_final
add esp, 0xc8
pop ebx
ret

Function at 0x427cf0
Capabilities:
Resolve dns

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov esi, eax
mov ebx, edx
sub esp, 0x5c
mov dword [esp + 0xc], 0x1226
mov dword [esp + 8], str.check_connect
mov dword [esp + 4], str.api.c
mov dword [esp], 0x41
call sym.__cgmalloc
mov dword [ebx], eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], eax
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
sub esp, 0x1c
cmp word [esi], 2
je 0x427e01
lea esi, [esp + 0x22]
mov dword [esp + 8], esi
mov eax, dword [ebx]
mov dword [esp], 0x17
mov dword [esp + 4], eax
call sym._Inet_Pton
mov dword [esp], 0x52
call dword [sym.imp.msvcrt.dll_toupper]
mov byte [edi], al
mov eax, dword [0x731050]
test eax, eax
je 0x427e40
mov eax, dword [0x732b88]
test eax, eax
jle 0x427df7
mov edx, eax
mov ebx, dword [0x732b8c]
shl edx, 5
lea ecx, [edx + eax*2]
add ecx, ebx
xor eax, eax
lea esi, [esi]
lea edi, [edi]
movzx edx, byte [esi + eax]
and dl, byte [ebx + eax + 0x10]
cmp dl, byte [ebx + eax]
jne 0x427df0
add eax, 1
cmp eax, 0x10
jne 0x427dc0
movzx eax, byte [ebx + 0x20]
mov byte [edi], al
mov eax, 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
add ebx, 0x22
cmp ecx, ebx
jne 0x427db4
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx]
lea ebp, [esp + 0x32]
lea esi, [esp + 0x22]
mov dword [esp + 8], str.::ffff:_s
mov dword [esp + 4], 0x1e
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sym._snprintf_2
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], 0x17
call sym._Inet_Pton
jmp 0x427d7f
cmp byte [0x745371], 0
mov eax, 1
jne 0x427de0
mov esi, dword [ebx]
mov edi, str.127.0.0.1
mov ecx, 0xa
repe cmpsb byte [esi], byte es:[edi]
je 0x427de0
xor eax, eax
cmp word [esp + 0x22], 0
jne 0x427de0
cmp word [esp + 0x24], 0
jne 0x427de0
cmp word [esp + 0x26], 0
jne 0x427de0
cmp word [esp + 0x28], 0
jne 0x427de0
cmp word [esp + 0x2a], 0
jne 0x427de0
cmp word [esp + 0x2c], 0
jne 0x427de0
cmp word [esp + 0x2e], 0
jne 0x427de0
cmp word [esp + 0x30], 0x100
sete al
jmp 0x427de0
Function at 0x43b010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x70]
mov dword [esp], 0
mov esi, dword [esp + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
lea edi, [ebx + 0x48]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
call dbg.pthread_setcancelstate
mov dword [esp], edi
call dbg.pthread_mutex_lock
test eax, eax
jne 0x43b161
lea ebp, [ebx + 0x4c]
mov ecx, 0xf1c
mov edx, str._usb_transfer
movzx esi, si
mov eax, ebp
call sym.__wr_lock.constprop.19
mov eax, dword [esp + 0x90]
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x3c]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x38]
mov dword [esp + 8], eax
movzx eax, byte [esp + 0x34]
mov dword [esp + 4], eax
call sym.___usb_transfer
test eax, eax
mov esi, eax
js 0x43b110
mov dword [esp], ebp
call dbg.pthread_rwlock_unlock
test eax, eax
jne 0x43b130
mov dword [esp], edi
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x43b150
call dword [0x5bb9e0]
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.pthread_setcancelstate
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xfffffff9
je 0x43b0d1
mov eax, ebx
call sym._release_cgpu
mov dword [esp], ebp
call dbg.pthread_rwlock_unlock
test eax, eax
je 0x43b0dd
nop
lea esi, [esi]
mov edx, 0xf23
mov eax, str._usb_transfer
call sym.__rw_unlock.part.5.constprop.23
mov dword [esp], edi
call dbg.pthread_mutex_unlock
test eax, eax
je 0x43b0e9
nop
lea esi, [esi]
mov edx, 0xf23
mov eax, str._usb_transfer
call sym.__mutex_unlock_noyield.part.4.constprop.21
jmp 0x43b0e9
mov edx, 0xf1c
mov eax, str._usb_transfer
call sym.__mutex_lock.part.3.constprop.22
jmp 0x43b061
Function at 0x452020
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
xor esi, esi
mov ebx, 1
sub esp, 0x1c
mov edi, dword [esp + 0x30]
jmp 0x45205f
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [eax - 1]
sub esp, 0xc
cmp edx, 0x7fff
ja 0x452085
cmp ebx, eax
je 0x452085
cmp ebx, eax
mov esi, ebp
ja 0x4520a0
mov ebx, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [0x5bcc28]
test eax, eax
mov ebp, eax
jne 0x452034
mov dword [esp], esi
call dword [0x5bcc2c]
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call dword [0x5bcc2c]
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [eax]
test byte [ecx + 0xac3], 1
jne 0x4537e0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp sym._Curl_resolver_is_resolved
jmp sym._Curl_doh_is_resolved

Function at 0x453be0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x453bf5
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
movzx eax, byte [eax + 0xcf]
ret
jmp sym._Curl_ipv6works.part.0
Function at 0x4643c0
Capabilities:
Enumerate pe sections
Receive data
Receive data on socket

Disassembly:
push edi
push esi
mov eax, 1
push ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test ebx, ebx
je 0x4643e8
cmp dword [ebx], 0xbab1e
je 0x4643f0
pop ebx
pop esi
pop edi
ret
cmp byte [ebx + 0xce], 0
mov eax, 8
jne 0x4643e8
test esi, esi
js 0x464424
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 1
mov eax, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
pop ebx
pop esi
pop edi
jmp sym._Curl_multi_wait.part.7
mov eax, 0xa
jmp 0x4643e8
Function at 0x4677d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
xor eax, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 4], 0x8004667e
test edx, edx
setne al
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
add esp, 0x2c
ret