joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100076954
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0xc0
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, r8
mov rbp, rcx
call sub.MFC42u.dll_RFX_Date_Bulk
xor r12d, r12d
mov rsi, rax
cmp dword [rbp], r12d
je 0x100076a1e
lea r8d, [r12 + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [rsp + 0x30], r12w
je 0x100076a16
lea rdx, [rsp + 0x30]
lea rcx, [0x1000f6280]
mov r8, rbx
call fcn.10007b238
cmp eax, r12d
jne 0x1000769de
lea edx, [r12 + 0x40]
or r8d, 0xffffffff
lea ecx, [rdx + 0x27]
call sub.MFC42u.dll_Ordinal_1498
mov rcx, rbp
call sub.MFC42u.dll_CGopherFileFind::FindFile
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
lea rcx, [0x1000f6280]
mov r8d, 0x40
mov dword [rsp + 0x20], 2
call fcn.10007b4b0
lea rdx, [rsp + 0x30]
lea rcx, [0x1000f6280]
mov r8, rbx
call fcn.10007b238
jmp 0x100076a56
mov dword [rbx], 0x7fffffff
jmp 0x100076a56
cmp dword [rbx], 0x7fffffff
je 0x100076a56
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
lea rcx, [0x1000f6280]
mov r8d, 0x40
mov dword [rsp + 0x20], 2
call fcn.10007b4b0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1000011e0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r12
pop rsi
pop rbp
ret

Function at 0x10007b1b0
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x258
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp word [rdx], 0
je 0x10007b217
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_Ordinal_1447
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov word [rsp + 0x20], ax
test ax, ax
je 0x10007b217
lea rdx, [rsp + 0x20]
lea rcx, [0x10007ad80]
call qword [sym.imp.USER32.dll_EnumWindows]
movzx ecx, word [rsp + 0x20]
test cx, cx
jne 0x10007b211
mov eax, 1
jmp 0x10007b219
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000011e0
add rsp, 0x258
ret

Function at 0x10007bef4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], ebx
cmp rcx, rbx
jne 0x10007bf10
xor eax, eax
jmp 0x10007bf90
mov r8d, 3
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x10007bf09
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x10007bf85
cmp dword [rsp + 0x58], 2
jne 0x10007bf85
mov eax, 0xfeff
cmp word [rsp + 0x50], ax
je 0x10007bf80
mov eax, 0xfffe
cmp word [rsp + 0x50], ax
jne 0x10007bf85
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x10007dc54
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r13, rdx
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
mov rcx, r13
xor ebp, ebp
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov rcx, rsi
mov r12d, eax
call fcn.10002ecf0
mov rcx, qword [rsi + 0x40]
and dword [rsp + 0x3c], ebp
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x434
mov dword [rsp + 0x38], eax
call qword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
test r12d, r12d
je 0x10007dd68
lea r8, [rsp + 0x40]
mov r9d, 0x104
mov edx, ebx
mov rcx, r13
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x10007dd5d
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsi + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, CObList::AddTail
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsp + 0x40]
mov edi, 1
call fcn.10007f010
test eax, eax
je 0x10007dd3c
mov r8, qword [rsp + 0x38]
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r9d, edi
mov rcx, rsi
call fcn.10008961c
mov edi, eax
cmp r12d, 1
jne 0x10007dd4c
xor ebp, ebp
test edi, edi
sete bpl
jmp 0x10007dd5d
test edi, edi
je 0x10007dd5d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1000874f8
inc ebx
cmp ebx, r12d
jb 0x10007dcc8
mov rcx, qword [rsi + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, CObList::AddTail
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, ebp
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000011e0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x100080134
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
test rcx, rcx
jne 0x10008015a
mov ebx, 0x80070057
jmp 0x100080205
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000801df
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1000d5ce0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1000d5cd0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1000801e4
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov ebx, eax
test eax, eax
js 0x1000801e4
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x1000d5cb0]
call qword [rax]
mov ebx, eax
test eax, eax
js 0x1000801e4
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, rdi
call qword [rax + 0x30]
mov ebx, eax
jmp 0x1000801e4
mov ebx, 0x80070002
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1000801f5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x100080205
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x100082c30
Capabilities:
Inspect section memory permissions

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov r13, r9
mov r12, r8
mov ebp, edx
mov rbx, rcx
call fcn.100002c20
mov rdi, rax
mov rcx, rax
call fcn.10007ddb0
test eax, eax
js 0x100082dbd
and qword [rsp + 0x28], 0
mov rcx, qword [rdi + 0xa0]
mov r9, qword [rcx]
lea r8, [rsp + 0x28]
lea rdx, [0x1000aed90]
call qword [r9]
mov esi, eax
and dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x100082cb9
mov r8, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [r8 + SysAllocStringByteLen]
mov rcx, qword [rsp + 0x28]
cmp dword [rbx + 0x1a0], 0
jne 0x100082d03
mov dword [rbx + 0x1a0], ebp
mov edx, ebp
mov rcx, rbx
call fcn.100082420
mov esi, eax
test eax, eax
jns 0x100082ce8
mov rcx, rbx
call fcn.100082a70
mov rcx, rdi
call fcn.10007de1c
xor r9d, r9d
mov edx, 0x43f
lea r8d, [r9 + 1]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x28]
test esi, esi
js 0x100082d93
mov eax, dword [rbx + 0x1a0]
cmp eax, 1
je 0x100082d37
cmp eax, 2
je 0x100082d37
cmp eax, 3
je 0x100082d37
cmp eax, 4
je 0x100082d37
cmp eax, 5
jne 0x100082d86
mov rdx, r13
mov rcx, rdi
call fcn.100005a04
jmp 0x100082d86
cmp eax, 1
jne 0x100082d43
mov ecx, 0x20000000
jmp 0x100082d68
cmp eax, 2
jne 0x100082d4f
mov ecx, 0x80000000
jmp 0x100082d68
cmp eax, 3
jne 0x100082d5b
mov ecx, 0x40000000
jmp 0x100082d68
xor ecx, ecx
mov edx, 0x4000000
cmp eax, 4
cmove ecx, edx
mov dword [r12 + 4], ecx
mov eax, dword [rbx + 0x120]
cmp dword [rbx + 0x11c], eax
je 0x100082d86
mov rdx, r12
mov rcx, rdi
call fcn.100001750
mov rcx, rdi
call fcn.10007de1c
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x100082db2
cmp dword [rsp + 0x20], 0
je 0x100082db2
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 0x98]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x100082dbd
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x100085f08
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100085f73
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x100085f93
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x1000899cc
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbx, rcx
xor edi, edi
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
call fcn.100001330
mov r11d, dword [rsp + 0x58]
cmp dword [rsp + 0x60], r11d
je 0x100089b9d
and qword [rsp + 0x20], rdi
and qword [rsp + 0x68], rdi
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [0x1000aed90]
call qword [rax]
test eax, eax
je 0x100089a52
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100089a3b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x100089a4b
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x100089ba0
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x60]
call qword [rax + reloc.OLEAUT32.dll_VarDecFromR4]
test eax, eax
je 0x100089a9a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100089a83
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x100089a93
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x100089ba0
mov edx, 4
mov rcx, qword [rsp + 0x68]
call fcn.10002eb90
test eax, eax
je 0x100089b7c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100089ac1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x60]
call qword [rax + reloc.OLEAUT32.dll_VarDecFromR4]
test eax, eax
je 0x100089b0f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100089af8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x100089b08
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
jmp 0x100089ba0
lea rdx, [0x100076044]
mov rcx, qword [rsp + 0x68]
call fcn.10007ef5c
test eax, eax
je 0x100089b7c
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x100089b39
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.100088c40
test eax, eax
jne 0x100089b7c
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
not r11b
mov edi, 1
and r11b, dil
mov dl, r11b
mov rcx, rbx
call fcn.10008914c
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100089b8d
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x100089b9d
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001130c
Capabilities:
Terminate process

Disassembly:
jmp 0x140015e60
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]
nop
add rsp, 0x28
ret

Function at 0x1400113c5
Capabilities:
Create process on windows

Disassembly:
jmp 0x1400145c0
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1400280f5]
call fcn.14001155a
nop
lea rdx, str.https:__www.pornhub.com
lea rcx, [rbp + 8]
call fcn.1400111db
nop
lea rcx, [rbp + 8]
call fcn.1400111e5
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
xor eax, eax
cmp eax, 1
je 0x14001469e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x5b
call qword [sym.imp.USER32.dll_keybd_event]
nop
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 9
call qword [sym.imp.USER32.dll_keybd_event]
nop
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov cl, 9
call qword [sym.imp.USER32.dll_keybd_event]
nop
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov cl, 0x5b
call qword [sym.imp.USER32.dll_keybd_event]
nop
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x14001463f
lea rcx, [rbp + 8]
call fcn.1400114dd
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001de00]
call fcn.1400114a1
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400112b2
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400113d4
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400171b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400171d0
xor al, al
jmp 0x140017251
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400171e3
xor al, al
jmp 0x140017251
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 0x14001720d
xor al, al
jmp 0x140017251
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017221
xor al, al
jmp 0x140017251
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017233
xor al, al
jmp 0x140017251
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001724f
xor al, al
jmp 0x140017251
mov al, 1
add rsp, 0x38
ret
Function at 0x140014fb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011587
movzx eax, al
test eax, eax
jne 0x140014fd0
mov ecx, 7
call fcn.1400114ab
nop
mov byte [rsp + 0x20], 0
call fcn.1400114d8
mov byte [rsp + 0x21], al
cmp dword [0x140022b78], 1
jne 0x140014ff4
mov ecx, 7
call fcn.1400114ab
nop
jmp 0x14001504c
cmp dword [0x140022b78], 0
jne 0x140015047
mov dword [0x140022b78], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.140011299
test eax, eax
je 0x140015028
mov eax, 0xff
jmp 0x140015151
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.1400114c4
mov dword [0x140022b78], 2
jmp 0x14001504c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011497
call fcn.1400113fc
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400150a9
mov rcx, qword [rsp + 0x30]
call fcn.140011230
movzx eax, al
test eax, eax
je 0x1400150a9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140029020]
nop
call fcn.14001143d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400150dd
mov rcx, qword [rsp + 0x38]
call fcn.140011230
movzx eax, al
test eax, eax
je 0x1400150dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001153c
nop
call fcn.140015200
mov dword [rsp + 0x28], eax
call fcn.1400113d4
movzx eax, al
test eax, eax
jne 0x1400150fc
mov ecx, dword [rsp + 0x28]
call fcn.140011078
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001510b
call fcn.14001154b
nop
xor edx, edx
mov cl, 1
call fcn.14001120d
mov eax, dword [rsp + 0x28]
jmp 0x140015151
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140006570]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140006580]
mov dword [rax], 1
mov rax, qword [0x140006590]
mov dword [rax], 1
mov rax, qword [0x140006510]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140006560]
mov dword [0x14000900c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140006640]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140006620]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400064b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140002280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400022f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009094]
test esi, esi
mov rbx, rcx
jle 0x140002420
mov rax, qword [0x140009098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000233b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400023c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002320
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140002442
mov rax, qword [0x140009098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140009098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002427
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400023be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400023d0
add dword [0x140009094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140009098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400023be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002348
mov rax, qword [0x140009098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400029b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x140002a0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002a03
test rsi, rsi
je 0x140002a03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400029e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002c20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002c30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140002c40
Capabilities:
Parse pe header

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

Function at 0x140002c70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x140002cbd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002cb4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002cbf
add rax, 0x28
cmp rax, r9
jne 0x140002ca0
xor eax, eax
ret

Function at 0x140002cc0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002d50
mov rdx, qword [0x140006510]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002d3e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002d3e
cmp word [rax + 0x18], 0x20b
jne 0x140002d3e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002d50
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002d29
add rbx, 0x28
cmp rbx, rdi
je 0x140002d50
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002d20
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002d60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006510]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002ddd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002dd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d80
add rax, 0x28
cmp rax, r9
jne 0x140002dc0
xor eax, eax
ret

Function at 0x140002de0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006510]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002dff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002e08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002dff
movzx ecx, word [rax + 6]
mov eax, ecx
ret