joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140441330
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xe8]
sub rax, 0x10000
mov rcx, rax
call fcn.1404410c0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rsp + 0x30], rax
jbe 0x1404414c2
mov rax, qword [0x140960910]
cmp qword [rsp + 0x30], rax
jb 0x1404413b7
mov rax, qword [0x140960918]
cmp qword [rsp + 0x30], rax
ja 0x1404413b7
mov rax, qword [rsp + 0x30]
sub rax, 0x8000000
mov qword [rsp + 0x30], rax
jmp 0x140441376
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1402118af
nop
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
test eax, eax
jge 0x1404413ff
jmp 0x1404414c2
cmp dword [rsp + 0x68], 0x10000
jne 0x1404414a5
cmp qword [rsp + 0x60], 0x10000
jb 0x1404414a5
mov qword [rsp + 0x98], 0x10000
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, [rsp + 0xb8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
jl 0x140441482
mov rax, qword [rsp + 0xb8]
jmp 0x1404414c4
cmp dword [rsp + 0x84], 0xc0000604
jne 0x140441493
xor eax, eax
jmp 0x1404414c4
mov rax, qword [rsp + 0x30]
sub rax, 0x10000
mov qword [rsp + 0x30], rax
jmp 0x1404414bd
mov rax, qword [rsp + 0x50]
sub rax, 0x10000
mov rcx, rax
call fcn.1404410c0
mov qword [rsp + 0x30], rax
jmp 0x140441376
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1407c5310]
call fcn.1402124fd
mov rax, rdi
add rsp, 0xd0
pop rdi
ret
Function at 0x1405017d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x50]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
cmp qword [rsp + 0x90], 0
jne 0x14050180b
mov eax, 0xffffffff
jmp 0x1405018ab
mov rax, qword [rsp + 0x90]
add rax, 0x18
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x2000
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jge 0x140501864
mov eax, 0xffffffff
jmp 0x1405018ab
cmp qword [rsp + 0x60], 0
jne 0x140501873
mov eax, 0xffffffff
jmp 0x1405018ab
mov rax, qword [rsp + 0x90]
add rax, 0x18
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
lea rax, [rax + rcx + 0x18]
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x10], rax
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14088b710]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x80
pop rdi
ret

Function at 0x1405018d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x50]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
cmp qword [rsp + 0x90], 0
jne 0x14050190b
mov eax, 0xffffffff
jmp 0x1405019b9
mov rax, qword [rsp + 0x90]
add rax, 0x18
mov rcx, qword [rsp + 0x90]
cmp qword [rcx + 8], rax
jne 0x14050192c
xor eax, eax
jmp 0x1405019b9
mov rax, qword [rsp + 0x90]
add rax, 0x18
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
add rcx, 0x18
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jge 0x14050199f
mov eax, 0xffffffff
jmp 0x1405019b9
mov rax, qword [rsp + 0x90]
add rax, 0x18
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 8], rax
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14088b770]
call fcn.1402124fd
mov rax, rdi
add rsp, 0x80
pop rdi
ret
Function at 0x1405e0b00
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14020bc9d
sub rsp, rax
mov rax, qword [0x140961e80]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14096e700]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1405e0cfa
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1405e0c46
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1405e0c46
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1405e0c2b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1405e0bc8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1405e0cba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1405e0d19
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1405e0cf5
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1405e0d19
jmp 0x1405e0b9e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14020ee98
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1405e0dc0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14020bc9d
sub rsp, rax
mov rax, qword [0x140961e80]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14096e700]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1405e0fd5
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1405e0f19
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1405e0f19
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1405e0ef9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1405e0e88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1405e0f95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1405e0ff4
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x1405e0fd0
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1405e0ff4
jmp 0x1405e0e5e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14020ee98
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1405eb620
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1405eb648
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.1405eb7c0
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140603480
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14020cffd
movzx eax, al
test eax, eax
je 0x1406034a7
mov al, 1
jmp 0x14060359c
lea rcx, [rsp + 0x60]
call fcn.140214785
movzx eax, al
test eax, eax
je 0x1406034e6
lea rcx, [rsp + 0x60]
call fcn.140212697
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.140212697
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x1406034e6
xor al, al
jmp 0x14060359c
lea rcx, [rsp + 0x60]
call fcn.140212a25
mov ecx, eax
call fcn.140214695
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14060350b
xor al, al
jmp 0x14060359c
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140603550
xor al, al
jmp 0x14060359c
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140603579
xor al, al
jmp 0x14060359c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x14060358f
mov dword [rsp + 0x20], 1
jmp 0x140603597
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret

Function at 0x140618380
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1406183bf
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x1406183bf
lea rdx, [0x140902f10]
mov rcx, qword [rsp + 0x40]
call fcn.14020efd3
test eax, eax
jne 0x1406183f6
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20001004
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1406183e5
xor eax, eax
jmp 0x140618445
cmp dword [rsp + 0x20], 0
jne 0x1406183f4
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x140618445
jmp 0x140618441
lea rdx, [0x140902f30]
mov rcx, qword [rsp + 0x40]
call fcn.14020efd3
test eax, eax
jne 0x140618433
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x2000000b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140618431
xor eax, eax
jmp 0x140618445
jmp 0x140618441
mov rcx, qword [rsp + 0x40]
call fcn.14020a1a9
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140618500
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.14020c292
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140618563
xor eax, eax
jmp 0x1406185a3
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x14061859e
cmp dword [rsp + 0x58], 0
je 0x14061859e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.140617ad0
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14020a9fb
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x14061859e
xor eax, eax
jmp 0x1406185a3
mov eax, 1
add rsp, 0x48
ret
Function at 0x14001113b
Capabilities:
Write file on windows

Disassembly:
jmp 0x140022ed0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140040060]
call fcn.140011b04
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140022f27
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140023033
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140022fcc
cmp qword [rbp + 0x28], 0
jle 0x140022fcc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140022f6c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011a64
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140023022
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140023022
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011618
Capabilities:
Terminate process

Disassembly:
jmp 0x140026540
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]
add rsp, 0x28
ret
Function at 0x1400117a8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140027070
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140027090
xor al, al
jmp 0x140027111
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400270a3
xor al, al
jmp 0x140027111
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 0x1400270cd
xor al, al
jmp 0x140027111
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400270e1
xor al, al
jmp 0x140027111
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400270f3
xor al, al
jmp 0x140027111
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002710f
xor al, al
jmp 0x140027111
mov al, 1
add rsp, 0x38
ret
Function at 0x140011ae1
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001c430
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140037040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140040060]
call fcn.140011b04
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001c496
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001c49d
mov al, 1
jmp 0x14001c5ed
call fcn.140011343
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011343
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011898
movzx eax, al
test eax, eax
je 0x14001c4ee
xor al, al
jmp 0x14001c5ed
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001c553
cmp dword [rbp + 0x154], 1
je 0x14001c55e
cmp dword [rbp + 0x154], 3
je 0x14001c5dc
jmp 0x14001c5eb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001c5ae
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001c5ae
xor al, al
jmp 0x14001c5ed
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001c5c9
mov dword [rbp + 0x154], 1
jmp 0x14001c5d3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001c5ed
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001c5ed
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002faf0]
call fcn.140011906
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011537
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140013d30
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp - 0x48], 0x90
mov qword [rbp - 0x88], rbx
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov qword [rbp + 0x20], r8
mov dword [0x140a0fb50], ecx
mov qword [0x140a0fb58], rdx
sub rsp, 0x20
call sub.KERNEL32.dll_GetCommandLineW
add rsp, 0x20
mov rsi, rax
mov rcx, rsi
sub rsp, 0x20
call fcn.140053b88
add rsp, 0x20
mov rdi, rax
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
mov rcx, rsi
sub rsp, 0x20
call sub.SHELL32.dll_CommandLineToArgvW
add rsp, 0x20
mov r12, rax
movsxd rcx, dword [rbp - 0x40]
shl rcx, 4
sub rsp, 0x20
lea rdx, [rbp - 0x48]
call fcn.140019f90
add rsp, 0x20
mov qword [rbp - 0x30], rax
movsxd r8, dword [rbp - 0x40]
mov qword [rbp - 0x38], r8
push 0
push 0
push 0
push 0
mov r9d, edi
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
sub rsp, 0x20
call sub.KERNEL32.dll_WideCharToMultiByte
add rsp, 0x40
cdqe
mov r14, rax
mov rcx, r14
sub rsp, 0x20
lea rdx, [rbp - 0x48]
call fcn.140019f90
add rsp, 0x20
mov qword [rbp - 0x20], rax
xor edi, edi
mov qword [rbp - 0x28], r14
xor r14d, r14d
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x18], eax
cmp eax, edi
jle 0x140013eda
movsxd rbx, r14d
mov rcx, qword [r12 + rbx*8]
sub rsp, 0x20
call fcn.140053b88
add rsp, 0x20
mov r13, rax
push 0
push 0
push 0
push 0
mov r9d, r13d
mov r8, qword [r12 + rbx*8]
xor edx, edx
mov ecx, 0xfde9
sub rsp, 0x20
call sub.KERNEL32.dll_WideCharToMultiByte
add rsp, 0x40
mov r15d, eax
movsxd rax, r15d
lea rsi, [rax + rdi]
sub rsi, rdi
mov r8, qword [rbp - 0x20]
lea rdx, [rdi + r8]
mov qword [rbp - 0x50], rbx
shl rbx, 4
mov rcx, qword [rbp - 0x30]
mov qword [rbx + rcx], rsi
mov qword [rbx + rcx + 8], rdx
test r15d, r15d
je 0x140013ecd
add rdi, rax
push 0
push 0
push r15
mov rax, qword [rbp - 0x50]
shl rax, 4
add rax, qword [rbp - 0x30]
push qword [rax + 8]
mov r9d, r13d
mov rbx, qword [rbp - 0x50]
mov r8, qword [r12 + rbx*8]
xor edx, edx
mov ecx, 0xfde9
sub rsp, 0x20
call sub.KERNEL32.dll_WideCharToMultiByte
add rsp, 0x40
inc r14d
cmp r14d, dword [rbp - 0x18]
jl 0x140013e2d
mov r14, qword [rbp - 0x28]
mov rcx, r12
sub rsp, 0x20
call sub.KERNEL32.dll_LocalFree
add rsp, 0x20
mov dword [rbp - 0x40], 0
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp - 0x30]
mov qword [rbp - 8], rbx
mov r8, qword [rbp + 0x20]
mov rdx, r14
lea rcx, [rbp - 0x10]
sub rsp, 0x20
call fcn.140019ff0
add rsp, 0x20
mov rbx, qword [rbp - 0x88]
mov rsi, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x78]
mov r12, qword [rbp - 0x70]
mov r13, qword [rbp - 0x68]
mov r14, qword [rbp - 0x60]
mov r15, qword [rbp - 0x58]
mov rsp, rbp
pop rbp
ret