joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e46a
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, dword [esp + 0x10]
je 0x45e48a
push eax
push edi
push 1
push dword [esp + 0x18]
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
add dword [esi + 4], edi
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x45f86a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
call fcn.004115e9
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x45f8df
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x7d000
ja 0x45f8d5
push edi
mov dword [ebp - 4], ebx
call fcn.0040f7bf
mov dword [ebp - 8], eax
mov eax, edi
mov edx, esi
call fcn.0040f0f1
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45fb4e
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x48335f
call fcn.0048062c
mov eax, dword [0x4b457c]
mov ecx, 0x4b457c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
xor ebx, ebx
lea ecx, [ebp - 0x14]
call fcn.0041452d
mov byte [ebp - 4], 1
push dword [eax]
lea eax, [ebp - 0x10]
push str._sressrcchsuplive.svr
push eax
call fcn.00404e7f
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
call fcn.0040214e
mov esi, dword [ebp - 0x10]
push esi
push ebx
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx edi, ax
lea eax, [esi - 0x10]
call fcn.0040214e
mov ax, di
call fcn.00480704
ret
Function at 0x4628c4
Capabilities:
Read file on windows

Disassembly:
push 0x80
mov eax, 0x4823df
call fcn.00480695
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x80], ebx
push 3
push 7
push connect
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 4], ebx
call fcn.004058cd
test eax, eax
jge 0x462910
cmp dword [ebp - 0x80], ebx
je 0x462909
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x462a3c
mov esi, 0x1000
push esi
call fcn.0047e92c
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x88], ebx
call fcn.00417209
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push ebx
lea eax, [ebp - 0x88]
push eax
push esi
push dword [ebp - 0x84]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46295c
call fcn.0040f8e0
jmp 0x46295e
xor eax, eax
cmp eax, ebx
jl 0x46299c
cmp dword [ebp - 0x88], ebx
je 0x4629ad
mov eax, dword [0x4b5138]
cmp eax, ebx
je 0x462976
push eax
call edi
push dword [ebp - 0x88]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x84]
push eax
call fcn.00417231
mov eax, dword [0x4b5138]
add esp, 0xc
cmp eax, ebx
je 0x462939
push eax
call edi
jmp 0x462939
push dword [ebp - 0x84]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x4628fb
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004172cc
mov eax, dword [0x4b5138]
cmp eax, ebx
pop ecx
pop ecx
je 0x4629c8
push eax
call edi
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
movzx eax, byte [ebp - 0x21]
push eax
movzx eax, byte [ebp - 0x22]
push eax
movzx eax, byte [ebp - 0x23]
push eax
movzx eax, byte [ebp - 0x24]
push eax
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push dword [ebp - 0x8c]
call fcn.00404e7f
add esp, 0x48
cmp dword [ebp - 0x80], ebx
je 0x462a39
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.00480718
ret
Function at 0x462f7e
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x483fa6
call fcn.0048062c
mov edi, ecx
mov eax, dword [ebx]
xor esi, esi
sub eax, 0x10
mov dword [ebp - 0x18], esi
call fcn.00402441
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004634b0
lea eax, [edi + 4]
mov dword [edi], esi
mov dword [eax], esi
lea esi, [edi + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], esi
call fcn.004024e4
lea esi, [edi + 0xc]
mov dword [ebp - 0x1c], esi
call fcn.004024e4
mov eax, dword [ebx]
xor esi, esi
cmp dword [eax - 0xc], esi
jne 0x462fea
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, esi
call fcn.00480704
ret 4
mov eax, dword [ebp + 8]
push dword [eax + 8]
xor ecx, ecx
lea esi, [ebp - 0x10]
call fcn.004022fb
test eax, eax
jne 0x463016
mov dword [ebp - 0x18], 1
call fcn.0040903f
test eax, eax
je 0x463016
push 0
call fcn.00409df2
pop ecx
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov esi, dword [ebp - 0x14]
mov dword [edi], eax
je 0x46306a
mov eax, dword [ebx]
push esi
push eax
call fcn.00408fff
cmp dword [esi], 0
pop ecx
pop ecx
jbe 0x46306a
push dword [ebx]
mov ecx, dword [ebp - 0x1c]
call fcn.004628c4
pop ecx
push dword [ebx]
lea eax, [ebp + 8]
push eax
call fcn.00408f8c
pop ecx
pop ecx
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004024a3
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040214e
cmp dword [ebp - 0x18], 0
je 0x463081
call fcn.0040903f
test eax, eax
je 0x463081
push 1
call fcn.00409df2
pop ecx
xor eax, eax
cmp eax, dword [esi]
sbb esi, esi
neg esi
jmp 0x462fd5

Function at 0x464820
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x46485e
test esi, esi
jbe 0x46485e
mov edx, esi
shr edx, 2
mov eax, 0
je 0x464842
xor dword [ecx + eax*4], 0xd8d8d8d8
add eax, 1
cmp eax, edx
jb 0x464834
add eax, eax
add eax, eax
cmp eax, esi
jae 0x46485b
lea ebx, [ebx]
xor byte [eax + ecx], 0xd8
add eax, 1
cmp eax, esi
jb 0x464850
xor eax, eax
ret
mov eax, 0x80004005
ret
Function at 0x4649a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x485358
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b2068]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov eax, dword [0x4b457c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x4b457c
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
push 0x5b
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.MSVCR80.dll_wcschr]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x464a73
push 0xa
push esi
xor edi, edi
call dword [sym.imp.MSVCR80.dll_wcschr]
add esp, 8
test eax, eax
jne 0x464a38
test esi, esi
je 0x464a25
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
mov ebx, eax
push esi
lea eax, [esp + 0x14]
call fcn.004023bb
mov edi, 1
jmp 0x464a4b
mov ebx, eax
sub ebx, esi
sar ebx, 1
add ebx, 1
push esi
lea eax, [esp + 0x14]
call fcn.004023bb
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
lea esi, [esi + eax*2]
call fcn.00464ac0
test eax, eax
je 0x464a73
test edi, edi
je 0x464a05
mov dword [esp + 0x14], 1
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x464a9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x467ad0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ecx, di
shr edi, 0x10
test esi, esi
mov ebx, eax
jne 0x467aea
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
ret
test ebx, ebx
jbe 0x467bec
push ebp
cmp ebx, 0x15b0
mov eax, ebx
jb 0x467b02
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
jl 0x467bab
mov edx, eax
shr edx, 4
mov ebp, edx
neg ebp
shl ebp, 4
add eax, ebp
jmp 0x467b20
movzx ebp, byte [esi]
add ecx, ebp
movzx ebp, byte [esi + 1]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 2]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 3]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 4]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 5]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 6]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 7]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 8]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 9]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xa]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xb]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xc]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xd]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xe]
add edi, ecx
add ecx, ebp
movzx ebp, byte [esi + 0xf]
add edi, ecx
add ecx, ebp
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x467b20
test eax, eax
je 0x467bbf
nop
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x467bb0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x467af3
pop ebp
mov eax, edi
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
ret

Function at 0x4680c0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4680c7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.004680d0
Function at 0x4680d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x468102
lea esp, [esp]
test cl, 3
je 0x468102
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x491ce0]
add ecx, 1
sub esi, 1
jne 0x4680e0
cmp esi, 0x20
push ebx
push edi
jb 0x4682ec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4920e0]
xor edx, dword [ebx*4 + 0x4924e0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x491ce0]
add ecx, 4
xor edx, dword [eax*4 + 0x4928e0]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4920e0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4924e0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x491ce0]
add ecx, 4
xor eax, dword [edx*4 + 0x4928e0]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4920e0]
xor edx, dword [ebx*4 + 0x4924e0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x491ce0]
xor edx, dword [eax*4 + 0x4928e0]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4920e0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4924e0]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x491ce0]
xor eax, dword [edx*4 + 0x4928e0]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4920e0]
xor edx, dword [ebx*4 + 0x4924e0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x491ce0]
xor edx, dword [eax*4 + 0x4928e0]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4920e0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4924e0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x491ce0]
and edx, 0xff
xor eax, dword [edx*4 + 0x4928e0]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x4920e0]
xor edx, dword [ebx*4 + 0x4924e0]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x491ce0]
add ecx, 4
xor edx, dword [eax*4 + 0x4928e0]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4920e0]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x4924e0]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x491ce0]
and edx, 0xff
xor eax, dword [edx*4 + 0x4928e0]
sub edi, 1
jne 0x468112
cmp esi, 4
jb 0x468339
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4920e0]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4924e0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x491ce0]
and eax, 0xff
xor edi, dword [eax*4 + 0x4928e0]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x4682f6
test esi, esi
pop edi
pop ebx
je 0x46835d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x491ce0]
add ecx, 1
sub esi, 1
jne 0x468340
not eax
pop esi
ret
Function at 0x468880
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b2068]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4688d0
mov ax, word [esp]
cmp al, 2
jne 0x4688ca
cmp ah, al
jne 0x4688ca
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0047f7b2
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0047f7b2
add esp, 0x194
ret
Function at 0x472690
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4726c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x472820
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
push ebp
mov ebp, dword [esp + 8]
je 0x472841
mov edx, dword [esi + 0xe4]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x472877
cmp eax, 2
jg 0x472877
mov ecx, dword [esi + 0xe0]
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x48abc0]
push 2
push edx
call edi
mov eax, dword [esi + 0xe0]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x472ab0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x472af5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x472adb
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.0047d140
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00472a10
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x473160
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4731a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047d140
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00472980
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00472980
add esp, 8
pop esi
pop ecx
ret
Function at 0x4735f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x473656
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x473656
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x47361c
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x47364c
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x473652
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x4750d0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x4b2010]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x475102
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2bc]
push ebp
lea ebp, [edi + 0x2bc]
push eax
mov dword [esp + 0x10], ebp
call fcn.00469b20
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x4b200c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x475149
push esi
call dword [0x4b2004]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2c0], edx
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x475186
push ebp
jmp 0x4751d9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x4751d4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x4751b1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x4751d9
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x4751c6
mov edx, dword [esp + 0xc]
push edx
jmp 0x4751d9
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4751f2
mov eax, dword [esp + 0xc]
push eax
call fcn.00474ff0
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x474f20
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x475233
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.00474ff0
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x475270
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x47529d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x47529d
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x4752f9
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47534f
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x475319
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x475400
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x47536b
push ebp
mov esi, ebp
call fcn.0047c7d0
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.00472a10
add esp, 0x10
jmp 0x475400
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x475309
cmp byte [edi + 0x2c8], 0
je 0x4753d1
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x4753ab
call fcn.0047d140
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.00472a10
add esp, 0x18
mov esi, 5
jmp 0x475400
call fcn.0047d140
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.00472a10
add esp, 0x18
mov esi, 6
jmp 0x475400
cmp ebp, 0xffffffff
je 0x4753e2
cmp dword [edi + 0x2cc], 0x2afc
jne 0x4753fb
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.00472a10
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.00474ff0
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x475420
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4754d0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.0047d360
add esp, 0xc
test eax, eax
jle 0x475514
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00474d40
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.004750d0
add esp, 8
test al, al
je 0x475538
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0047d140
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.00472980
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x475585
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047d140
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.00472980
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.00474c10
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret