joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4348d0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x4348eb
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x434b60
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x434b73
mov ecx, dword [eax + 4]
jmp 0x434b76
lea ecx, [eax + 4]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], edx
jb 0x434b84
mov eax, dword [eax + 4]
jmp 0x434b87
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x434ba5
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [0x4c92ac]
mov dword [eax + 4], ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [esp + 4]
mov dword [eax], ecx
mov ecx, dword [0x4c92ac]
mov dword [eax + 4], ecx
ret

Function at 0x435290
Capabilities:
Create directory

Disassembly:
sub esp, 8
push ebp
push esi
push edi
xor esi, esi
call fcn.0042a860
mov ebp, eax
mov dword [esp + 0xc], esi
call fcn.0042a860
mov edi, dword [esp + 0x1c]
cmp dword [edi + 0x18], 8
mov dword [esp + 0x10], eax
jb 0x4352bb
mov eax, dword [edi + 4]
jmp 0x4352be
lea eax, [edi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4352df
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 1
pop ebp
add esp, 8
ret
mov ebp, dword [0x4c92ac]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x43532f
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.004340f0
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x43532f
mov eax, dword [esp + 0x18]
mov edx, dword [0x4c92b0]
mov ecx, dword [0x4c92b4]
pop edi
pop esi
mov dword [eax], edx
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], ebp
mov byte [eax + 8], 0
pop ebp
add esp, 8
ret
Function at 0x4376b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a58bb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4c6644]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
push esi
push edi
mov eax, dword [0x4c6644]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2ac]
mov edx, dword [esp + 0x2b0]
mov edi, dword [esp + 0x2a0]
mov ebp, dword [esp + 0x2a8]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2a8]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], 0
call fcn.00402d48
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x294], 0
je 0x43777f
lea esi, [eax - 1]
cmp esi, eax
jbe 0x437764
call fcn.0046708b
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x437773
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
mov edx, 0x4ad3ec
je 0x437784
mov edx, 0x4ad3e4
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437790
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0040e540
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4377bd
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x437810
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x4377e7
xor eax, eax
jmp 0x4377e9
call esi
cmp dword [esp + 0x34], 8
mov esi, dword [esp + 0x10]
mov edx, dword [0x4c92ac]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x43780c
mov eax, dword [esp + 0x20]
push eax
call fcn.00466f24
add esp, 4
mov eax, esi
jmp 0x43788d
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437817
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.0040271a
test byte [esp + 0x38], 0x10
je 0x437850
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x437864
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x4c92b0]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x4c92b4]
mov dword [edi + 4], ecx
jb 0x43788b
mov edx, dword [esp + 0x20]
push edx
call fcn.00466f24
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00467392
add esp, 0x288
ret
Function at 0x437a20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a58fb
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x4c6644]
xor eax, esp
mov dword [esp + 0x168], eax
push ebp
push esi
push edi
mov eax, dword [0x4c6644]
xor eax, esp
push eax
lea eax, [esp + 0x17c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x18c]
mov ecx, dword [esp + 0x19c]
mov edx, dword [esp + 0x1a0]
mov edi, dword [esp + 0x190]
mov ebp, dword [esp + 0x198]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x198]
push 0
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00404da5
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x184], 0
je 0x437b13
lea esi, [eax - 1]
cmp esi, eax
jbe 0x437ad6
call fcn.0046708b
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 0x10
mov ecx, dword [esp + 0x20]
jae 0x437ae5
lea ecx, [esp + 0x20]
cmp byte [ecx + esi], 0x5c
je 0x437b0c
lea esi, [eax - 1]
cmp esi, eax
jbe 0x437af7
call fcn.0046708b
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x437b06
lea eax, [esp + 0x20]
cmp byte [eax + esi], 0x3a
jne 0x437b13
mov edx, 0x4ad3f4
jmp 0x437b18
mov edx, 0x4ad3f0
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437b20
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00411724
mov eax, dword [esp + 0x20]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jae 0x437b49
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x437b9c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], 0
call esi
cmp eax, 2
jne 0x437b73
xor eax, eax
jmp 0x437b75
call esi
cmp dword [esp + 0x34], 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [0x4c92ac]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x437b98
mov eax, dword [esp + 0x20]
push eax
call fcn.00466f24
add esp, 4
mov eax, esi
jmp 0x437c15
lea eax, [esp + 0x64]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437ba3
sub eax, edx
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, ebp
call fcn.0040536a
test byte [esp + 0x38], 0x10
je 0x437bd8
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x437bec
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x34], esi
mov eax, dword [0x4c92b0]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword [0x4c92b4]
mov dword [edi + 4], ecx
jb 0x437c13
mov edx, dword [esp + 0x20]
push edx
call fcn.00466f24
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x17c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.00467392
add esp, 0x178
ret
Function at 0x438020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a5a3c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6644]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0x14]
push eax
push esi
call fcn.00435c00
mov edi, eax
mov eax, dword [esi + 0x14]
add esp, 8
test eax, eax
je 0x438089
cmp edi, eax
jbe 0x438070
call fcn.0046708b
cmp dword [esi + 0x18], 0x10
jb 0x43807b
mov eax, dword [esi + 4]
jmp 0x43807e
lea eax, [esi + 4]
cmp byte [eax + edi], 0x2f
mov byte [esp + 0x17], 1
je 0x43808e
mov byte [esp + 0x17], 0
push edi
push esi
call fcn.00435a10
add esp, 8
test edi, edi
mov ebp, eax
jbe 0x4380cd
lea ebx, [edi - 1]
cmp ebx, ebp
je 0x4380cd
cmp ebx, dword [esi + 0x14]
jbe 0x4380af
call fcn.0046708b
cmp dword [esi + 0x18], 0x10
jb 0x4380ba
mov eax, dword [esi + 4]
jmp 0x4380bd
lea eax, [esi + 4]
cmp byte [ebx + eax], 0x2f
jne 0x4380cd
sub edi, 1
sub ebx, 1
test edi, edi
ja 0x4380a1
mov ebx, 1
cmp edi, ebx
jne 0x438100
test ebp, ebp
jne 0x438100
cmp byte [esp + 0x17], 0
je 0x438100
mov edi, 0xf
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebp
mov byte [esp + 0x58], 0
lea eax, [esp + 0x54]
mov dword [esp + 0x78], ebx
lea ebp, [ebx + 0xf]
jmp 0x438162
push edi
push 0
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0040c1b9
mov edi, 0xf
mov dword [esp + 0x18], 2
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
mov dword [esp + 0x78], 3
jb 0x438144
mov eax, dword [eax + 4]
jmp 0x438147
add eax, 4
push eax
lea ecx, [esp + 0x20]
call fcn.00436510
lea eax, [esp + 0x1c]
mov dword [esp + 0x78], 4
mov ebx, 6
mov esi, dword [esp + 0x80]
push 0xffffffffffffffff
push 0
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
push eax
mov ecx, esi
mov dword [esp + 0x24], ebx
mov byte [esi + 4], 0
call fcn.00404da5
or ebx, 8
test bl, 4
je 0x4381b6
and ebx, 0xfffffffb
cmp dword [esp + 0x34], ebp
jb 0x4381a5
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00466f24
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
test bl, 2
je 0x4381e2
and ebx, 0xfffffffd
cmp dword [esp + 0x50], ebp
jb 0x4381d1
mov edx, dword [esp + 0x3c]
push edx
call fcn.00466f24
add esp, 4
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
test bl, 1
je 0x4381fa
cmp dword [esp + 0x6c], ebp
jb 0x4381fa
mov eax, dword [esp + 0x58]
push eax
call fcn.00466f24
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4
Function at 0x443ce0
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 0x443d12
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 0x443e70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x443e8b
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x443ebf
cmp eax, 2
jg 0x443ebf
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4af5ac]
push 2
push edx
call fcn.0046f5aa
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.0046f5aa
add esp, 0x20
xor eax, eax
ret

Function at 0x4440f0
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 0x444135
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44411b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.004625a0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00444050
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x444880
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 0x4448c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004625a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00443fc0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00443fc0
add esp, 8
pop esi
pop ecx
ret

Function at 0x4448e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x444929
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x444941
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x444d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x444db6
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x444db6
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x444d7c
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 0x444dac
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 0x444db2
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 0x444fb0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
ret

Function at 0x446a10
Capabilities:
Hash data using sha1

Disassembly:
mov eax, ecx
lea ecx, [eax + 0x80]
mov dword [eax + 0xc0], ecx
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret

Function at 0x446a50
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
ret

Function at 0x44efc0
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x44f064
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x44f035
cmp word [ecx + 0xa], 4
jne 0x44f035
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x44f035
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.0044ef50
test eax, eax
mov dword [esi], eax
je 0x44f058
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x44f010
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.004724ba
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x44f074.11001
jmp dword [eax*4 + 0x44f098]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x44f8d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x4c6644]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4c9338], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x44f320
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x44f610
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0044f2d0
je 0x44f942
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x4c6448]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00467392
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x44fa3f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00472455
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0047256d
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44f9bd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x44fa04
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.00472455
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0047256d
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x44fa3b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x44fa6f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x44fa6f
add edi, 1
cmp edi, 3
jl 0x44fa06
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4c6448], edx
mov dword [0x4c6450], eax
mov dword [fcn.0044f2d0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x4c6448]
xor ecx, esp
mov dword [0x4c9338], 1
call fcn.00467392
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x44fa3b
Function at 0x450180
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x4c5c40]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x4501b2
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2c0]
push ebp
lea ebp, [edi + 0x2c0]
push eax
mov dword [esp + 0x10], ebp
call fcn.0043ae30
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x4c5c3c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x4501f9
push esi
call dword [0x4c5c34]
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 + 0x2c4], edx
mov byte [edi + 0x2cc], bl
mov dword [edi + 0x2d0], ebx
mov dword [edi + 0x2c8], ebx
mov dword [edi + 0x2d4], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x450236
push ebp
jmp 0x450289
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x450284
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x450261
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x450289
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x450276
mov edx, dword [esp + 0xc]
push edx
jmp 0x450289
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4502a2
mov eax, dword [esp + 0xc]
push eax
call fcn.004500a0
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 0x44ffd0
push ebx
push ebx
call fcn.0046b15b
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x4502e1
call fcn.00472619
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.004500a0
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 0x450320
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 + 0x2d4]
mov dword [esp + 0x14], ecx
jne 0x45034d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x45034d
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 0x4503a9
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4503ff
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2cc], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4503c9
mov edx, dword [edi + 0x2c8]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c8], esi
jne 0x4504b0
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x45041b
push ebp
mov esi, ebp
call fcn.00461ba0
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.00444050
add esp, 0x10
jmp 0x4504b0
mov eax, dword [edi + 0x2d0]
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 0x4503b9
cmp byte [edi + 0x2cc], 0
je 0x450481
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2d0]
push ecx
push edi
je 0x45045b
call fcn.004625a0
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.00444050
add esp, 0x18
mov esi, 5
jmp 0x4504b0
call fcn.004625a0
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.00444050
add esp, 0x18
mov esi, 6
jmp 0x4504b0
cmp ebp, 0xffffffff
je 0x450492
cmp dword [edi + 0x2d0], 0x2afc
jne 0x4504ab
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.00444050
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2c0]
push eax
call fcn.004500a0
add esp, 4
cmp dword [edi + 0x2c8], 0
mov eax, esi
jne 0x4504d0
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret