joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140241ef4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140241ed1
call fcn.14021f174
mov dword [rax], 0x16
call fcn.14021f008
or eax, 0xffffffff
jmp 0x140241eee
sub dword [rcx + 0x10], 1
jns 0x140241ee0
add rsp, 0x28
jmp fcn.140242d50
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140241eb0

Function at 0x140242194
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1403225c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1402421f2
cmp word [rdx], r12w
jne 0x1402421f2
or byte [rax + r8*8 + 0x38], cl
jmp 0x1402421f8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140242353
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14024232e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140242231
mov rcx, r9
jmp 0x140242254
cmp r9, rdx
jae 0x14024226b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140242215
jmp 0x140242353
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140242328
cmp dword [rsp + 0x80], edi
je 0x140242328
mov rdx, r14
lea r11, [0x1403225c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140242301
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1402422d4
mov word [rbx], r12w
jmp 0x14024234f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1402422dd
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14024234f
cmp word [rsp + 0x70], r12w
jne 0x14024230e
cmp rbx, rsi
je 0x1402422ce
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14024313c
cmp word [rsp + 0x70], r12w
je 0x140242353
mov word [rbx], r13w
jmp 0x14024234f
lea r11, [0x1403225c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14024234b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140242353
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140242d50
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 0x140242d82
call fcn.14021f174
mov dword [rax], 0x16
call fcn.14021f008
jmp 0x140242ea1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140242ea1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140242ea1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140242db1
lock or dword [rcx + 0x14], 0x10
jmp 0x140242ea1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140242dc5
call fcn.140249f14
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14023387c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140242640
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140242e8f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140242e5a
mov rcx, rsi
call fcn.14023387c
cmp eax, edi
je 0x140242e45
mov rcx, rsi
call fcn.14023387c
cmp eax, 0xfffffffe
je 0x140242e45
mov rcx, rsi
call fcn.14023387c
movsxd rbx, eax
lea r14, [0x1403225c0]
mov rcx, rsi
sar rbx, 6
call fcn.14023387c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140242e4c
lea rdx, [0x140313d30]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140242e5a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140242e7e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140242e7e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140242e7e
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 0x140242ea4
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
Function at 0x140242ebc
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 rbx, rcx
test rcx, rcx
jne 0x140242bde
call fcn.14021f174
mov dword [rax], 0x16
call fcn.14021f008
jmp 0x140242d2e
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140242d2e
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140242d2e
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140242c0d
lock or dword [rcx + 0x14], 0x10
jmp 0x140242d2e
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140242c21
call fcn.140249f14
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x140242c31
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x140242c34
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14023387c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.140242640
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140242d1c
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140242cc7
mov rcx, rbx
call fcn.14023387c
cmp eax, 0xffffffff
je 0x140242cb2
mov rcx, rbx
call fcn.14023387c
cmp eax, 0xfffffffe
je 0x140242cb2
mov rcx, rbx
call fcn.14023387c
movsxd rdi, eax
lea rsi, [0x1403225c0]
mov rcx, rbx
sar rdi, 6
call fcn.14023387c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140242cb9
lea rdx, [0x140313d30]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140242cc7
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140242ceb
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140242ceb
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140242ceb
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x140242d09
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x140242d14
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x140242d33
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x140242ba8
Function at 0x140244308
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14024438f
mov rsi, rbx
cmp word [rax], bp
je 0x14024434e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140244338
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140244334
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14023bd3c
mov rdi, rax
test rax, rax
je 0x14024437c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14021a590
mov rbp, rdi
xor ecx, ecx
call fcn.14023bd00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14024b840
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14024b868
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14024b868
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4016c0
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.004017e0
xor eax, 1
test al, al
je 0x4016e5
lea rcx, str.echo_Error__This_process_must_be_run_with_administrator_privileges._Press_SHIFT_to_exit.
call sub.msvcrt.dll_system
call fcn.00401858
nop
add rsp, 0x20
pop rbp
ret

Function at 0x4016ec
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call fcn.004016c0
lea rcx, str.Taskmgr.exe
call fcn.004018b0
test eax, eax
setne al
test al, al
je 0x401715
mov eax, 1
jmp 0x401726
lea rcx, str.echo_Task_Manager_was_successfully_terminated.
call sub.msvcrt.dll_system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x401730
Capabilities:
Disable system features via registry on windows
Execute command
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 2
je 0x401781
cmp dword [rbp + 0x10], 3
je 0x4017b5
cmp dword [rbp + 0x10], 1
jne 0x4017c6
lea rcx, str.REG_ADD_hkcuSoftwareMicrosoftWindowsCurrentVersionpolicies_system__v_DisableRegistryTools__t_reg_dword__d_0
call sub.msvcrt.dll_system
test eax, eax
setne al
test al, al
je 0x401773
lea rcx, str.echo_Error:_Command_failed_to_execute.
call sub.msvcrt.dll_system
call fcn.00401858
lea rcx, str.echo_Command_executed_successfully.
call sub.msvcrt.dll_system
jmp 0x4017d7
lea rcx, str.REG_ADD_hkcuSoftwareMicrosoftWindowsCurrentVersionpolicies_system__v_DisableTaklMgr__t_reg_dword__d_1
call sub.msvcrt.dll_system
test eax, eax
setne al
test al, al
je 0x4017a7
lea rcx, str.echo_Error:_Command_failed_to_execute.
call sub.msvcrt.dll_system
call fcn.00401858
lea rcx, str.echo_Command_executed_successfully.
call sub.msvcrt.dll_system
jmp 0x4017d7
lea rcx, str.echo_Press_SHIFT_to_exit.
call sub.msvcrt.dll_system
call fcn.00401858
lea rcx, str.echo_That_isnt_a_valid_operation._Press_SHIFT_to_exit.
call sub.msvcrt.dll_system
call fcn.00401858
nop
add rsp, 0x20
pop rbp
ret
Function at 0x4018b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp - 0x60], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd8]
mov rdx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
setne al
test al, al
je 0x4019b7
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd8]
mov rdx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
je 0x4019b7
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sub.msvcrt.dll__stricmp
test eax, eax
sete al
test al, al
je 0x401904
mov eax, dword [rbp - 0x58]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
test eax, eax
sete al
test al, al
je 0x40199f
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x4019cf
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x401904
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x40ca70
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004a3038], eax
je 0x40ca8a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x40cf90
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x40cfb3
call fcn.0040c930
cmp eax, 1
je 0x40cfbe
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x40d035
mov eax, 0x28
jmp 0x40d01a
add rax, 1
cmp rax, 0x6b
je 0x40d027
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x40d010
cmp eax, 0x6a
jne 0x40d03a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x40d027
Function at 0x40d0e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x004cf0c0], 1
je 0x40d0f6
call fcn.0040d050
mov ecx, dword [0x004a3038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x40d120
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0040ced0
cmp qword [0x004d3050], 0
mov rsi, rax
je 0x40d10a
test rax, rax
je 0x40d10a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.0040cf90
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x40d210
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x004a3038]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40d210
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x4100e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004cf6c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x410268
mov rax, qword [0x004cf6c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41012c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4101b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x410110
mov rcx, rbx
call fcn.00410d80
test rax, rax
mov r12, rax
je 0x41029d
mov rax, qword [0x004cf6c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00410eb0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004cf6c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410280
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4101ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x410210
add dword [0x004cf6c4], 1
cmp edi, 8
jae 0x4101e3
test dil, 4
jne 0x410254
test edi, edi
je 0x4101d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41026f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4101d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4101fc
jmp 0x4101d8
add rsi, qword [0x004cf6c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4101ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a1fb0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4101d8
xor esi, esi
jmp 0x410137
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4101d8
mov rax, qword [0x004cf6c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004a1fb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004a1fb0
nop
nop dword [rax]

Function at 0x4109f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004cf9a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004cf980]
test rbx, rbx
je 0x410a44
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 0x410a3b
test rsi, rsi
je 0x410a3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410a20
lea rcx, [0x004cf9a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x410d80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004ab780]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x410ded
mov rcx, r8
call fcn.00410c60
test eax, eax
je 0x410ded
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x410ded
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x410de4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x410def
add rax, 0x28
cmp rax, r9
jne 0x410dd0
xor eax, eax
add rsp, 0x28
ret
Function at 0x46c760
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x46c788
call r12
cmp dword [rax], 4
jne 0x46c7a6
mov rcx, rbp
call fcn.0046c660
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x46c780
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4a1fb0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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.0041bdf0
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.0041bdf0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x332c74960
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x332c74b06
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call dbg.runtime.stdcall3
xorps xmm15, xmm15
mov r14, qword [0x332dda5e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x332c749cb
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x332c749e0
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
nop
test rbx, rbx
jbe 0x332c74a05
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x332c74a19
cmp rbx, 0x1000
jae 0x332c749d5
nop dword [rax]
jmp 0x332c74a89
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x332c74a2d
xor edx, edx
jmp 0x332c74a80
mov rcx, qword [sym.VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call dbg.runtime.stdcall3
xorps xmm15, xmm15
mov r14, qword [0x332dda5e0]
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]
nop dword [rax]
test dl, dl
jne 0x332c74a0f
jmp 0x332c749f4
call dbg.runtime.getlasterror
xorps xmm15, xmm15
mov r14, qword [0x332dda5e0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call dbg.runtime.printlock
lea rax, [0x332d168a5]
mov ebx, 0x18
call dbg.runtime.printstring
mov rax, qword [rsp + 0x38]
call dbg.runtime.printuint
lea rax, [0x332d16965]
mov ebx, 0x19
call dbg.runtime.printstring
mov rax, qword [rsp + 0x30]
nop
call dbg.runtime.printuint
call dbg.runtime.printnl
call fcn.332c94ce0
lea rax, [0x332d18ed1]
mov ebx, 0x21
nop dword [rax + rax]
call dbg.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call dbg.runtime.morestack_noctxt
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp dbg.runtime.sysUnusedOS