joyce8/EMBER2024-capa huggingface dataset:
Function at 0xac610
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 1
push 0x104
mov dword [ebp - 0xc], edx
mov edi, ecx
mov byte [ebp - 1], 0x41
mov dword [ebp - 8], 0
call fcn.001591ee
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
jne 0xac64b
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
test ebx, ebx
jne 0xac67d
push str.failed_to_get_logical_drives
push 0x17bec4
push 0x703
push str.fr_device_load_logical
push str.fr_device.c
call fcn.000c08e0
add esp, 0x14
jmp 0xac6fb
mov al, byte [ebp - 1]
test bl, 1
je 0xac6e8
movsx esi, al
push esi
push str.._c:
push 0x104
push dword [ebp - 0x14]
call fcn.000a3960
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x1000]
push 2
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.000ab740
add esp, 0x1c
test eax, eax
jne 0xac6e5
mov esi, dword [edi]
test esi, esi
jne 0xac6ca
mov eax, dword [ebp - 8]
mov dword [edi], eax
jmp 0xac6e5
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ecx + 0x30], eax
mov ecx, dword [esi + 0x30]
mov eax, dword [edx + 0x34]
mov dword [ecx + 0x34], eax
mov dword [edx + 0x34], esi
mov dword [esi + 0x30], edx
mov al, byte [ebp - 1]
inc al
mov dword [ebp - 8], 0
shr ebx, 1
mov byte [ebp - 1], al
jne 0xac680
mov esi, dword [ebp - 0x14]
push esi
call fcn.00158d47
add esp, 4
xor eax, eax
cmp dword [edi], eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xad090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov eax, ecx
mov dword [ebp - 8], eax
test edi, edi
je 0xad21e
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0xad21e
test eax, eax
je 0xad21e
cmp dword [eax], 0
jne 0xad21e
push 0x2c
push 1
call fcn.001591ee
mov esi, eax
add esp, 8
mov dword [ebp - 0xc], esi
test esi, esi
je 0xad21e
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x18], ecx
mov ecx, edi
mov dword [esi + 0x24], esi
mov dword [esi + 0x28], esi
mov dword [esi + 0x20], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xad100
sub ecx, edx
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xad112
sub ecx, edx
mov edx, edi
mov dword [esi + 0xc], ecx
mov ecx, esi
push dword [esi + 4]
call fcn.000c0e50
add esp, 4
test eax, eax
jne 0xad212
push dword [esi + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.000c0e50
add esp, 4
test eax, eax
jne 0xad212
push ebx
mov ebx, dword [ebp + 0xc]
movzx eax, bx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
test eax, eax
jne 0xad173
push ebx
push edi
push str.failed_to_find_resource__s___d_
push 0x213
jmp 0xad18c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0xad1a0
push ebx
push edi
push str.failed_to_load_resource__s___d_
push 0x217
push str.fr_flex_file_init
push str.fr_flexdisk.c
call fcn.000c08e0
add esp, 0x18
jmp 0xad1b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov dword [esi + 0x10], eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 0x14], eax
test byte [esi + 0x18], 1
je 0xad1d6
lea edx, [esi + 0x14]
lea ecx, [esi + 0x10]
push edx
mov edx, dword [edx]
push ecx
mov ecx, dword [ecx]
call fcn.000e9e50
add esp, 8
test eax, eax
jne 0xad212
mov eax, dword [esi + 0x10]
test eax, eax
je 0xad1f1
cmp dword [esi + 0x14], 0
jbe 0xad1f1
mov eax, dword [ebp - 8]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x14]
push eax
push edi
push str.resource__s_has_invalid_data__p_of_length__zu
push 0x283
push str.fr_flex_file_init
push str.fr_flexdisk.c
call fcn.000c08e0
add esp, 0x1c
lea eax, [ebp - 0xc]
push eax
call fcn.000ad230
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xb2570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
mov ebx, ecx
mov dword [ebp - 0xc], edx
push 3
push 0x80000000
mov esi, 1
mov dword [ebp - 8], 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0xb2642
push 0
push 0
push esi
push 0
push 0
push 0xc0000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0xb2601
push dword [ebx]
push str.failed_to_create_Mnemosyne_driver_on__s
push 0x41
push str.fr_mem_win_output
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xb2625
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 8]
je 0xb2642
push dword [ebx]
push str.failed_to_write_Mnemosyne_driver_on__s
push 0x45
push str.fr_mem_win_output
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
jmp 0xb2644
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb29d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
lea edx, [ebp - 0x14]
push esi
movq qword [ebp - 0x14], xmm0
lea ecx, [ebp - 0xc]
push edi
xor esi, esi
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x14], str.Mnemosyne.sys
mov dword [ebp - 0x10], 0xd
call fcn.000b7270
test eax, eax
je 0xb2a3f
push str.failed_to_build_mnemosyne_path
push 0x17bec4
push 0xd0
push str.fr_mem_win_destroy
push str.fr_memory_win32.c
call fcn.000c0810
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xb2a88
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0xb2ab6
call edi
cmp eax, 0x3ee
je 0xb2ab6
call edi
cmp eax, 3
je 0xb2ab6
push dword [ebp - 0xc]
push str.failed_to_get_file_attributes__s
push 0xd7
push str.fr_mem_win_destroy
push str.fr_memory_win32.c
call fcn.000c08e0
jmp 0xb2ab1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0xb2ab6
push dword [ebp - 0xc]
push str.failed_to_delete_mnemosyne_driver_on__s
push 0xd9
push str.fr_mem_win_destroy
push str.fr_memory_win32.c
call fcn.000c0810
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 0xc]
test eax, eax
je 0xb2ac6
push eax
call fcn.00158d47
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb2ae0
Capabilities:
Create service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, dword [ebp + 8]
xor esi, esi
push edi
push esi
push esi
push esi
push esi
push esi
mov ebx, edx
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0xc], esi
push dword [ebx]
movq qword [ebp - 0x14], xmm0
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0xb2b57
push dword [ebx]
mov eax, dword [ebp - 0x28]
push dword [eax]
push str.failed_to_create__s_service_using__s
push 0x101
push str.fr_mem_win_service_start
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x18
jmp 0xb2be6
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0xb2b8b
push dword [ebx]
mov eax, dword [ebp - 0x28]
push dword [eax]
push str.failed_to_start__s_service_using__s
push 0x106
push str.fr_mem_win_service_start
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x18
jmp 0xb2bdf
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x24]
push eax
push edi
call ebx
test eax, eax
je 0xb2bdf
nop dword [eax]
cmp dword [ebp - 0x20], 4
je 0xb2bdf
cmp esi, 5
jae 0xb2bdf
push esi
push str.service_is_starting___attempt__u_
push 0x10c
push str.fr_mem_win_service_start
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
inc esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push edi
call ebx
test eax, eax
jne 0xb2ba0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp dword [ebp - 0x20], 4
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb2c00
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov edi, ecx
xorps xmm0, xmm0
xor esi, esi
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], esi
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0xb2c49
push str.failed_to_get_service_status_information
push 0x17bec4
push 0x122
jmp 0xb2d5c
test byte [ebp - 0x18], 1
jne 0xb2c75
push str.service_does_not_accept_stop_notifications
push 0x17bec4
push 0x125
push str.fr_mem_win_service_remove
push str.fr_memory_win32.c
call fcn.000c0810
add esp, 0x14
jmp 0xb2d2f
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
test ebx, ebx
jne 0xb2cd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41d
jne 0xb2d49
cmp esi, 5
jae 0xb2d49
push esi
push str.service_stop_request_timeout___attempt__u_
push 0x12c
push str.fr_mem_win_service_remove
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
lea eax, [ebp - 0x20]
inc esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
test ebx, ebx
je 0xb2c88
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0xb2d2f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
cmp dword [ebp - 0x1c], 1
je 0xb2d2f
cmp esi, 5
jae 0xb2d2f
push esi
push str.service_is_stopping___attempt__u_
push 0x13a
push str.fr_mem_win_service_remove
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
inc esi
push 0x1388
call ebx
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0xb2cf0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 1
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0xb2cd3
push str.failed_to_send_service_stop_notification
push 0x17bec4
push 0x132
push str.fr_mem_win_service_remove
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
jmp 0xb2d2f
Function at 0xb2d70
Capabilities:
Delete service

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
xor esi, esi
push 0xf01ff
push dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0xb2dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0xb2e35
push dword [ebx]
push str.failed_to_open_memory_service__s
push 0x14c
push str.fr_mem_win_service_stop
push str.fr_memory_win32.c
call fcn.000c08e0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
mov ecx, edi
call fcn.000b2c00
test eax, eax
je 0xb2df6
push dword [ebx]
push str.failed_to_stop_memory_service__s
push 0x150
push str.fr_mem_win_service_stop
push str.fr_memory_win32.c
call fcn.000c0810
add esp, 0x14
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0xb2e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0xb2e2e
push dword [ebx]
push str.failed_to_delete_memory_service__s
push 0x153
push str.fr_mem_win_service_stop
push str.fr_memory_win32.c
call fcn.000c08e0
mov esi, eax
add esp, 0x14
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0xb3340
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x17559c
push 1
push esi
push 0x17566c
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0xb33a7
push str.failed_to_create_IWbemLocator_object
push 0x17bec4
push 0x79
push str.fr_wmi_service_init
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
push str.._rootcimv2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0xb33dd
push str.failed_to_create_BSTR_object
push 0x17bec4
push 0x7d
push str.fr_wmi_service_init
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov esi, eax
jmp 0xb347c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0x80
push 0
push 0
push 0
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0xb3423
push str.failed_to_create_IWbemServices_object
push 0x17bec4
push 0x81
push str.fr_wmi_service_init
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov esi, eax
jmp 0xb3475
push 0
push 0
push 3
push 3
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0xb3470
push str.failed_to_setup_IWbemServices_proxy
push 0x17bec4
push 0x85
push str.fr_wmi_service_init
push str.fr_wmi.cpp
call fcn.000c0810
mov esi, eax
add esp, 0x14
test esi, esi
je 0xb3470
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0xb3475
mov eax, dword [ebp - 8]
mov dword [ebx], eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb34a0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], ecx
push edi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call fcn.000b31c0
add esp, 0x10
test eax, eax
je 0xb350f
push str.failed_to_create_memory_range_object
push 0x17bec4
push 0xa6
push str.fr_wmi_service_query
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x182290
call edi
mov ebx, eax
test ebx, ebx
jne 0xb354a
push str.failed_to_create_BSTR_object
push 0x17bec4
push 0xaa
push str.fr_wmi_service_query
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov esi, eax
jmp 0xb360f
push str.SELECT__FROM_Win32_DeviceMemoryAddress
call edi
mov edi, eax
test edi, edi
jne 0xb3585
push str.failed_to_create_BSTR_object
push 0x17bec4
push 0xae
push str.fr_wmi_service_query
push str.fr_wmi.cpp
call fcn.000c0810
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x14
mov esi, eax
jmp 0xb360c
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 8]
push edx
push 0
push 0x20
mov eax, dword [ecx]
push edi
push ebx
push ecx
call dword [eax + 0x50]
test eax, eax
jns 0xb35c1
push str.failed_to_execute_query
push 0x17bec4
push 0xb2
push str.fr_wmi_service_query
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov esi, eax
jmp 0xb3603
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 8]
push eax
call fcn.000b3660
add esp, 4
test eax, eax
je 0xb35fa
push str.failed_to_enumerate_objects
push 0x17bec4
push 0xb5
push str.fr_wmi_service_query
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push ebx
call edi
test esi, esi
je 0xb362e
lea ecx, [ebp - 0xc]
call fcn.000b32d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
pop edi
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb3ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push esi
push edi
test eax, eax
je 0xb3bb3
push 4
push 1
call fcn.001591ee
mov esi, eax
add esp, 8
test esi, esi
je 0xb3bb3
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0xb3910
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
jne 0xb3b52
push str.failed_to_start_thread_object
push 0x17bec4
push 0x13c
push str.fr_mem_map_from_wmi
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov edi, eax
jmp 0xb3b8b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
neg eax
je 0xb3b88
push str.failed_to_join_thread_object
push 0x17bec4
push 0x13e
push str.fr_mem_map_from_wmi
push str.fr_wmi.cpp
call fcn.000c0810
add esp, 0x14
mov edi, eax
jmp 0xb3b8b
mov edi, dword [ebp - 0x10]
mov eax, dword [esi]
test eax, eax
je 0xb3b98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00158d47
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
push str.failed_to_create_thread_object
push 0x17bec4
push 0x139
push str.fr_mem_map_from_wmi
push str.fr_wmi.cpp
call fcn.000c0810
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb3bf0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push 0x17550c
push 1
push esi
push 0x17552c
mov edi, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0xb3c4c
push str.failed_to_load_firewall_manager_object
push 0x17bec4
push 0x1c
push str.fr_firewall_get_profile
push str.fr_firewall.c
call fcn.000c08e0
add esp, 0x14
mov esi, eax
jmp 0xb3cb7
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0xb3c7f
push str.failed_to_load_firewall_policy_object
push 0x17bec4
push 0x20
push str.fr_firewall_get_profile
push str.fr_firewall.c
call fcn.000c08e0
add esp, 0x14
mov esi, eax
jmp 0xb3cb7
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jns 0xb3cb2
push str.failed_to_load_firewall_profile_object
push 0x17bec4
push 0x24
push str.fr_firewall_get_profile
push str.fr_firewall.c
call fcn.000c08e0
add esp, 0x14
mov esi, eax
jmp 0xb3cb7
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0xb3ccb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0xb3cd8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
Function at 0xb6150
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0xb627b
cmp dword [ebx], 0
jne 0xb627b
test edi, edi
je 0xb627b
mov eax, 0xb5830
test eax, eax
je 0xb627b
push 0x1ac
push 1
call fcn.001591ee
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0xb627b
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 4]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0xb61c0
sub edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
call fcn.000c0ca0
add esp, 4
test eax, eax
jne 0xb627b
push esi
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0xb627b
cmp byte [esi], 2
jne 0xb627b
cmp byte [esi + 1], 2
jne 0xb627b
mov dword [esi + 0x194], 0xb5830
mov dword [esi + 0x198], 0xb6120
mov dword [esi + 0x19c], edi
mov eax, dword [edi + 8]
mov eax, dword [eax + 8]
mov dword [esi + 0x1a0], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x1a4], eax
lea eax, [esi + 0x190]
mov ecx, dword [edi + 4]
push eax
push dword [ecx + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
call fcn.000ba920
add esp, 8
mov dword [esi + 0x1a8], eax
test eax, eax
jne 0xb6293
mov eax, dword [edi + 4]
push dword [eax + 4]
push dword [eax]
push str.failed_to_connect_to__s:_s
push 0x258
push str.fr_client_init
push str.fr_web.c
call fcn.000c0810
add esp, 0x18
lea eax, [ebp - 4]
push eax
call fcn.000b62a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret