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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x180107b00]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rax, [rsp + 0x40]
mov edi, 0x104
mov dword [rsp + 0x28], edi
lea r9, str._HH:mm:ss_
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xc00
call qword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea esi, [rax - 1]
movsxd rbx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, edi
lea rcx, [rsp + 0x40]
sub rdx, rbx
lea r8, str._TID:_0x_X_
add rcx, rbx
mov r9d, eax
call fcn.18005ae60
add esi, eax
lea rbx, [rsp + 0x40]
movsxd rax, esi
lea rbp, [rsp + 0x198]
sub rdi, rax
add rbx, rax
call fcn.18001d6e0
mov r9, qword [rsp + 0x190]
mov r8, rdi
mov qword [rsp + 0x28], rbp
mov rdx, rbx
xor ebp, ebp
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x20], rbp
call fcn.18006d6fc
test eax, eax
mov qword [rsp + 0x20], rbp
mov ecx, 0xffffffff
lea rdx, [rsp + 0x40]
cmovs eax, ecx
mov rcx, qword [0x18010bbc8]
xor r9d, r9d
lea r8d, [rsi + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180063bc0
add rsp, 0x168
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18005b250
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18005b281
xor eax, eax
lea r8, [0x18005b240]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1800604b0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18010c680], 0
je 0x1800604c4
xor eax, eax
jmp 0x180060723
cmp qword [0x18010c678], 0
je 0x1800604da
mov rax, qword [0x18010c678]
jmp 0x180060723
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18010c630]
call fcn.180091300
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x18010c630], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x18010c638], rax
cmp qword [0x18010c638], 0
jne 0x180060590
mov dword [0x18010c680], 1
cmp qword [0x18010c638], 0
je 0x18006053c
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x18010c640], 0
mov qword [0x18010c648], 0
mov qword [0x18010c650], 0
mov qword [0x18010c658], 0
mov qword [0x18010c660], 0
mov qword [0x18010c668], 0
mov qword [0x18010c670], 0
xor eax, eax
jmp 0x180060723
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c640], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c648], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c650], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c658], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c660], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c668], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18010c638]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18010c670], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180091300
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x18010c640], 0
je 0x180060694
cmp qword [0x18010c648], 0
je 0x180060694
cmp qword [0x18010c660], 0
je 0x180060694
cmp qword [0x18010c668], 0
je 0x180060694
cmp qword [0x18010c670], 0
jne 0x180060699
jmp 0x18006051c
lea rcx, [rsp + 0x28]
call qword [0x18010c640]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x1800606b3
jmp 0x18006051c
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18010c630]
call qword [0x18010c648]
test eax, eax
jne 0x1800606ce
jmp 0x18006051c
cmp qword [0x18010c658], 0
je 0x18006070e
cmp qword [0x18010c650], 0
je 0x18006070e
call qword [0x18010c658]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x18010c650]
lea rax, [0x18010c630]
mov qword [0x18010c678], rax
mov rax, qword [0x18010c678]
add rsp, 0x38
ret
Function at 0x180071728
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.180063b60
sub rsp, rax
mov rax, qword [0x180107b00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18007ffc4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180071777
mov rax, rbp
jmp 0x18007187f
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x10d8a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800821e0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x10d8a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007187b
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 0x18007187b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800821e0
test rax, rax
js 0x18007187b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007187b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007186d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007186d
cmp byte [rcx], 0xd
jne 0x180071853
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180071862
cmp byte [rcx + 1], 0xa
jne 0x180071862
inc rcx
jmp 0x180071862
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x107f30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180071835
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007187f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180063bc0
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 0x18007c36c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18007c3db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18007c3db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18007c3db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18007c3db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18007c3db
cmp dword [rcx + 0x84], 0xe
jbe 0x18007c3db
cmp dword [rcx + 0xf8], 0
je 0x18007c3db
mov ecx, ebx
call fcn.18007c48c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18007c268
nop
cmp dword [rbp + 0x20], 0
je 0x18007c429
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18007c434
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18007c36c
Function at 0x180081438
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008144e
mov al, 1
jmp 0x1800814ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008145f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800814ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.18008bf44
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800814ac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800814ac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800814ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800814ae
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180081580
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, [0x18010d8a0]
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 0x1800815d7
cmp word [rdx], r13w
jne 0x1800815d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800815dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180081701
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180081722
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180081615
mov rdx, r9
mov word [rbx], cx
jmp 0x18008163c
cmp r9, r8
jae 0x18008164c
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 0x1800815f6
jmp 0x180081701
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 0x1800816f6
cmp dword [rsp + 0x80], esi
je 0x1800816f6
lea r8, [0x18010d8a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800816ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008169e
mov word [rbx], r13w
jmp 0x1800816fe
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 0x1800816ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800816fe
cmp word [rsp + 0x70], r13w
jne 0x1800816db
cmp rbx, r14
je 0x180081698
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800821e8
cmp word [rsp + 0x70], r13w
je 0x180081701
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, [0x18010d8a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800816fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180081701
Function at 0x180088c0c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180088c3c
xor eax, eax
jmp 0x180088cff
mov rbp, rbx
cmp word [rax], si
je 0x180088c61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180088c48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180088c44
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800872f4
movsxd r14, eax
test eax, eax
jne 0x180088c9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180088c35
mov rcx, r14
call fcn.18008244c
mov rdi, rax
test rax, rax
jne 0x180088cb8
xor ecx, ecx
call fcn.18007f1e8
jmp 0x180088c94
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800872f4
test eax, eax
jne 0x180088ce9
mov rcx, rdi
call fcn.18007f1e8
jmp 0x180088cf3
xor ecx, ecx
call fcn.18007f1e8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18008b550
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18007d604
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18008b5f1
cmp ebx, dword [rsp + 0x30]
je 0x18008b5ea
test esi, esi
je 0x18008b5ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18008b5c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18008b5d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008b5af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18008b5d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18008b5f3
mov eax, 1
jmp 0x18008b5f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800900f4
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.1800821e8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800821e8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180090244
cmp rax, 0xffffffffffffffff
je 0x180090244
xor edi, edi
test rbp, rbp
jle 0x1800901ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007f224
mov rbx, rax
test rax, rax
jne 0x18009017c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800901e5
mov edx, 0x8000
mov ecx, r14d
call fcn.18008ff78
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.180080ed0
cmp eax, 0xffffffff
je 0x1800901c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009018c
mov edx, r15d
mov ecx, r14d
call fcn.18008ff78
jmp 0x1800901e5
cmp byte [rsi + 0x38], dil
je 0x1800901dc
cmp dword [rsi + 0x34], 5
jne 0x1800901dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800901e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18007f1e8
jmp 0x180090258
jns 0x180090258
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800821e8
cmp rax, 0xffffffffffffffff
jne 0x180090210
cmp byte [rsi + 0x30], dil
je 0x180090258
mov edi, dword [rsi + 0x2c]
jmp 0x180090258
mov ecx, r14d
call fcn.18008bf44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180090258
call qword [sym.imp.KERNEL32.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 0x180090258
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180090251
mov eax, dword [rsi + 0x2c]
jmp 0x180090256
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800821e8
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 0x1800907b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800907d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800907d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011023
Capabilities:
Read file on windows

Disassembly:
jmp 0x14001eec0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3f8]
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0x3a0], rax
mov dword [rbp + 0x384], 0
lea rcx, [0x14003b119]
call fcn.140011a3c
nop
mov edx, 0x20
mov rcx, qword [rbp + 0x3d0]
call fcn.1400110aa
lea rcx, [rbp + 0x314]
call fcn.1400114ce
mov r8, rax
mov edx, 0x20
mov rcx, qword [rbp + 0x3d0]
call fcn.140011613
mov qword [rbp + 0x398], rax
mov eax, dword [rbp + 0x384]
or eax, 1
mov dword [rbp + 0x384], eax
mov qword [rbp + 0x48], 0
mov rcx, qword [rbp + 0x3d8]
call fcn.140011113
lea r8, [0x14002ccb4]
mov rdx, rax
lea rcx, [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fopen_s]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x14001ef98
cmp qword [rbp + 0x48], 0
jne 0x14001efbf
lea rdx, str.Failed_to_open_file
lea rcx, [rbp + 0x338]
call fcn.1400118e8
lea rdx, [0x140031ee8]
lea rcx, [rbp + 0x338]
call fcn.140011b27
nop
lea rcx, [rbp + 0x90]
call fcn.140011af5
nop
mov qword [rbp + 0x118], 0x8000
mov edx, 0x20
lea rcx, [rbp + 0x138]
call fcn.1400110aa
lea rcx, [rbp + 0x364]
call fcn.1400114ce
mov r8, rax
mov edx, 0x8000
lea rcx, [rbp + 0x138]
call fcn.140011613
nop
mov qword [rbp + 0x178], 0
lea rcx, [rbp + 0x138]
call fcn.14001143d
mov qword [rbp + 0x398], rax
lea rcx, [rbp + 0x138]
call fcn.140011b1d
mov r9, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x398]
mov r8, rcx
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fread]
mov qword [rbp + 0x178], rax
cmp qword [rbp + 0x178], 0
je 0x14001f085
lea rcx, [rbp + 0x138]
call fcn.140011b1d
mov r8, qword [rbp + 0x178]
mov rdx, rax
lea rcx, [rbp + 0x90]
call fcn.140011afa
nop
jmp 0x14001f014
mov rcx, qword [rbp + 0x3d0]
call fcn.140011b1d
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.1400112e4
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
lea rcx, [rbp + 0x138]
call fcn.140011325
mov rax, qword [rbp + 0x3d0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002b0e0]
call fcn.140011889
mov rax, rdi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rbp
call fcn.140011500
lea rsp, [rbp + 0x3b8]
pop rdi
pop rbp
ret
Function at 0x140011122
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001f0f0
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, [0x14003b112]
call fcn.140011a3c
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001f148
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 0x14001f25a
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 0x14001f1f3
cmp qword [rbp + 0x28], 0
jle 0x14001f1f3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001f191
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.1400119ab
nop
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]
nop
cmp qword [rbp + 0x130], 0
jle 0x14001f249
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001f249
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 0x1400115d2
Capabilities:
Terminate process

Disassembly:
jmp 0x1400229a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001173f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400234d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400234f0
xor al, al
jmp 0x140023571
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023503
xor al, al
jmp 0x140023571
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 0x14002352d
xor al, al
jmp 0x140023571
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140023541
xor al, al
jmp 0x140023571
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140023553
xor al, al
jmp 0x140023571
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002356f
xor al, al
jmp 0x140023571
mov al, 1
add rsp, 0x38
ret
Function at 0x140011a14
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a8c0
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 [0x140033040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003b112]
call fcn.140011a3c
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001a927
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001a92e
mov al, 1
jmp 0x14001aa7e
call fcn.1400112d5
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.1400112d5
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001182f
movzx eax, al
test eax, eax
je 0x14001a97f
xor al, al
jmp 0x14001aa7e
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 0x14001a9e4
cmp dword [rbp + 0x154], 1
je 0x14001a9ef
cmp dword [rbp + 0x154], 3
je 0x14001aa6d
jmp 0x14001aa7c
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 0x14001aa3f
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 0x14001aa3f
xor al, al
jmp 0x14001aa7e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001aa5a
mov dword [rbp + 0x154], 1
jmp 0x14001aa64
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001aa7e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001aa7e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002c090]
call fcn.140011889
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011500
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret