joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006f627
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800ba080]
jne 0x18006e14a
rol rcx, 0x10
test cx, 0xffff
jne 0x18006e146
repz ret
ror rcx, 0x10
jmp 0x18006f580
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800bdfb0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800be0a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18006f605
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800bdfb0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18006f627
mov rax, qword [rsp + 0x88]
mov qword [0x1800be0a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800be048], rax
mov rax, qword [0x1800be0a8]
mov qword [0x1800bdf20], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800be030], rax
mov dword [0x1800bdf10], 0xc0000409
mov dword [0x1800bdf14], 1
mov rax, qword [0x1800ba080]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800ba088]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800bdfa8], eax
mov ecx, 1
call fcn.180072980
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180092a48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800bdfa8], 0
jne 0x18006f6ae
mov ecx, 1
call fcn.180072980
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18007057c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1800703f0
Function at 0x1800785b0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18006fc58
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800bec10], rbx
jne 0x1800786b6
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18007878b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007878b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800bec10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800bec18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1800bec20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800bec30], rax
test rax, rax
je 0x1800786ad
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800bec28], rax
jmp 0x1800786bd
mov rax, qword [0x1800bec28]
jmp 0x1800786c4
mov rax, qword [0x1800bec28]
mov r11, qword [0x1800bec30]
cmp rax, rdi
je 0x18007872c
cmp r11, rdi
je 0x18007872c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800bec30]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18007872c
test rax, rax
je 0x18007872c
call rsi
test rax, rax
je 0x180078726
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180078726
test byte [rsp + 0x38], 1
jne 0x18007872c
bts ebp, 0x15
jmp 0x18007876a
mov rcx, qword [0x1800bec18]
cmp rcx, rdi
je 0x18007876a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007876a
call rax
mov rbx, rax
test rax, rax
je 0x18007876a
mov rcx, qword [0x1800bec20]
cmp rcx, rdi
je 0x18007876a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007876a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800bec10]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18007878b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18007878d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1403994c0]
mov dword [rax], 1
mov rax, qword [0x1403994d0]
mov dword [rax], 1
mov rax, qword [str._B__]
mov dword [rax], 1
mov rax, qword [0x140399460]
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 0x14030f9f0
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.140372b20
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 0x14030fab5
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 0x140383a28
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14030fa96
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14030fa88
test rsi, rsi
je 0x140383a28
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14030fa48
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 0x14030fae4
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 0x14030fb00
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 0x14030fbbd
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 0x140383a2e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14030fb9e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14030fb90
test rsi, rsi
je 0x140383a2e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14030fb50
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 0x1403268c0
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 [0x1403c3290]
mov rsi, rcx
test rbx, rbx
je 0x140326940
mov rax, qword [0x140399630]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140326930
mov rdx, qword [0x1403c34c8]
test rdx, rdx
je 0x140326a38
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 0x140326911
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14030f9f0
test rax, rax
je 0x140326a58
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 0x140383ae0
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1403269de
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1403269d0
test rbx, rbx
je 0x140383ae0
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 0x140326990
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.140326800
mov rbx, rax
mov qword [0x1403c3290], rbx
jmp 0x1403268e2
lea rcx, [0x140395c30]
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov qword [0x1403c34c8], rax
mov rdx, rax
jmp 0x140326902
mov rbx, qword [0x1403c32a8]
test rbx, rbx
jne 0x140326a26
cmp byte [0x1403c34c2], 0
je 0x140326a96
mov rdx, 0xffffffffffffffff
lea rcx, [0x1403c32c0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [0x1403c32a8], rax
mov rbx, rax
test rax, rax
je 0x140326aa2
add qword [rax], 1
jmp 0x140326a26
mov ecx, 1
call fcn.140310610
jmp 0x140326a6d
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1403283e0
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.14030f9f0
test rax, rax
je 0x140328540
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 0x140383afe
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140328496
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140328488
test rbx, rbx
je 0x140383afe
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 0x140328448
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1403c3c00]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x140399630]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x140328590
mov r8, rbx
mov rcx, rsi
call fcn.140312a70
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1403240f0
sub qword [rbx], 1
jne 0x140328524
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 [0x1403c32a0]
lea rsi, [0x1403c32a0]
test bl, bl
je 0x140328560
mov rax, qword [0x1403c32a8]
lea rsi, [0x1403c32a8]
test rax, rax
jne 0x140328524
cmp byte [0x1403c34c2], 0
je 0x1403285bd
mov rdx, 0xffffffffffffffff
lea rcx, [0x1403c32c0]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1403285c7
add qword [rax], 1
jmp 0x140328524
mov rdx, qword [0x1403c3b78]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x1403285d2
mov r8, rdi
mov rcx, rsi
call fcn.140312a70
mov qword [0x1403c3c00], rax
mov rdx, rax
jmp 0x1403284ee
movzx ecx, bl
call fcn.140310610
jmp 0x14032856e
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14039163e]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1403c3b78], rax
mov rdx, rax
test rax, rax
je 0x140383afe
jmp 0x1403285a3
Function at 0x140368e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1403c3289], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140368f08
lea rdx, [0x1403953ba]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140368f70
mov rbx, qword [0x1403c3128]
jmp 0x140368ea5
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 0x140368ea0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140368ef7
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140358290
mov r8, rax
cmp rdi, rbx
jne 0x140368ee0
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 [0x1403c3128], rax
mov ebx, dword [rax]
mov qword [0x1403c3128], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1403c3128], rdx
call fcn.140367f90
cmp eax, ebx
jne 0x140368ff7
mov byte [0x1403c3289], 1
jmp 0x140368e80
cmp byte [0x1403c3288], 0
jne 0x140368e97
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1403c3e08], rax
call rbx
mov qword [0x1403c3e00], rax
call rbx
mov qword [0x1403c3df8], rax
call rbx
mov qword [0x1403c3df0], rax
call rbx
mov qword [0x1403c3de8], rax
call rbx
mov qword [0x1403c3de0], rax
call rbx
mov qword [0x1403c3dd8], rax
call rbx
mov byte [0x1403c3288], 1
mov qword [0x1403c3dd0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1403c3120], rax
jmp 0x140368e97
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140371800
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.140382f80
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.140382f80
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 0x1403724d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1403c42c8]
test eax, eax
je 0x14037256a
lea rax, [0x1403c42a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1403c42d0]
mov qword [rbp - 8], rax
jmp 0x14037254e
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 0x140372542
cmp qword [rbp - 0x10], 0
je 0x140372542
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 0x140372508
lea rax, [0x1403c42a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14037256b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140372670
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 0x140372698
mov eax, 0
jmp 0x1403726e6
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 0x1403726c1
mov eax, 0
jmp 0x1403726e6
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 0x1403726e1
mov eax, 0
jmp 0x1403726e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1403726ec
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 0x14037276a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140372761
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 0x140372761
mov rax, qword [rbp - 8]
jmp 0x14037277f
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 0x140372734
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140028130
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140028152
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400281cc
mov rdi, r14
mov rcx, rbx
call fcn.140029280
test rax, rax
jle 0x1400281a4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140044180
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400281bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400281c4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140028166
sub r14, rdi
jmp 0x1400282af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400281e3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400281e5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140028217
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140044180
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400282ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140028252
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
cmp rbp, 0xfff
jbe 0x14002828d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140032dfc
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400282ac
cmp rbp, rax
ja 0x140028260
test rbp, rbp
je 0x1400282ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140032dfc
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x14002ae0c
Capabilities:
Parse pe header

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

Function at 0x1400336f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400334e0
Function at 0x140038490
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400384c2
call fcn.140032720
mov dword [rax], 0x16
call fcn.140030e34
jmp 0x1400385e1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400385e1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400385e1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400384f1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400385e1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140038505
call fcn.14003955c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140036690
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140039eac
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400385cf
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003859a
mov rcx, rsi
call fcn.140036690
cmp eax, edi
je 0x140038585
mov rcx, rsi
call fcn.140036690
cmp eax, 0xfffffffe
je 0x140038585
mov rcx, rsi
call fcn.140036690
movsxd rbx, eax
lea r14, [0x14005ae90]
mov rcx, rsi
sar rbx, 6
call fcn.140036690
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14003858c
lea rdx, [0x140059410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003859a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400385be
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400385be
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400385be
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400385e4
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret