joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009e30
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 0x28]
mov rbx, rcx
mov ebp, edx
cmp edx, 0xffffffff
je 0x140009eb8
mov rax, qword [rcx + 0x30]
mov r12, qword [dbg.__acrt_iob_func]
nop dword [rax + rax]
cmp rsi, rax
jne 0x140009e96
mov rdi, qword [rbx + 0x20]
cmp rsi, rdi
je 0x140009e58
mov ecx, 2
sub rsi, rdi
call r12
mov rcx, qword [rbx + 0x20]
mov r8, rsi
mov edx, 1
mov r9, rax
call sym.fwrite
mov rsi, qword [rbx + 0x20]
mov rax, qword [rbx + 0x30]
mov qword [rbx + 0x28], rsi
cmp rsi, rax
je 0x140009e5d
movzx edx, bpl
jae 0x140009efa
mov byte [rsi], bpl
mov eax, edx
add qword [rbx + 0x28], 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdi, qword [rcx + 0x20]
cmp rsi, rdi
je 0x140009eeb
mov ecx, 2
sub rsi, rdi
call qword [dbg.__acrt_iob_func]
mov rcx, qword [rbx + 0x20]
mov r8, rsi
mov edx, 1
mov r9, rax
call sym.fwrite
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
xor edx, edx
mov eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ebp, edx
jmp 0x140009e58

Function at 0x14000c880
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
push rsi
push rbx
sub rsp, 0x38
movzx eax, byte [0x1400ff270]
test al, al
jne 0x14000c8a8
lea rbx, [0x1400ff270]
mov rcx, rbx
call sym.__cxa_guard_acquire
test eax, eax
jne 0x14000c9a8
movzx eax, byte [0x1400ff260]
test al, al
je 0x14000c970
cmp byte [0x1400ff268], 0
je 0x14000c920
movzx eax, byte [0x1400ff250]
lea rsi, [0x1400ff258]
test al, al
je 0x14000c930
lea rbx, [rsp + 0x28]
mov rdx, rsi
mov rcx, rbx
call method.sf::Lock.Lock_sf::Mutex_
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, rbx
call method.sf::Lock.Lock__
pxor xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x20]
mulsd xmm0, qword [0x1400ff278]
cvttsd2si rcx, xmm0
call method.sf.microseconds_long_long_
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x14000c8f5
lea rbx, [0x1400ff250]
lea rsi, [0x1400ff258]
mov rcx, rbx
call sym.__cxa_guard_acquire
test eax, eax
je 0x14000c8d2
mov rcx, rsi
call fcn.14000ca30
lea rcx, [sym.__tcf_0_4]
call dbg.atexit
mov rcx, rbx
call sym.__cxa_guard_release
jmp 0x14000c8d2
lea rbx, [0x1400ff260]
mov rcx, rbx
call sym.__cxa_guard_acquire
test eax, eax
je 0x14000c8b7
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
mov rcx, rbx
setbe byte [0x1400ff268]
call sym.__cxa_guard_release
jmp 0x14000c8b7
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pxor xmm1, xmm1
movsd xmm0, qword [0x1400cd620]
mov rcx, rbx
cvtsi2sd xmm1, qword [rsp + 0x28]
divsd xmm0, xmm1
movsd qword [0x1400ff278], xmm0
call sym.__cxa_guard_release
jmp 0x14000c8a8
Function at 0x140016010
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 0x140016080
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ff2e4]
mov rbx, rcx
test esi, esi
jle 0x1400161b0
mov rax, qword [0x1400ff2e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400160cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140016155
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400160b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400161d2
mov rax, qword [0x1400ff2e8]
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 [0x1400ff2e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400161b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001614e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140016160
add dword [0x1400ff2e4], 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 [0x1400ff2e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001614e
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 0x1400160d8
mov rax, qword [0x1400ff2e8]
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 0x140016740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ff340]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ff320]
test rbx, rbx
je 0x14001679c
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 0x140016793
test rsi, rsi
je 0x140016793
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016778
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 0x1400169b0
Capabilities:
Parse pe header

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

Function at 0x1400169e0
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 0x140016a2d
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 0x140016a24
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140016a2f
add rax, 0x28
cmp rax, r9
jne 0x140016a10
xor eax, eax
ret

Function at 0x140016a30
Capabilities:
Parse pe header

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

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

Function at 0x140016b50
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400d3a00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140016bb0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140016bb8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140016bb0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140016c00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140016bf7
test rcx, rcx
je 0x140016bb0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140016be8
xor eax, eax
ret

Function at 0x140016c10
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400d3a00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140016d02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140016d10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140016d02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140016d02
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140016d02
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 0x140016d65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140016d78
add rdx, 0x28
cmp rdx, r10
jne 0x140016d50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140016d87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140016d97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140016d6e
test ecx, ecx
jg 0x140016d80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140017220
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, [0x1400d2800]
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x140017250
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001f610
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x14001f658
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x1400ffea0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14001f63e

Function at 0x140021c60
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 0x140021c8c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400228b0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400cce80], 0
jne 0x1400229b6
mov byte [0x1400cce80], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14002298c
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 0x14002297d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400cd771]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140022978
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140022947
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 0x140022a4b
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 0x1400229b1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400229b1
Function at 0x1400822d0
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 0x140082318
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400822ea
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140094c50
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 0x140094c78
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 0x140094cc0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140094c90
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140094ccc
call rbp
cmp dword [rax], 4
je 0x140094c90
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 0x1400c87b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
add rsp, 0x1c8
ret
Function at 0x1400041c8
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14078c0c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rbx, dword [rcx + 0x3c]
mov r15, rcx
add rbx, rcx
mov r8d, 0x3000
xor ecx, ecx
mov edx, dword [rbx + 0x50]
lea rbp, [rbx + 0x108]
mov esi, dword [rbx + 0x3c]
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x14079c4e8], rax
mov rdx, r15
mov r8d, dword [rbx + 0x54]
mov rcx, rax
call fcn.14078bd08
mov eax, dword [rbx + 0x54]
xor edx, edx
mov rdi, qword [0x14079c4e8]
dec rax
div rsi
movzx edx, word [rbx + 6]
sub rdi, r15
xor r12d, r12d
add rdi, rbp
mov r11d, esi
mov r10d, r12d
lea r9d, [rax + 1]
imul r9d, esi
test dx, dx
je 0x14078c191
mov r8, rdi
lea rcx, [rbp + 8]
sub r8, rbp
xor edx, edx
mov dword [r8 + rcx + 0xc], r9d
mov eax, dword [rcx]
dec rax
div r11
mov edx, dword [r8 + rcx + 0x1c]
inc eax
imul eax, esi
mov dword [r8 + rcx + 8], eax
bt edx, 0x1d
jae 0x14078c17e
btr edx, 0x1f
mov dword [r8 + rcx + 0x1c], edx
movzx edx, word [rbx + 6]
add r9d, eax
inc r10d
add rcx, 0x28
cmp r10d, edx
jne 0x14078c151
movzx eax, dx
mov r14d, r12d
lea rcx, [rax + rax*4]
mov eax, dword [rdi + rcx*8 - 0x14]
add eax, dword [rdi + rcx*8 - 0x18]
mov dword [0x14079c4f0], eax
cmp word [rbx + 6], r12w
je 0x14078c1e1
lea rsi, [rbp + 0xc]
sub rdi, rbp
mov edx, dword [rsi]
mov ecx, dword [rsi + rdi + 8]
add rdx, r15
add rcx, qword [0x14079c4e8]
mov r8d, dword [rsi + rdi + 4]
call fcn.14078bd08
movzx eax, word [rbx + 6]
lea rsi, [rsi + 0x28]
inc r14d
cmp r14d, eax
jne 0x14078c1b7
mov rax, qword [0x14079c4e8]
lea r9, [rsp + 0x50]
mov r8d, 0x40
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov eax, dword [0x14079c8a0]
sub eax, dword [0x14079c890]
mov dword [rcx + 0x90], eax
mov eax, dword [0x14079c8a4]
mov dword [rcx + 0x94], eax
mov qword [rcx + 0xe8], r12
mov qword [rcx + 0xb0], r12
mov eax, dword [0x14079c880]
sub eax, dword [rcx + 0x30]
add eax, dword [0x14079c888]
mov dword [rcx + 0x28], eax
movzx eax, word [rbx + 6]
mov dword [rsp + 0x50], r12d
lea ecx, [rax + rax*4]
shl ecx, 3
sub ecx, r15d
add ecx, ebp
movsxd rdx, ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, r12d
cmp word [rbx + 6], r12w
je 0x14078c282
lea rcx, [rbp + 0x24]
mov eax, dword [rcx]
bt eax, 0x1d
jae 0x14078c274
btr eax, 0x1f
mov dword [rcx], eax
movzx eax, word [rbx + 6]
inc edx
add rcx, 0x28
cmp edx, eax
jne 0x14078c266
mov eax, dword [0x14079c8a0]
sub eax, dword [0x14079c890]
mov rbp, qword [rsp + 0x60]
mov dword [rbx + 0x90], eax
mov eax, dword [0x14079c8a4]
mov dword [rbx + 0x94], eax
mov qword [rbx + 0xe8], r12
mov qword [rbx + 0xb0], r12
mov eax, dword [0x14079c880]
sub eax, dword [rbx + 0x30]
add eax, dword [0x14079c888]
mov dword [rbx + 0x28], eax
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140793cd4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rsi, rdx
mov r12, rcx
test r8d, r8d
je 0x140793eb4
mov ecx, dword [rdx + 0xc]
test ecx, ecx
je 0x140793eb4
xor edi, edi
mov qword [rbp + 0xa8], rdi
mov eax, dword [rdx + 0x10]
mov r13d, dword [rdx]
add rax, r12
mov ebx, ecx
add r13, r12
add rbx, r12
mov qword [rsp + 0x30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
test rax, rax
jne 0x140793d4b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14078bd4c
test r15, r15
je 0x140793e57
mov rax, qword [r13]
xor r14d, r14d
xor ebx, ebx
test rax, rax
je 0x140793e38
mov rsi, qword [rsp + 0x30]
mov rdi, r13
jns 0x140793d88
movzx r13d, ax
jmp 0x140793d90
lea r13, [r12 + 2]
add r13, rax
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, r14d
mov qword [rsi + rcx*8], rax
test rax, rax
jne 0x140793e17
cmp dword [0x14079c8cc], 1
jne 0x140793e17
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14078bd4c
lea rcx, [rsp + 0x40]
call fcn.14079401c
lea rdx, [0x14078ad38]
lea rcx, [rsp + 0x40]
call fcn.14078bd70
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.14078bd70
lea rcx, [rsp + 0x40]
call fcn.14078bd98
mov rcx, qword [0x14079c870]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
inc r14d
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140793d80
mov rdi, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0x98]
inc rdi
mov qword [rbp + 0xa8], rdi
lea rax, [rdi + rdi*4]
lea rdx, [rsi + rax*4]
mov ecx, dword [rdx + 0xc]
test ecx, ecx
jne 0x140793d18
jmp 0x140793eb4
lea rcx, [rsp + 0x40]
call fcn.14079401c
lea rdx, [0x14078ad18]
lea rcx, [rsp + 0x40]
call fcn.14078bd70
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14078bd70
cmp dword [0x14079c8cc], 1
jne 0x140793eb4
lea rcx, [rsp + 0x40]
call fcn.14078bd98
mov rcx, qword [0x14079c870]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140793f18
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x458
call fcn.140793fd4
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14079c618], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [0x14079c618]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x14079c620], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [0x14079c620]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rcx, dword [0x14079c8d4]
add rax, rcx
add rsp, 0x458
ret