joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408210
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456d76
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
push 0x105
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.00407fe0
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb4], ebx
je 0x408274
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, eax
sar edx, 1
jne 0x408281
call fcn.00435254
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x408289
xor ecx, ecx
jmp 0x40828d
sub ecx, eax
sar ecx, 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x4082ad
mov esi, dword [esp + 0x1c]
mov ecx, esi
sub ecx, edx
sar ecx, 1
cmp eax, ecx
jb 0x4082f4
push ebx
add eax, 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00408050
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4082cf
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, eax
sar edx, 1
jne 0x4082dc
call fcn.00435254
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4082e4
xor ecx, ecx
jmp 0x4082e8
sub ecx, eax
sar ecx, 1
push eax
push ecx
call edi
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp eax, ebx
jne 0x408357
push 0x13
push str.Cant_get_temp_path
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.00401680
push 0x472f70
lea eax, [esp + 0x28]
push eax
push 0x60
push str.Light::GetTemporaryPath
push str..BaseFileUtils.cpp
lea ecx, [esp + 0x54]
mov byte [esp + 0xc8], 1
call fcn.00407630
push 0x4682c0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], vtable.Light::IOException.0
call fcn.00434bcf
cmp edx, ebx
je 0x408361
sub esi, edx
sar esi, 1
jne 0x40836a
call fcn.00435254
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xbc]
mov eax, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408384
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00401680
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4083ad
push eax
call fcn.00434823
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xa8
ret
Function at 0x40b260
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457178
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], eax
mov word [esp + 0xc], ax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push eax
push 1
lea ecx, [esp + 0x10]
call fcn.004091d0
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
call fcn.0040aea0
cmp dword [esp + 0x20], 8
jb 0x40b2dd
mov eax, dword [esp + 0xc]
push eax
call fcn.00434823
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00434fe0
add esp, 0x2c
ret 8
Function at 0x40bfb0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40bfd0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x40bfe6
push 0x80004005
call fcn.00401200
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x40c010
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x40c028
push 0x80004005
call fcn.00401200
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40c035
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x40c070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c089
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c0c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40c0c0
lea ebx, [ebx]
cmp esi, eax
jae 0x40c0c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c0b0
cmp esi, eax
jb 0x40c0ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40e820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457908
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00403880
mov dword [esi], vtable.boost::bad_function_call.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x40e86a
add edi, 0x28
jmp 0x40e86c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x40e884
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_boost::bad_function_call_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x40e910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x457943
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.0040e820
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_function_call__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_function_call__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::bad_function_call__.0
je 0x40e975
lea ebx, [edi + 0x28]
jmp 0x40e977
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x40e988
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x40e998
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
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 4
Function at 0x410890
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4108fe
test ecx, ecx
je 0x4108f0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x41090c
test ecx, ecx
je 0x4109b1
push ecx
jmp 0x4109ab
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
jne 0x41097e
jmp 0x410940
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00410890
mov edi, eax
test edi, edi
jne 0x4109cd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], pe_nt_image_headers32
call esi
test eax, eax
je 0x410940
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x410995
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4109b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00434fe0
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4109dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4109b3
Function at 0x417b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x458360
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x471660]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x47148c]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x417b9d
call fcn.004101a0
mov esi, eax
jmp 0x417c85
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x417bb9
call fcn.004101a0
jmp 0x417c7c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x417bd2
call fcn.004101a0
jmp 0x417c7c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x417c08
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x417bf6
lea ecx, [ebp]
call fcn.00410850
lea ecx, [ebp - 0x1c]
call fcn.0040f9c0
mov eax, 0x8007000e
jmp 0x417ca2
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004112c0
mov dword [ebp - 4], 1
jmp 0x417c31
mov ebx, dword [ebp]
test ebx, ebx
jne 0x417c3f
mov esi, 0x8007000e
jmp 0x417c7e
call dword [0x47148c]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x417c60
call fcn.004101a0
jmp 0x417c7c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00412270
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x417ca0
lea ecx, [ebp]
call fcn.00410850
jmp 0x417ca0
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 + 0x404]
xor ecx, ebp
call fcn.00434fe0
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418f80
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x4585d4
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
push 1
push 0x4730b0
call edi
test eax, eax
jne 0x419145
push 1
push 2
lea ecx, [esp + 0x48]
call fcn.00406c70
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
mov dword [esp + 0xec], ebx
call fcn.00418920
add esp, 4
mov esi, eax
mov byte [esp + 0xe8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._Mutex
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.00406660
add esp, 8
push eax
call fcn.004068f0
add esp, 8
mov ecx, eax
call fcn.00406b10
mov esi, 8
cmp dword [esp + 0x3c], esi
mov byte [esp + 0xe8], bl
jb 0x419049
mov edx, dword [esp + 0x28]
push edx
call fcn.00434823
add esp, 4
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x44]
call fcn.00403420
cmp dword [esp + 0xd8], esi
mov eax, dword [esp + 0xc4]
jae 0x419071
lea eax, [esp + 0xc4]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push eax
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 1
push 0x4730b0
mov byte [esp + 0xf4], 4
call edi
test eax, eax
jne 0x4190c4
call fcn.004189e0
call fcn.0040fac0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4190de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xd8], esi
jb 0x4190f7
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00434823
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
mov dword [esp + 0xe8], 0xffffffff
call fcn.004028e0
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00431014
add esp, 4
jmp 0x41914a
call fcn.004189e0
mov eax, dword [0x4730a8]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00434fe0
add esp, 0xdc
ret
Function at 0x419740
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4197b6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x419785
cmp eax, 2
jne 0x4197a1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4197b0
test eax, eax
je 0x4197ab
test al, 1
jne 0x4197a1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4197b0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x41ac50
Capabilities:
Connect socket

Disassembly:
sub esp, 0x2c
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x41ac65
mov al, 1
pop esi
add esp, 0x2c
ret 8
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
push ebx
mov bl, 1
jne 0x41ac7a
pop ebx
xor al, al
pop esi
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x41ace4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41acdf
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41ace2
push 0x2c
push eax
lea edx, [esp + 0x10]
push edx
call fcn.00435750
mov ecx, dword [esi + 0x40]
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push ecx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41ace4
mov dword [esi + 0x48], eax
xor bl, bl
mov byte [esi + 0x44], bl
mov al, bl
pop ebx
pop esi
add esp, 0x2c
ret 8
Function at 0x41ad00
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
test eax, eax
je 0x41ad2c
mov dword [esi + 0x48], 0x2749
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
mov edx, dword [esi + 8]
push 0
push edx
call ebx
cmp eax, 0x102
jne 0x41ad4c
mov dword [esi + 0x48], 0x2734
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 0xc
push ebp
push edi
mov edi, dword [esp + 0x30]
lea ebp, [esi + 0x28]
push ebp
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x40]
push 0
push edi
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x41ad9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x41ade7
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
push ecx
push edx
call ebx
test eax, eax
jne 0x41adea
mov edx, dword [esi + 0x40]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x41ade1
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x14
ret 0xc
Function at 0x41ae00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push eax
push ecx
call edi
test eax, eax
je 0x41ae2c
pop edi
mov dword [esi + 0x48], 0x2749
xor al, al
pop esi
add esp, 0x20
ret 8
mov edx, dword [esi + 4]
push ebx
xor ebx, ebx
push ebx
push edx
call edi
cmp eax, 0x80
jne 0x41ae4f
pop ebx
pop edi
mov dword [esi + 0x48], 0x2734
xor al, al
pop esi
add esp, 0x20
ret 8
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [edi]
push ebp
mov dword [esp + 0x18], eax
xor eax, eax
lea ebp, [esi + 0x10]
push ebp
mov dword [esp + 0x18], ecx
mov dword [edi], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x18]
push eax
push edi
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41aec4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x41af10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41af13
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x10]
push edx
push ebx
push edi
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x41af0a
push ebp
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x48], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x20
ret 8

Function at 0x41c270
Capabilities:
Initialize winsock library

Disassembly:
push ebx
xor eax, eax
push esi
mov esi, ecx
lea ecx, [esi + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
xor ebx, ebx
mov dword [ecx + 0x14], eax
call fcn.00401250
cmp eax, ebx
jge 0x41c29b
push eax
call fcn.00401200
lea ecx, [esi + 0x28]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00401250
cmp eax, ebx
jge 0x41c2c0
push eax
call fcn.00401200
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x40], 0xffffffff
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x471278], ebx
je 0x41c2fd
push 0x4710e8
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x471278], eax
mov eax, esi
pop esi
pop ebx
ret