joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800afe80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1800ff018], edi
je 0x1800afec9
cmp rbx, 0x20
jae 0x1800afeb2
xor ecx, ecx
jmp 0x1800afeb4
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800ff018], edi
jne 0x1800afea8
cmp qword [0x1800ff020], r14
mov qword [rsp + 0x60], r13
je 0x1800b006b
mov ecx, dword [0x18010018c]
mov ebx, r15d
test ecx, ecx
je 0x1800aff01
mov rdx, qword [0x180100180]
mov rax, rdx
cmp qword [rax], r14
je 0x1800aff0c
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800afef2
mov r14d, 4
jmp 0x1800b0071
cmp ebx, 0xffffffff
je 0x1800aff01
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800affd0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800af800
mov r14d, eax
test eax, eax
jne 0x1800b0071
xor edx, edx
mov ecx, ebx
call fcn.1800af8e0
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800affc0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800affac
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800aff98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x1800aff70
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800ff020]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x1800b0071
mov rdx, qword [0x180100180]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800aec40
mov edx, dword [0x18010018c]
dec edx
cmp ebx, edx
jae 0x1800b001f
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x180100180]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x180100188]
mov eax, ecx
mov dword [0x18010018c], edx
shr eax, 1
cmp eax, 0x20
jb 0x1800b0071
cmp eax, edx
jb 0x1800b0071
mov r8, qword [0x180100180]
mov eax, ecx
mov rcx, qword [0x1800ff020]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800b0071
shr dword [0x180100188], 1
mov qword [0x180100180], rax
jmp 0x1800b0071
mov r14d, 2
xchg dword [0x1800ff018], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800b0090
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800ff018], ebp
je 0x1800b00e7
cmp rbx, 0x20
jae 0x1800b00d0
xor ecx, ecx
jmp 0x1800b00d2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800ff018], ebp
jne 0x1800b00c6
cmp qword [0x1800ff020], r15
je 0x1800b01e1
test rdi, rdi
jne 0x1800b0107
mov ecx, esi
call fcn.1800afa10
mov edi, eax
jmp 0x1800b01e6
mov ecx, dword [0x18010018c]
mov ebx, r15d
test ecx, ecx
je 0x1800b012f
mov rdx, qword [0x180100180]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x1800b0139
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800b0120
mov edi, 4
jmp 0x1800b01e6
cmp ebx, 0xffffffff
je 0x1800b012f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800b01d8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800af800
mov edi, eax
test eax, eax
jne 0x1800b01e6
mov edx, esi
mov ecx, ebx
call fcn.1800af8e0
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x1800b01e6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800b01c2
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800b01b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800b0190
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800ff020]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800b01e6
neg esi
sbb edi, edi
add edi, 6
jmp 0x1800b01e6
mov edi, 2
xchg dword [0x1800ff018], r15d
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, 0x30
pop r15
ret
Function at 0x1800b06a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
xor r13d, r13d
mov rbp, rdx
mov r14, rcx
cmp word [rdx], ax
jne 0x1800b0731
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x1800b0731
mov r15, qword [r8 + 8]
mov eax, 8
movzx ebx, word [rsi + 0x14]
cmp r15, rax
mov edi, r13d
cmova r15, rax
add rbx, 0x18
add rbx, rsi
cmp r13w, word [rsi + 6]
jae 0x1800b0731
mov r12, qword [r8]
nop word [rax + rax]
mov r8, r15
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1800b0758
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jl 0x1800b0710
mov qword [r14], r13
mov qword [r14 + 8], r13
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rbx + 0xc]
add rax, rbp
mov qword [r14], rax
mov eax, dword [rbx + 8]
mov qword [r14 + 8], rax
jmp 0x1800b0738

Function at 0x1800b1fb4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800b1fee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800b1ff3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800b203c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800bbd10]
cmp byte [rcx + rax], 0
je 0x1800b203c
dec r8
sub rdx, 1
jne 0x1800b2022
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140496820]
mov dword [rax], 1
mov rax, qword [0x140496830]
mov dword [rax], 1
mov rax, qword [0x140496840]
mov dword [rax], 1
mov rax, qword [0x1404967c0]
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 0x140401430
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14046c7d0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x1404014d9
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14040149e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140401490
test rax, rax
je 0x14047d6ce
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140401478
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140401508
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140401520
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1404015c1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140401586
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140401578
test rax, rax
je 0x14047d6d4
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140401560
mov rdx, r14
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 0x14042a050
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.140401430
test rax, rax
je 0x14042a190
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14042a0ce
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14042a0c0
test rax, rax
je 0x14047d76e
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x14042a0b0
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1404cd9b8]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x140496970]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x14042a1e8
mov rdx, rbx
call fcn.1403e74e0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14041e660
sub qword [rbx], 1
jne 0x14042a176
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 [0x1404cd280]
lea rsi, [0x1404cd280]
test bl, bl
je 0x14042a1b0
mov rax, qword [0x1404cd288]
lea rsi, [0x1404cd288]
test rax, rax
jne 0x14042a176
cmp byte [0x1404cd4a2], 0
jne 0x14042a1c6
movzx ecx, bl
call fcn.1403e94f0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1404cd2a0]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14042a212
add qword [rax], 1
jmp 0x14042a176
mov rcx, qword [0x1404cd930]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x14042a21d
mov rdx, rdi
call fcn.1403e74e0
mov qword [0x1404cd9b8], rax
mov rcx, rax
jmp 0x14042a143
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14048ecb3]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1404cd930], rax
mov rcx, rax
test rax, rax
je 0x14047d76e
jmp 0x14042a1fb
Function at 0x140461cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1404cd269], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140461d38
lea rdx, [0x140492732]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140461da0
mov rbx, qword [0x1404cd120]
jmp 0x140461cf5
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 0x140461cf0
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.140450e60
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 [0x1404cd120], rax
mov ebx, dword [rax]
mov qword [0x1404cd120], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1404cd120], rdx
call fcn.140460de0
cmp eax, ebx
jne 0x140461e08
mov byte [0x1404cd269], 1
jmp 0x140461ccc
cmp byte [0x1404cd268], 0
jne 0x140461ce3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1404cdbc8], rax
call rbx
mov qword [0x1404cdbc0], rax
call rbx
mov qword [0x1404cdbb8], rax
call rbx
mov qword [0x1404cdbb0], rax
call rbx
mov qword [0x1404cdba8], rax
call rbx
mov qword [0x1404cdba0], rax
call rbx
mov qword [0x1404cdb98], rax
call rbx
mov byte [0x1404cd268], 1
mov qword [0x1404cdb90], rax
jmp 0x140461ce3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14046b4b0
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.14047cc30
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.14047cc30
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 0x14046c182
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1404ce088]
test eax, eax
je 0x14046c21a
lea rax, [0x1404ce060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1404ce090]
mov qword [rbp - 8], rax
jmp 0x14046c1fe
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 0x14046c1f2
cmp qword [rbp - 0x10], 0
je 0x14046c1f2
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 0x14046c1b8
lea rax, [0x1404ce060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14046c21b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14046c320
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 0x14046c348
mov eax, 0
jmp 0x14046c396
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 0x14046c371
mov eax, 0
jmp 0x14046c396
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 0x14046c391
mov eax, 0
jmp 0x14046c396
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14046c39c
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 0x14046c41a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14046c411
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 0x14046c411
mov rax, qword [rbp - 8]
jmp 0x14046c42f
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 0x14046c3e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140042340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14008e940]
xor rax, rsp
mov qword [rbp + 0x3f], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14004237b
xor eax, eax
jmp 0x1400424a0
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400423b5
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400423b5
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1400424a0
cmp qword [rbx + 0x80], 0
je 0x14004249e
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400423f0
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140042410
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.140053774
cmp eax, edi
jmp 0x14004249b
lea r8, [rbp + 0xf]
mov byte [rbp + 7], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 8]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14007cb40]
test eax, eax
je 0x140042465
sub eax, 1
je 0x140042465
cmp eax, 2
jne 0x14004249e
movsx ecx, byte [rbp + 7]
jmp 0x1400423fd
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14004248f
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.140053d4c
cmp r14, rax
jne 0x14004249e
lea rax, [rbp + 7]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x17], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140040e20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004281c
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14004284a
xor eax, eax
jmp 0x140042930
cmp qword [rcx + 0x68], 0
je 0x14004285b
call fcn.140041f98
jmp 0x140042930
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140042872
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140042874
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400428a6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14006d820
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14004292a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400428dd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140042906
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140053958
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14004292a
cmp rsi, rbx
ja 0x1400428e4
test rsi, rsi
je 0x14004292a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140053958
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14004294c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14004297b
call fcn.14004205c
jmp 0x1400429f2
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140042992
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140042994
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400429ec
test ecx, ecx
jle 0x1400429cd
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14006d820
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400429ec
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400429ec
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140053d4c
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14004447c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400444c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400444c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400444c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400444c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400444c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400444c8
xor al, al
add rsp, 0x28
ret
Function at 0x14004f5d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004f708

Function at 0x140055510
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140055538
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140055538
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret