joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020f50
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001c95c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140020fda
cmp byte [rbp - 0x21], r15b
je 0x140020fd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140021010
call fcn.14001f058
test eax, eax
jne 0x140020ffc
cmp byte [rbp - 0x21], r15b
je 0x140020ff4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021010
cmp byte [rbp - 0x21], r15b
je 0x14002100d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001bf3c
test eax, eax
jne 0x1400210b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001c95c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002104f
cmp byte [rbp - 0x21], r15b
je 0x140021084
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021084
call fcn.14001f058
test eax, eax
jne 0x140021070
cmp byte [rbp - 0x21], r15b
je 0x140021069
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021084
cmp byte [rbp - 0x21], r15b
je 0x140021081
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001bf3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400210b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400210b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400210c1
mov rcx, rdi
call fcn.14001beec
cmp byte [rbp + 0x3f], r15b
je 0x1400210d0
mov rcx, qword [rbp + 0x27]
call fcn.14001beec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140023fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001488
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14048e460]
mov dword [rax], 1
mov rax, qword [0x14048e470]
mov dword [rax], 1
mov rax, qword [0x14048e480]
mov dword [rax], 1
mov rax, qword [0x14048e450]
mov dword [rax], 1
mov rax, qword [0x140488880]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014e6
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001512
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001538
cmp eax, 0x20b
je 0x14000155f
jmp 0x14000158e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000154b
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000157a
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140453ba0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1404b8b90], 0
mov r12, rcx
mov rdi, rdx
je 0x140453c28
lea rdx, [0x140486f1a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140453d30
mov rsi, qword [0x1404b8b88]
jmp 0x140453be5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140453be0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14044de90
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x1404b8b88], rcx
test eax, eax
je 0x140453d18
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140453c80
not eax
cmp r9d, eax
jne 0x140453dce
mov byte [0x1404b8b90], 1
jmp 0x140453bb9
cmp byte [0x1404b8b80], 0
jne 0x140453bd0
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1404b8bd8], rax
call rbx
mov qword [0x1404b8bd0], rax
call rbx
mov qword [0x1404b8bc8], rax
call rbx
mov qword [0x1404b8c08], rax
call rbx
mov qword [0x1404b8c00], rax
call rbx
mov qword [0x1404b8bf8], rax
call rbx
mov qword [0x1404b8be8], rax
call rbx
mov rbp, qword [sym.imp.python310.dll_PyLong_FromLong]
mov rsi, qword [0x140488760]
mov rbx, 0xfffffffffffffffb
mov qword [0x1404b8be0], rax
nop dword [rax]
mov ecx, ebx
call rbp
add qword [rax], 1
mov qword [rsi + rbx*8 + 0x28], rax
add rbx, 1
cmp rbx, 0x102
jne 0x140453da8
mov byte [0x1404b8b80], 1
jmp 0x140453bd0
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
Function at 0x1404692c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140471490
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140471490
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140469ef2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1404b8d68]
test eax, eax
je 0x140469f8a
lea rax, [0x1404b8d40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1404b8d70]
mov qword [rbp - 8], rax
jmp 0x140469f6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140469f62
cmp qword [rbp - 0x10], 0
je 0x140469f62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140469f28
lea rax, [0x1404b8d40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140469f8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14046a090
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14046a0b8
mov eax, 0
jmp 0x14046a106
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14046a0e1
mov eax, 0
jmp 0x14046a106
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14046a101
mov eax, 0
jmp 0x14046a106
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14046a10c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14046a18a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14046a181
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14046a181
mov rax, qword [rbp - 8]
jmp 0x14046a19f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14046a154
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x45e200
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45e221
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45e242
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45e280
cmp ecx, 0x20b
je 0x45e25e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x84], 0xe
ja 0x45e26f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
cmp dword [rax + 0x74], 0xe
ja 0x45e28e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45e29d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00483dc8], 0xffffffffffffffff
mov qword [0x00483dd0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00481da4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00481da0]
mov dword [rcx], eax
call fcn.0045d2e0
cmp dword [0x004817b0], 0
jne 0x45e2f7
lea rcx, [fcn.0045d2e0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00460498]
lea rcx, [0x00460490]
call fcn.005ae000
mov r11d, dword [0x00481d9c]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00481d98]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00460488]
lea rcx, [0x00460430]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045ae04
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45e383
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45e3a4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140133930
Capabilities:
Execute syscall

Disassembly:
test bh, 0x85
cwde
add byte [rax], al
add byte [rbp + 0x7f], bh
jl 0x140133879
add byte [rax], al
add byte [rbp + rcx*4 + 0x44], cl
and al, 0x4e
mov qword [rsp + 0x20], r9
xchg r9, r8
mov qword [rsp + 0x18], r9
xchg r9, r8
mov dword [rsp + 0x10], edx
xchg rcx, rdi
mov qword [rsp + 8], rdi
je 0x140133997
jne 0x140133997
pop r11
ja 0x1401337ff
div r10
test rsi, rbp
lea r11d, [rbp - 0x6d6f]
lea r13d, [rbx - 0x5cc4]
add ecx, 0xd5f8605e
div r9
test ebx, 0xb475ad90
rcr ebp, 0x65
rcr r14d, 0x4c
ror r8d, 0x59
lea edi, [rbx - 0xf0e2]
lea ecx, [rdi - 0x7e18]
rcl ebp, 0x17
movabs r10, 0x6a7cd7fb3c8e23eb
lea r9d, [rbp - 0xba8e]
pushfq
call 0x140134488
jmp 0x1401339bc
xchg rbp, rax
xchg r8, rax
mov qword [rsp + 0x10], r8
xchg r8, rax
jmp 0x1401339f4
xchg rcx, rdi
sub rsp, 0x28
lea rax, [0x140133c50]
mov qword [rsp + 0x18], rax
mov dword [rsp + 8], 0
xchg rbp, rax
mov rbp, qword [rsp + 0x30]
jmp 0x1401339ac
xchg rsi, rax
mov rsi, qword [rsp + 0x10]
xchg rsi, rax
inc rax
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
je 0x140133a37
jne 0x140133a37
test r12d, 0x9d6b3c99
jmp rcx
jmp 0x140133a63
mov dword [rsp + 4], 0
jmp 0x140133ab3
add rcx, rax
xchg r8, rax
mov r8, rcx
xchg r8, rax
cmp qword [rsp + 0x10], rax
jae 0x140133c3c
mov byte [rsp], 0
jne 0x140133a8e
je 0x140133a8e
lea ebx, [rcx + 0xdd67]
rcl r8d, 0xc6
pause
movabs r9, 0x30848134613ac6eb
ret
jmp 0x140133a56
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 4], eax
jmp 0x140133b3a
jae 0x140133b9e
mov byte [rsp], 1
jmp 0x140133ba3
xchg rdx, r14
mov r14, qword [rsp + 0x48]
xchg rdx, r14
je 0x140133ae7
jne 0x140133ae7
jmp rcx
jmp 0x140133afd
mov ecx, dword [rdx + rcx*4]
mov rdx, qword [rsp + 0x40]
add rcx, qword [rdx + rax*8]
mov rax, rcx
cmp qword [rsp + 0x10], rax
jmp 0x140133ac0
mov r11, qword [rsp + 0x40]
xchg rcx, r11
mov rax, qword [rcx + rax*8]
cmp qword [rsp + 0x10], rax
jb 0x140133b9e
mov eax, dword [rsp + 4]
invalid
invalid
invalid
Function at 0x140011104
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001d310
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, [0x14003c067]
call fcn.1400119a6
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001d368
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 0x14001d47a
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 0x14001d413
cmp qword [rbp + 0x28], 0
jle 0x14001d413
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001d3b1
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.140011910
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 0x14001d469
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001d469
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 0x140011546
Capabilities:
Terminate process

Disassembly:
jmp 0x140024040
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 0x14001169a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140023240
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140023260
xor al, al
jmp 0x1400232e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140023273
xor al, al
jmp 0x1400232e1
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 0x14002329d
xor al, al
jmp 0x1400232e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400232b1
xor al, al
jmp 0x1400232e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400232c3
xor al, al
jmp 0x1400232e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400232df
xor al, al
jmp 0x1400232e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011988
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400196e0
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 [0x140034040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003c067]
call fcn.1400119a6
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140019747
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001974e
mov al, 1
jmp 0x14001989e
call fcn.1400112b7
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.1400112b7
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011794
movzx eax, al
test eax, eax
je 0x14001979f
xor al, al
jmp 0x14001989e
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 0x140019804
cmp dword [rbp + 0x154], 1
je 0x14001980f
cmp dword [rbp + 0x154], 3
je 0x14001988d
jmp 0x14001989c
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 0x14001985f
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 0x14001985f
xor al, al
jmp 0x14001989e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001987a
mov dword [rbp + 0x154], 1
jmp 0x140019884
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001989e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001989e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002d150]
call fcn.1400117f3
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011479
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400210e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400119f6
movzx eax, al
test eax, eax
jne 0x140021100
mov ecx, 7
call fcn.140011807
nop
mov byte [rsp + 0x20], 0
call fcn.140011852
mov byte [rsp + 0x21], al
cmp dword [0x1400347e0], 1
jne 0x140021124
mov ecx, 7
call fcn.140011807
nop
jmp 0x14002117c
cmp dword [0x1400347e0], 0
jne 0x140021177
mov dword [0x1400347e0], 1
lea rdx, [0x14002b770]
lea rcx, [0x14002b440]
call fcn.140011456
test eax, eax
je 0x140021158
mov eax, 0xff
jmp 0x140021281
lea rdx, [0x14002b330]
lea rcx, [section..rdata]
call fcn.140011834
mov dword [0x1400347e0], 2
jmp 0x14002117c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400117df
call fcn.1400116d6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400211d9
mov rcx, qword [rsp + 0x30]
call fcn.140011389
movzx eax, al
test eax, eax
je 0x1400211d9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14003d020]
nop
call fcn.14001175d
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14002120d
mov rcx, qword [rsp + 0x38]
call fcn.140011389
movzx eax, al
test eax, eax
je 0x14002120d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011956
nop
call fcn.140021330
mov dword [rsp + 0x28], eax
call fcn.14001169a
movzx eax, al
test eax, eax
jne 0x14002122c
mov ecx, dword [rsp + 0x28]
call fcn.1400110c3
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14002123b
call fcn.140011974
nop
xor edx, edx
mov cl, 1
call fcn.14001134d
mov eax, dword [rsp + 0x28]
jmp 0x140021281
add rsp, 0x68
ret