joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c480
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea r8, [rsp + 0x30]
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x1400c90d0]
mov rcx, 0xffffffff80000002
cmovae rdx, qword [0x1400c90d0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test eax, eax
jne 0x14005c511
cmp qword [rbx + 0x18], 8
mov eax, dword [rbx + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rbx
jb 0x14005c4db
mov rax, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14005c4e5
mov rdi, qword [rdi]
mov dword [rsp + 0x28], ecx
mov r9d, 1
mov rcx, qword [rsp + 0x30]
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x30]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14005c54c
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005c547
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005c56f
mov rcx, r8
call fcn.140061bc0
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rax
mov word [rbx], ax
mov eax, esi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x14005cef0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rdx + 0x10]
mov rbx, rcx
test rax, rax
je 0x14005cf7e
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x14005cf7e
add eax, eax
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x50], eax
jb 0x14005cf1b
mov rdx, qword [rdx]
cmp qword [r8 + 0x18], 8
lea eax, [r10 + r10]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], rdx
jb 0x14005cf32
mov r8, qword [r8]
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], r8
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14005cf6e
xor eax, eax
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rbx]
lea rdx, str.Problem_while_protecting_data.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov eax, 0x80004005
add rsp, 0x60
pop rbx
ret
Function at 0x14005cf90
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rdx + 8], 0
mov rsi, r9
mov r10, rdx
mov rdi, rcx
mov ebx, 0x80004005
je 0x14005d0a6
cmp dword [rdx], 0
jbe 0x14005d0a6
mov eax, dword [r8 + 0x10]
add eax, eax
cmp qword [r8 + 0x18], 8
mov dword [rsp + 0x50], eax
jb 0x14005cfe3
mov r8, qword [r8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], 4
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, r10
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14005d096
mov r8d, dword [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
shr r8, 1
call fcn.14000c670
mov rdx, rax
mov rcx, rsi
call fcn.1400090d0
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14005d092
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d08d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d08d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061bc0
xor ebx, ebx
jmp 0x14005d0a6
mov rcx, qword [rdi]
lea rdx, str.Problem_while_decrypting_the_data.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140061ba0
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005d530
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rsi
push r14
sub rsp, 0x38
mov r14, r9
mov rsi, rdx
test rdx, rdx
je 0x14005d601
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x30], rdi
mov ebp, r8d
mov dword [rsp + 0x58], r8d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
xor ebx, ebx
test rdi, rdi
mov eax, 0x8007000e
cmovne eax, ebx
je 0x14005d5ea
lfence
mov r9d, ebp
mov r8, rsi
mov edx, ebp
mov rcx, rdi
call fcn.14001a000
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 1]
xor edx, edx
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x14005d5d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x14005d5d1
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x14005d5e8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
mov eax, ebx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
ret
mov eax, 0x80004005
add rsp, 0x38
pop r14
pop rsi
ret

Function at 0x14005d920
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, dword [rdx]
mov rdi, rcx
mov rcx, qword [rdx + 8]
mov r15d, r9d
mov dword [rsp + 0x58], 4
mov rsi, r8
mov r14, rdx
test rcx, rcx
je 0x14005da10
test ebp, ebp
je 0x14005da10
lea rax, [rsp + 0x58]
xor r9d, r9d
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov edx, ebp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14005da00
mov qword [rsp + 0x50], rbx
mov ebx, dword [rsp + 0x58]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, [rsp + 0x58]
mov r8d, r15d
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, qword [r14 + 8]
mov edx, ebp
mov rbx, rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14005d9ec
mov ecx, dword [rsp + 0x58]
mov eax, 1
mov dword [rsi], ecx
mov qword [rsi + 8], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rcx, qword [rdi]
lea rdx, str.Problem_while_encoding_to_base64.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x14005d9d3
mov rcx, qword [rdi]
lea rdx, str.Problem_while_finding_the_count_of_elements_to_encode_in_base64.
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xor eax, eax
jmp 0x14005d9d8
Function at 0x14005db70
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r13, r8
mov r14, rdx
mov r12, rcx
mov dword [rsp + 0xd8], 0x80004005
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov edi, dword [rdx]
add edi, 8
mov r15d, edi
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [r14]
mov r8, qword [r14 + 8]
mov edx, r15d
mov rcx, rsi
call fcn.14001a000
test eax, eax
jne 0x14005dcc3
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [r13]
mov dword [rsp + 0x28], eax
mov rax, qword [r13 + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, r12
call sym.DiagsCap.exe_private:_void___cdecl_Hp::Bridge::Server::Services::Registration::CryptographyHelper::CreateTripleDESKey_unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_char____ptr64__unsigned_long_int__unsigned_char____ptr64____ptr64
mov eax, dword [r14]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14005dcf8
mov rcx, qword [rsp + 0xf0]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov qword [rcx + 8], rsi
mov dword [rsp + 0xd8], ebx
jmp 0x14005dc7c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005dc8c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005dc9c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005dcae
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
jle 0x14005dcd6
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0x60]
call fcn.14005ce90
lea rdx, [0x1400bf338]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14005dd0a
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xd8], eax
lea rcx, [rsp + 0x78]
call fcn.14005ce90
lea rdx, [0x1400bf338]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005dd30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r13, r9
mov r12, r8
mov rsi, rdx
mov r15, rcx
mov dword [rsp + 0xc8], 0x80004005
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov eax, dword [rdx]
inc eax
mov r14d, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rsi]
mov r8, qword [rsi + 8]
mov edx, r14d
mov rcx, rdi
call fcn.14001a000
test eax, eax
jne 0x14005de86
mov rax, qword [r13 + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov rcx, r15
call sym.DiagsCap.exe_private:_void___cdecl_Hp::Bridge::Server::Services::Registration::CryptographyHelper::CreateTripleDESKey_unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_long_long_unsigned___int64_____ptr64__unsigned_char____ptr64__unsigned_long_int__unsigned_char____ptr64____ptr64
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x14005debb
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
mov qword [rcx + 8], rdi
mov dword [rsp + 0xc8], ebx
jmp 0x14005de35
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14005de45
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005de55
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005de67
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
test eax, eax
jle 0x14005de99
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x60]
call fcn.14005ce90
lea rdx, [0x1400bf338]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14005decd
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x78]
call fcn.14005ce90
lea rdx, [0x1400bf338]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005e410
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r15d, r8d
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x18], rbx
mov r14, qword [rsp + 0x78]
mov qword [r14], rbx
lea rax, [r11 - 0x18]
mov qword [r11 - 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14005e49d
xor r9d, r9d
mov r8d, dword [rsp + 0x70]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14005e49d
mov qword [rsp + 0x20], r14
mov esi, 1
mov r9d, esi
mov r8, qword [rsp + 0x30]
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
cmovne ebx, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14005e4ad
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140060cc0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x20], 0x12c
xor edx, edx
mov r8d, 0x258
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor bl, bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140060d47
xor eax, eax
lea r8, [rsp + 0x30]
lea r9, str.SYSTEM
nop dword [rax]
movzx edx, word [r8 + rax*2]
inc rax
movzx ecx, word [r9 + rax*2 - 2]
sub edx, ecx
jne 0x140060d38
cmp rax, 7
jne 0x140060d20
movzx eax, bl
mov ecx, 1
test edx, edx
cmove eax, ecx
jmp 0x140060d4a
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140061ba0
add rsp, 0x2a0
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000eb80]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000eb90]
mov dword [rax], 1
mov rax, qword [0x14000eba0]
mov dword [rax], 1
mov rax, qword [0x14000eb20]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000eb70]
mov dword [0x140012020], 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 [0x14000ec50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ec30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000ead0]
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 0x140004fe0
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 0x140005050
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400120b4]
mov rbx, rcx
test esi, esi
jle 0x140005180
mov rax, qword [0x1400120b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000509b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005125
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005080
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400051a2
mov rax, qword [0x1400120b8]
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 [0x1400120b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005187
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000511e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005130
add dword [0x1400120b4], 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 [0x1400120b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000511e
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 0x1400050a8
mov rax, qword [0x1400120b8]
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 0x140005710
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140012100]
test rbx, rbx
je 0x14000576c
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 0x140005763
test rsi, rsi
je 0x140005763
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005748
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 0x140005980
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005998
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400059a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400059b0
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 0x1400059fd
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 0x1400059f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400059ff
add rax, 0x28
cmp rax, r9
jne 0x1400059e0
xor eax, eax
ret

Function at 0x140005a00
Capabilities:
Parse pe header

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

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

Function at 0x140005b20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000eb20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140005b3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140005b48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140005b3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140005b60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000eb20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140005b80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140005b88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140005b80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140005bd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140005bc7
test rcx, rcx
je 0x140005b80
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140005bb8
xor eax, eax
ret

Function at 0x140005be0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14000eb20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140005cd2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140005ce0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005cd2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140005cd2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140005cd2
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 0x140005d35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140005d48
add rdx, 0x28
cmp rdx, r10
jne 0x140005d20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140005d57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140005d67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140005d3e
test ecx, ecx
jg 0x140005d50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret