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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x434857
cmp byte [esi + 0x5c], 0x77
jne 0x434857
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x43483b
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4347f5
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0041e3d0
add esp, 0x10
cmp eax, 0x4000
jne 0x434834
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
add eax, edx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add ecx, eax
push 0
push esi
mov dword [esi + 0x68], ecx
call fcn.00432c20
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x64]
sub edx, ecx
add esp, 8
mov dword [esi + 0x64], edx
mov edx, dword [esi + 0x10]
sub dword [esi + 0x68], edx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x43483b
test ecx, ecx
jne 0x4347ca
jmp 0x43483b
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.00437f30
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x434860
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x434926
cmp byte [esi + 0x5c], 0x77
jne 0x434926
mov ebp, dword [esp + 0x18]
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x4348b3
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0041e3d0
add esp, 0x10
cmp eax, edi
jne 0x43490a
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x434915
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x68]
add ecx, eax
push ebp
push esi
mov dword [esi + 0x68], ecx
call fcn.00432c20
mov ecx, dword [esi + 0x10]
mov ebx, dword [esi + 0x68]
add esp, 8
sub ebx, ecx
test edi, edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x68], ebx
jne 0x4348e6
cmp eax, 0xfffffffb
jne 0x4348e6
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x4348f4
cmp dword [esi + 0x38], 1
je 0x4348f4
xor ebx, ebx
jmp 0x4348f9
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x434883
cmp eax, 1
jne 0x434915
jmp 0x434883
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x103cc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.103cc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x103cc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103cc06a
add dl, dl
jne 0x103cc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103cc0dc
xor eax, eax
add dl, dl
jne 0x103cc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x103cc17d
add dl, dl
jne 0x103cc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103cc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103cc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103cc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x103cc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x103cc075
mov eax, 1
add dl, dl
jne 0x103cc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103cc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103cc0e1
sub eax, ebx
mov ebx, 1
jne 0x103cc128
mov ecx, 1
add dl, dl
jne 0x103cc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103cc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103cc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103cc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x103cc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x103cc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x103cc136
cmp eax, 0x7d00
jae 0x103cc16d
cmp eax, 0x500
jb 0x103cc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103cc075
cmp eax, 0x7f
ja 0x103cc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x103cc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x103cc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x103cc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40ce01
Capabilities:
Encode data using xor

Disassembly:
sub edx, dword [ebp + 2]
adc al, 0xc2
xchg dword [ecx + 0x65], esi
inc esi
xor byte [esp + edi + 0x32], cl
cld
adc byte [edi - 0x5a], 0x78
sub byte [esi + 0x29], dl
call 0xcaa14bc2
push eax
dec ebx
and dword [eax + 0x6f586ea8], ebx
pop es
cmp dh, byte [esi - 0x26]
or bh, bh
adc dword [0xe7d25a03], edx
shr byte [esi - 0x2285e0cf], 1
invalid

Function at 0x45c129
Capabilities:
Encode data using xor

Disassembly:
lahf
wait
sub ch, al
nop
mov edx, ds
mov al, dh
sbb eax, 0x1bcb89f2
xchg dl, dh
dec esi
dec ebx
cmp byte [0x27fbc492], bl
dec esi
fld xword [edx]
dec ebp
stosb byte es:[edi], al
scasb al, byte es:[edi]
inc ebx
scasb al, byte es:[edi]
mov byte [0xdcfa2001], al
jnp 0x45c18c
stosd dword es:[edi], eax
xor byte [eax + ebx*8 + 0x306f1144], dh
and al, 0x43
lds ebx, [eax]
loop 0x45c153
cmpsb byte [esi], byte es:[edi]

Function at 0x468761
Capabilities:
Encode data using xor

Disassembly:
neg dword [eax]
fucompi st(6)
xor eax, 0x7562734b
or ebp, dword [ebx]
xor dh, byte [ecx]
lea eax, [edx]
in eax, dx
invalid

Function at 0x4ba905
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3398
cmp edx, dword [eax]
je 0x4ba927
add eax, 8
inc ecx
cmp eax, 0x4c3428
jl 0x4ba918
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3398]
jne 0x4baa55
mov eax, dword [0x4c7d1c]
cmp eax, 1
je 0x4baa2f
test eax, eax
jne 0x4ba958
cmp dword [0x4c32c0], 1
je 0x4baa2f
cmp edx, 0xfc
je 0x4baa55
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba98f
lea eax, [ebp - 0x1a4]
push 0x4bfb70
push eax
call fcn.004bb2f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb780
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba9d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb780
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb6c
push edi
call fcn.004bd650
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfb50
push eax
call fcn.004bb2f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb300
lea eax, [ebp - 0xa0]
push 0x4bfb4c
push eax
call fcn.004bb300
push dword [esi + 0x4c339c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb300
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfb24
push eax
call fcn.004bd5c4
add esp, 0x2c
pop edi
jmp 0x4baa55
lea eax, [ebp + 8]
lea esi, [esi + 0x4c339c]
push 0
push eax
push dword [esi]
call fcn.004bb780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x441996
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.004100a8
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040269a
lea ecx, [esp + 8]
call fcn.00402286
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0043dfee
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442dc2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.00429359
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040253d
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043dfee
mov esp, ebp
pop ebp
ret 4

Function at 0x4066c0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042c04b
Function at 0x407dda
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x407e47
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x407e37
mov ecx, esi
call fcn.00407ae0
jmp 0x407e49
cmp dword [esp + 0xc], 6
jb 0x407e47
mov ecx, esi
call fcn.00407323
jmp 0x407e49
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043dfee
mov esp, ebp
pop ebp
ret
Function at 0x40c30a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442d92
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x40c354
xor eax, eax
jmp 0x40c4b2
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c37d
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40c37d
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c4b2
cmp dword [edi + 0x50], 0
je 0x40c4b0
mov ecx, edi
call fcn.0040d369
cmp dword [edi + 0x40], 0
jne 0x40c3ad
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x40c4b0
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040ce00
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40c4a7
cmp eax, 1
jg 0x40c48c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x40c456
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x40c4a7
jmp 0x40c45a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40c488
test ecx, ecx
jne 0x40c3c1
cmp dword [esp + 0x30], 0x20
jae 0x40c4a7
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040ce45
jmp 0x40c3c1
mov esi, ebx
jmp 0x40c4a7
cmp eax, 3
jne 0x40c4a7
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.00402286
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0043dfee
mov esp, ebp
pop ebp
ret 4
Function at 0x40d1f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442986
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x46a034]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40d31c
cmp byte [esi + 0x45], bl
je 0x40d31c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40d253
xor al, al
jmp 0x40d31e
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ce00
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x40d2a3
dec eax
je 0x40d2a6
dec eax
dec eax
jne 0x40d30f
inc eax
jmp 0x40d30d
mov byte [esi + 0x45], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x40d2ea
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x40d30b
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40d309
test edx, edx
jne 0x40d266
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040ce45
jmp 0x40d262
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40d31e
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043dfee
mov esp, ebp
pop ebp
ret

Function at 0x40ee9b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40eead
push 0xd
pop eax
jmp 0x40eedf
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40eeb6
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40ff86
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.00438c19
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x41141c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x46a034]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x472d14
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41145e
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x472d18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043dfee
mov esp, ebp
pop ebp
ret

Function at 0x411610
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x472c8c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x41165b
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x411671
push fcn.00403297
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret
Function at 0x411675
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 1
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x4116cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043f990
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00411334
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x41171a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.0043f990
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00411334
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x4117a2
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x411789
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x41175b
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x41176a
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043f990
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00411334
test edi, edi
je 0x411799
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41209b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x412160
cmp byte [ebp + 8], 0
je 0x4120e6
test byte [eax], 8
je 0x4120e6
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0043f990
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.0041251b
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.004177f0
mov edi, eax
test edi, edi
je 0x412160
call fcn.0043f990
cmp dword [esi + 4], eax
jne 0x412116
cmp dword [esi], 0x2733
je 0x412128
call fcn.0043f990
cmp dword [esi + 4], eax
jne 0x41215c
cmp dword [esi], 0x4d5
jne 0x41215c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.004177f0
mov edi, eax
test edi, edi
jne 0x41216b
call fcn.0043f990
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412172
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x412193
call fcn.0043f990
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x4121be
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov edx, esi
mov ecx, eax
call fcn.004177f0
test eax, eax
jne 0x4121c1
call fcn.0043f990
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.0043f990
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.004112f7
test al, al
je 0x4121fb
call fcn.0043f990
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.004112f7
test al, al
jne 0x41223a
mov edx, esi
mov ecx, edi
call fcn.0041271e
test eax, eax
js 0x41223a
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, edi
mov dword [ebp - 8], 4
call fcn.0041257f
add esp, 0x14
cmp eax, 0xffffffff
je 0x41223a
call fcn.0043f990
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret