joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41caf0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e9057
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x94], eax
push ebp
push esi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
lea ebp, [edi + 8]
mov ecx, ebp
mov dword [esp + 0xc], edi
call fcn.00403280
push 0x78
mov dword [esp + 0xb0], 0
call fcn.00488707
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0xac], 1
test eax, eax
je 0x41cb6a
push 0x5125cc
mov ecx, eax
call fcn.004227b0
jmp 0x41cb6c
xor eax, eax
mov byte [esp + 0xac], 0
push 0x1c
lea esi, [esp + 0x88]
mov dword [edi], eax
call fcn.004195f0
push 0x511cfc
mov eax, esi
push eax
lea ecx, [esp + 0x74]
push ecx
mov byte [esp + 0xbc], 2
call fcn.00410310
push 0x512604
push eax
lea edx, [esp + 0x64]
push edx
mov byte [esp + 0xc8], 3
call fcn.00410310
push 0x511cfc
push eax
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0xd4], 4
call fcn.00410310
push str.UserSettings.xml
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xe0], 5
call fcn.00410310
add esp, 0x34
push eax
mov ecx, ebp
mov byte [esp + 0xb0], 6
call fcn.00404ec0
lea ecx, [esp + 0x14]
call fcn.004012f0
lea ecx, [esp + 0x30]
call fcn.004012f0
lea ecx, [esp + 0x4c]
call fcn.004012f0
lea ecx, [esp + 0x68]
mov byte [esp + 0xac], 2
call fcn.004012f0
push 0x40
push 0x512618
mov ecx, ebp
call fcn.004032f0
push eax
call fcn.004a86ec
add esp, 0xc
mov dword [edi + 0x24], eax
test eax, eax
je 0x41cc65
mov ecx, dword [edi]
push 0
push eax
call fcn.00421c60
mov edx, dword [edi + 0x24]
push edx
mov byte [edi + 4], al
call fcn.004a887c
add esp, 4
mov dword [edi + 0x24], 0
jmp 0x41cc8f
push str.Protexis
lea ecx, [esp + 0x88]
call fcn.00409260
push 0
lea ecx, [esp + 0x88]
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [edi + 4], 0
lea ecx, [esp + 0x84]
call fcn.004012f0
mov eax, edi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004a58c9
add esp, 0xa4
ret
Function at 0x41cd40
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e8fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ecx, dword [edi]
xor ebx, ebx
mov byte [esp + 0x13], bl
call fcn.00420dd0
test eax, eax
je 0x41ce17
push 0x1c
lea esi, [esp + 0x50]
call fcn.004195f0
push 0x511cfc
mov eax, esi
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x84], ebx
call fcn.00410310
push 0x512604
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x90], 1
call fcn.00410310
add esp, 0x1c
push eax
mov ecx, esi
mov byte [esp + 0x78], 2
call fcn.00404ec0
lea ecx, [esp + 0x30]
call fcn.004012f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], bl
call fcn.004012f0
push ebx
mov ecx, esi
call fcn.004032f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebp
cmp esi, ebx
jne 0x41ce1b
cmp eax, 0xb7
je 0x41ce1b
call ebp
lea ecx, [esp + 0x4c]
call fcn.004012f0
xor al, al
jmp 0x41ce75
mov eax, dword [edi + 0x24]
cmp eax, ebx
je 0x41ce2e
push eax
call fcn.004a887c
add esp, 4
mov dword [edi + 0x24], ebx
push 0x40
push 0x512634
lea ecx, [edi + 8]
call fcn.004032f0
push eax
call fcn.004a86ec
add esp, 0xc
mov dword [edi + 0x24], eax
cmp eax, ebx
je 0x41ce68
mov ecx, dword [edi]
push eax
call fcn.00420e90
mov byte [esp + 0x13], al
mov eax, dword [edi + 0x24]
push eax
call fcn.004a887c
add esp, 4
mov dword [edi + 0x24], ebx
lea ecx, [esp + 0x4c]
call fcn.004012f0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004a58c9
add esp, 0x68
ret
Function at 0x420850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x42086f
xor al, al
jmp 0x420914
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4208cb
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4208cb
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4208cb
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4208d5
xor al, al
jmp 0x420914
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
call fcn.0041a480
mov dword [ebp - 0x14], 0
jmp 0x4208f6
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jae 0x420912
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
call fcn.0041a560
jmp 0x4208ed
mov al, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421c60
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e3778
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
xor ebp, ebp
mov ebx, ecx
cmp esi, ebp
jne 0x421caf
push ebp
push ebp
push ebp
push 2
call fcn.00423f90
xor al, al
jmp 0x421e17
call fcn.00420d20
push 2
or eax, 0xffffffff
push ebp
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.004aa5b1
push esi
call fcn.004aa4b9
push ebp
push ebp
push esi
mov edi, eax
call fcn.004aa5b1
add esp, 0x1c
cmp edi, ebp
jg 0x421cf0
push ebp
push ebp
push ebp
push 0xd
mov ecx, ebx
call fcn.00423f90
xor al, al
jmp 0x421e17
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebp
mov byte [esp + 0x18], 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], ebp
call fcn.004191e0
lea eax, [edi + 1]
push eax
call fcn.00488736
push esi
push 1
mov ebp, eax
push edi
push ebp
mov byte [ebp], 0
call fcn.004aa2ff
add esp, 0x14
cmp eax, 1
je 0x421d63
push ebp
call fcn.00488741
add esp, 4
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00423f90
cmp dword [esp + 0x2c], 0x10
jb 0x421d5c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00488741
add esp, 4
xor al, al
jmp 0x421e17
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x421dc5
mov cl, byte [esi]
cmp cl, 0xa
jne 0x421d8d
mov edx, esi
sub edx, eax
inc edx
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ac60
inc esi
mov eax, esi
jmp 0x421dc0
cmp cl, 0xd
jne 0x421dbf
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x421da5
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ac60
push 0xa
push 1
lea ecx, [esp + 0x1c]
call fcn.0040f800
cmp byte [esi + 1], 0xa
jne 0x421d88
add esi, 2
mov eax, esi
jmp 0x421dc0
inc esi
cmp byte [esi], 0
jne 0x421d71
sub esi, eax
je 0x421dd4
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0040ac60
push ebp
call fcn.00488741
mov eax, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x2c], 0x10
jae 0x421dec
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push ecx
push 0
push eax
mov ecx, ebx
call edx
cmp byte [ebx + 0x44], 0
lea ecx, [esp + 0x14]
je 0x421e10
call fcn.00401270
xor al, al
jmp 0x421e17
call fcn.00401270
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004a58c9
add esp, 0x2c
ret 8
Function at 0x421f60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e37ee
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push ebx
push eax
mov byte [esp + 0x28], 2
call fcn.00401310
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, edi
call fcn.00401310
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x422010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e382e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52d4d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x20], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov ebp, dword [esp + 0x28]
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x20], 2
mov dword [esp + 0x28], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x422082
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.00401650
mov edx, dword [esp + 0x2c]
mov eax, edx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4220a0
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00401650
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x425ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 8]
push edi
test eax, eax
je 0x425f03
push eax
call fcn.00427000
add esp, 4
mov byte [esp + 0x14], 1
test al, al
jne 0x425f08
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
xor ecx, ecx
cmp ebx, dword [esi + 0xa4]
mov dword [edx], 0
sete cl
cmp byte [esp + 0x14], 0
mov ebp, ecx
je 0x425f8b
mov ecx, dword [esi + 0x168]
mov edi, dword [esi + 0x16c]
mov eax, dword [esp + 0x20]
sub edi, ecx
cmp edi, eax
jb 0x425f42
mov edi, eax
test edi, edi
jbe 0x425f77
mov eax, dword [esi + 0x164]
add eax, ecx
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
call fcn.004a7d10
add dword [esi + 0x168], edi
mov edx, dword [esp + 0x30]
add esp, 0xc
mov byte [esi + 0x120], 0
mov dword [edx], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
cmp eax, 0x4000
jb 0x425f83
mov eax, 0x4000
mov ecx, dword [esi + 0x164]
jmp 0x425fb7
mov eax, dword [esi]
mov eax, dword [eax + 0x224]
mov ecx, eax
test eax, eax
jne 0x425f9e
mov ecx, 0x4000
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x425faa
mov eax, edx
jmp 0x425fb3
test eax, eax
jne 0x425fb3
mov eax, 0x4000
mov ecx, dword [esp + 0x1c]
lea edx, [ebp + ebp*2]
cmp dword [esi + edx*8 + 0xac], 2
jne 0x425fdf
push eax
push ecx
push ebp
push esi
call fcn.00426f30
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x42600f
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
ret
cmp dword [esi + 0x150], 0
jne 0x425ffa
push 0
push eax
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42600f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x426041
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test edi, edi
jl 0x426041
cmp byte [esp + 0x14], 0
je 0x42603b
mov eax, dword [esi + 0x164]
mov ecx, dword [esp + 0x1c]
push edi
push eax
push ecx
call fcn.004a7d10
add esp, 0xc
mov dword [esi + 0x16c], edi
mov dword [esi + 0x168], edi
mov eax, dword [esp + 0x24]
add dword [eax], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x426050
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp byte [esi + 0x244], 0
push edi
je case.default.0x4260b1
test eax, eax
je case.default.0x4260b1
mov eax, dword [eax + 0x60]
test eax, eax
je case.default.0x4260b1
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4260b1
jmp dword [edx*4 + 0x4261cc]
mov ecx, str.Header
mov edx, str.from
jmp 0x4260ce
mov ecx, str.Header
mov edx, 0x4ec3fc
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call fcn.00427fa0
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4260f0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x426145
mov ecx, dword [esi + 0xe4]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4261b2
mov eax, dword [esi + 0x140]
test eax, eax
je 0x426175
mov ecx, dword [esi + 0xe4]
mov edx, dword [esp + 0xc4]
push ecx
push edx
push ebp
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4261b2
mov eax, dword [esi + 0xe0]
mov ecx, dword [0x4ec3d4]
push eax
push 1
push 2
push ecx
call fcn.004a924b
mov edx, dword [esi + 0xe0]
push edx
push 1
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004a924b
add esp, 0x20
jmp case.default.0x4260b1
test ebx, ebx
jl 0x4261b0
cmp ebx, 2
jg 0x4261b0
mov eax, dword [esi + 0xe0]
mov ecx, dword [ebx*4 + 0x4ec3d4]
push eax
push 1
push 2
push ecx
call fcn.004a924b
mov edx, dword [esi + 0xe0]
mov eax, dword [esp + 0xd4]
push edx
push 1
push eax
push ebp
call fcn.004a924b
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a58c9
add esp, 0xa4
ret

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

Disassembly:
mov eax, dword [edi + eax*4 + 0xa0]
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 0x426355
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42633b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00429480
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00426270
add esp, 0x14
mov eax, esi
pop esi
ret

Function at 0x426560
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x52d4d0]
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 0x4265b2
mov eax, dword [esp]
cmp al, 2
jne 0x4265ac
shr eax, 8
cmp al, 2
jne 0x4265ac
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004a58c9
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.004a58c9
add esp, 0x194
ret
Function at 0x432230
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x272]
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 0x432274
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00429480
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004261e0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004261e0
add esp, 8
pop esi
pop ecx
ret
Function at 0x432680
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x428]
cmp eax, 0xffffffff
je 0x4326f1
mov ecx, dword [ecx + 0x41c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x4326f1
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
test ecx, ecx
je 0x4326ac
mov dword [ecx], eax
mov ecx, dword [eax + 0xa0]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xa8], 0
je 0x4326d9
push eax
call fcn.00426fc0
add esp, 4
test eax, eax
jne 0x4326d5
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov eax, dword [eax + 0xa0]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4326cb
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x4344c0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x522154]
xor ebx, ebx
mov esi, eax
add esp, 8
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
cmp esi, ebx
jne 0x4344f2
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2a0]
push ebp
lea ebp, [edi + 0x2a0]
push eax
mov dword [esp + 0x10], ebp
call fcn.00429b40
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x522150]
add esp, 8
mov dword [ebp], eax
cmp eax, ebx
jne 0x434539
push esi
call dword [0x522148]
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 + 0x2a4], edx
mov byte [edi + 0x2ac], bl
mov dword [edi + 0x2b0], ebx
mov dword [edi + 0x2a8], ebx
mov dword [edi + 0x2b4], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x434576
push ebp
jmp 0x4345c9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call ebp
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4345c4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x4345a1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x4345c9
push ebx
push ebx
push 1
push ebx
call ebp
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x4345b6
mov edx, dword [esp + 0xc]
push edx
jmp 0x4345c9
push ebx
push ebx
push 1
push ebx
call ebp
mov dword [esi + 0x18], eax
cmp eax, ebx
jne 0x4345e2
mov eax, dword [esp + 0xc]
push eax
call fcn.004343e0
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 0x4342b0
push ebx
push ebx
call fcn.004a82c6
add esp, 0x18
mov dword [esi], eax
cmp eax, ebx
jne 0x434621
call fcn.004aae53
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.004343e0
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 0x434660
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov ebx, dword [eax + 0x174]
mov esi, dword [edi + 0x2b4]
mov dword [esp + 0x10], eax
test ebx, ebx
jne 0x43468e
mov eax, dword [eax + 0x170]
mov ebx, eax
test eax, eax
jne 0x43468e
mov ebx, 0x493e0
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x14]
push ebx
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
mov dword [esi + 0x14], 0
mov bl, 1
test ebp, ebp
jne 0x4346f1
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x434747
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2ac], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x434711
mov edx, dword [edi + 0x2a8]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2a8], esi
jne 0x4347ef
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x434763
push ebp
mov esi, ebp
call fcn.00428b60
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.00426270
add esp, 0x10
jmp 0x4347ef
mov eax, dword [edi + 0x2b0]
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 0x434701
cmp byte [edi + 0x2ac], 0
je 0x4347c3
cmp byte [edi + 0x10f], 0
mov ecx, dword [edi + 0x2b0]
push ecx
push edi
je 0x4347a0
call fcn.00429480
mov edx, dword [edi + 0x70]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.00426270
add esp, 0x18
mov esi, 5
jmp 0x4347ef
call fcn.00429480
mov edx, dword [edi + 0x5c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.00426270
add esp, 0x18
mov esi, 6
jmp 0x4347ef
cmp ebp, 0xffffffff
je 0x4347d4
cmp dword [edi + 0x2b0], 0x2afc
jne 0x4347ea
mov ecx, dword [edi + 0x5c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.00426270
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2a0]
push eax
call fcn.004343e0
add esp, 4
cmp dword [edi + 0x2a8], 0
pop ebp
mov eax, esi
jne 0x434810
mov byte [edi + 0x10c], bl
pop edi
pop esi
pop ebx
ret
Function at 0x4348c0
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]
push esi
mov dword [eax], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x4348f6
mov ecx, dword [esp + 0x18]
push ecx
push esi
push eax
call fcn.00429860
add esp, 0xc
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.004344c0
add esp, 8
test al, al
je 0x43491a
mov edx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [edx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00429480
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.004261e0
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x434967
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00429480
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.004261e0
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.004388e0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret