joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400515d0
Capabilities:
Create thread
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x14c0
call fcn.1400750c0
sub rsp, rax
mov rax, qword [0x1400d0400]
xor rax, rsp
mov qword [rsp + 0x14b0], rax
mov r14, rdx
mov ebx, ecx
mov dword [rsp + 0x30], ebx
mov edi, ecx
shr edi, 0x18
mov esi, ecx
shr esi, 0x10
mov ebp, ecx
shr ebp, 8
xor r15d, r15d
lea r12, [0x1400d66f0]
mov qword [rsp + 0x60], r12
mov byte [rsp + 0x68], r15b
mov rcx, r12
call fcn.1400561c0
test eax, eax
jne 0x140051814
cmp dword [0x1400d673c], 0x7fffffff
je 0x14005181f
movzx r8d, bl
movzx eax, bpl
movzx ecx, sil
movzx edx, dil
mov byte [rsp + 0x68], 1
lea r10, [0x1400d66b0]
mov qword [rsp + 0x70], r10
movabs r9, 0xcbf29ce484222325
xor r8, r9
movabs r9, 0x100000001b3
imul r8, r9
xor r8, rax
imul r8, r9
xor r8, rcx
imul r8, r9
xor r8, rdx
imul r8, r9
mov rcx, qword [0x1400d66e0]
and rcx, r8
shl rcx, 4
add rcx, qword [0x1400d66c8]
mov rax, qword [rcx + 8]
mov r8, qword [0x1400d66b8]
cmp rax, r8
je 0x1400516e0
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x1400516e3
nop dword [rax + rax]
cmp rax, rcx
je 0x1400516e0
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x1400516d0
jmp 0x1400516e3
mov rax, r15
mov rdx, r8
test rax, rax
cmovne rdx, rax
cmp rdx, r8
je 0x1400517c5
lea rdx, [rsp + 0x30]
mov rcx, r10
call fcn.140052f60
mov rbx, rax
mov dword [rsp + 0x80], r15d
lea rcx, [rsp + 0x88]
mov rdx, r14
mov r8d, 0xa08
call fcn.14009e7e0
mov qword [rsp + 0xa90], rbx
lea rcx, [rsp + 0xa98]
lea rdx, [rsp + 0x80]
mov r8d, 0xa10
call fcn.14009e7e0
mov ecx, 0xa18
call fcn.140074bf8
mov rbx, rax
test rax, rax
je 0x140051771
mov rcx, rax
lea rdx, [rsp + 0xa90]
mov r8d, 0xa18
call fcn.14009e7e0
jmp 0x140051774
mov rbx, r15
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
mov r9, rbx
lea r8, [0x14004b860]
xor edx, edx
xor ecx, ecx
call fcn.140087d50
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140051804
cmp dword [rsp + 0x48], 0
je 0x1400517f9
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140056704
test eax, eax
jne 0x1400517f9
mov rcx, r12
call fcn.1400561c8
mov rcx, qword [rsp + 0x14b0]
xor rcx, rsp
call fcn.140074d50
lea r11, [rsp + 0x14c0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.14005643c
nop
mov dword [rsp + 0x48], r15d
mov ecx, 6
call fcn.14005643c
nop
mov ecx, 5
call fcn.14005643c
int3
mov dword [0x1400d673c], 0x7ffffffe
mov ecx, 6
call fcn.14005643c
int3
Function at 0x140051840
Capabilities:
Create thread
Hash data using fnv

Disassembly:
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + 0xa0]
mov ecx, dword [rcx + 0x98]
jmp 0x140051840
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 8], ecx
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
mov rdi, rdx
mov ebx, ecx
lea r14, [0x1400d66f0]
mov qword [rbp + 0x17], r14
mov byte [rbp + 0x1f], 0
mov rcx, r14
call fcn.1400561c0
test eax, eax
jne 0x140051a01
cmp dword [0x1400d673c], 0x7fffffff
je 0x140051a0c
mov byte [rbp + 0x1f], 1
lea r8, [0x1400d66b0]
mov qword [rbp + 0x27], r8
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rbp + 0x68]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x69]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x6a]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1400d66e0]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1400d66c8]
mov rax, qword [rcx + 8]
mov rdx, qword [0x1400d66b8]
cmp rax, rdx
je 0x140051920
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x140051922
nop dword [rax]
cmp rax, rcx
je 0x140051920
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x140051910
jmp 0x140051922
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x1400519c1
lea rdx, [rbp + 0x67]
mov rcx, r8
call fcn.140052f60
mov dword [rbp - 0x19], 1
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rax
movups xmm6, xmmword [rbp - 0x19]
movups xmmword [rbp - 1], xmm6
mov ecx, 0x18
call fcn.140074bf8
test rax, rax
je 0x140051974
movups xmm0, xmmword [rbp - 9]
movups xmmword [rax], xmm0
unpckhpd xmm6, xmm6
movsd qword [rax + 0x10], xmm6
mov qword [rbp + 0x77], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004b810]
xor edx, edx
xor ecx, ecx
call fcn.140087d50
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400519ef
cmp dword [rbp - 0x11], 0
je 0x1400519e4
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.140056704
test eax, eax
jne 0x1400519e4
mov rcx, r14
mov rbx, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rbp
jmp fcn.1400561c8
mov ecx, 1
call fcn.14005643c
nop
mov dword [rbp - 0x11], 0
mov ecx, 6
call fcn.14005643c
nop
mov ecx, 5
call fcn.14005643c
int3
mov dword [0x1400d673c], 0x7ffffffe
mov ecx, 6
call fcn.14005643c
int3
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140192560]
mov dword [rax], 1
mov rax, qword [0x140192570]
mov dword [rax], 1
mov rax, qword [0x140192580]
mov dword [rax], 1
mov rax, qword [0x1401924e0]
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 0x140109890
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.14016cae0
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 0x140109955
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 0x14017d9f8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140109936
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140109928
test rsi, rsi
je 0x14017d9f8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401098e8
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 0x140109984
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

Function at 0x1401099a0
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 0x140109a5d
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 0x14017d9fe
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140109a3e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140109a30
test rsi, rsi
je 0x14017d9fe
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1401099f0
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 0x140120760
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 [0x1401ad6b0]
mov rsi, rcx
test rbx, rbx
je 0x1401207e0
mov rax, qword [0x1401926b0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1401207d0
mov rdx, qword [0x1401ad8e8]
test rdx, rdx
je 0x1401208d8
mov rcx, rbx
mov rbx, qword [sym.imp.python310.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.python310.dll_PyNumber_InPlaceAdd]
jmp 0x1401207b1
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140109890
test rax, rax
je 0x1401208f8
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.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 0x14017dab0
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x14012087e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140120870
test rbx, rbx
je 0x14017dab0
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 0x140120830
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f0]
call fcn.1401206a0
mov rbx, rax
mov qword [0x1401ad6b0], rbx
jmp 0x140120782
lea rcx, [0x14018ecb0]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1401ad8e8], rax
mov rdx, rax
jmp 0x1401207a2
mov rbx, qword [0x1401ad6c8]
test rbx, rbx
jne 0x1401208c6
cmp byte [0x1401ad8e2], 0
je 0x140120936
mov rdx, 0xffffffffffffffff
lea rcx, [0x1401ad6e0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1401ad6c8], rax
mov rbx, rax
test rax, rax
je 0x140120942
add qword [rax], 1
jmp 0x1401208c6
mov ecx, 1
call fcn.14010a4b0
jmp 0x14012090d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x140122280
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.140109890
test rax, rax
je 0x1401223e0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.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 0x14017dace
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140122336
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140122328
test rbx, rbx
je 0x14017dace
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 0x1401222e8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1401ae020]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1401926b0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x140122430
mov r8, rbx
mov rcx, rsi
call fcn.14010c910
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14011df90
sub qword [rbx], 1
jne 0x1401223c4
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1401ad6c0]
lea rsi, [0x1401ad6c0]
test bl, bl
je 0x140122400
mov rax, qword [0x1401ad6c8]
lea rsi, [0x1401ad6c8]
test rax, rax
jne 0x1401223c4
cmp byte [0x1401ad8e2], 0
je 0x14012245d
mov rdx, 0xffffffffffffffff
lea rcx, [0x1401ad6e0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140122467
add qword [rax], 1
jmp 0x1401223c4
mov rdx, qword [0x1401adf98]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x140122472
mov r8, rdi
mov rcx, rsi
call fcn.14010c910
mov qword [0x1401ae020], rax
mov rdx, rax
jmp 0x14012238e
movzx ecx, bl
call fcn.14010a4b0
jmp 0x14012240e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14018a6be]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1401adf98], rax
mov rdx, rax
test rax, rax
je 0x14017dace
jmp 0x140122443
Function at 0x140162d00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401ad6a9], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140162da8
lea rdx, [0x14018e43a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140162e10
mov rbx, qword [0x1401ad548]
jmp 0x140162d45
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
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 0x140162d40
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140162d97
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140152130
mov r8, rax
cmp rdi, rbx
jne 0x140162d80
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
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 [0x1401ad548], rax
mov ebx, dword [rax]
mov qword [0x1401ad548], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401ad548], rdx
call fcn.140161e30
cmp eax, ebx
jne 0x140162e97
mov byte [0x1401ad6a9], 1
jmp 0x140162d20
cmp byte [0x1401ad6a8], 0
jne 0x140162d37
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1401ae228], rax
call rbx
mov qword [0x1401ae220], rax
call rbx
mov qword [0x1401ae218], rax
call rbx
mov qword [0x1401ae210], rax
call rbx
mov qword [0x1401ae208], rax
call rbx
mov qword [0x1401ae200], rax
call rbx
mov qword [0x1401ae1f8], rax
call rbx
mov byte [0x1401ad6a8], 1
mov qword [0x1401ae1f0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1401ad540], rax
jmp 0x140162d37
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14016b7c0
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.14017cf50
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.14017cf50
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 0x14016c492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401ae6e8]
test eax, eax
je 0x14016c52a
lea rax, [0x1401ae6c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401ae6f0]
mov qword [rbp - 8], rax
jmp 0x14016c50e
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 0x14016c502
cmp qword [rbp - 0x10], 0
je 0x14016c502
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 0x14016c4c8
lea rax, [0x1401ae6c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14016c52b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14016c630
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 0x14016c658
mov eax, 0
jmp 0x14016c6a6
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 0x14016c681
mov eax, 0
jmp 0x14016c6a6
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 0x14016c6a1
mov eax, 0
jmp 0x14016c6a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14016c6ac
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 0x14016c72a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14016c721
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 0x14016c721
mov rax, qword [rbp - 8]
jmp 0x14016c73f
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 0x14016c6f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001d9b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001d9bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001d9cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14001d9b5
lea eax, [rcx + 1]
jmp 0x14001d9db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14001d9ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14001d9d4
sub eax, 3
jb 0x14001da0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14001da5d
sar eax, 1
movsxd rbp, eax
jb 0x14001da44
jmp 0x14001da1c
add ebx, ebx
jne 0x14001da1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14001da44
inc ecx
add ebx, ebx
jne 0x14001da2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14001da44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001da3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001da2c
add ecx, 2
jmp 0x14001da49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14001d972
jmp 0x14001d9bd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14001daad
cmp rsi, rcx
jae 0x14001dab5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14001da94
cmp al, 0x8f
ja 0x14001da94
cmp byte [rsi - 2], 0xf
je 0x14001da9a
sub al, 0xe8
cmp al, 1
ja 0x14001da7e
cmp rsi, rcx
jae 0x14001dab5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14001da84
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001dab5
lodsb al, byte [rsi]
jmp 0x14001da94
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b000]
mov eax, dword [rdi]
or eax, eax
je 0x14001db12
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1d4ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14001dac2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14001db0c
mov qword [rbx], rax
add rbx, 8
jmp 0x14001dae2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14001db4c
cmp al, 0xef
ja 0x14001db3e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14001db1e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14001db2d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14001dbcb], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14001dbcb
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14001dbbb
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x416940
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416acb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434e00
xorps xmm15, xmm15
mov r14, qword [0x006988c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4169a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4169b4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4169d3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4169e3
cmp rbx, 0x1000
jae 0x4169ab
jmp 0x416a4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4169f5
xor edx, edx
jmp 0x416a44
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434e00
xorps xmm15, xmm15
mov r14, qword [0x006988c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4169d9
jmp 0x4169c8
call fcn.00468320
xorps xmm15, xmm15
mov r14, qword [0x006988c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00438ea0
lea rax, [0x004f4c80]
mov ebx, 0x18
nop dword [rax]
call fcn.00439720
mov rax, qword [rsp + 0x38]
call fcn.00439460
lea rax, [0x004f5168]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00439720
mov rax, qword [rsp + 0x30]
call fcn.00439460
call fcn.004390e0
call fcn.00438f00
lea rax, [0x004f76b4]
mov ebx, 0x21
call fcn.00437400
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464c00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416940