joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, edx
mov edx, dword [esp + 4]
test edx, edx
jbe 0x416f39
push esi
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x434fa0]
dec edx
inc ecx
test edx, edx
ja 0x416f1d
pop esi
ret 4

Function at 0x4171fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.004170d6
mov eax, dword [esi]
lea eax, [eax*8 - 4]
xor edx, edx
mov dword [ebp + 0x10], eax
test eax, eax
jbe 0x417286
push ebx
mov ecx, 0xff
push edi
mov eax, dword [esi + edx*4 + 0x14]
mov edi, eax
shr edi, 0x10
and edi, ecx
movzx edi, byte [edi + 0x4313a8]
mov edi, dword [edi*4 + 0x433bf8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
movzx ebx, byte [ebx + 0x4313a8]
xor edi, dword [ebx*4 + 0x4337f8]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + 0x4313a8]
xor edi, dword [ebx*4 + 0x433ff8]
and eax, ecx
movzx eax, byte [eax + 0x4313a8]
xor edi, dword [eax*4 + 0x4333f8]
inc edx
mov dword [esi + edx*4 + 0x10], edi
cmp edx, dword [ebp + 0x10]
jb 0x417229
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x4176dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x4176f1
xor eax, eax
jmp 0x417780
push 0x10
pop eax
cmp ebx, eax
jb 0x417780
sub ebx, eax
add ebx, eax
shr ebx, 4
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
shl eax, 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x10]
call fcn.0041728b
mov eax, dword [esi]
xor eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x1c]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x18]
mov dword [edi - 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 0x14]
dec ebx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
jne 0x417713
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x404000
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x476110]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 0x3c]
push str.btn_sys_close
mov ecx, esi
call fcn.0040f7d7
push str.btn_select
mov ecx, esi
mov dword [ebx + 0x3d4], eax
call fcn.0040f7d7
push str.option_startmenu
mov ecx, esi
mov dword [ebx + 0x3e8], eax
call fcn.0040f7d7
push str.option1
mov ecx, esi
mov dword [ebx + 0x3f8], eax
call fcn.0040f7d7
push str.option2
mov ecx, esi
mov dword [ebx + 0x3fc], eax
call fcn.0040f7d7
push str.option_lockie
mov ecx, esi
mov dword [ebx + 0x400], eax
call fcn.0040f7d7
push str.option3
mov ecx, esi
mov dword [ebx + 0x410], eax
call fcn.0040f7d7
push str.option_run
mov ecx, esi
mov dword [ebx + 0x404], eax
call fcn.0040f7d7
push str.edit_path
mov ecx, esi
mov dword [ebx + 0x408], eax
call fcn.0040f7d7
push str.btn_install
mov ecx, esi
mov dword [ebx + 0x3ec], eax
call fcn.0040f7d7
push str.tab_install
mov ecx, esi
mov dword [ebx + 0x40c], eax
call fcn.0040f7d7
push str.label_text
mov ecx, esi
mov dword [ebx + 0x3f4], eax
call fcn.0040f7d7
push str.label_installto
mov ecx, esi
mov dword [ebx + 0x414], eax
call fcn.0040f7d7
push str.progress
mov ecx, esi
mov dword [ebx + 0x3f0], eax
call fcn.0040f7d7
push str.btn_ok
mov ecx, esi
mov dword [ebx + 0x418], eax
call fcn.0040f7d7
push str.label_appname
mov ecx, esi
mov dword [ebx + 0x41c], eax
call fcn.0040f7d7
mov dword [ebx + 0x3e4], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
push 0x46b764
call eax
mov ecx, dword [ebx + 0x3f8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14c]
push 1
call eax
mov ecx, dword [ebx + 0x408]
mov edx, dword [ecx]
push 1
mov eax, dword [edx + 0x14c]
call eax
mov ecx, dword [ebx + 0x418]
push 0
call fcn.00415131
mov ecx, dword [ebx + 0x414]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push str.ck_W
call eax
mov ecx, dword [ebx + 0x3ec]
push 1
call fcn.004159e8
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.0044a310
add esp, 0xc
push 0
push 0x26
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404239
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4041d0
mov ecx, dword [0x46b464]
lea eax, [esp + 0xc]
mov dword [edi], ecx
lea edx, [eax + 2]
pop edi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4041f0
sub eax, edx
sar eax, 1
push eax
lea esi, [ebx + 0x420]
lea eax, [esp + 0xc]
call fcn.00401510
push 6
mov eax, 0x46b764
mov ecx, esi
call fcn.00401370
cmp dword [esi + 0x18], 8
jb 0x404228
mov esi, dword [esi + 4]
jmp 0x40422b
add esi, 4
mov ecx, dword [ebx + 0x3ec]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push esi
call eax
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
xor ecx, esp
call fcn.004468f0
add esp, 0x210
ret
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440406
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.0040f20e
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.0043ca4a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44160e
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.0042865b
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.0043ca4a
mov esp, ebp
pop ebp
ret 4

Function at 0x406666
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b351
Function at 0x407d80
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 0x407ded
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 0x407ddd
mov ecx, esi
call fcn.00407a86
jmp 0x407def
cmp dword [esp + 0xc], 6
jb 0x407ded
mov ecx, esi
call fcn.004072c9
jmp 0x407def
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.0043ca4a
mov esp, ebp
pop ebp
ret
Function at 0x40b4d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4415de
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 0x40b51d
xor eax, eax
jmp 0x40b67b
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b546
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40b546
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 0x40b67b
cmp dword [edi + 0x50], 0
je 0x40b679
mov ecx, edi
call fcn.0040c4cf
cmp dword [edi + 0x40], 0
jne 0x40b576
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 0x40b679
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040bf66
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 0x40b670
cmp eax, 1
jg 0x40b655
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 0x40b61f
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 0x40b670
jmp 0x40b623
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40b651
test ecx, ecx
jne 0x40b58a
cmp dword [esp + 0x30], 0x20
jae 0x40b670
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040bfab
jmp 0x40b58a
mov esi, ebx
jmp 0x40b670
cmp eax, 3
jne 0x40b670
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.0043ca4a
mov esp, ebp
pop ebp
ret 4
Function at 0x40c359
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44123c
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 0x40c482
cmp byte [esi + 0x45], bl
je 0x40c482
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40c3b9
xor al, al
jmp 0x40c484
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040bf66
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 0x40c409
dec eax
je 0x40c40c
dec eax
dec eax
jne 0x40c475
inc eax
jmp 0x40c473
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 0x40c450
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 0x40c471
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40c46f
test edx, edx
jne 0x40c3cc
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040bfab
jmp 0x40c3c8
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40c484
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.0043ca4a
mov esp, ebp
pop ebp
ret

Function at 0x40e001
Capabilities:
Set registry value

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

Disassembly:
push edi
mov edi, ecx
call fcn.00437675
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 0x410585
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 0x4105c7
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.0043ca4a
mov esp, ebp
pop ebp
ret

Function at 0x410779
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 0x4107c4
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4107da
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 0x4107de
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 0x410838
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.0043e400
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0041049d
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 0x410883
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.0043e400
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0041049d
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x41090b
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 0x4108f2
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 0x4108c4
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x4108d3
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0043e400
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0041049d
test edi, edi
je 0x410902
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 0x411204
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 0x4112c9
cmp byte [ebp + 8], 0
je 0x41124f
test byte [eax], 8
je 0x41124f
xor eax, eax
mov dword [ebp - 4], eax
call fcn.0043e400
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.00411684
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.00416946
mov edi, eax
test edi, edi
je 0x4112c9
call fcn.0043e400
cmp dword [esi + 4], eax
jne 0x41127f
cmp dword [esi], 0x2733
je 0x411291
call fcn.0043e400
cmp dword [esi + 4], eax
jne 0x4112c5
cmp dword [esi], 0x4d5
jne 0x4112c5
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.00416946
mov edi, eax
test edi, edi
jne 0x4112d4
call fcn.0043e400
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4112db
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 0x4112fc
call fcn.0043e400
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x411327
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.00416946
test eax, eax
jne 0x41132a
call fcn.0043e400
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.0043e400
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.00410460
test al, al
je 0x411364
call fcn.0043e400
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.00410460
test al, al
jne 0x4113a3
mov edx, esi
mov ecx, edi
call fcn.00411887
test eax, eax
js 0x4113a3
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.004116e8
add esp, 0x14
cmp eax, 0xffffffff
je 0x4113a3
call fcn.0043e400
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret
Function at 0x4113a7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x4113cf
call fcn.0043e400
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x4114cc
cmp byte [ebp + 0x14], 0
je 0x4113e7
test bl, 0x10
je 0x4113e7
call fcn.0043e400
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x4113c7
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.00416946
cmp dword [esi], 0x40
mov dword [ebp - 8], eax
jne 0x41142f
call fcn.0043e400
mov dword [esi], 0x2746
jmp 0x411442
cmp dword [esi], 0x4d2
jne 0x411448
call fcn.0043e400
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x411451
or eax, 0xffffffff
jmp 0x411463
call fcn.0043e400
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x4114ce
test bl, 0x10
je 0x41146c
test eax, eax
je 0x4114be
test bl, 1
jne 0x4114cc
call fcn.0043e400
lea edx, [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], eax
call fcn.00410460
test al, al
je 0x4114ab
call fcn.0043e400
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], 0x4d5
mov dword [ebp - 0x1c], eax
call fcn.00410460
test al, al
jne 0x4114cc
push esi
mov ecx, edi
call fcn.00411759
pop ecx
test eax, eax
jns 0x4113ea
jmp 0x4114cc
call fcn.00410523
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411759
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x467034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x41178b
call fcn.0043e400
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x4117e1
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.00416946
mov edi, eax
test edi, edi
je 0x4117d5
jle 0x4117df
call fcn.0043e400
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043ca4a
leave
ret