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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140015760
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015760
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000b340
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f60a4]
mov rbx, rcx
test esi, esi
jle 0x14000b470
mov rax, qword [0x1400f60a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b38b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b415
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b370
mov rcx, rbx
call fcn.14000bdb0
mov rdi, rax
test rax, rax
je 0x14000b492
mov rax, qword [0x1400f60a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000bef0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f60a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b477
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b40e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b420
add dword [0x1400f60a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400f60a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b40e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b2d0
nop dword [rax]
xor esi, esi
jmp 0x14000b398
mov rax, qword [0x1400f60a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b2d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b2d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f6100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f60e0]
test rbx, rbx
je 0x14000ba7c
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 rsi, rsi
je 0x14000ba73
test eax, eax
jne 0x14000ba73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba58
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 0x14000bdb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400cd630]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bdd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bdd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bdd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000be2d
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]
mov rdx, r8
cmp rcx, r8
jb 0x14000be24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bdd0
add rax, 0x28
cmp rax, r9
jne 0x14000be10
xor eax, eax
ret

Function at 0x14000be30
Capabilities:
Parse pe header

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

Function at 0x14000bef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cd630]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000bf0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000bf18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140079310
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140079358
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007932a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400c1430
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c6040]
jmp 0x14000cc10

Function at 0x1400c1440
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400c6040]
jmp 0x14000cc10
Function at 0x402000
Capabilities:
Encode data using xor
Set registry value
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rcx, 0
mov rdx, 0x401195
mov r8, 0x104
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
add rsp, 0x20
mov rdi, str.kWLOYJ_duQ_JWKWLdoQVWOKdMJJ_VLn_JKQWVdjMV8k_LkLYJLhY__8kWLOYJ_duQ_JWKWLdqVL_JV_L
mov rcx, 0x81
xor byte [rdi], 0x38
inc rdi
dec rcx
test rcx, rcx
jne 0x402035
sub rsp, 0x20
movabs rcx, 0x80000001
mov rdx, str.kWLOYJ_duQ_JWKWLdoQVWOKdMJJ_VLn_JKQWVdjMV8k_LkLYJLhY__8kWLOYJ_duQ_JWKWLdqVL_JV_L
mov r8, 0x401081
call qword [sym.imp.ADVAPI32.DLL_RegCreateKeyA]
add rsp, 0x20
sub rsp, 0x20
mov rcx, 0x401091
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
add rsp, 0x20
sub rsp, 0x30
mov rcx, qword [0x00401081]
mov rdx, 0x40102e
mov r8, 0
mov r9, 1
mov qword [rsp + 0x20], 0x401091
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
add rsp, 0x30
sub rsp, 0x20
mov rcx, qword [0x00401081]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add rsp, 0x20
sub rsp, 0x30
movabs rcx, 0x80000001
mov rdx, 0x40103b
mov r8, 0
mov r9, 0x20006
mov qword [rsp + 0x20], 0x401089
call qword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
add rsp, 0x30
sub rsp, 0x20
mov rcx, 0x401065
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
add rsp, 0x20
sub rsp, 0x30
mov rcx, qword [0x00401089]
mov rdx, 0x401076
mov r8, 0
mov r9, 1
mov qword [rsp + 0x20], 0x401065
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
add rsp, 0x30
sub rsp, 0x20
mov rcx, qword [0x00401089]
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x140140eef
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test rsi, rsi
mov qword [rsp], 0xffffffffb809dd83
lea rsp, [rsp + 0x10]
je 0x140140f87
push 0xffffffffcc079539
rol dword [rsp + 1], 0xfe
neg byte [rsp + 7]
mov qword [rsp], r11
mov r11d, 0x6a267017
push rbx
mov ebx, 0x430f8c1f
lea rbx, [rbx*2 - 0x17667df6]
adc r11d, ebx
lea r11, [0x14016a268]
mov ebx, 0xea9adca2
movzx ebx, byte [r8]
push 0x710db405
xor ebx, eax
and ebx, 0xff
mov ebx, dword [r11 + rbx*4]
shr eax, 8
xor eax, ebx
inc r8
xor eax, 0x6a23f62c
neg qword [rsp]
dec rsi
lea rsp, [rsp + 8]
jne 0x140140f37
push 0xffffffff8c22cf83
mov ebx, dword [rsp]
mov rbx, qword [rsp + 8]
mov r11, qword [rsp + 0x10]
lea rsp, [rsp + 0x18]
not eax
mov dword [rbp + riz], eax
jmp fcn.14013b3c4

Function at 0x140146bd9
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [r11 + 2]
call fcn.1401622a3
lea r8, [0x14013c300]
mov r11d, 0x8925b587
sub r11, r11
adc r11d, r11d
or r11b, byte [rax + r11*2]
push 0x6c365c33
xor r11d, r9d
push 0x2b75827
and r11d, 0xff
mov r11d, dword [r8 + r11*4]
shr r9d, 8
xor r9d, r11d
neg byte [rsp + 0xe]
push 0xffffffffe908840c
neg dword [rsp + 0xf]
inc rax
xor r9d, 0xc383122
ror byte [rsp + 0x17], 2
dec rbx
lea rsp, [rsp + 0x18]
jne 0x14013ba14
mov r8d, 0xc4b47337
push r8
call fcn.140146065
mov ebx, 0x4a1e9119
inc bl
mov ecx, ebx
movzx bx, byte [r11 + rbx - 0x4a1e911a]
lea rcx, [rcx + rcx*8 + 0x739ca22c]
jg 0x140131182
call fcn.14015196c
jmp 0x14015557d
not ebx
mov rbx, qword [rbx + r8 - 0x367cd26d]
add r8, 0xc
xor r9d, r9d
test rbx, rbx
mov qword [rsp], 0x5803a105
lea rsp, [rsp + 8]
je 0x14014606f
mov r11d, 0x2ca2d182
shr r11d, 0xd8
push r8
movsx r8d, r11w
adc r8d, r8d
jae 0x14013ba0d
call fcn.14013b509
add byte [rax], al
add byte [rax], al
add byte [rax], al
adc eax, 0x1401339
add byte [rax], al
add byte [rdx], dl
mov dl, 0x13
add dword [rax], eax
add byte [rax], al
xor dl, byte [rbx]
invalid
Function at 0x140002c50
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140002c76
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140003ac8
jmp 0x140002ce1
cmp byte [0x140047b90], 0
jne 0x140002cba
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002caa
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140047b88], rax
jmp 0x140002cb1
mov rax, qword [0x140047b88]
mov byte [0x140047b90], 1
jmp 0x140002cc1
mov rax, qword [0x140047b88]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140002cdb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x140030470]
jmp 0x140002ce1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140003878
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140046308]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.14000303c
jmp 0x1400038ea
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003878
mov ebx, eax
test eax, eax
jne 0x140003953
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400038db
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003941
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.140002c50
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140003963
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140011820
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003e38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140046308]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.140013260
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140003ece
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140003ece
call fcn.140001fe8
mov ebx, eax
jmp 0x140003fdf
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140003eef
call fcn.140001fe8
jmp 0x140003fce
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140003ee5
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140003f2a
mov ebx, 0x8007000e
jmp 0x140003fd0
mov ecx, eax
test eax, eax
je 0x140003f5f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140004017
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140003f5f
lfence
lea rcx, [rsp + 0x60]
call fcn.140001ce8
jmp 0x140003f69
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140003f7b
cmp qword [rsp + 0x60], rdi
je 0x140003f20
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140003ee5
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140003c14
mov ebx, eax
test rsi, rsi
je 0x140003fdf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140003ff6
lea rcx, [rsp + 0x60]
call fcn.140002cec
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140011820
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.140001170
int3
Function at 0x140004714
Capabilities:
Set registry 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 r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140004742
lea eax, [rbx + 0xd]
jmp 0x140004777
mov rsi, rdi
mov rcx, rsi
call fcn.140019078
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140004745
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140004844
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140046308]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x1400048b5
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140002e60]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400048b2
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140011820
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140004e58
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140047b28], 0
mov esi, edx
mov rdi, rcx
je 0x140004e7a
or eax, 0xffffffff
jmp 0x140004ee5
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140004ea7
cmp eax, 0x80010106
jne 0x140004ee3
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004ee3
jmp 0x140004eab
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.1400030e0
cmp al, 1
jne 0x140004ed3
mov edx, esi
mov rcx, rdi
call fcn.1400046a4
mov ebx, eax
jmp 0x140004ed7
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140004ee3
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, r9d
lea rcx, [0x140047ba0]
jmp 0x140004e58
Function at 0x14000e250
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000e270
xor eax, eax
jmp 0x14000e35c
cmp qword [rcx + 0x68], 0
je 0x14000e284
lfence
call fcn.14000e370
jmp 0x14000e35c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e29b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e29d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e2cf
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140014460
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000e353
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000e306
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000e32f
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001a12c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000e353
cmp rsi, rbx
ja 0x14000e30d
test rsi, rsi
je 0x14000e353
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001a12c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
lfence
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140011b34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011b7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011b7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011b7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011b7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140011b7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140011b80
xor al, al
add rsp, 0x28
ret
Function at 0x1400247d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400117c0
sub rsp, rax
mov rax, qword [0x140046308]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140023140
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140024823
mov rax, rbp
jmp 0x14002492b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x48ea0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400258f4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x48ea0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140024927
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024927
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400258f4
test rax, rax
js 0x140024927
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140024927
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140024919
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140024919
cmp byte [rcx], 0xd
jne 0x1400248ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002490e
cmp byte [rcx + 1], 0xa
jne 0x14002490e
inc rcx
jmp 0x14002490e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x46750]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400248e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002492b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140011820
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140024b4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140024b62
mov al, 1
jmp 0x140024bc2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140024b73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140024bc0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027544
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140024bc0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140024bc0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140024bc0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140024bc2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140024c94
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, [0x140048ea0]
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 0x140024ceb
cmp word [rdx], r13w
jne 0x140024ceb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140024cf0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140024e15
mov r11d, SafeArrayGetDim
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140024e36
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140024d29
mov rdx, r9
mov word [rbx], cx
jmp 0x140024d50
cmp r9, r8
jae 0x140024d60
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 0x140024d0a
jmp 0x140024e15
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140024e0a
cmp dword [rsp + 0x80], esi
je 0x140024e0a
lea r8, [0x140048ea0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140024de2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140024db2
mov word [rbx], r13w
jmp 0x140024e12
mov ecx, SafeArrayGetDim
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 0x140024dbf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140024e12
cmp word [rsp + 0x70], r13w
jne 0x140024def
cmp rbx, r14
je 0x140024dac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400258fc
cmp word [rsp + 0x70], r13w
je 0x140024e15
mov ecx, SafeArrayGetDim
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, [0x140048ea0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140024e0f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140024e15