joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019220
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [0x1400b6168]
mov rsi, rcx
mov rcx, rbp
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140019340
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140019340
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140019340
test byte [rbx + 0x44], 4
jne 0x140019360
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400b6178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400193a0
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x1400193d8
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x1400192c7
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140019380
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400192db
call rsi
mov qword [rbx + 0x30], 0
lea rcx, [rbx + 0x38]
test rdi, rdi
je 0x1400193b8
mov rax, qword [rbx + 8]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400193ea
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x1400193c8
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x16
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x1400192c3
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x14001932e
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140019295
jmp 0x14001929c
call sym.pthread_mutex_destroy
jmp 0x1400192fc
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140019324
mov rcx, rbp
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x14001932e
call sym.replace_spin_keys.part.0
nop

Function at 0x14001c470
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14001c49c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14001d0c0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400b8ee0], 0
jne 0x14001d1c6
mov byte [0x1400b8ee0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001d19c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001d18d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400bac11]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001d188
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001d157
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001d25b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001d1c1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001d1c1

Function at 0x14007c390
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 rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007c3d8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c3aa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008edb0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008edd8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008ee20
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008edf0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008ee2c
call rbp
cmp dword [rax], 4
je 0x14008edf0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140011226
Capabilities:
Terminate process

Disassembly:
jmp 0x140015690
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112c6
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400169e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016a00
xor al, al
jmp 0x140016a81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016a13
xor al, al
jmp 0x140016a81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140016a3d
xor al, al
jmp 0x140016a81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016a51
xor al, al
jmp 0x140016a81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016a63
xor al, al
jmp 0x140016a81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140016a7f
xor al, al
jmp 0x140016a81
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113d9
Capabilities:
Create pipe

Disassembly:
jmp 0x140013b60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140020038]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14002616e]
call fcn.140011406
mov dword [rbp + 4], 0xffffffff
lea rax, [rbp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rbp + 0x28], 0
mov dword [rbp + 0x2c], 0
lea rax, [0x1400201a0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20000
mov r8d, 0x10000
mov rdx, qword [rbp + 0x28]
mov ecx, 0x12c
call fcn.14001134d
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140013c02
jmp 0x140013d83
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x1400201a0]
mov r8, qword [rcx]
mov edx, eax
mov rcx, qword [rbp + 0x120]
call fcn.140011078
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140013c2e
jmp 0x140013d83
mov rax, qword [rbp + 0x120]
mov rax, qword [rax]
mov qword [0x1400201a8], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 3
lea rcx, str..pipeioring_in
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [section..data], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 3
lea rcx, str..pipeioring_out
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [0x140020008], rax
cmp qword [section..data], 0xffffffffffffffff
je 0x140013cd9
cmp qword [0x140020008], 0xffffffffffffffff
jne 0x140013ce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140013d83
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..pipeioring_in
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140020010], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..pipeioring_out
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140020018], rax
cmp qword [0x140020010], 0xffffffffffffffff
je 0x140013d71
cmp qword [0x140020018], 0xffffffffffffffff
jne 0x140013d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x140013d83
mov dword [rbp + 4], 0
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001d460]
call fcn.14001137a
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140066ab0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140066ac0]
mov dword [rax], 1
mov rax, qword [0x140066ad0]
mov dword [rax], 1
mov rax, qword [0x140066a60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140066aa0]
mov dword [0x14006a00c], 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 [0x140066b80]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140066b60]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140066a10]
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 0x14000153b
Capabilities:
Change the wallpaper

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call dbg.__main
lea rax, section..rdata
mov rdx, rax
lea rax, str.378f9
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000157d
lea rax, str.error._sorry._n
mov rcx, rax
call sym.printf
jmp 0x14000157b
mov dword [rbp - 4], 0
jmp 0x1400015b3
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
movzx eax, byte [rax + rdx]
movsx edx, al
mov rax, qword [rbp - 0x10]
mov r8d, edx
lea rdx, [0x140066018]
mov rcx, rax
call sym.fprintf
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x59fd8
jle 0x140001586
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
mov ecx, 0xc8
call sym.malloc
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xc8
mov rcx, rax
call sym.getcwd
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov dword [rax], 0x3837335c
mov dword [rax + 3], 0x396638
mov rax, qword [rbp - 0x18]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cdqe
add rax, rax
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x140001672
lea rax, str.Error_allocating_memory._n
mov rcx, rax
call sym.wprintf
mov eax, 1
jmp 0x14000173d
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 0x1c]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
test eax, eax
jne 0x1400016d3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error_converting_string._Error_code:__lu_n
mov rcx, rax
call sym.wprintf
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.free
mov eax, 1
jmp 0x14000173d
mov rax, qword [rbp - 0x18]
mov rdx, rax
lea rax, [0x1400660ac]
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x28]
mov r9d, 3
mov r8, rax
mov edx, 0
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_SystemParametersInfoW]
call rax
test eax, eax
je 0x14000171e
lea rax, [0x1400660b0]
mov rcx, rax
call sym.wprintf
jmp 0x140001738
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Error_setting_wallpaper._Error_code:__lu_n
mov rcx, rax
call sym.wprintf
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x140001a10
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 0x140001a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14006a094]
mov rbx, rcx
test esi, esi
jle 0x140001bb0
mov rax, qword [0x14006a098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001acb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ab0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001bd2
mov rax, qword [0x14006a098]
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 [0x14006a098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b60
add dword [0x14006a094], 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 [0x14006a098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b4e
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 0x140001ad8
mov rax, qword [0x14006a098]
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 0x140002140
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14006a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14006a0e0]
test rbx, rbx
je 0x14000219c
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 0x140002193
test rsi, rsi
je 0x140002193
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002178
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 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400023e0
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 0x14000242d
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 0x140002424
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000242f
add rax, 0x28
cmp rax, r9
jne 0x140002410
xor eax, eax
ret

Function at 0x140002430
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024c0
mov rdx, qword [0x140066a60]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024ae
cmp word [rax + 0x18], 0x20b
jne 0x1400024ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400024c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002499
add rbx, 0x28
cmp rbx, rdi
je 0x1400024c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002490
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 0x1400024d0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002550
Capabilities:
Parse pe header

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

Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140066a60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002600
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025f7
test rcx, rcx
je 0x1400025b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025e8
xor eax, eax
ret
Function at 0x140002610
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140066a60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002670
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002678
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002670
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002670
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 0x1400026c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026d0
add rdx, 0x28
cmp r9, rdx
jne 0x1400026b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140066a60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002702
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002710
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002702
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002702
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002702
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 0x140002765
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002778
add rdx, 0x28
cmp rdx, r10
jne 0x140002750
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002787
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002797
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000276e
test ecx, ecx
jg 0x140002780
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x415620
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4157ab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433220
xorps xmm15, xmm15
mov r14, qword [0x0062c5a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415685
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415694
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4156b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4156c3
cmp rbx, 0x1000
jae 0x41568b
jmp 0x41572d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4156d5
xor edx, edx
jmp 0x415724
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00433220
xorps xmm15, xmm15
mov r14, qword [0x0062c5a0]
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]
test dl, dl
jne 0x4156b9
jmp 0x4156a8
call fcn.00465a00
xorps xmm15, xmm15
mov r14, qword [0x0062c5a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004378a0
lea rax, [0x004f8923]
mov ebx, 0x18
nop dword [rax]
call fcn.00438120
mov rax, qword [rsp + 0x38]
call fcn.00437e60
lea rax, [0x004f8e3e]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00438120
mov rax, qword [rsp + 0x30]
call fcn.00437e60
call fcn.00437ae0
call fcn.00437900
lea rax, [0x004fb066]
mov ebx, 0x21
call fcn.00435f00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00462300
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415620