joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400163c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x208]
sub rsp, 0x2f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
test rdx, rdx
je 0x140016549
xor ebx, ebx
mov esi, ebx
cmp bx, word [rdx]
je 0x14001651a
mov qword [rbp + 0x218], rbx
mov qword [rsp + 0x58], rbx
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_07a4580a2d41a7635afdf5f0258b0c87___void___.0
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x218]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rbp + 0x220], rax
mov qword [rbp - 0x58], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140016486
lea rax, [rsp + 0x20]
cmp rcx, rax
jne 0x14001647d
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 8]
mov qword [rbp - 0x58], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140016486
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140016481
mov qword [rbp - 0x58], rcx
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400164a6
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x58], rbx
xor edx, edx
lea ecx, [rdx + 2]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot
mov r14, rax
mov qword [rbp + 0x218], rax
cmp rax, 0xffffffffffffffff
je 0x14001650e
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x4c]
call fcn.140017ce0
mov dword [rbp - 0x50], 0x238
lea rdx, [rbp - 0x50]
mov rcx, r14
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW
test eax, eax
je 0x14001650e
mov rdx, rdi
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x14001650b
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp + 0x218]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW
jmp 0x1400164e4
mov esi, dword [rbp - 0x48]
lea rcx, [rsp + 0x70]
call fcn.140016150
jmp 0x14001651f
mov ebx, 0x80070057
test ebx, ebx
jne 0x140016545
test esi, esi
je 0x140016545
mov r8d, esi
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
test rax, rax
je 0x140016545
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov eax, ebx
jmp 0x14001654e
mov eax, 0x80004005
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140025990
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400259c7
call fcn.140020548
mov dword [rax], 0x16
call fcn.14001bcd4
xor eax, eax
jmp 0x140025a55
mov rdx, r9
mov rcx, r8
call fcn.140025924
mov rbx, rax
test rax, rax
je 0x140025a52
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140025850]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140025a3f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1400204bc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140025a26
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140025a35
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, rbx
call fcn.140026284
jmp 0x140025a52
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140025a4f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400297b4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400297ca
mov al, 1
jmp 0x14002982a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400297db
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029828
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002db80
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029828
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointerEx]
test eax, eax
je 0x140029828
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
test eax, eax
je 0x140029828
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002982a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400299c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140053750]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140029a1f
cmp word [rdx], r13w
jne 0x140029a1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140029a24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140029b49
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140029b6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140029a5d
mov rdx, r9
mov word [rbx], cx
jmp 0x140029a84
cmp r9, r8
jae 0x140029a94
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140029a3e
jmp 0x140029b49
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x140029b3e
cmp dword [rsp + 0x80], esi
je 0x140029b3e
lea r8, [0x140053750]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140029b16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140029ae6
mov word [rbx], r13w
jmp 0x140029b46
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140029af3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140029b46
cmp word [rsp + 0x70], r13w
jne 0x140029b23
cmp rbx, r14
je 0x140029ae0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002a628
cmp word [rsp + 0x70], r13w
je 0x140029b49
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140053750]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140029b43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140029b49
Function at 0x14002cfcc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002d053
mov rsi, rbx
cmp word [rax], bp
je 0x14002d012
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002cffc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002cff8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400262c0
mov rdi, rax
test rax, rax
je 0x14002d040
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140017630
mov rbp, rdi
xor ecx, ecx
call fcn.140026284
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140031db4
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002a628
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002a628
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140031f04
cmp rax, 0xffffffffffffffff
je 0x140031f04
xor edi, edi
test rbp, rbp
jle 0x140031eaf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140027ac0
mov rbx, rax
test rax, rax
jne 0x140031e3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140031ea5
mov edx, 0x8000
mov ecx, r14d
call fcn.140024d9c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140029150
cmp eax, 0xffffffff
je 0x140031e85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140031e4c
mov edx, r15d
mov ecx, r14d
call fcn.140024d9c
jmp 0x140031ea5
cmp byte [rsi + 0x38], dil
je 0x140031e9c
cmp dword [rsi + 0x34], 5
jne 0x140031e9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140031ea5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140026284
jmp 0x140031f18
jns 0x140031f18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002a628
cmp rax, 0xffffffffffffffff
jne 0x140031ed0
cmp byte [rsi + 0x30], dil
je 0x140031f18
mov edi, dword [rsi + 0x2c]
jmp 0x140031f18
mov ecx, r14d
call fcn.14002db80
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
test eax, eax
jne 0x140031f18
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140031f18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140031f11
mov eax, dword [rsi + 0x2c]
jmp 0x140031f16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002a628
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000c6c0
Capabilities:
Log keystrokes via polling

Disassembly:
jmp qword [sym.imp.USER32.dll_ShowWindow]
push rsi
enter 0x3e81, 0x30
adc al, 0
sub ecx, dword [rax - 0x75]
add eax, 0x11c96d
and eax, dword [rsi - 0x20]
mov qword [rbx - 0x1e], rdx
sub byte [rcx], al
add byte [rax], al
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test dword [rsp + rsi*2 - 0x7e], ebp
cmp byte [rsp + 0x32], 0x7b
js 0x14000c6af
mov al, byte [rbx - 0x7b]
invalid

Function at 0x140032260
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
pop rcx
pop rdx
push rbp
push rbx
pop rbx
in al, dx
js 0x1400322be
mov ebp, ecx
add al, 0x89
mov edi, 0xd4f64958
mov rbx, rcx
mov ebx, ecx
mov al, byte [rsp + 0x1b1]
mov byte [rax + riz + 0x56], al
adc dword [rsp + 0x100], eax
mov byte [rsp + 0x57], al
mov r14, qword [rbp + rcx*8 + 0xf8]
mov ebp, dword [rsp - 0x56ffff10]
xor ecx, dword [rbx + 0xe0cdb4]
add byte [rax], al
mov r15, qword [rsp + 0x63e0]
outsb dx, byte [rsi]
add eax, 0x860f6d96
xor qword [rbp + 0x48], rsi
mov ecx, eax
pop rsp
jo 0x14003227c
add dword [rax], eax
and cl, byte [rdx + 0xc8a3]
push rdx
xor r8d, r8d
invalid
fmul st(6), st(0)

Function at 0x14003c720
Capabilities:
Encode data using xor

Disassembly:
loopne 0x14003c6a7
leave
je 0x14003c72d
mov rcx, qword [rcx]
jmp 0x140e96100
xor eax, eax
push rax

Function at 0x140079320
Capabilities:
Get common file path

Disassembly:
cmp ecx, dword [rax - 0x7d]
in al, dx
outsd dx, dword [rsi]
cmp eax, 0x20ef1985
int 0xe8
jno 0x140079386
add eax, 0x69894800
invalid
adc rdi, 0xffffffffffffffa1
cmp al, 0xb
add byte [rax + 0x3986715a], bl
sub bh, byte [rbx + rcx]
add byte [rcx], dh
leave
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r9d, eax
test byte [rcx], bh
or eax, 0xb3c18
ja 0x140079401
lea rsi, [0x140ded086]
mov rdi, qword [0x140125d18]
nop dword [rax + rax + 0xf8fe3d]
mov rcx, qword [0x140bfcfb8]
mov byte [rsp + 0x54], 0
mov qword [rsp + 0x20], 0xaf01
mov r8d, 0x26007b01
mov qword [rdi + 0x39b7de8], rax
dec dword [rax - 0x77]
add eax, 0xb3bce
mov eax, dword [0x14045cfc0]
xchg esp, eax
mov bh, 0xc1
xlatb
mov r9d, eax
cmp qword [0x14012cfc0], r9
jmp rdi
pop rcx
mov eax, dword [0x14012cf2a]
add rsp, 0x38
sbb dword [rsi - 0x3d], 0x415741cc
push rsi
push r13
push r12
rcl dword [rdi + 0x55], 0x53
sub rsp, 0x68
mov r15d, r8d
cmpsq qword [rsi], qword [rdi]
invalid

Function at 0x1400ce988
Capabilities:
Encode data using xor

Disassembly:
mov rdx, qword [rsi]
mov r9, r8
movabs qword [0x56f748ca034c08e9], rax
movabs dword [0x56f748ca034c08e9], eax
movabs dword [0x56f748ca034c08e9], eax
xor rdx, r9
and rdx, r11
je 0x1400ce981
Function at 0x140004580
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140015028]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x140004613
mov byte [rsp + 0x20], 0x27
mov al, 0x42
mov cl, 0x55
movzx edx, cl
mov r8b, 0x48
movzx r9d, cl
xor r10d, r10d
xor al, 0x27
mov byte [rsp + 0x21], al
xor cl, 0x27
mov byte [rsp + 0x22], cl
xor dl, 0x27
mov byte [rsp + 0x23], dl
xor r8b, 0x27
mov byte [rsp + 0x24], r8b
xor r9b, 0x27
mov byte [rsp + 0x25], r9b
mov byte [rsp + 0x26], r10b
lea rdx, [rsp + 0x21]
lea rcx, [rsp + 0x28]
call fcn.1400049d0
jmp 0x140004659
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x50], rax
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400049d0
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsp + 0x38], xmm1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or edi, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140004af0
mov rcx, rax
call fcn.140004180
mov ecx, 0x3e8
call fcn.1400039f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400045a5
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d41c
jmp 0x1400045a5

Function at 0x140004740
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140004774
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140004760
ret
Function at 0x14000b130
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000b1fc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000b1fc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000b215
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000b1ec
cmp byte [rax], 0x5c
jne 0x14000b1e6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000b1e6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000b1d2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000b1e3
test r8b, 0x10
jne 0x14000b1e6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000b1e6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140007580
test edi, edi
jne 0x14000b150
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140007570
int3

Function at 0x14000dc28
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400ba720]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400ba730]
mov dword [rax], 1
mov rax, qword [0x1400ba740]
mov dword [rax], 1
mov rax, qword [0x1400ba6c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400ba710]
mov dword [0x1400e2020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400ba800]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400ba7e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400b9b00]
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
lea rcx, [dbg._matherr]
call dbg.__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 0x14000aed0
Capabilities:
Write file on windows

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

Function at 0x14000af40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e20b4]
mov r12, rcx
test ebx, ebx
jle 0x14000b070
mov rax, qword [0x1400e20b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000af8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b013
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000af70
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000b092
mov rax, qword [0x1400e20b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e20b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b077
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b00c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b020
add dword [0x1400e20b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400e20b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b00c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x14000af97
mov rax, qword [0x1400e20b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b550
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e2120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e2100]
test rbx, rbx
je 0x14000b5a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b59b
test r12, r12
je 0x14000b59b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b580
lea rcx, [0x1400e2120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b7c0
Capabilities:
Parse pe header

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

Function at 0x14000b7f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000b83c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x14000b833
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000b83e
add rax, 0x28
cmp rax, r9
jne 0x14000b820
xor eax, eax
ret

Function at 0x14000b840
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x14000b8d0
mov rdx, qword [0x1400ba6c0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000b8be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b8be
cmp word [rax + 0x18], 0x20b
jne 0x14000b8be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14000b8d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x14000b8a9
add r12, 0x28
cmp r12, rsi
je 0x14000b8d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x14000b8a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x1400ba6c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b900
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b908
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b900
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b955
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b94c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b900
add rax, 0x28
cmp rax, r9
jne 0x14000b938
xor eax, eax
ret

Function at 0x14000b960
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400ba6c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b980
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b988
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b980
movzx r8d, word [rax + 6]
mov eax, r8d
ret