joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026454
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.1400140a8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400264de
cmp byte [rbp - 0x21], r15b
je 0x1400264d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026514
call fcn.14001e270
test eax, eax
jne 0x140026500
cmp byte [rbp - 0x21], r15b
je 0x1400264f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026514
cmp byte [rbp - 0x21], r15b
je 0x140026511
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.1400146cc
test eax, eax
jne 0x1400265b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400140a8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026553
cmp byte [rbp - 0x21], r15b
je 0x140026588
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026588
call fcn.14001e270
test eax, eax
jne 0x140026574
cmp byte [rbp - 0x21], r15b
je 0x14002656d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026588
cmp byte [rbp - 0x21], r15b
je 0x140026585
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.1400146cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400265b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400265b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400265c5
mov rcx, rdi
call fcn.140019720
cmp byte [rbp + 0x3f], r15b
je 0x1400265d4
mov rcx, qword [rbp + 0x27]
call fcn.140019720
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 0x140027bd4
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.14001b050
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b050
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027d21
cmp rax, 0xffffffffffffffff
je 0x140027d21
xor edi, edi
test rbp, rbp
jle 0x140027ccf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001deb0
mov rbx, rax
test rax, rax
jne 0x140027c5c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027cc5
mov edx, 0x8000
mov ecx, r14d
call fcn.1400189cc
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.14001bd64
cmp eax, 0xffffffff
je 0x140027ca5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027c6c
mov edx, r15d
mov ecx, r14d
call fcn.1400189cc
jmp 0x140027cc5
cmp byte [rsi + 0x38], dil
je 0x140027cbc
cmp dword [rsi + 0x34], 5
jne 0x140027cbc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027cc5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019720
jmp 0x140027d33
jns 0x140027d33
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b050
cmp rax, 0xffffffffffffffff
jne 0x140027ced
cmp byte [rsi + 0x30], dil
je 0x140027d33
jmp 0x140027d29
mov ecx, r14d
call fcn.140017554
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027d33
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 0x140027d33
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027d2e
mov edi, dword [rsi + 0x2c]
jmp 0x140027d33
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b050
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 0x140028e70
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.dn_f_]
mov dword [rax], 1
mov rax, qword [str.hn_f_]
mov dword [rax], 1
mov rax, qword [str.ln_f_]
mov dword [rax], 1
mov rax, qword [0x1400b4c50]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140019720
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140092ca0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400197e5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a3bae
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400197c6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400197b8
test rsi, rsi
je 0x1400a3bae
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140019778
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140019814
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [8]
ud2

Function at 0x140019830
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400198ed
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a3bb4
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400198ce
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400198c0
test rsi, rsi
je 0x1400a3bb4
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140019880
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400380b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400c60f0]
mov rsi, rcx
test rbx, rbx
je 0x140038130
mov rax, qword [0x1400b4df0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140038120
mov rdx, qword [0x1400c6328]
test rdx, rdx
je 0x140038220
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140038101
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140019720
test rax, rax
je 0x140038240
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a3c42
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400381ce
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400381c0
test rbx, rbx
je 0x1400a3c42
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140038180
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140037f40
mov rbx, rax
mov qword [0x1400c60f0], rbx
jmp 0x1400380d2
lea rcx, [0x1400b1337]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400c6328], rax
mov rdx, rax
jmp 0x1400380f2
mov rbx, qword [0x1400c6108]
test rbx, rbx
jne 0x140038211
cmp byte [0x1400c6322], 0
jne 0x14003825f
mov ecx, 1
call fcn.14000b750
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c6120]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400c6108], rax
mov rbx, rax
test rax, rax
je 0x14003828d
mov eax, dword [rax]
add eax, 1
je 0x140038211
mov dword [rbx], eax
jmp 0x140038211
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x140038b20
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140019720
test rax, rax
je 0x140038c70
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a3c5a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140038bd6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140038bc8
test rbx, rbx
je 0x1400a3c5a
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140038b88
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400c6840]
mov rsi, rax
mov rax, qword [0x1400b4df0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140038ce5
mov rdx, rbx
call fcn.140009f10
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14002ca40
mov rdx, qword [rbx]
test edx, edx
js 0x140038c52
sub rdx, 1
mov qword [rbx], rdx
je 0x140038ccd
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c6100]
lea rsi, [0x1400c6100]
test bl, bl
je 0x140038c90
mov rax, qword [0x1400c6108]
lea rsi, [0x1400c6108]
test rax, rax
jne 0x140038c52
cmp byte [0x1400c6322], 0
jne 0x140038ca6
movzx ecx, bl
call fcn.14000b750
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c6120]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140038d0f
mov edx, dword [rax]
add edx, 1
je 0x140038c52
mov dword [rax], edx
jmp 0x140038c52
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140038c52
mov rcx, qword [0x1400c67b8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x140038d1a
mov rdx, rdi
call fcn.140009f10
mov qword [0x1400c6840], rax
mov rcx, rax
jmp 0x140038c29
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400acabb]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400c67b8], rax
mov rcx, rax
test rax, rax
je 0x1400a3c5a
jmp 0x140038cf8
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14008f470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c60e1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14008f4f8
lea rdx, [0x1400b0d22]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14008f560
mov rbx, qword [0x1400c5f80]
jmp 0x14008f4b5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14008f4b0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14007f4b0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
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]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c5f80], rax
mov ebx, dword [rax]
mov qword [0x1400c5f80], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c5f80], rdx
call fcn.14008e5a0
cmp eax, ebx
jne 0x14008f5c8
mov byte [0x1400c60e1], 1
jmp 0x14008f48c
cmp byte [0x1400c60e0], 0
jne 0x14008f4a3
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400c6a48], rax
call rbx
mov qword [0x1400c6a40], rax
call rbx
mov qword [0x1400c6a38], rax
call rbx
mov qword [0x1400c6a30], rax
call rbx
mov qword [0x1400c6a28], rax
call rbx
mov qword [0x1400c6a20], rax
call rbx
mov qword [0x1400c6a18], rax
call rbx
mov byte [0x1400c60e0], 1
mov qword [0x1400c6a10], rax
jmp 0x14008f4a3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140091980
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.1400a3100
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.1400a3100
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140092652
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c6f08]
test eax, eax
je 0x1400926ea
lea rax, [0x1400c6ee0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c6f10]
mov qword [rbp - 8], rax
jmp 0x1400926ce
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 0x1400926c2
cmp qword [rbp - 0x10], 0
je 0x1400926c2
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 0x140092688
lea rax, [0x1400c6ee0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400926eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400927f0
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 0x140092818
mov eax, 0
jmp 0x140092866
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 0x140092841
mov eax, 0
jmp 0x140092866
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 0x140092861
mov eax, 0
jmp 0x140092866
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009286c
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 0x1400928ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400928e1
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 0x1400928e1
mov rax, qword [rbp - 8]
jmp 0x1400928ff
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 0x1400928b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001228
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r15
sub rsp, 0x50
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edi, 0x4e20
jmp 0x14000125c
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, edi
jb 0x140001256
xor ecx, ecx
lea rdx, section..data
lea r12, str..rdata.zzzssxdbg
mov eax, ecx
inc ecx
and eax, 0xf
mov al, byte [rax + r12]
xor byte [rdx], al
inc rdx
cmp ecx, 0xf
jl 0x140001272
xor ecx, ecx
lea rdx, [0x140003050]
mov eax, ecx
inc ecx
and eax, 0xf
mov al, byte [rax + r12]
xor byte [rdx], al
inc rdx
cmp ecx, 0x13
jl 0x140001290
xor ecx, ecx
lea rdx, [0x140003010]
mov eax, ecx
inc ecx
and eax, 0xf
mov al, byte [rax + r12]
xor byte [rdx], al
inc rdx
cmp ecx, 0x11
jl 0x1400012ae
xor ecx, ecx
lea rdx, [0x140003030]
mov eax, ecx
inc ecx
and eax, 0xf
mov al, byte [rax + r12]
xor byte [rdx], al
inc rdx
cmp ecx, 0x13
jl 0x1400012cc
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov r15d, 0x1b58
jmp 0x1400012fd
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r15d
jb 0x1400012f7
call fcn.140001114
lea rdx, [0x140003010]
mov rcx, rax
mov rbx, rax
call fcn.14000115c
lea rdx, [0x140003030]
mov rcx, rbx
mov rdi, rax
call fcn.14000115c
mov rsi, rax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r15d
jb 0x140001338
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov r8d, 0x114
lea rdx, section..text
or rcx, 0xffffffffffffffff
call rdi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r15d
jb 0x140001375
xor ecx, ecx
lea rdx, section..text
mov r8d, 0x114
mov eax, ecx
inc ecx
and eax, 0xf
mov al, byte [rax + r12]
xor byte [rdx], al
inc rdx
cmp ecx, r8d
jl 0x140001391
lea rax, [rsp + 0x40]
mov r9d, 0x20
lea rdx, section..text
mov qword [rsp + 0x20], rax
or rcx, 0xffffffffffffffff
call rdi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, ebx
cmp eax, r15d
jb 0x1400013cb
and dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r9, section..text
and dword [rsp + 0x28], 0
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
or rcx, 0xffffffffffffffff
call rsi
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret