joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400152a0
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x178
xor eax, eax
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x160], 0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r8d, 0x130
mov dword [rsp + 0x28], eax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x30], 0x130
mov ecx, 2
mov edx, dword [rsp + 0x28]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0
jne 0x140015318
mov dword [rsp + 0x174], 0
jmp 0x1400153c6
mov rcx, qword [rsp + 0x160]
lea rdx, [rsp + 0x30]
call sub.KERNEL32.dll_Process32First
cmp eax, 0
jne 0x140015351
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x174], 0
jmp 0x1400153c6
jmp 0x140015356
mov rcx, qword [rsp + 0x168]
call fcn.140005eb0
lea rcx, [rsp + 0x30]
add rcx, 0x2c
mov rdx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
cmp eax, 0
jne 0x14001538d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x2c], eax
jmp 0x1400153ad
jmp 0x140015392
mov rcx, qword [rsp + 0x160]
lea rdx, [rsp + 0x30]
call sub.KERNEL32.dll_Process32Next
cmp eax, 0
jne 0x140015356
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x2c]
mov dword [rsp + 0x174], edx
mov eax, dword [rsp + 0x174]
add rsp, 0x178
ret
Function at 0x1400197a0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
sub rsp, 0x70
mov rax, rcx
xor r10d, r10d
mov r11d, r10d
xor r10d, r10d
mov rsi, rcx
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x60], dl
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x50], r8
mov r8, rcx
mov qword [rsp + 0x38], rcx
mov rcx, r8
mov edx, r10d
mov r8d, 0x40
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r11
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
call fcn.1400198d0
xor r10d, r10d
mov edx, r10d
lea rcx, [0x140046b12]
mov qword [rsp + 0x20], rax
call fcn.140019900
mov rcx, qword [rax]
mov rdx, qword [rsp + 0x20]
mov qword [rdx], rcx
mov rax, qword [rax + 8]
mov qword [rdx + 8], rax
mov rcx, qword [rsp + 0x38]
mov edx, 4
call fcn.1400198d0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.1400198d0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
mov qword [rax], rdx
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rsp + 0x38]
mov edx, recv
call fcn.1400198d0
xor edx, edx
mov rcx, rax
mov r8d, 8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x38]
mov edx, recv
call fcn.1400198d0
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
add rsp, 0x70
pop rsi
ret
Function at 0x140021b00
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x23], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x480], 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
call fcn.140025dd0
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 0x100
jae 0x140021bc9
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x24], 8
jae 0x140021ba4
xor eax, eax
mov ecx, dword [rsp + 0x28]
shr ecx, 1
mov edx, dword [rsp + 0x28]
and edx, 1
sub eax, edx
and eax, 0xedb88320
xor ecx, eax
mov dword [rsp + 0x28], ecx
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x140021b6c
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x2c]
mov r8d, edx
mov dword [rcx + r8*4 + 0x78], eax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x140021b4e
add rsp, 0x38
ret
Function at 0x140034790
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], rcx
mov dword [rsp + 4], 0
mov eax, dword [rsp + 0x14]
or eax, 0x100
mov dword [rsp + 0x14], eax
xor eax, eax
mov ecx, dword [rsp + 0x14]
and ecx, 1
mov dword [rsp], ecx
mov ecx, dword [rsp + 0x14]
shr ecx, 1
mov dword [rsp + 0x14], ecx
mov rdx, qword [rsp + 0x18]
mov r8, qword [rsp + 8]
mov ecx, dword [rsp + 0x14]
mov r9d, ecx
movzx ecx, word [r8 + r9*2]
sub eax, dword [rsp]
and eax, 0x7ff
xor ecx, eax
shr ecx, 4
mov eax, ecx
mov r8d, eax
mov eax, dword [rdx + r8*4]
add eax, dword [rsp + 4]
mov dword [rsp + 4], eax
cmp dword [rsp + 0x14], 2
jae 0x1400347b7
mov eax, dword [rsp + 4]
add rsp, 0x20
ret
Function at 0x1400370e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
xor edx, edx
mov qword [rsp + 0x1c8], rcx
mov word [rsp + 0x1c6], 0x202
lea rax, [rsp + 0x28]
mov rcx, rax
mov r8d, 0x198
mov qword [rsp + 0x20], rax
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
mov rdx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
je 0x140037139
mov byte [rsp + 0x1d7], 0
jmp 0x140037141
mov byte [rsp + 0x1d7], 1
mov al, byte [rsp + 0x1d7]
and al, 1
movzx eax, al
add rsp, 0x1d8
ret

Function at 0x140037280
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], 0xffffffffffffffff
mov byte [rsp + 0x3f], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140037343
mov rax, qword [rsp + 0x30]
mov r8d, dword [rax + 0xc]
mov rax, qword [rsp + 0x30]
mov edx, dword [rax + 8]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400372e7
jmp 0x140037343
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140037326
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140037330
mov byte [rsp + 0x3f], 1
jmp 0x140037343
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x1400372a6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test byte [rsp + 0x3f], 1
je 0x140037366
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov al, byte [rsp + 0x3f]
and al, 1
movzx eax, al
add rsp, 0x58
ret
Function at 0x14003c710
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x3a0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x318], 0xfffffffffffffffe
mov rax, rcx
mov qword [rbp + 0x310], rcx
mov qword [rbp + 0x308], rdx
mov qword [rbp + 0x300], 0
mov byte [rbp + 0x2ff], 0
mov qword [rbp + 0x18], rcx
mov qword [rbp + 0x10], rax
call fcn.140005ae0
xor r8d, r8d
lea rcx, [rbp + 0xc0]
mov edx, 0x238
mov qword [rbp + 8], rdx
mov dl, r8b
mov r8, qword [rbp + 8]
mov qword [rbp], rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x308]
mov r8, qword [sym.imp.KERNEL32.dll_GetProcessId]
mov qword [rbp - 8], rax
call r8
mov dword [rbp - 0xc], eax
jmp 0x14003c79b
mov eax, dword [rbp - 0xc]
mov dword [rbp + 0xbc], eax
mov dword [rbp + 0xc0], 0x238
mov edx, dword [rbp + 0xbc]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp - 0x18], rax
jmp 0x14003c7c7
mov rax, qword [rbp - 0x18]
mov qword [rbp + 0x300], rax
mov rcx, qword [rbp + 0x300]
lea rdx, [rbp + 0xc0]
call sub.KERNEL32.dll_Module32First
mov dword [rbp - 0x1c], eax
jmp 0x14003c7ed
mov eax, dword [rbp - 0x1c]
cmp eax, 0
jne 0x14003c824
mov rcx, qword [rbp + 0x300]
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14003c80e
mov byte [rbp + 0x2ff], 1
mov dword [rbp + 0xb8], 1
jmp 0x14003c983
jmp 0x14003c829
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0x58]
xor r8d, r8d
call fcn.14003cb20
jmp 0x14003c841
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x78]
call fcn.14003cb60
jmp 0x14003c853
lea rcx, [rbp + 0x78]
lea rdx, [rbp + 0x98]
call fcn.14003cbd0
jmp 0x14003c868
lea rcx, [rbp + 0x78]
call fcn.14003cc30
lea rcx, [rbp + 0x58]
call fcn.14003cc30
mov rcx, qword [rbp + 0x18]
call fcn.14003cc50
mov qword [rbp - 0x28], rax
jmp 0x14003c88c
mov rax, qword [rbp - 0x28]
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x98]
call fcn.140004f10
jmp 0x14003c8a9
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x30]
mov rdx, rax
mov qword [rbp - 0x30], rax
call fcn.140004150
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x38], rax
call fcn.140004200
mov rdx, qword [rbp + 0xd8]
lea rax, [rbp + 0x28]
mov rcx, rax
mov qword [rbp - 0x40], rax
call fcn.1400044e0
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x48], rax
call fcn.140004500
mov rcx, qword [rbp + 0x50]
mov qword [rcx + 0x20], rax
mov r8d, dword [rbp + 0xe0]
mov edx, r8d
lea rax, [rbp + 0x20]
mov rcx, rax
mov qword [rbp - 0x50], rax
call fcn.140004510
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x58], rax
call fcn.140004500
mov rcx, qword [rbp + 0x50]
mov qword [rcx + 0x28], rax
lea rcx, [rbp + 0x98]
call fcn.140004200
mov rcx, qword [rbp + 0x300]
lea rdx, [rbp + 0xc0]
call sub.KERNEL32.dll_Module32Next
mov dword [rbp - 0x5c], eax
jmp 0x14003c94c
mov eax, dword [rbp - 0x5c]
cmp eax, 0
jne 0x14003c829
mov rcx, qword [rbp + 0x300]
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x14003c96d
mov byte [rbp + 0x2ff], 1
mov dword [rbp + 0xb8], 1
jmp 0x14003c983
test byte [rbp + 0x2ff], 1
jne 0x14003c999
mov rcx, qword [rbp + 0x18]
call fcn.140005e60
mov rax, qword [rbp + 0x10]
add rsp, 0x3a0
pop rbp
ret
Function at 0x140040850
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x28], rax
call fcn.1400129b0
jmp 0x140040878
mov qword [rbp - 0x18], recv
mov rdx, qword [rbp - 0x18]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call rax
mov qword [rbp - 0x30], rax
jmp 0x1400408a4
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x1400408da
xor edx, edx
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
add rsp, 0x50
pop rbp
ret

Function at 0x140041d00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x98
mov rax, qword [rsp + 0xc0]
and r9b, 1
mov byte [rsp + 0x96], r9b
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x7c], ecx
cmp dword [rsp + 0x7c], 0
jne 0x140041d47
mov byte [rsp + 0x97], 0
jmp 0x140041e8a
xor edx, edx
mov qword [rsp + 0x70], 0
mov r8d, dword [rsp + 0x7c]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x70], rax
cmp rax, 0
jne 0x140041d7e
mov byte [rsp + 0x97], 0
jmp 0x140041e8a
cmp qword [rsp + 0x70], 0
jne 0x140041d97
mov byte [rsp + 0x97], 0
jmp 0x140041e8a
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rax
call fcn.1400044e0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rax
call fcn.140004530
xor r8d, r8d
mov ecx, r8d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x48]
mov dword [rsp + 0x44], r8d
mov r8, r9
mov r9, rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140041e2f
mov byte [rsp + 0x97], 0
jmp 0x140041e8a
cmp qword [rsp + 0xc0], 0
je 0x140041e4e
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test byte [rsp + 0x96], 1
je 0x140041e82
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140041e82
mov byte [rsp + 0x97], 0
jmp 0x140041e8a
mov byte [rsp + 0x97], 1
mov al, byte [rsp + 0x97]
and al, 1
movzx eax, al
add rsp, 0x98
ret

Function at 0x140042b60
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140044a34
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140047130]
cmp byte [rcx + rax], 0
je 0x140044a34
dec r8
sub rdx, 1
jne 0x140044a1a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x6dadcf80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dafe5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dadd108
mov rax, qword [0x6dafe5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dadcfcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dadd055
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dadcfb0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dadd13d
mov rax, qword [0x6dafe5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dafe5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dadd120
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dadd04e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dadd0b0
add dword [0x6dafe5e4], 1
cmp edi, 8
jae 0x6dadd083
test dil, 4
jne 0x6dadd0f4
test edi, edi
je 0x6dadd078
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dadd10f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dadd078
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dadd09c
jmp 0x6dadd078
add rsi, qword [0x6dafe5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dadd04e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dadd078
xor esi, esi
jmp 0x6dadcfd7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dadd078
mov rax, qword [0x6dafe5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dadd890
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dafe8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dafe8a0]
test rbx, rbx
je 0x6dadd8e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6dadd8db
test rsi, rsi
je 0x6dadd8db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dadd8c0
lea rcx, [0x6dafe8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6daddb20
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6daddb30
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6daddb40
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6daddb81
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6daddb78
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6daddb83
add rax, 0x28
cmp rax, r9
jne 0x6daddb64
xor eax, eax
ret

Function at 0x6daddc20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dafb1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6daddc8d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daddc8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daddc8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daddc84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daddc8f
add rax, 0x28
cmp rax, r9
jne 0x6daddc70
xor eax, eax
add rsp, 0x28
ret

Function at 0x6daddd90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dafb1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6dadddb0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daddda8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dadde0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dadde04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dadde14
add rax, 0x28
cmp rax, r9
jne 0x6dadddf0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6dadde30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dafb1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dadde9e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dadde9e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dadde9e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dadde9e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dadde95
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6daddea5
add rcx, 0x28
cmp rcx, rax
jne 0x6dadde80
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6daddeb8
jmp 0x6dadde9e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6daddec6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dadde9e
test r9d, r9d
jg 0x6daddeb0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dade200
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000e9b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor esi, esi
mov r14, r9
mov qword [r8 + 0x28], rsi
mov rbx, r8
mov rbp, rdx
test rdx, rdx
jne 0x14000e9e2
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r15
call qword [rax]
movzx edx, bp
mov r8, r14
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14000ead7
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14000ead7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000eace
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov qword [rbx + 0x28], rsi
cmp qword [rbx + 0x20], rdi
jl 0x14000eaac
cmp rdi, 1
jne 0x14000ea6a
movzx ecx, byte [r14]
mov rax, qword [rbx + 0x18]
mov byte [rax], cl
inc qword [rbx + 0x28]
jmp 0x14000eac9
cmp rdi, 2
jne 0x14000ea81
movzx ecx, word [r14]
mov rax, qword [rbx + 0x18]
mov word [rax], cx
add qword [rbx + 0x28], rdi
jmp 0x14000eac9
cmp rdi, 4
jne 0x14000ea96
mov ecx, dword [r14]
mov rax, qword [rbx + 0x18]
mov dword [rax], ecx
add qword [rbx + 0x28], rdi
jmp 0x14000eac9
cmp rdi, 8
jne 0x14000eaac
mov rcx, qword [r14]
mov rax, qword [rbx + 0x18]
mov qword [rax], rcx
add qword [rbx + 0x28], rdi
jmp 0x14000eac9
test eax, eax
je 0x14000eac9
mov rdx, rdi
mov rcx, rbx
call fcn.140010780
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.1400167b0
mov esi, 1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x48]
mov rax, rsi
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x14000f430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
test rcx, rcx
je 0x14000f56f
cmp word [rcx], 0
je 0x14000f56f
lea rdx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rbp - 0x60], rdx
lea rsi, vtable.CVolObject.0
mov qword [rbp - 0x60], rsi
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea rax, vtable.CWString.0
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
lea r14, vtable.CVolMem.0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x10], 0x40
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x10], 0xfe
cmp word [rcx], di
je 0x14000f526
cmp word [rcx + 2], di
je 0x14000f526
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x14000f4e0
cmp word [rcx + r8*2 - 2], 0x5c
jne 0x14000f526
cmp word [rcx + r8*2 - 4], 0x3a
je 0x14000f526
dec r8
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.1400118e0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
jne 0x14000f526
lea rcx, [0x1400308f8]
cmp qword [rbp - 0x18], 0
cmovne rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rbx, rdi
cmp eax, 0xffffffff
setne bl
lea rax, [rbp - 0x40]
mov qword [rbp + 0x20], rax
mov qword [rbp - 0x40], r14
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14000f556
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x40]
call qword [r8 + 0x18]
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x60], rsi
mov rax, rbx
jmp 0x14000f571
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret