joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007ec70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bcfd1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007ecf8
lea rdx, [0x1400a78d2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007ed60
mov rbx, qword [0x1400bce88]
jmp 0x14007ecb5
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 0x14007ecb0
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.14006deb0
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 [0x1400bce88], rax
mov ebx, dword [rax]
mov qword [0x1400bce88], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400bce88], rdx
call fcn.14007dda0
cmp eax, ebx
jne 0x14007ede7
mov byte [0x1400bcfd1], 1
jmp 0x14007ec8c
cmp byte [0x1400bcfd0], 0
jne 0x14007eca3
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400bd908], rax
call rbx
mov qword [0x1400bd900], rax
call rbx
mov qword [0x1400bd8f8], rax
call rbx
mov qword [0x1400bd8f0], rax
call rbx
mov qword [0x1400bd8e8], rax
call rbx
mov qword [0x1400bd8e0], rax
call rbx
mov qword [0x1400bd8d8], rax
call rbx
mov byte [0x1400bcfd0], 1
mov qword [0x1400bd8d0], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400bce80], rax
jmp 0x14007eca3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140087ee0
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.140099660
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.140099660
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 0x140088bb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bddc8]
test eax, eax
je 0x140088c4a
lea rax, [0x1400bdda0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bddd0]
mov qword [rbp - 8], rax
jmp 0x140088c2e
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 0x140088c22
cmp qword [rbp - 0x10], 0
je 0x140088c22
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 0x140088be8
lea rax, [0x1400bdda0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140088c4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140088d50
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 0x140088d78
mov eax, 0
jmp 0x140088dc6
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 0x140088da1
mov eax, 0
jmp 0x140088dc6
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 0x140088dc1
mov eax, 0
jmp 0x140088dc6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140088dcc
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 0x140088e4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140088e41
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 0x140088e41
mov rax, qword [rbp - 8]
jmp 0x140088e5f
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 0x140088e14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004f5e0]
mov dword [rax], 1
mov rax, qword [0x14004f5f0]
mov dword [rax], 1
mov rax, qword [0x14004f600]
mov dword [rax], 1
mov rax, qword [0x14004f530]
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 0x14002abc0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.1400323b0
sub rsp, rax
xor eax, eax
xor edx, edx
lea rbx, [rsp + 0x20]
lea rsi, [rsp + 0x70]
mov word [rsp + 0x70], ax
mov rcx, rbx
mov word [rsp + 0x20], dx
call fcn.14002ab10
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002ac16
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x140031090
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.140042640
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.140042640
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 0x140031d62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140057588]
test eax, eax
je 0x140031dfa
lea rax, [0x140057560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140057590]
mov qword [rbp - 8], rax
jmp 0x140031dde
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 0x140031dd2
cmp qword [rbp - 0x10], 0
je 0x140031dd2
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 0x140031d98
lea rax, [0x140057560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140031dfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140031f00
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 0x140031f28
mov eax, 0
jmp 0x140031f76
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 0x140031f51
mov eax, 0
jmp 0x140031f76
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 0x140031f71
mov eax, 0
jmp 0x140031f76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140031f7c
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 0x140031ffa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140031ff1
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 0x140031ff1
mov rax, qword [rbp - 8]
jmp 0x14003200f
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 0x140031fc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c48
Capabilities:
Parse pe header

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

Function at 0x140005940
Capabilities:
Parse pe header

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

Function at 0x140012fc0
Capabilities:
Parse pe header

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

Function at 0x140003758
Capabilities:
Parse pe header

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001be4
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409ec8a1]
jmp 0x140001ad6
mov byte [0x1409ec8a1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409ec880]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001be4
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x7b
mov byte [rsp + 0x21], 0x7f
mov byte [rsp + 0x22], 0x8d
mov byte [rsp + 0x23], 0x78
mov byte [rsp + 0x24], 0x84
mov byte [rsp + 0x25], 0x87
mov byte [rsp + 0x26], 0x7d
mov byte [rsp + 0x27], 0x75
mov byte [rsp + 0x28], 0x88
mov byte [rsp + 0x29], 0x87
mov byte [rsp + 0x2a], 0x8d
mov byte [rsp + 0x2b], 0x81
mov byte [rsp + 0x2c], 0x7e
mov byte [rsp + 0x2d], 0x8c
mov byte [rsp + 0x2e], 0x85
mov byte [rsp + 0x2f], 0x78
mov byte [rsp + 0x30], 0x7d
mov byte [rsp + 0x31], 0x7c
mov byte [rsp + 0x32], 0x8c
mov byte [rsp + 0x33], 0x8c
mov byte [rsp + 0x34], 0x82
mov byte [rsp + 0x35], 0x77
mov byte [rsp + 0x36], 0x82
mov byte [rsp + 0x37], pe_nt_image_headers64
mov byte [rsp + 0x38], 0x8d
mov byte [rsp + 0x39], 0x7c
mov byte [rsp + 0x3a], 0x89
mov byte [rsp + 0x3b], 0x79
mov byte [rsp + 0x3c], 0x8c
mov byte [rsp + 0x3d], pe_nt_image_headers64
mov byte [rsp + 0x3e], 0x88
mov byte [rsp + 0x3f], 0x77
mov byte [rsp + 0x40], 0x13
cmp byte [0x1409ec860], 0
jne 0x140001bbf
mov byte [0x1409ec8a1], 1
mov eax, 0
lea rcx, [0x1409ec880]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001b9e
mov byte [0x1409ec860], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409ec8a1], 0
je 0x140001aa8
lea rax, [0x1409ec880]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001bd3
jmp 0x140001aa1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140006f30
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006f60
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006f5f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006f65
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006f5f
mov eax, 0
jmp 0x140006f5f

Function at 0x1400075e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007590
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010bf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019730
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019730
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1409ecc54]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010df0
mov rax, qword [0x1409ecc58]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010cac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010d35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010c90
mov rcx, rdi
call fcn.1400117c0
test rax, rax
mov r12, rax
je 0x140010e42
mov rax, qword [0x1409ecc58]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011900
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1409ecc58]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010e25
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010d2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010da0
add dword [0x1409ecc54], 1
cmp ebx, 8
jae 0x140010d61
test bl, 4
jne 0x140010e00
test ebx, ebx
je 0x140010d56
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010e14
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140010d56
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140010d7a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1409ecc58]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010bf0
xor esi, esi
jmp 0x140010cb7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140010d56
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140010d56
mov rax, qword [0x1409ecc58]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010bf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010bf0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011410
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1409eccc0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409ecca0]
test rbx, rbx
je 0x140011464
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001145b
test rsi, rsi
je 0x14001145b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011440
lea rcx, [0x1409eccc0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400117c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409e67d0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001182f
mov rcx, r9
call fcn.140011690
test eax, eax
je 0x14001182f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001182d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011824
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001182f
add rdx, 0x28
cmp rdx, r9
jne 0x140011810
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001bbe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e2d40]
jmp 0x1400125f0

Function at 0x14001bbf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1409e2d40]
jmp 0x1400125f0
Function at 0x1800082d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
imul eax, r8d, 0x122
mov r12, r9
mov r15d, r8d
mov rsi, rdx
mov r14, rcx
mov edi, r8d
mov dword [rsp + 0x60], eax
mov ebx, dword [rsp + 0x60]
cmp r8d, eax
ja 0x18000835e
mov r13d, dword [rsp + 0x60]
cmp edi, 0x3f
je 0x1800084ca
cmp edi, 0xf2
je 0x18000849e
cmp edi, 0x37c6
je 0x180008453
cmp edi, 0x6e9a
je 0x18000838e
cmp edi, 0xa56e
jne 0x1800084d3
mov ecx, 0x10e
nop
mov eax, ecx
sub eax, 0x10e
je 0x18000837d
cmp eax, 1
jne 0x18000837f
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor ebx, ebx
inc ecx
cmp ecx, 0x110
jb 0x180008350
jmp 0x1800084d3
mov eax, dword [rsi + 0x1c]
imul eax, dword [rsi + 0x20]
mov r9, qword [r14 + 8]
mov rcx, qword [rsi + 8]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rbp, eax
mov eax, dword [rsi + 0x1c]
imul eax, dword [rsi + 0x20]
cdq
and edx, 3
add eax, edx
mov edx, 1
sar eax, 2
movsxd r8, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbp
je 0x1800083f4
mov ecx, reloc.SHELL32.dll_SHTestTokenMembership
mov eax, ecx
sub eax, 0xf5
je 0x1800083e5
cmp eax, 1
je 0x18000835e
jmp 0x1800083ea
mov ebx, 0xffffffff
inc ecx
cmp ecx, 0xf7
jb 0x1800083d1
mov r9, qword [r14 + 8]
mov r8, rbp
mov rcx, qword [rsi + 0x10]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r8, rax
mov eax, dword [rsi + 0x1c]
imul eax, dword [rsi + 0x20]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rcx, eax
cmp r8, rcx
je 0x1800084d3
mov ecx, 0x42
nop
mov eax, ecx
sub eax, 0x42
je 0x180008442
cmp eax, 1
je 0x18000835e
jmp 0x180008447
mov ebx, 0xffffffff
inc ecx
cmp ecx, 0x44
jb 0x180008430
jmp 0x1800084d3
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov edx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180008494
mov eax, dword [rsi + 0x1c]
mov edx, 1
imul eax, dword [rsi + 0x20]
mov r9, qword [r14 + 8]
mov rcx, qword [rsi]
movsxd r8, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, rax
mov eax, dword [rsi + 0x1c]
imul eax, dword [rsi + 0x20]
cdqe
cmp rdx, rax
je 0x1800084d3
mov eax, 0xffffffff
jmp 0x180008360
cmp qword [r14 + 8], 0
je 0x180008494
test rsi, rsi
je 0x180008494
cmp dword [r12], 0
jl 0x180008494
mov eax, dword [rsi + 0x20]
imul eax, dword [rsi + 0x1c]
imul eax, dword [r12]
lea eax, [rax + rax*2]
cdq
sub eax, edx
sar eax, 1
mov r13d, eax
jmp 0x1800084d3
mov rcx, r14
call qword [0x180092a38]
imul eax, r15d, 0x3a
add edi, eax
cmp edi, dword [rsp + 0x60]
jbe 0x180008314
jmp 0x18000835e