joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002830a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140028300
cmp r11, r10
ja 0x140028386
cmp r10, rdx
ja 0x140028398
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140028302
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400282e0
jmp 0x140028367
ja 0x14002830a
mov r11, r10
cmp rax, r8
jne 0x1400282a7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002836b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140028340
mov r8, r10
sub ecx, r9d
jns 0x14002835e
jmp 0x14002836d
cmp r10, rdx
je 0x14002837a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002836d
xor al, 1
cmp r8, rdx
jne 0x140028320
jmp 0x14002836d
xor eax, eax
jmp 0x14002836d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002bc50
lea r8, str._O_t_
mov rcx, r11
mov rdx, r10
call fcn.14002c0b0
lea r8, str._O_t_
mov rcx, r10
call fcn.14002c0a0
int3

Function at 0x140029d04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140029d4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029d4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029d4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029d4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140029d4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140029d50
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4db4f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dbef2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc500108]
test eax, eax
je 0x2fc4dbf8a
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc500110]
mov qword [rbp - 8], rax
jmp 0x2fc4dbf6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dbf62
cmp qword [rbp - 0x10], 0
je 0x2fc4dbf62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dbf28
lea rax, [0x2fc5000e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dbf8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dc090
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dc0b8
mov eax, 0
jmp 0x2fc4dc106
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dc0e1
mov eax, 0
jmp 0x2fc4dc106
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dc101
mov eax, 0
jmp 0x2fc4dc106
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dc10c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dc18a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dc181
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dc181
mov rax, qword [rbp - 8]
jmp 0x2fc4dc19f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dc154
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14011b990]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14011b9a0]
mov dword [rax], 1
mov rax, qword [0x14011b9b0]
mov dword [rax], 1
mov rax, qword [0x14011b8f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14011b980]
mov dword [0x14012e00c], 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 [0x14011ba70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14011ba50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14011b8d0]
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 0x140001481
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8d, 1
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.fwrite
cmp rax, 1
je 0x1400014c7
mov eax, 0xffffffff
jmp 0x1400014cc
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140002512
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0x1505
jmp 0x140002552
mov rax, qword [rbp - 0x10]
shl rax, 5
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rdx, rax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x10], rax
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movsx rax, al
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140002530
mov rax, qword [rbp - 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x140014866
Capabilities:
Terminate thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov edx, eax
lea rax, [rbp - 0x30]
mov r8d, edx
lea rdx, str.libusb_init_08X
mov rcx, rax
call sym.sprintf_7
lea rax, [rbp - 0x30]
mov r9, rax
mov r8d, 1
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140014aac
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
test eax, eax
je 0x1400148ec
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140014aad
mov eax, dword [0x1400f8c20]
sub eax, 1
mov dword [0x1400f8c20], eax
mov eax, dword [0x1400f8c20]
test eax, eax
jns 0x140014a7f
mov dword [rbp - 4], 0
jmp 0x14001493a
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 5
mov rdx, rax
lea rax, sym.unsupported_exit
mov rax, qword [rdx + rax]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x140014912
call sym.exit_polling
mov rax, qword [0x140130f48]
test rax, rax
je 0x1400149b6
mov rax, qword [0x140130f68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEvent]
call rax
mov rax, qword [0x140130f48]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
test eax, eax
je 0x140014998
mov rax, qword [0x140130f48]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [0x140130f48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [0x140130f48], 0
mov dword [rbp - 4], 0
jmp 0x140014a20
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, [0x140130f60]
mov rax, qword [rdx + rax]
test rax, rax
je 0x140014a1c
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, [0x140130f60]
mov rax, qword [rdx + rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, [0x140130f60]
mov qword [rdx + rax], 0
add dword [rbp - 4], 1
cmp dword [rbp - 4], 1
jle 0x1400149bf
mov rax, qword [0x140130f70]
test rax, rax
je 0x140014a50
mov rax, qword [0x140130f70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [0x140130f70], 0
mov rax, qword [0x140130f50]
test rax, rax
je 0x140014a7a
mov rax, qword [0x140130f50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [0x140130f50], 0
call sym.htab_destroy
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140014aad
nop
add rsp, 0x50
pop rbp
ret
Function at 0x140016b11
Capabilities:
Check if file exists

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rcx, rax
call sym._device_priv
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x10]
call sym._device_handle_priv
mov qword [rbp - 0x20], rax
mov eax, dword [0x140130f78]
test eax, eax
jne 0x140016b62
mov eax, 0xfffffffd
jmp 0x140016cbd
mov dword [rbp - 4], 0
jmp 0x140016cae
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
add rdx, 1
shl rdx, 5
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x140016caa
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
add rdx, 1
shl rdx, 5
add rax, rdx
add rax, 8
mov rax, qword [rax]
movzx eax, byte [rax]
cmp al, 3
jne 0x140016caa
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
add rdx, 1
shl rdx, 5
add rax, rdx
mov rax, qword [rax]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x140016c8e
mov ecx, 0
call sym.windows_error_str
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 4]
movsxd rcx, ecx
add rcx, 1
shl rcx, 5
add rax, rcx
mov rcx, qword [rax]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov edx, dword [rbp - 4]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rcx
lea r9, str.could_not_open_device__s__interface__d_:__s
lea r8, str.winusb_open
mov edx, 3
mov rcx, rax
call sym.usbi_log
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 2
je 0x140016c79
cmp eax, 5
je 0x140016c80
jmp 0x140016c87
mov eax, 0xfffffffc
jmp 0x140016cbd
mov eax, 0xfffffffd
jmp 0x140016cbd
mov eax, 0xffffffff
jmp 0x140016cbd
mov rax, qword [rbp - 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
shl rdx, 4
add rax, rdx
lea rdx, [rax + 8]
mov rax, qword [rbp - 0x28]
mov qword [rdx], rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x1f
jle 0x140016b6e
mov eax, 0
add rsp, 0x70
pop rbp
ret

Function at 0x140019a40
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_1
call sym.abort
nop
nop dword [rax]
Function at 0x140019ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140131204]
mov rbx, rcx
test esi, esi
jle 0x140019be0
mov rax, qword [0x140131208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140019afb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140019b85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140019ae0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140019c02
mov rax, qword [0x140131208]
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 [0x140131208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140019be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140019b7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140019b90
add dword [0x140131204], 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 [0x140131208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140019b7e
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 0x140019b08
mov rax, qword [0x140131208]
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 0x14001a1a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140131260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140131240]
test rbx, rbx
je 0x14001a1fc
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 0x14001a1f3
test eax, eax
jne 0x14001a1f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001a1d8
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 0x14001a410
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001a428
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001a430
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14001a440
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 0x14001a48d
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 0x14001a484
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001a48f
add rax, 0x28
cmp rax, r9
jne 0x14001a470
xor eax, eax
ret

Function at 0x14001a490
Capabilities:
Parse pe header

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

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

Function at 0x14001a5b0
Capabilities:
Parse pe header

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

Function at 0x14001a5f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14011b8f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001a610
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001a618
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001a610
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001a660
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001a657
test rcx, rcx
je 0x14001a610
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14001a648
xor eax, eax
ret
Function at 0x14001a670
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14011b8f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14001a762
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14001a770
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001a762
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14001a762
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14001a762
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 0x14001a7c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14001a7d8
add rdx, 0x28
cmp r10, rdx
jne 0x14001a7b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14001a7e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14001a7f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001a7ce
test ecx, ecx
jg 0x14001a7e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14002a9e0
Capabilities:
Hash data using sha256

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x6a09e667
mov rax, qword [rbp + 0x10]
add rax, 4
mov dword [rax], 0xbb67ae85
mov rax, qword [rbp + 0x10]
add rax, 8
mov dword [rax], 0x3c6ef372
mov rax, qword [rbp + 0x10]
add rax, 0xc
mov dword [rax], 0xa54ff53a
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov dword [rax], 0x510e527f
mov rax, qword [rbp + 0x10]
add rax, 0x14
mov dword [rax], 0x9b05688c
mov rax, qword [rbp + 0x10]
add rax, 0x18
mov dword [rax], 0x1f83d9ab
mov rax, qword [rbp + 0x10]
add rax, 0x1c
mov dword [rax], 0x5be0cd19
nop
pop rbp
ret