joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14023c394
Capabilities:
Parse pe header

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

Function at 0x14023f2a4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14023f137
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14023f137
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14023f137
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14023f137
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14023f137
cmp dword [rcx + 0x84], 0xe
jbe 0x14023f137
cmp dword [rcx + 0xf8], 0
je 0x14023f137
mov ecx, ebx
call fcn.14023f1d8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14023efc8
cmp dword [rbp + 0x20], 0
je 0x14023f184
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14023f18c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14023f0d0
Function at 0x140004574
Capabilities:
Parse pe header

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

Function at 0x140916108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14091628f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140916139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14091611f
add dl, dl
jne 0x140916146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409161a6
xor eax, eax
add dl, dl
jne 0x140916155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14091625d
add dl, dl
jne 0x140916166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140916173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140916180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14091618d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14091619a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14091612e
mov eax, 1
add dl, dl
jne 0x1409161b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409161c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409161ab
sub eax, ebx
mov ebx, 1
jne 0x1409161fc
mov ecx, 1
add dl, dl
jne 0x1409161de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409161eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409161d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091612e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140916218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140916225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14091620d
cmp eax, 0x7d00
jae 0x14091624b
cmp eax, 0x500
jb 0x140916246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091612e
cmp eax, 0x7f
ja 0x14091624e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091612e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140916282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14091612e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002e9c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140019188]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140002f0d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140002f0d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140002eeb
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x140012868]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.140001588
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140002f77
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x14000304c
mov edx, 0xc0
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400127d4]
call fcn.140002c08
mov esi, eax
jmp 0x14000304f
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140002d48
mov esi, eax
test eax, eax
jns 0x140002fb4
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400127d4]
mov r9d, eax
mov edx, CreateErrorInfo
call fcn.140002bd4
jmp 0x14000304f
lea r8, [0x140012870]
lea rcx, [rsp + 0x30]
call fcn.140001588
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140002fe6
mov edx, 0xcc
jmp 0x140002f5d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002d48
mov esi, eax
test eax, eax
jns 0x140003027
mov rcx, qword [rbp + 0x168]
lea r8, [0x1400127d4]
mov r9d, eax
mov edx, 0xce
call fcn.140002bd4
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400030a8
jmp 0x14000304f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400030c1
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140003061
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14000308f
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000f200
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140002c28
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140002c28
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilopensource_wil_resource.h
mov edx, 0x8f0
call fcn.140002c28
int3
Function at 0x14000c470
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
sub rsp, 0x110
mov rbx, r8
mov dword [rax + 0x10], CreateErrorInfo
lea rax, [rax + 0x10]
mov r9d, 2
mov qword [rsp + 0x30], rax
lea r8, str.Name
mov qword [rsp + 0x28], rbx
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x14000c540
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, CreateErrorInfo
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rsp + 0x40]
mov ecx, 0x80
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rbx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm0
add rbx, rcx
movups xmm0, xmmword [rax + 0x70]
add rax, rcx
movups xmmword [rbx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
mov rax, qword [rax + 0x40]
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], rax
add rsp, 0x110
pop rbx
ret

Function at 0x14000c550
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x38
ret

Function at 0x14000c590
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x18]
mov dword [rsp + 0x60], 4
mov qword [r11 - 0x18], rax
mov r8, rdx
lea rax, [r11 + 0x20]
mov r9d, 0x10
mov qword [r11 - 0x20], rax
xor edx, edx
and qword [r11 - 0x28], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14000c5d6
cmp dword [rsp + 0x60], 4
jne 0x14000c5d6
mov eax, dword [rsp + 0x68]
jmp 0x14000c5d8
xor eax, eax
add rsp, 0x48
ret

Function at 0x14000c5e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], 0x30
lea rax, [r11 + 0x20]
mov r8, rdx
mov qword [r11 - 0x18], rax
mov r9d, 8
mov qword [r11 - 0x20], rbx
xor edx, edx
and qword [r11 - 0x28], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14000c624
cmp dword [rsp + 0x68], 0x30
je 0x14000c632
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add rsp, 0x40
pop rbx
ret
Function at 0x14000c640
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], 0x14
lea rax, [r11 + 0x20]
mov r8, rdx
mov qword [r11 - 0x18], rax
mov r9d, 8
mov qword [r11 - 0x20], rbx
xor edx, edx
and qword [r11 - 0x28], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14000c680
cmp dword [rsp + 0x68], 0x14
je 0x14000c68c
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
add rsp, 0x40
pop rbx
ret
Function at 0x14000de08
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140019188]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
xor ebx, ebx
xor edi, edi
xor esi, esi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov ebp, 0x80070000
test eax, eax
jne 0x14000de79
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
lea rcx, str.GetModuleFileName_failed__0x_08X__n
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.140010400
test ebx, ebx
js 0x14000df87
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
test rax, rax
je 0x14000de91
mov rdi, rax
jmp 0x14000deaf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
lea rcx, str.OpenSCManager_failed__0x_08X__n
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.140010400
test ebx, ebx
js 0x14000df75
lea rax, [0x140012b30]
mov r9d, 0x14
mov qword [rsp + 0x60], rax
lea r8, [0x140013350]
lea rax, str..LocalSystem
mov rcx, rdi
mov qword [rsp + 0x58], rax
lea rdx, str.PerceptionSimulation
lea rax, str.rpcss
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
and qword [rsp + 0x48], rsi
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
je 0x14000df2e
mov rsi, rax
jmp 0x14000df4c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
lea rcx, str.CreateService_failed__0x_08X__n
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.140010400
test ebx, ebx
js 0x14000df63
lea rdx, str.PerceptionSimulation
lea rcx, str._ls_is_installed.
call fcn.140010400
test rsi, rsi
je 0x14000df75
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000dfc8
test rdi, rdi
je 0x14000df87
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000dfb2
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000f200
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, ebp
test eax, eax
cmovle ecx, eax
call fcn.1400040d0
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, ebp
test eax, eax
cmovle ecx, eax
call fcn.1400040d0
int3
Function at 0x14000f228
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140019760], eax
call fcn.14000fbf8
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140019760], 0
jne case.default.0x14000f27e
mov ecx, 1
call fcn.14000fbf8
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
in al, dx
add ch, byte [rbp - 2]
std
mov bh, 0xeb
push rsp
ja 0x1400296b4
and al, 0x5a
invalid
invalid
movabs byte [0x9e4f97258e9616c8], al
movabs al, byte [0xbd7ec0dd41024ea]
jge 0x140029657
invalid
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop rax
inc dword [rdx]
add dword [rdi + rdi*8 + 5], ebx
add ebp, dword [rsi - 1]
invalid
xchg bh, bh
prefetchw byte [rdi + rdi*8 - 0x70f2ef]
adc byte [rsi], cl
invalid
test edi, edi
adc dword [rax], edx
xchg bh, bh
adc byte [rdi], cl
invalid
or al, 0xa
jb 0x14003f6cb
jmp qword [rsi]
sbb byte es:[rbp - 1], bh
invalid
inc dword [rdx]
add dword [rdi - 1], ecx
invalid
inc dword ss:[rsp + rax]
xor eax, 0x310404ff
xor edi, edi
add eax, 0x5ff2f05
xor edi, edi
add eax, 0x5ff2f05
invalid
or dword [rdx], ecx
and al, 0xff
or byte [rax], cl
invalid
invalid
Function at 0x140002d10
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 fcn.140004b30
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.140004b30
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 0x140002d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002eb0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002db0
mov rcx, rbx
call fcn.1400037d0
mov rdi, rax
test rax, rax
je 0x140002ed2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003910
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002eb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e60
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d10
nop dword [rax]
xor esi, esi
jmp 0x140002dd8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003440
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000349c
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 0x140003493
test rsi, rsi
je 0x140003493
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003478
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 0x1400037d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000384d
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 0x140003844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037f0
add rax, 0x28
cmp rax, r9
jne 0x140003830
xor eax, eax
ret

Function at 0x140003850
Capabilities:
Parse pe header

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

Function at 0x140003910
Capabilities:
Parse pe header

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