joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180111820
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180111a70
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18011193a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180111884
mov rax, qword [0x1802e8008]
cmp qword [rsp + 0x20], rax
ja 0x180111884
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180111846
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1801118b5
jmp 0x18011193a
cmp dword [rsp + 0x50], 0x10000
jne 0x18011191d
cmp qword [rsp + 0x48], 0x10000
jb 0x18011191d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801118fb
mov rax, qword [rsp + 0x28]
jmp 0x18011193c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18011190b
xor eax, eax
jmp 0x18011193c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180111935
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180111a70
mov qword [rsp + 0x20], rax
jmp 0x180111846
xor eax, eax
add rsp, 0x68
ret

Function at 0x180111950
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180111ab0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180111a66
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1801119ab
mov rax, qword [0x1802e8008]
cmp qword [rsp + 0x20], rax
ja 0x1801119ab
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18011196d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1801119dc
jmp 0x180111a66
cmp dword [rsp + 0x50], 0x10000
jne 0x180111a44
cmp qword [rsp + 0x48], 0x10000
jb 0x180111a44
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180111a22
mov rax, qword [rsp + 0x28]
jmp 0x180111a68
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180111a32
xor eax, eax
jmp 0x180111a68
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180111a61
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180111ab0
mov qword [rsp + 0x20], rax
jmp 0x18011196d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180111b00
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180112090
mov qword [rsp + 0x28], 0
cmp qword [0x1802ee258], 0
jne 0x180111b48
cmp qword [0x1802ee250], 0
je 0x180111b48
mov rax, qword [0x1802ee250]
mov qword [0x1802ee258], rax
cmp qword [0x1802ee258], 0
je 0x180111bee
mov rax, qword [0x1802ee258]
cmp qword [rax + 0x10], 0
je 0x180111bee
mov rax, qword [0x1802ee258]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180111bee
mov rax, qword [0x1802ee258]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180111bee
mov rax, qword [0x1802ee258]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180111bb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180111bbb
xor eax, eax
jmp 0x180111d69
mov rax, qword [0x1802ee258]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180111d69
mov rax, qword [0x1802ee250]
mov qword [0x1802ee258], rax
jmp 0x180111c10
mov rax, qword [0x1802ee258]
mov rax, qword [rax + 8]
mov qword [0x1802ee258], rax
cmp qword [0x1802ee258], 0
je 0x180111c5d
cmp qword [0x1802ee258], 0
je 0x180111c5b
mov rax, qword [0x1802ee258]
cmp qword [rax + 0x10], 0
je 0x180111c5b
mov rax, qword [0x1802ee258]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180111c5b
mov rax, qword [0x1802ee258]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180111c5b
jmp 0x180111b8c
jmp 0x180111bfe
mov rcx, qword [rsp + 0x60]
call fcn.180113f30
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180111d70
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180111d67
mov rax, qword [rsp + 0x48]
mov qword [0x1802ee258], rax
mov rax, qword [0x1802ee258]
mov dword [rax], 0x52727464
mov rax, qword [0x1802ee258]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802ee258]
mov rcx, qword [0x1802ee250]
mov qword [rax + 8], rcx
mov rax, qword [0x1802ee258]
mov qword [0x1802ee250], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802ee258]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180111d18
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180111d52
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180111d0e
mov rax, qword [0x1802ee258]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180111b8c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180112a80
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180112ac7
xor al, al
jmp 0x180112b69
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180112af1
xor al, al
jmp 0x180112b69
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180112b61
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180112b61
mov al, 1
jmp 0x180112b69
jmp 0x180112b67
xor al, al
add rsp, 0x78
ret

Function at 0x180112e70
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802ee250]
mov qword [rsp + 0x28], rax
jmp 0x180112e90
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180112ebf
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180112ebd
call sub.KERNEL32.dll_GetLastError
jmp 0x180112ec1
jmp 0x180112e82
xor eax, eax
add rsp, 0x38
ret
Function at 0x180113580
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802ee268], eax
je 0x1801135ad
mov eax, 0x10dd
jmp 0x1801137c6
cmp dword [0x1802ee26c], 0
je 0x1801135c1
mov eax, dword [0x1802ee26c]
jmp 0x1801137c6
cmp qword [rsp + 0x78], 0
jne 0x1801135d3
mov eax, 0x57
jmp 0x1801137c6
cmp qword [rsp + 0x70], 0
jne 0x1801135e5
mov eax, 6
jmp 0x1801137c6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180113617
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1802ee26c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1802ee270], rax
mov eax, dword [rsp + 0x20]
jmp 0x1801137c6
mov ecx, 0x30
call fcn.1801153a4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180113689
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1802ee26c], eax
cmp qword [rsp + 0x30], 0
je 0x180113674
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180115370
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1802ee270], rax
mov eax, dword [rsp + 0x20]
jmp 0x1801137c6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180113550
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180113550
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1801136e6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180113703
mov dword [rsp + 0x20], 9
cmp dword [0x1802ee260], 0
je 0x1801136fe
jmp 0x18011364a
jmp 0x180113640
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180113730
mov dword [rsp + 0x20], 9
cmp dword [0x1802ee260], 0
je 0x18011372b
jmp 0x18011364a
jmp 0x180113640
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180113767
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180113640
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1802ee280]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1802ee280], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801137d0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802ee268], eax
je 0x1801137eb
mov eax, 0x10dd
jmp 0x180113910
mov rax, qword [0x1802ee280]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180113895
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180113860
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180113860
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1801121d0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180115370
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1801137f7
mov qword [0x1802ee280], 0
call fcn.180112c30
mov rax, qword [0x1802ee278]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1801138f9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180115370
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1801138b1
mov qword [0x1802ee278], 0
mov dword [0x1802ee268], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180113e40
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1802ee26c], 0
je 0x180113e5d
mov eax, dword [0x1802ee26c]
jmp 0x180113f23
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180113e70
xor eax, eax
jmp 0x180113f23
mov ecx, 0x10
call fcn.1801153a4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180113ede
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180113ec3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180115370
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1802ee26c], eax
mov qword [0x1802ee270], 0
mov eax, dword [rsp + 0x20]
jmp 0x180113f23
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180113ef8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180113e99
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1802ee278]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1802ee278], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180116678
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1801166fc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180138e10]
cmp byte [rcx + rax], 0
je 0x1801166fc
dec r8
sub rdx, 1
jne 0x1801166e2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400010aa
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140002154
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400021e1
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400021e1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021e1
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400021c8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400021c2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400021ca
add rdx, 0x28
jmp 0x1400021a7
xor edx, edx
test rdx, rdx
jne 0x1400021d3
xor al, al
jmp 0x1400021e7
cmp dword [rdx + 0x24], 0
jge 0x1400021dd
xor al, al
jmp 0x1400021e7
mov al, 1
jmp 0x1400021e7
xor al, al
jmp 0x1400021e7
add rsp, 0x18
ret

Function at 0x140001127
Capabilities:
Terminate process

Disassembly:
jmp 0x140001dd8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011bd
test al, al
je 0x140001ca3
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.14000119f
mov bl, al
mov ecx, dword [0x1400091c0]
cmp ecx, 1
je 0x140001cae
test ecx, ecx
jne 0x140001bd9
mov dword [0x1400091c0], 1
lea rdx, [0x140007660]
lea rcx, [0x140007330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x140001bba
mov eax, 0xff
jmp 0x140001c93
lea rdx, [0x140007220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x1400091c0], 2
jmp 0x140001be1
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14000118b
call fcn.14000114a
mov rbx, rax
cmp qword [rax], 0
je 0x140001c14
mov rcx, rax
call fcn.1400010aa
test al, al
je 0x140001c14
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14000c020]
call fcn.140001168
mov rbx, rax
cmp qword [rax], 0
je 0x140001c36
mov rcx, rax
call fcn.1400010aa
test al, al
je 0x140001c36
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140001122
mov ebx, eax
call fcn.14000112c
test al, al
je 0x140001cb8
test sil, sil
jne 0x140001c6d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010a0
mov eax, ebx
jmp 0x140001c93
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140001195
nop
mov ecx, 7
call fcn.140001195
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.14000113b
add rsp, 0x28
jmp 0x140001b4c
Function at 0x14000112c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002704
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000274e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000274e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000274e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000274e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000274e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002750
xor al, al
add rsp, 0x28
ret
Function at 0x140002704
Capabilities:
Parse pe header

Disassembly:
jmp 0x140002704
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000274e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000274e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000274e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000274e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000274e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002750
xor al, al
add rsp, 0x28
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140034170]
mov dword [rax], 1
mov rax, qword [0x140034180]
mov dword [rax], 1
mov rax, qword [0x140034190]
mov dword [rax], 1
mov rax, qword [0x140034160]
mov dword [rax], 1
mov rax, qword [0x140033fd0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400022b2
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [0x14003f260]
test rax, rax
je 0x1400022c6
call rax
mov ecx, 2
call qword [fcn.140017b50]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
Function at 0x140006330
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.140011260
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x140034140]
movsxd rdx, dword [rax]
mov rax, qword [0x140034130]
mov rcx, qword [rax]
jmp 0x140006330
sub rsp, 0x28
call fcn.1400064ca
nop
add rsp, 0x28
jmp 0x1400064df
Function at 0x1400064df
Capabilities:
Use process replacement

Disassembly:
push r12
mov eax, 0x1110
push rbp
push rdi
push rsi
push rbx
call fcn.140011260
sub rsp, rax
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov eax, ebx
mov rsi, rcx
mov ecx, 0x1a
lea rdi, [rsp + 0xa8]
mov rbp, rdx
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x60]
mov ecx, 6
mov dword [rsp + 0x54], 0
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x78]
mov ecx, 0xc
lea rdx, str.c:windows_system32_notepad.exe
rep stosd dword [rdi], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
lea rdi, [rsp + 0x120]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rax, [rsp + 0x54]
mov rcx, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
mov r9d, 0x30
call sub.ntdll.dll_NtQueryInformationProcess
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0x80]
mov r12, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 8
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r12
mov eax, ebx
mov ecx, 0x3fc
mov rdx, qword [rsp + 0x58]
rep stosd dword [rdi], eax
lea r8, [rsp + 0x110]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov qword [rsp + 0x118], 0
call r12
mov rcx, qword [rsp + 0x60]
mov r9, rbp
mov r8, rsi
movsxd rax, dword [rsp + 0x14c]
mov edx, dword [rsp + rax + 0x138]
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0x1110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x140034140]
movsxd rdx, dword [rax]
mov rax, qword [0x140034130]
mov rcx, qword [rax]
jmp 0x140006330
sub rsp, 0x28
call fcn.1400064ca
nop
add rsp, 0x28
jmp 0x1400064df