joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a032
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [edi + 0x9c]
mov dword [edi + 0x54], 1
call sub.MFC80U.DLL_Ordinal_6086
mov eax, dword [edi + 0x20]
push ebx
push 1
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push ebx
push ecx
call ebp
mov edx, dword [esp + 0x44]
push esi
lea ecx, [esp + 0x14]
mov dword [edi + 0x80], edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
je 0x401e84
lea esi, [edi + 0x68]
jmp 0x401f03
push 0x11c
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x38], 1
je 0x401ea8
push eax
call fcn.00407f20
mov esi, eax
jmp 0x401eaa
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x38], bl
je 0x401efc
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
mov eax, dword [eax + 0x13c]
add ecx, 0x3e8
push ecx
push edi
lea edx, [esp + 0x28]
push edx
push 0x50000000
push 0x42d894
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call eax
test eax, eax
je 0x401efc
call fcn.00408bf0
mov dword [esi + 0x10c], 0x78431a
mov dword [esp + 0x1c], esi
lea esi, [edi + 0x58]
lea ebx, [esp + 0x10]
call fcn.00403190
mov ecx, dword [edi + 0x20]
push 1
push 0
push ecx
call ebp
mov ecx, ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x403c00
Capabilities:
Resolve dns

Disassembly:
mov ax, word [esp + 8]
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, ecx
push 0
push 0x2e
mov ecx, edi
mov dword [ebx], 0
mov word [ebx + 4], ax
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
je 0x403c87
cmp dword [edi + 0x18], 0x10
push esi
lea esi, [edi + 4]
jb 0x403c3b
mov eax, dword [esi]
jmp 0x403c3d
mov eax, esi
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x403c71
cmp dword [edi + 0x18], 0x10
jb 0x403c54
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x403c68
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebx], ecx
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
ret 8
cmp dword [edi + 0x18], 0x10
jb 0x403c79
mov esi, dword [esi]
push esi
call ebp
pop ebp
pop esi
mov dword [ebx], eax
pop edi
mov eax, ebx
pop ebx
ret 8
pop edi
mov dword [ebx], 0xffffffff
mov eax, ebx
pop ebx
ret 8

Function at 0x403ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428729
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor edi, edi
push 0x42dca4
mov ecx, esi
mov dword [esp + 0x18], edi
call dword [0x42c510]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4040e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429538
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.00403ff0
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x64], 0
call fcn.0040b980
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [esp + 0x24], 0x10
jae 0x40413e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll____kLR____zj1.G_1sW_x43h__fXWou___Tn]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x2c], 0x1b58
mov dword [esp + 0x30], 0x1b
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
call dword [sym.imp.MSVCR80.dll__time32]
add esp, 4
lea ebx, [esp + 0xc]
call fcn.00404500
mov ecx, ebx
mov dword [esp + 0x5c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00426052
add esp, 0x58
ret 0x14

Function at 0x405c00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
mov esi, ecx
call sub.MFC80U.DLL_Ordinal_4574
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x20]
push edx
push 0
push 0x80
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0x18e
lea edx, [esp + 0xe]
push 0
push edx
mov dword [0x43ccdc], ecx
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x64
push 0x2717
push ecx
call edi
mov edx, dword [esi + 0x20]
push 0
push 0x32
push 0x2718
push edx
call edi
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00426052
mov esp, ebp
pop ebp
ret
Function at 0x409e40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429c49
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0xc]
mov ecx, esi
mov dword [edi + 4], eax
call fcn.00407070
mov eax, 3
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
add edi, 0x1c
mov dword [esp + 0x10], eax
mov edx, dword [esi + 4]
test edx, edx
jne 0x409ea1
xor ecx, ecx
jmp 0x409ea9
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x409eca
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x409eca
mov eax, dword [esi + 8]
mov dword [eax], 3
add eax, 4
mov dword [esi + 8], eax
jmp 0x409eea
mov ebx, dword [esi + 8]
cmp edx, ebx
jbe 0x409ed7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x14]
push ecx
push ebx
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.004071b0
mov edx, dword [edi + 4]
test edx, edx
jne 0x409ef5
xor ecx, ecx
jmp 0x409efd
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x409f1e
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x409f1e
mov eax, dword [edi + 8]
mov dword [eax], 0
add eax, 4
mov dword [edi + 8], eax
jmp 0x409f3e
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x409f2b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x18]
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.004071b0
sub dword [esp + 0x10], 1
jne 0x409e96
xor edi, edi
lea edx, [edi*4 + 0x43ceb4]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x409faf
push 0x1bb
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
call fcn.0040b770
mov ecx, dword [esi + 4]
add esp, 8
test ecx, ecx
mov ebx, eax
je 0x409fa3
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x409fa9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 4]
mov dword [eax + edi*4], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add edi, 1
cmp edi, 3
jb 0x409f4b
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a080
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x429c1f
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CProxyChecker.0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x40b640
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4284d9
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x2d]
push ebx
mov dword [esp + 0x140], ebx
push eax
mov byte [esp + 0x34], bl
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x14c]
mov eax, dword [ecx - 0xc]
add esp, 0xc
push eax
push eax
lea ecx, [esp + 0x148]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
lea edx, [esp + 0x30]
push 0x104
push edx
call fcn.0042082c
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [esp + 0x144]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push ebx
push ebx
push ebx
push ebx
push str.proxy
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
cmp esi, ebx
je 0x40b72c
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x40b707
lea eax, [esp + 0x10]
push ebx
push SysReAllocString
push ebx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
push esi
jne 0x40b724
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40b72c
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov bl, 1
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x140]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, bl
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00426052
add esp, 0x130
ret
Function at 0x40b770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x429bc5
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x29]
push 0
mov dword [esp + 0x140], 0
push eax
mov byte [esp + 0x30], 0
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x14c]
mov eax, dword [ecx - 0xc]
add esp, 0xc
push eax
push eax
lea ecx, [esp + 0x148]
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
lea edx, [esp + 0x2c]
push 0x104
push edx
call fcn.0042082c
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [esp + 0x144]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x144]
push ecx
lea ecx, [esp + 0xc]
mov byte [esp + 0x13c], 1
call fcn.0040cca0
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x138], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x140]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.00426052
add esp, 0x134
ret
Function at 0x40b880
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x4284a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x10], ebp
je 0x40b8c4
push ebp
push eax
call edi
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call edi
push 0x42eef8
lea ecx, [esp + 0x18]
mov edi, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x40b910
push str.AllowSetForegroundWindow
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b909
mov edx, dword [esp + 0x10]
push edx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, edi
je 0x40b940
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push edi
push esi
call ebp
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 8
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
push esi
call ebp
mov esi, dword [esp + 0x18]
jmp 0x40b952
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 8
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x40beb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
push ebp
je 0x40bff3
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x40bff3
cmp ebp, 8
push esi
mov esi, dword [esp + 0xc]
not esi
jl 0x40bfc4
push edi
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
jmp 0x40bef0
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42de00]
add ecx, 1
sub edi, 1
mov esi, eax
jne 0x40bef0
pop edi
test ebp, ebp
je 0x40bfec
jmp 0x40bfd0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x42de00]
add ecx, 1
sub ebp, 1
jne 0x40bfd0
mov eax, esi
pop esi
not eax
pop ebp
ret
mov eax, dword [esp + 8]
pop ebp
ret

Function at 0x40c740
Capabilities:
Create thread

Disassembly:
push ecx
lea ecx, [esp]
push ecx
push 0
lea eax, [esi + 8]
push eax
push 0x40c8a0
push 0
push 0
mov byte [esi + 0x18], 0
mov dword [eax], esi
mov dword [esi + 0xc], 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40c779
mov dword [esi + 4], 0
cmp dword [esi + 4], 0
jne 0x40c787
mov byte [esi + 0x18], 1
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret

Function at 0x40cf90
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov dword [esi + 4], vtable.fund::noncopyable.0
xor cl, cl
mov byte [esi + 0xc], cl
mov byte [esi + 0xd], cl
mov byte [esi + 0xe], cl
lea ecx, [esp]
push ecx
push 0x8004667e
push eax
mov dword [esi], vtable.Catalyst::Socket.0
mov dword [esi + 4], vtable.Catalyst::Socket.1.0
mov dword [esi + 8], eax
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, esi
pop ecx
ret
Function at 0x40da80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
mov eax, dword [ecx + 4]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0xe]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, esi
push eax
call fcn.0040cf00
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.00426052
mov esp, ebp
pop ebp
ret 4
Function at 0x40fd40
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push str.proxy
mov esi, ecx
mov edi, edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x40fd92
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00426052
add esp, 0x414
ret
cmp dword [esi + 0x18], 0x10
jb 0x40fd9d
mov esi, dword [esi + 4]
jmp 0x40fda0
add esi, 4
push ebp
push 0
push SysReAllocString
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, eax
test ebp, ebp
jne 0x40fdc8
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40fe7c
cmp dword [edi + 0x18], 0x10
mov byte [esp + 0x13], 1
jb 0x40fdd8
mov edi, dword [edi + 4]
jmp 0x40fddb
add edi, 4
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fe00
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], 0
je 0x40fe6a
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40fe20
push 0x400
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x28]
push edx
push ebp
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40fe66
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call ebx
test eax, eax
jne 0x40fe20
mov byte [esp + 0x13], al
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x420]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426052
add esp, 0x414
ret
Function at 0x4121b0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x42984b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x43bca0]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov eax, dword [0x43bca0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7b
lea eax, [esp + 0x50]
mov dword [esp + 0xdc], ebx
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_gethostname]
push edi
call fcn.00411d90
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0xdc], ebx
mov esi, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
mov ecx, edi
mov dword [esp + 0xdc], esi
call dword [0x42c508]
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push edi
lea ecx, [edi + 0x48]
call dword [0x42c508]
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push eax
lea esi, [esp + 0x18]
mov dword [esp + 0xdc], 2
call fcn.00412010
add esp, 4
cmp dword [eax + 0x18], 0x10
jb 0x412289
mov eax, dword [eax + 4]
jmp 0x41228c
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x14]
mov dword [edi + 0x3c], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov word [edi + 0x3a], bx
mov word [edi + 0x38], 2
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov eax, dword [edi + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [edi + 0x1c]
call dword [0x42c510]
mov eax, edi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00426052
add esp, 0xd0
ret