joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020a51c
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
cmp r8d, 0x800
mov eax, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x14020a58e
lea r8, [0x14026bc08]
lea rcx, [rsp + 0xa0]
mov edx, 4
call fcn.14022ccc0
test eax, eax
je 0x14020a5b0
cmp eax, 0xc
je 0x14020a588
cmp eax, 0x16
je 0x14020a582
cmp eax, 0x22
je 0x14020a582
cmp eax, 0x50
je 0x14020a5b0
call fcn.1401fd6b8
int3
call fcn.1401fd6b8
int3
call fcn.1401fd670
int3
mov r9d, 4
lea r8, [rsp + 0xa0]
mov ecx, eax
lea edx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14020a6d3
call fcn.14022f940
mov edi, dword [rax]
call fcn.14022f940
lea rcx, [rsp + 0xb0]
and dword [rax], 0
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov esi, 0x112
lea r8d, [rsi - 1]
mov rdx, rsi
call fcn.14022e6a0
mov ebx, eax
call fcn.14022f940
cmp dword [rax], 0
je 0x14020a638
call fcn.14022f940
cmp dword [rax], 0
je 0x14020a63f
cmp dword [rax], 0xc
je 0x14020a62d
cmp dword [rax], 0x16
je 0x14020a622
cmp dword [rax], 0x22
je 0x14020a622
cmp dword [rax], 0x50
je 0x14020a63f
mov ecx, 0x80004005
call fcn.140002bc0
int3
mov ecx, 0x80070057
call fcn.140002bc0
int3
mov ecx, 0x8007000e
call fcn.140002bc0
int3
call fcn.14022f940
mov dword [rax], edi
cmp ebx, 0xffffffff
je 0x14020a6d3
cmp ebx, esi
jae 0x14020a6d3
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
mov rbx, rax
mov dword [rsp + 0x30], 0x70
call fcn.14022ec70
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14020a6be
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14020a6be
lea rcx, [rsp + 0x30]
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x20], rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call rax
mov rcx, rbx
test eax, eax
jne 0x14020a6c6
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x14020a6d5
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.14022b9b0
add rsp, 0x2f0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14020b30c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14020b342
xor eax, eax
jmp 0x14020b38f
lea rcx, [rsp + 0x20]
call fcn.14022f600
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x14020b36e
lea r8, [0x140279558]
lea rcx, [rsp + 0x20]
mov edx, 0x105
call fcn.14022cd70
test eax, eax
jne 0x14020b33e
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x105
call fcn.14022cd70
test eax, eax
jne 0x14020b33e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14022b9b0
add rsp, 0x240
pop rbx
ret

Function at 0x14020df20
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
test r8d, r8d
mov rbx, rcx
jne 0x14020df32
xor eax, eax
jmp 0x14020df63
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14020df5f
mov rbx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.14020def4
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret

Function at 0x14020fd14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
test r8, r8
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
je 0x14020fd86
call fcn.1401f2234
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14020fd86
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x14020fdd3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rsi, rsi
mov edi, 1
je 0x14020fdb3
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
test rbx, rbx
mov edi, eax
je 0x14020fdb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0x98], 0
je 0x14020fdd1
mov rcx, qword [rbp + 0x98]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140210d58
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rdx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test eax, eax
jne 0x140210e57
mov r9d, 0x104
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
jne 0x140210e2e
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.14000b5a0
nop
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140210d58
mov ebx, eax
test eax, eax
setne byte [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140210e15
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp byte [rsp + 0x20], 0
je 0x140210e1e
jmp 0x140210e2e
jmp 0x140210dae
cmp ebx, 0x103
je 0x140210e3e
cmp ebx, 0x3f2
jne 0x140210e4c
mov rdx, qword [rsi]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14022b9b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140212110
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x14031eda0]
xor rax, rsp
mov qword [rsp + 0x220], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x140212145
call fcn.1401fd6b8
int3
test rdx, rdx
jne 0x140212150
call fcn.1401fd6b8
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and word [rsp + 0x20], 0
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x1fe
mov esi, eax
call fcn.14022ec70
mov r8d, pe_nt_image_headers64
cmp esi, r8d
ja 0x1402121a2
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x1402121a2
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1402121ae
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14022b9b0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140212f0c
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 1
mov r14, r8
mov rdi, rdx
cmp dword [rdx + 0x10], esi
mov r12, rcx
mov ebp, esi
jle 0x140212f99
lea ebx, [rsi + 7]
lea r13d, [rsi + 0xf]
test r14, r14
je 0x140212f65
mov rax, qword [r12 + 0x10]
cmp qword [rax + r13 + 8], r14
je 0x140212f65
mov rax, qword [rdi + 0x18]
cmp qword [rbx + rax], 0
je 0x140212f85
xor esi, esi
jmp 0x140212f85
mov rax, qword [rdi + 0x18]
mov rcx, qword [rbx + rax]
test rcx, rcx
je 0x140212f7c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rdi + 0x18]
and qword [rbx + rax], 0
add ebp, 1
add r13, 0x10
add rbx, 8
cmp ebp, dword [rdi + 0x10]
jl 0x140212f45
test esi, esi
je 0x140212fe0
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r12 + 0x18]
mov rdx, rdi
call fcn.140212a2c
lea rcx, [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r11, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r11]
mov ecx, dword [r12]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x1402150b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, rdx
mov rbp, rcx
lea rdx, [0x140215084]
lea rcx, [0x14032ddb8]
mov r13d, r8d
call fcn.140212950
xor ebx, ebx
cmp rax, rbx
mov rsi, rax
jne 0x1402150f8
call fcn.1401fd6b8
int3
cmp word [rax + 0x10], bx
jne 0x140215281
call fcn.1401f2234
mov rcx, qword [rax + 0xc8]
mov rdi, qword [rcx]
cmp qword [rdi + 8], rbx
jne 0x140215141
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp rax, rbx
mov qword [rdi + 8], rax
jne 0x140215141
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, rbx
mov qword [rdi + 8], rax
setne al
mov byte [rdi + 0x10], al
mov rdi, qword [rdi + 8]
cmp rdi, rbx
je 0x1402151fa
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x14026bcd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
je 0x1402151b7
call rax
and ax, 0x3ff
cmp ax, 0x11
jne 0x1402151b7
lea rcx, str.MS_UI_Gothic
call fcn.140214fa0
cmp eax, ebx
je 0x1402151b7
mov eax, r13d
mov r9w, 0xfc11
mov edx, 5
neg eax
mov rcx, rdi
sbb r8, r8
and r8d, 0xe
add r8, 0x3ee
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp rax, rbx
jne 0x1402151db
neg r13d
mov r8d, 5
mov rcx, rdi
sbb rdx, rdx
and edx, 0xe
add rdx, 0x3ee
call qword [sym.imp.KERNEL32.dll_FindResourceW]
cmp rax, rbx
je 0x1402151fa
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rbx
je 0x1402151fa
mov r8, r12
mov rdx, rbp
mov rcx, rax
call fcn.140213ec0
mov rax, qword [rbp]
mov ecx, 0xffffffff
mov eax, dword [rax - 0x10]
add eax, 1
add rax, rax
cmp rax, rcx
jbe 0x14021521c
mov ecx, 0x80070057
call fcn.140002bc0
int3
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rbx
mov rcx, rax
mov qword [rsi + 8], rax
jne 0x14021523b
call fcn.1401fd670
int3
mov r8, qword [rbp]
mov eax, dword [r8 - 0x10]
add eax, 1
movsxd rdx, eax
call fcn.14022ccc0
cmp eax, ebx
je 0x140215278
cmp eax, 0xc
je 0x140215272
cmp eax, 0x16
je 0x14021526c
cmp eax, 0x22
je 0x14021526c
cmp eax, 0x50
je 0x140215278
call fcn.1401fd6b8
int3
call fcn.1401fd6b8
int3
call fcn.1401fd670
int3
movzx eax, word [r12]
mov word [rsi + 0x10], ax
mov rdi, qword [rsi + 8]
cmp rdi, rbx
jne 0x14021528e
mov eax, ebx
jmp 0x140215296
mov rcx, rdi
call fcn.14022f600
mov r8d, eax
mov rdx, rdi
mov rcx, rbp
call fcn.14000b770
movzx r11d, word [rsi + 0x10]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
cmp r11w, 0xffff
mov word [r12], r11w
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1402180a8
Capabilities:
Get file attributes
Get file size

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rbx, rdx
mov rdi, rcx
mov r8d, 0x230
mov rcx, rbx
xor edx, edx
call fcn.14022ec70
mov r8, qword [rdi + 0x18]
lea rcx, [rbx + 0x22]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.14022e700
xor esi, esi
cmp eax, esi
je 0x140218109
cmp eax, 0xc
je 0x140218103
cmp eax, 0x16
je 0x1402180fd
cmp eax, 0x22
je 0x1402180fd
cmp eax, 0x50
je 0x140218109
call fcn.1401fd6b8
int3
call fcn.1401fd6b8
int3
call fcn.1401fd670
int3
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x14026c440]
je 0x140218267
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, esi
jne 0x14021813a
xor eax, eax
jmp 0x14021826c
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, 0xffffffff
mov r11d, eax
cmp r11, rbp
mov qword [rbx + 0x18], r11
je 0x140218133
mov rcx, qword [rdi + 0x18]
cmp dword [rcx - 0x10], esi
jne 0x140218166
mov byte [rbx + 0x20], sil
jmp 0x140218177
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx ecx, al
cmp eax, ebp
cmove ecx, esi
mov byte [rbx + 0x20], cl
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x1402181ba
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x1402181ba
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140217fe8
mov rcx, qword [rax]
mov qword [rbx], rcx
jmp 0x1402181bd
mov qword [rbx], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x140218201
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x140218201
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140217fe8
mov rax, qword [rax]
mov qword [rbx + 0x10], rax
jmp 0x140218205
mov qword [rbx + 0x10], rsi
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
cmp eax, esi
je 0x140218249
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, esi
je 0x140218249
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
or r8d, 0xffffffff
call fcn.140217fe8
mov rax, qword [rax]
mov qword [rbx + 8], rax
jmp 0x14021824d
mov qword [rbx + 8], rsi
cmp qword [rbx], rsi
jne 0x140218259
mov rax, qword [rbx + 8]
mov qword [rbx], rax
cmp qword [rbx + 0x10], rsi
jne 0x140218267
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14022d8a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14032de18]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.1402322f0
test rax, rax
je 0x14022d8f4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14022d989
mov ecx, 2
call fcn.140237060
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14022ec70
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14022d975
test ebx, ebx
jne 0x14022d975
lea ecx, [rax + 2]
call fcn.140237060
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14022dc40
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x14031eda0]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14022ddac
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.14022fe20
test eax, eax
je 0x14022dcda
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14022d800
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x14022dd22
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14022dd1f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14022dd1f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14022dd1f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x14022dd47
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, 0x11
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x14022ddac
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14022ddac
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14022ddac
mov eax, r15d
jmp 0x14022ddae
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.14022b9b0
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14022e560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x14022e5ac
call fcn.14022f940
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], 0x16
call fcn.14022d8a0
xor eax, eax
jmp 0x14022e652
mov qword [rsp + 0x50], rdi
call fcn.14018fc60
mov edx, 0x2d8
mov ecx, 1
call fcn.140235440
test rax, rax
mov rdi, rax
je 0x14022e638
call fcn.140232610
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.1402323f0
mov rcx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x14022e4c0]
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14022e64d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.14022cf10
test ebx, ebx
je 0x14022e64b
mov ecx, ebx
call fcn.14022f9a0
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rsi
ret
Function at 0x140230f10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140230f4e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140230f30
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140231135
mov ecx, 3
call fcn.14023f320
cmp eax, 1
je 0x1402310ec
mov ecx, 3
call fcn.14023f320
test eax, eax
jne 0x140230f85
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x1402310ec
cmp edi, 0xfc
je 0x140231135
mov qword [rsp + 0x50], rbp
lea rbp, [0x14032de90]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14023f270
test eax, eax
je 0x140230fc9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14022d800
lea rdx, [0x14032dea9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14032dfad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140231019
lea r8, str._program_name_unknown_
lea rcx, [0x14032dea9]
mov edx, 0x2fb
call fcn.14023f270
test eax, eax
je 0x140231019
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14022d800
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14032dea9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140231068
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14032e1a4]
lea r9d, [rax + 3]
lea r8, [0x1402707a4]
sub rdx, rcx
call fcn.14023f150
test eax, eax
je 0x140231068
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14022d800
lea r8, [0x1402707a0]
mov edx, 0x314
mov rcx, rbp
call fcn.14023f090
test eax, eax
je 0x140231094
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14022d800
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14023f090
test eax, eax
je 0x1402310c4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14022d800
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14023ee30
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140231135
cmp rax, 0xffffffffffffffff
je 0x140231135
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret