joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018b70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140023700
cmp eax, 1
je 0x140018ba2
mov ecx, 3
call fcn.140023700
test eax, eax
jne 0x140018c56
cmp dword [0x140039d00], 1
jne 0x140018c56
mov qword [rsp + 0x48], rbx
lea rbx, [0x140039eb0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140018bce
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140018bb8
jmp 0x140018c42
cmp edi, 0x17
jae 0x140018c42
mov ecx, 3
call fcn.140023700
cmp eax, 1
je 0x140018bf9
mov ecx, 3
call fcn.140023700
test eax, eax
jne 0x140018c42
cmp dword [0x140039d00], 1
jne 0x140018c42
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140018c42
cmp rax, 0xffffffffffffffff
je 0x140018c42
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 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 ecx, 0xff
call fcn.140018930
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x140018e57
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140039d10]
jne 0x14001572a
rol rcx, 0x10
test cx, 0xffff
jne 0x140015726
repz ret
ror rcx, 0x10
jmp 0x140018db0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003f4d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003f5c8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140018e35
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003f4d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140018e57
mov rax, qword [rsp + 0x88]
mov qword [0x14003f5c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003f568], rax
mov rax, qword [0x14003f5c8]
mov qword [0x14003f440], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003f550], rax
mov dword [0x14003f430], 0xc0000409
mov dword [0x14003f434], 1
mov rax, qword [0x140039d10]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140039d18]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003f4c8], eax
mov ecx, 1
call fcn.140023490
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002fb40]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003f4c8], 0
jne 0x140018ede
mov ecx, 1
call fcn.140023490
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001d6f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14003faf8]
test eax, eax
jne 0x14001d743
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001d723
mov dword [0x14003faf8], 1
jmp 0x14001d75e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001d73d
mov dword [0x14003faf8], 2
jmp 0x14001d839
mov eax, dword [0x14003faf8]
cmp eax, 1
jne 0x14001d830
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001d883
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x14001d785
add rbx, 2
cmp word [rbx], 0
jne 0x14001d771
add rbx, 2
cmp word [rbx], 0
jne 0x14001d771
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x14001d823
mov rcx, rbp
call fcn.14001a610
test rax, rax
mov rsi, rax
je 0x14001d823
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14001d7fd
mov rcx, rsi
call fcn.140015620
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001d809
cmp eax, 2
je 0x14001d839
test eax, eax
jne 0x14001d883
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x14001d883
cmp byte [rax], 0
je 0x14001d862
nop
add rax, 1
cmp byte [rax], 0
jne 0x14001d850
add rax, 1
cmp byte [rax], 0
jne 0x14001d850
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14001a610
test rax, rax
mov rdi, rax
jne 0x14001d895
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140017850
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x1400234a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140019e90
xor ebx, ebx
cmp qword [0x14003fe50], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400235cc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400236df
lea rdx, [0x14002fdf8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400236df
mov rcx, rax
call fcn.140019dc0
lea rdx, [0x14002fde8]
mov rcx, rsi
mov qword [0x14003fe50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019dc0
lea rdx, [0x14002fdd0]
mov rcx, rsi
mov qword [0x14003fe58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019dc0
lea rcx, [rsp + 0x98]
mov qword [0x14003fe60], rax
call fcn.140017000
test eax, eax
je 0x14002357f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140018780
cmp dword [rsp + 0x98], 2
jne 0x1400235cc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019dc0
test rax, rax
mov qword [0x14003fe70], rax
je 0x1400235cc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019dc0
mov qword [0x14003fe68], rax
mov rcx, qword [0x14003fe68]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140023678
cmp qword [0x14003fe70], rbp
je 0x140023678
call fcn.140019f80
mov rcx, qword [0x14003fe70]
mov rsi, rax
call fcn.140019f80
test rsi, rsi
mov r12, rax
je 0x140023678
test rax, rax
je 0x140023678
call rsi
test rax, rax
je 0x140023643
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140023643
test byte [rsp + 0x40], 1
jne 0x140023678
lea rcx, [rsp + 0x30]
call fcn.140017050
test eax, eax
je 0x140023665
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140018780
cmp dword [rsp + 0x30], 4
jb 0x140023672
bts edi, 0x15
jmp 0x1400236b6
bts edi, 0x12
jmp 0x1400236b6
mov rcx, qword [0x14003fe58]
cmp rcx, rbp
je 0x1400236b6
call fcn.140019f80
test rax, rax
je 0x1400236b6
call rax
test rax, rax
mov rbx, rax
je 0x1400236b6
mov rcx, qword [0x14003fe60]
cmp rcx, rbp
je 0x1400236b6
call fcn.140019f80
test rax, rax
je 0x1400236b6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003fe50]
call fcn.140019f80
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400236df
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400236e1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140026dd0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140039d10]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140026e17
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015710
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140015bb0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015710
add rsp, 0x38
ret
Function at 0x14002b240
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140039d10]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140017480
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140002000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140017480
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14002b2d3
cmp dword [rsp + 0x24], 5
jb 0x14002b2ed
jmp 0x14002b2e9
cmp dword [rsp + 0x30], esi
jne 0x14002b2ed
cmp dword [rsp + 0x24], 4
ja 0x14002b2e9
jne 0x14002b2ed
cmp dword [rsp + 0x28], 0
jbe 0x14002b2ed
mov byte [rbx + 0x18], sil
lea rax, [0x140031130]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14002b100
movzx ecx, byte [0x14003ffe9]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14003ffe9], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140015710
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007cf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000c850
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002b8c4]
call fcn.1400045c0
mov rbx, rax
test rax, rax
je 0x140007d52
lea rdx, [0x14002b9bc]
mov rcx, rsi
call fcn.1400045c0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x140007d5c
call fcn.14001004c
mov eax, 0xffffffff
jmp 0x140007df1
call fcn.1400100e4
test eax, eax
jne 0x140007ddf
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14001039c
test rax, rax
je 0x140007dc6
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.140010adc
test rax, rax
je 0x140007dc1
mov rcx, rsi
call fcn.140010110
test eax, eax
jne 0x140007dc1
mov rcx, rbx
call fcn.1400100e4
test eax, eax
je 0x140007d70
jmp 0x140007ddf
mov rcx, rsi
jmp 0x140007dd5
mov rcx, rbx
call fcn.140010110
test eax, eax
je 0x140007ddf
mov rcx, rbx
call fcn.140017318
mov edi, 0xffffffff
mov rcx, rbx
call fcn.14001004c
mov rcx, rsi
call fcn.14001004c
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c550
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140007f90
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140014f44
mov r15, rax
test rax, rax
je 0x1400080a3
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.1400106d4
test eax, eax
js 0x1400080a3
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.1400178c8
mov rbx, rax
cmp rax, rsi
jb 0x14000809e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax + rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x140008094
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.1400106d4
test eax, eax
js 0x140008094
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14001039c
cmp rax, rbx
jne 0x140008094
sub rbx, rsi
add rbx, 1
je 0x14000807b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14002a870
test eax, eax
je 0x14000808d
dec rdi
sub rbx, 1
jne 0x140008060
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x140008000
jmp 0x140008094
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140014f30
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14000d2b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14002b0b8]
test rax, rax
je 0x14000d302
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d302
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d302
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d302
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d302
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d304
xor al, al
add rsp, 0x28
ret

Function at 0x140019b6c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019968
Function at 0x14000e530
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000e551
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000e57e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e580
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000e5d9
test ecx, ecx
jle 0x14000e5b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000e5d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e5d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
mov rax, qword [rbp + 0x4c8]
lea rcx, [rsp + 0x50]
mov qword [rbp + 0xe8], rax
xor edx, edx
lea rax, [rbp + 0x4c8]
mov r8d, 0x98
add rax, 8
mov qword [rbp + 0x88], rax
call 0x14004638a
mov rax, qword [rbp + 0x4c8]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x40000015
mov dword [rsp + 0x54], 1
call qword [0x140047620]
pop rsi
adc al, 0
add byte [rbx + 0x48c933d8], cl
lea eax, [rsp + 0x50]
Function at 0x14000e600
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000e622
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000e631
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e654
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e656
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e692
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000e72e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e6cd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000e70e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000e72e
cmp rbx, rax
ja 0x14000e6e0
test rbx, rbx
je 0x14000e72e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add al, 0
add byte [rax - 0x75], cl
retf
Function at 0x14000eb90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000ebbd
xor eax, eax
jmp 0x14000ed29
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ebf7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000ebf7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000ed29
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000ed1c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ec3a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000ec65
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ed21
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000ecd4
sub eax, 1
je 0x14000ecd4
cmp eax, 2
jne 0x14000ed1c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ed21
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000ed02
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000ed1c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ed21
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000fb20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000f000
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140036040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000f0d3
cmp byte [rcx + 0x71], 0
je 0x14000f0d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000f0cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f094
sub eax, 1
je 0x14000f098
cmp eax, 2
jne 0x14000f0cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fb20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000f0c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000f0cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000f07c
xor al, al
jmp 0x14000f07c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000fb20
add rsp, 0x60
pop rbx
ret

Function at 0x140010660
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400134eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x1400cfe08]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140032580
xorps xmm15, xmm15
mov r14, qword [0x140211850]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x1400133c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x1400133d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x1400133f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x140013403
cmp rbx, 0x1000
jae 0x1400133cb
jmp 0x14001346d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x140013415
xor edx, edx
jmp 0x140013464
mov rcx, qword [0x1400cfe08]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.140032580
xorps xmm15, xmm15
mov r14, qword [0x140211850]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x1400133f9
jmp 0x1400133e8
call fcn.1400708a0
xorps xmm15, xmm15
mov r14, qword [0x140211850]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.140036de0
lea rax, [0x14010fd7b]
mov ebx, 0x18
nop dword [rax]
call fcn.140037660
mov rax, qword [rsp + 0x38]
call fcn.1400373a0
lea rax, [0x1401103f3]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.140037660
mov rax, qword [rsp + 0x30]
call fcn.1400373a0
call fcn.140037020
call fcn.140036e40
lea rax, [0x140112c6a]
mov ebx, 0x21
call fcn.140067c60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14006d160
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140013360