joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b8a0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x144], eax
mov edi, 0xffffff98
mov eax, dword [ebp + 0x10]
push 0x80
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x138]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0x18]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x13c], esi
sub eax, 2
je 0x46b957
sub eax, 0x15
jne 0x46b989
mov eax, 0x17
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x140]
call fcn.0046ba70
add esp, 4
mov edx, str.FF02::C
test eax, eax
mov ecx, str.FF05::C
cmove ecx, edx
push ecx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x136], ax
mov eax, dword [0x55bcd4]
mov dword [ebp - 0x120], eax
jmp 0x46b989
mov eax, 2
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x134]
push eax
push str.239.255.255.250
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
push 0x76c
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x136], ax
push ebx
push dword [ebp - 0x144]
lea eax, [ebp - 0xb8]
push str._s::_s
push 0xb4
push eax
call fcn.0040f470
add esp, 0x14
test eax, eax
js 0x46ba0c
cmp eax, 0xb4
jae 0x46ba0c
push dword [ebp + 0x24]
lea eax, [ebp - 0x13c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xb8]
push dword [ebp - 0x140]
push eax
push ebx
push 0
call fcn.0046a910
mov esi, dword [ebp - 0x13c]
add esp, 0x28
test esi, esi
je 0x46ba0c
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x138]
push 1
push eax
call fcn.0046b310
mov esi, dword [ebp - 0x13c]
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret

Function at 0x46ba70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
xor esi, esi
mov cl, byte [edx]
cmp cl, 0x5b
je 0x46ba9e
nop
test cl, cl
je 0x46ba9e
mov cl, byte [eax + edx + 1]
inc eax
cmp cl, 0x5b
jne 0x46ba90
cmp byte [eax + edx], 0
je 0x46bb05
mov cl, byte [eax + edx + 1]
inc eax
test cl, cl
je 0x46bac2
nop dword [eax]
cmp cl, 0x5d
je 0x46bac2
inc eax
mov byte [ebp + esi - 0x48], cl
inc esi
mov cl, byte [eax + edx]
test cl, cl
jne 0x46bab0
mov al, byte [eax + edx]
test al, al
je 0x46bb05
cmp al, 0x5d
jne 0x46bb05
mov byte [ebp + esi - 0x48], 0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp byte [ebp - 0x58], 0xfe
jne 0x46baf1
mov al, byte [ebp - 0x57]
and al, 0xc0
cmp al, 0x80
je 0x46bb05
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005091c5
mov esp, ebp
pop ebp
ret
Function at 0x46c6a0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0xb
mov dword [ebp - 8], 0
mov dword [eax + 4], 0
call fcn.0046ddf0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46c833
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x46c6da
mov ebx, dword [ebx]
jmp 0x46c6dc
xor ebx, ebx
call fcn.0046dfa0
mov esi, eax
mov dword [ebp - 4], edx
test esi, esi
je 0x46c83c
mov eax, dword [esi + 0x88]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x46c83c
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [eax + 8], ecx
mov eax, dword [ebp + 0x14]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x9c]
mov dword [esi + 0x9c], eax
test ebx, ebx
je 0x46c7a6
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046df50
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046df30
add esp, 0xc
test eax, eax
jne 0x46c763
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x9c], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x84], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x46c792
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov dword [esi + 0xa0], eax
cmp dword [ebx + 0x14], 0
jne 0x46c7a8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0xc], eax
jmp 0x46c7a8
xor ecx, ecx
lea eax, [esi + 0x98]
mov dword [esi + 0x18], 3
push eax
push 4
push edi
push 0x46e140
push ecx
push 0
mov dword [esi + 0x30], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x1c], edi
mov dword [esi + 8], edi
test edi, edi
je 0x46c808
test ebx, ebx
je 0x46c7f2
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push esi
call fcn.0046e090
add esp, 0x10
push dword [esi + 0x9c]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov edi, 0xb
cmp dword [ebp - 0x1c], eax
cmovne edi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test edi, edi
jne 0x46c83c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x20]
push dword [ebp - 4]
push esi
call fcn.0046df60
mov eax, dword [ebp - 8]
add esp, 8
test eax, eax
je 0x46c859
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46edb0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x55fc08]
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, eax
je 0x46edd4
call fcn.0046ddf0
mov edi, eax
mov dword [ebp - 4], edx
test edi, edi
je 0x46ede8
jmp 0x46ee06
push eax
call fcn.0046eeb0
add esp, 4
test eax, eax
jne 0x46edfd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x46edf3
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 4], eax
jmp 0x46ee09
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
test esi, esi
je 0x46ee84
test edi, edi
je 0x46ee6f
cmp dword [esi + 4], ebx
je 0x46ee6f
test ecx, ecx
je 0x46ee6f
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 8]
push eax
call fcn.0046e480
lea eax, [ebp - 0x10]
push eax
lea eax, [edi + 0x1c]
push eax
call fcn.0046e480
mov eax, dword [edi + 0x30]
add esp, 0x10
test eax, eax
je 0x46ee4d
cmp dword [eax + 4], esi
je 0x46ee8d
mov eax, dword [eax + 8]
test eax, eax
jne 0x46ee41
push esi
push edi
call fcn.0046f4a0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046e510
lea eax, [ebp - 0x20]
push eax
call fcn.0046e510
add esp, 0x10
test ebx, ebx
jne 0x46ee84
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
mov ecx, 0xb
cmove ebx, ecx
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
call fcn.0046e510
lea eax, [ebp - 0x20]
push eax
call fcn.0046e510
add esp, 8
jmp 0x46ee6f

Function at 0x46efd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.0046f570
mov esi, eax
mov dword [0x55fc24], 1
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x46f03f
push 0xc
push str.QUSEREX.DLL
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
add esp, 0x10
test eax, eax
jne 0x46f03f
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x55fc40], eax
jmp 0x46f044
mov eax, dword [0x55fc40]
test eax, eax
je 0x46f063
push str.QueueUserAPCEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov eax, dword [0x55fc40]
mov dword [0x55fc00], ecx
jmp 0x46f069
mov ecx, dword [0x55fc00]
test ecx, ecx
jne 0x46f07e
mov dword [0x55fc00], 0x46f500
test eax, eax
je 0x46f0cb
push eax
jmp 0x46f0c5
push str.QueueUserAPCEx_Init
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46f0b5
call eax
test eax, eax
je 0x46f0b5
cmp dword [0x55fc40], 0
mov eax, esi
je 0x46f0d7
or dword [0x55fc24], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
push dword [0x55fc40]
mov dword [0x55fc00], 0x46f500
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov dword [0x55fc40], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005091c5
mov esp, ebp
pop ebp
ret
Function at 0x46f0f0
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x55fc04], 0
je 0x46f161
push dword [0x55fc08]
call fcn.0046eeb0
add esp, 4
test eax, eax
je 0x46f135
cmp dword [eax + 0x84], 1
jne 0x46f135
push dword [eax + 0x10]
push dword [eax + 0xc]
call fcn.0046df60
mov eax, dword [0x55fc08]
add esp, 8
test eax, eax
je 0x46f135
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.0046f660
mov eax, dword [0x55fc40]
test eax, eax
je 0x46f161
push str.QueueUserAPCEx_Fini
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46f155
call eax
push dword [0x55fc40]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
ret

Function at 0x46f170
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x55fc04], 0
je 0x46f239
push esi
push dword [0x55fc08]
call fcn.0046eeb0
mov esi, eax
add esp, 4
test esi, esi
je 0x46f22f
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.0046f700
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0046e480
lea eax, [ebp - 0x14]
mov dword [esi + 0x18], 7
push eax
call fcn.0046e510
mov eax, dword [esi + 0x7c]
add esp, 0x14
test eax, eax
je 0x46f205
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push esi
push eax
call fcn.0046e740
mov eax, dword [ebp - 4]
add esp, 8
or ecx, 0xffffffff
mov eax, dword [eax + 0x18]
add eax, 4
xchg dword [eax], ecx
mov eax, dword [ebp - 4]
push dword [eax + 0x14]
call edi
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x46f1d5
pop edi
cmp dword [esi + 0x84], 1
jne 0x46f22f
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.0046df60
mov eax, dword [0x55fc08]
add esp, 8
test eax, eax
je 0x46f22f
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x46f2d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0x55fc08]
call fcn.0046eeb0
mov edi, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [esi + 0x18], 6
cmp edi, 2
je 0x46f302
cmp edi, 1
je 0x46f302
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
test byte [esi + 0x94], 1
je 0x46f330
mov eax, edi
xor ebx, ebx
sub eax, 1
je 0x46f31e
sub eax, 1
jne 0x46f321
or ebx, 0xffffffff
jmp 0x46f321
mov ebx, dword [esi + 0x28]
call fcn.0046f170
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
add esp, 4
push 1
call fcn.0046f2b0
add esp, 4
lea eax, [esi + 0x38]
push edi
push eax
call sub.VCRUNTIME140.dll_longjmp
int3
Function at 0x46f700
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x46f82f
push esi
push edi
xor eax, eax
lea esi, [ebx + 0x1c]
nop dword [eax]
inc eax
xor edi, edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp + 0xc], edi
call fcn.0046e480
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x34], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0046e510
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0046e480
mov esi, dword [ebx + 0x34]
add esp, 0x14
test esi, esi
je 0x46f813
nop word [eax + eax]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 4]
add eax, 8
push eax
call fcn.0046e5d0
add esp, 8
cmp eax, 0x10
jne 0x46f78e
lea eax, [ebp - 0x1c]
push eax
call fcn.0046e510
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x46f7f5
mov eax, dword [esi + 8]
mov dword [ebx + 0x34], eax
mov edi, dword [esi + 4]
mov eax, dword [edi + 4]
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push dword [edi]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp - 8]
test edi, edi
je 0x46f7da
cmp dword [ebp - 4], 4
jg 0x46f7da
lea eax, [ebp - 0x1c]
push eax
call fcn.0046e510
lea eax, [ebp - 0x2c]
push eax
call fcn.0046e510
inc dword [ebp + 0xc]
push edi
call dword [ebp - 0xc]
jmp 0x46f7f2
push esi
call fcn.0046fa10
lea eax, [ebp - 0x1c]
push eax
call fcn.0046e510
lea eax, [ebp - 0x2c]
push eax
call fcn.0046e510
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.0046e480
mov esi, dword [ebx + 0x34]
add esp, 8
test esi, esi
jne 0x46f760
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.0046e510
mov eax, dword [ebp - 4]
lea esi, [ebx + 0x1c]
add esp, 4
test edi, edi
jne 0x46f720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46f8f0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x46f912
mov eax, dword [ebp + 8]
mov dword [eax], esi
lea eax, [esi + 0xc]
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x46f93a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], 0
mov eax, 0xb
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46f955
mov dword [esi + 4], ecx
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], 0
mov dword [ecx], esi
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4702c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51145d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x55ca98]
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 [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
mov esi, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp esi, 1
jb 0x470337
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
jne 0x47032c
movzx eax, byte [ecx]
cmp al, 0x5c
jne 0x470323
xor eax, eax
jmp 0x470328
sbb eax, eax
or eax, 1
test eax, eax
je 0x470333
cmp ecx, edx
je 0x470337
dec ecx
jmp 0x470313
sub ecx, edx
jmp 0x47033a
or ecx, 0xffffffff
inc ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
cmp esi, ecx
jb 0x470482
sub esi, ecx
lea eax, [ebp + 8]
cmp esi, 0xffffffff
cmovb edi, esi
cmp dword [ebp + 0x1c], 0x10
push edi
cmovae eax, dword [ebp + 8]
add eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004027d0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea edi, [ebp - 0x28]
mov ecx, 0x1505
cmovae edx, dword [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
add edx, dword [ebp - 0x18]
cmp edi, edx
je 0x4703a6
mov eax, ecx
shl ecx, 5
add ecx, eax
movsx eax, byte [edi]
inc edi
add ecx, eax
cmp edi, edx
jne 0x470395
mov eax, 0x88888889
mul ecx
shr edx, 3
mov eax, edx
shl eax, 4
sub eax, edx
sub ecx, eax
push dword [ecx*4 + 0x51dc60]
push str.e_0__dm
call fcn.00421080
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x5136ec
call fcn.00421080
push str.e_0m
call fcn.00421080
mov ecx, dword [ebp - 0x14]
add esp, 0x14
cmp ecx, 0x10
jb 0x47041d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x470413
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x470455
push ecx
push edx
call fcn.0050948c
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x470465
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x47045b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x47045b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0050948c
add esp, 8
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.005091c5
mov esp, ebp
pop ebp
ret 0x18
call fcn.0040b120
int3
Function at 0x4773e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
xor esi, esi
mov ecx, 4
cmp dword [ebp + 0x18], esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
cmove eax, ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 0xc]
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x47742b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], edi
test edi, edi
je 0x477487
push ebx
mov eax, edi
mov edx, edi
mov ecx, edi
mov ebx, edi
nop
mov esi, dword [eax + 0x10]
cmp dword [ebp + 0x14], esi
jb 0x47746e
mov edx, dword [edx + 0x18]
mov ecx, edi
movzx eax, word [edx]
cmp eax, dword [ebp + 8]
jne 0x47746e
push esi
push edx
push dword [ebp + 0x10]
call sub.VCRUNTIME140.dll_memcpy
mov esi, 1
add esp, 0xc
mov dword [ebp - 4], esi
mov ecx, ebx
jmp 0x477471
mov esi, dword [ebp - 4]
mov eax, dword [ecx + 0x1c]
mov edx, eax
mov dword [ebp + 0x18], eax
mov ecx, eax
mov edi, eax
mov ebx, eax
test eax, eax
jne 0x477440
mov edi, dword [ebp - 0xc]
pop ebx
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4774a0
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp + 8], 0x10
cmp dword [0x55fcbc], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
jg 0x4774d0
push 0x55fca4
call esi
push 0x55fca4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x55fcbc]
test eax, eax
jg 0x477657
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x55fcc0], eax
cmp eax, 0xffffffff
je 0x47752e
push 0x55fc8c
call esi
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x477553
push 0x55fc8c
call ebx
push dword [0x55fcc0]
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0x55fca4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x55fca4
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005091c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x51e540]
xor esi, esi
mov edx, 1
test ecx, ecx
je 0x47758a
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477567
sub ecx, edi
test esi, esi
lea eax, [ecx + edx]
lea edx, [eax + 2]
cmovle edx, eax
inc esi
lea eax, [esi + esi*2]
mov ecx, dword [eax*8 + 0x51e540]
test ecx, ecx
jne 0x477564
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [0x55fcd8], esi
test esi, esi
je 0x47752e
xor ebx, ebx
mov byte [esi], 0
cmp dword [0x51e540], ebx
je 0x477647
mov edx, 0x51e540
test ebx, ebx
jle 0x477617
lea eax, [esi - 1]
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x4775c0
mov cx, word [0x515650]
mov word [eax], cx
mov cl, byte [0x515652]
mov byte [eax + 2], cl
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x198], ecx
mov al, byte [edx]
inc edx
test al, al
jne 0x4775e7
sub edx, ecx
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4775f3
mov esi, dword [ebp - 0x198]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x55fcd8]
jmp 0x47762e
mov ecx, dword [edx]
mov edx, esi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x477620
inc ebx
lea eax, [ebx + ebx*2]
cmp dword [eax*8 + 0x51e540], 0
lea edx, [eax*8 + 0x51e540]
jne 0x4775b6
mov eax, dword [0x55fcbc]
test eax, eax
jg 0x477657
mov eax, 1
jmp 0x477658
inc eax
push 0x55fca4
mov dword [0x55fcbc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret
Function at 0x47ab10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [0x55fcc0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [ebx + 0x18]
mov edx, esi
mov ecx, dword [edx]
test ecx, ecx
je 0x47ab49
nop dword [eax]
lea edx, [ecx + 0x10]
mov ecx, dword [edx]
test ecx, ecx
jne 0x47ab40
mov dword [edi + 0x10], 0
push ebx
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp + 8], ecx
test eax, eax
je 0x47abe4
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
test eax, eax
je 0x47abcb
nop
cmp eax, edi
je 0x47aba6
lea esi, [eax + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x47ab90
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47abd9
mov eax, dword [edi + 0x10]
push ebx
mov dword [esi], eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
dec eax
pop ebx
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 8], 1
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
pop edi
pop esi
dec eax
pop ebx
pop ebp
ret