joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100951b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6133
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x100cc314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push str.SOFTWAREXYouNetCommon
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
call fcn.1001ba90
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x10095390
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1006bb10
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x100ba4f8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10095390
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x10095284
cmp eax, 2
jne 0x10095390
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x100952a5
test cl, 1
jne 0x10095390
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x100952ab
jmp 0x10095390
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x10095390
call fcn.1001b1e0
mov ecx, eax
test ecx, ecx
je 0x100953bb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.10093850
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x100ba500
push eax
call fcn.10095750
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.10093ca0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x10095374
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10095315
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.1001bda0
push dword [0x100cdd94]
lea eax, [ebp - 0x74]
push dword [0x100cdd90]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x10095351
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1009536d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x10095392
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10095390
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x1009539d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061f52
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1001ae50
int3
Function at 0x10095450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a6168
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100cc314]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push str.SOFTWAREXYouNetCommon
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.1001ba90
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1009557b
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x10095526
cmp dword [esi], 0
je 0x10095519
push 0x100a79e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100954e2
mov eax, 1
jmp 0x1009554b
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1009551f
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push str.SOFTWAREXYouNetCommon
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x1009554b
cmp dword [esi + 4], 0
jne 0x10095526
mov eax, 1
jmp 0x1009554b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push str.SOFTWAREXYouNetCommon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10095571
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10095559
push ecx
call edi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x1009557e
xor ebx, ebx
jmp 0x10095625
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x10095625
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x100955d8
mov ecx, dword [ebx]
test ecx, ecx
je 0x10095640
push ecx
push eax
call fcn.1007529b
add esp, 8
test eax, eax
je 0x100955d8
mov edx, dword [edi]
test edx, edx
je 0x100955d8
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100955b0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.mold
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x100955e3
lea eax, [edx + 0xd]
jmp 0x10095618
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100955f0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x100ba4f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x1009562c
push esi
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1001ae50
int3
Function at 0x100984d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10098541
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1009850f
cmp eax, 2
jne 0x1009852b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1009853b
test ecx, ecx
je 0x10098536
test cl, 1
jne 0x1009852b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1009853b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1009b110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.1009b240
add esp, 8
test al, al
je 0x1009b135
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1009b135
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x1009b240
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x1009b5c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1009b5eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1009b5eb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440493
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x467034]
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.0040f69d
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.0043cb06
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 0x441774
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x467034]
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.0042895c
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.0043cb06
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.0042b650
Function at 0x407dda
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x467034]
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.0043cb06
mov esp, ebp
pop ebp
ret
Function at 0x40b962
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4417c7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
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 0x40b9ac
xor eax, eax
jmp 0x40bb0a
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b9d5
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40b9d5
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 0x40bb0a
cmp dword [edi + 0x50], 0
je 0x40bb08
mov ecx, edi
call fcn.0040c95e
cmp dword [edi + 0x40], 0
jne 0x40ba05
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 0x40bb08
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040c3f5
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 0x40baff
cmp eax, 1
jg 0x40bae4
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 0x40baae
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 0x40baff
jmp 0x40bab2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40bae0
test ecx, ecx
jne 0x40ba19
cmp dword [esp + 0x30], 0x20
jae 0x40baff
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040c43a
jmp 0x40ba19
mov esi, ebx
jmp 0x40baff
cmp eax, 3
jne 0x40baff
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.0043cb06
mov esp, ebp
pop ebp
ret 4
Function at 0x40c7e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4413cf
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x467034]
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 0x40c911
cmp byte [esi + 0x45], bl
je 0x40c911
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40c848
xor al, al
jmp 0x40c913
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040c3f5
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 0x40c898
dec eax
je 0x40c89b
dec eax
dec eax
jne 0x40c904
inc eax
jmp 0x40c902
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 0x40c8df
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 0x40c900
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40c8fe
test edx, edx
jne 0x40c85b
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040c43a
jmp 0x40c857
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40c913
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.0043cb06
mov esp, ebp
pop ebp
ret

Function at 0x40e490
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40e4a2
push 0xd
pop eax
jmp 0x40e4d4
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 0x40e4ab
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 0x40f57b
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.00436814
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 0x410a14
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x467034]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x46fd14
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x410a56
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x46fd18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043cb06
mov esp, ebp
pop ebp
ret

Function at 0x410c08
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 0x46fc8c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x410c53
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x410c69
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 0x410c6d
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 0x410cc7
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.0043e4b0
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0041092c
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 0x410d12
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.0043e4b0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0041092c
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x410d9a
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 0x410d81
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 0x410d53
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x410d62
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043e4b0
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0041092c
test edi, edi
je 0x410d91
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 0x411693
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 0x411758
cmp byte [ebp + 8], 0
je 0x4116de
test byte [eax], 8
je 0x4116de
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0043e4b0
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.00411b13
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.00416de4
mov edi, eax
test edi, edi
je 0x411758
call fcn.0043e4b0
cmp dword [esi + 4], eax
jne 0x41170e
cmp dword [esi], 0x2733
je 0x411720
call fcn.0043e4b0
cmp dword [esi + 4], eax
jne 0x411754
cmp dword [esi], 0x4d5
jne 0x411754
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.00416de4
mov edi, eax
test edi, edi
jne 0x411763
call fcn.0043e4b0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41176a
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 0x41178b
call fcn.0043e4b0
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x4117b6
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.00416de4
test eax, eax
jne 0x4117b9
call fcn.0043e4b0
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.0043e4b0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.004108ef
test al, al
je 0x4117f3
call fcn.0043e4b0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.004108ef
test al, al
jne 0x411832
mov edx, esi
mov ecx, edi
call fcn.00411d16
test eax, eax
js 0x411832
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.00411b77
add esp, 0x14
cmp eax, 0xffffffff
je 0x411832
call fcn.0043e4b0
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret