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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x14042a3d0]
xor ebp, ebp
cmp byte [rbx + 0x5f88], bpl
jne 0x14004666c
cmp dword [rbx + 0x5fb0], ebp
je 0x1400465b7
mov r8d, 0x359f
lea rdx, str.C:UsersNOinsDesktopimgui_menu_dissolved_thirdpartyimguiimgui.cpp
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140046665
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.14002c180
mov rdi, rax
test rax, rax
je 0x140046665
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400465f1
mov rcx, rax
call fcn.1400467c0
mov r8, qword [0x14042a3d0]
test r8, r8
je 0x14004665c
movsx rdx, word [r8 + 0x6110]
lea rcx, [r8 + 0x6114]
mov r9d, dword [r8 + 0x3f98]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140046651
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6110], cx
movsx rax, cx
lea rcx, [r8 + 0x6114]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x610c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f88], 1
movss xmm0, dword [rbx + 0x5f8c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140046709
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f8c], xmm0
jb 0x140046709
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x1400466f7
mov rax, qword [0x14042a3d0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f8c], ebp
call fcn.140046a40
lea rdx, [0x1400f501c]
mov rcx, rdi
mov rsi, rax
call fcn.14002bff0
mov rdi, rax
test rax, rax
je 0x1400466fe
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400466fe
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5f8c], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140046720
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14042a3d0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140046783
mov qword [rsp], rbx
lea rbx, [0x1400ea010]
nop dword [rax]
cmp r9b, 0x23
jne 0x140046763
cmp byte [r8], r9b
jne 0x140046763
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140046750
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5fa0]
not eax
mov r8, qword [r10 + 0x5fa8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1400467af
cmp dword [r8 + 8], eax
je 0x1400467b6
add r8, 0x48
cmp r8, rcx
jne 0x1400467a0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140071990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.140060620
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1400719e6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x140071a3d
mov ebp, 0x4b0000
jmp 0x140071a4b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140062c00
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x140071a61
mov eax, r12d
jmp 0x140071a6a
mov edx, edi
mov ecx, ebp
call fcn.140062c00
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x140071a86
shl esi, 0x10
mov ecx, esi
jmp 0x140071b75
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x140071ae4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.140060620
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x140071ad4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.140062ad0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.140060620
add ebx, eax
jmp 0x140071b7e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x140071af1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x140071b30
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.140060620
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x140071b35
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.140062ad0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.140060620
add ebx, eax
jmp 0x140071b7e
cmp eax, r12d
jge 0x140071b6e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.140060620
sub ebp, eax
sub r15d, esi
je 0x140071b6e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.140062ad0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.140060620
add ebx, eax
jmp 0x140071b7e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.140060620
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.140060620
Function at 0x1400bdc30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x140109018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1400bddcc
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1400bddcc
cmp r10d, r14d
jne 0x1400bdcd0
sub rbx, 0x10
jmp 0x1400bde14
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1400bdd42
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1400bdd04
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1400bdd0c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1400bdd2b
movzx edx, r11b
mov rcx, rsi
call fcn.1400bede0
test al, al
jne 0x1400bde25
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1400bf450
test al, al
jne 0x1400bde25
mov edx, dword [rsi + 0x64]
lea r9, [0x1400bf7b0]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1400bdd6e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1400bdab0
jmp 0x1400bddc2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1400bdab0
test dil, dil
je 0x1400bddba
cmp byte [rsi + 0x6a], 0
jne 0x1400bddba
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1400bde25
sub rbx, 0x10
jmp 0x1400bde14
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1400bde29
mov ebp, dword [rbx]
jmp 0x1400bdc90
mov al, 1
jmp 0x1400bde32
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400c9df0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1400c4180
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400c419c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c41f0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c4315
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400c4315
test rax, rax
je 0x1400c4315
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400c4315
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400c428a
lea rax, [0x1400c4370]
jmp 0x1400c42e3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400c4315
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c4303
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400c42b0
lea rax, [0x1400c4340]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400c432a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400c5900
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400c590b
xor eax, eax
ret
lea r11, [0x1400e7f50]
not ecx
cmp r8d, 8
jb 0x1400c59e1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400c5930
test r8d, r8d
je 0x1400c5a0d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400c59f0
not ecx
mov eax, ecx
ret
Function at 0x1400ca25c
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14034fb8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14034fb9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14034fb85
lea eax, [rcx + 1]
jmp 0x14034fbab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14034fbbe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14034fba4
sub eax, 3
jb 0x14034fbde
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14034fc2d
sar eax, 1
movsxd rbp, eax
jb 0x14034fc14
jmp 0x14034fbec
add ebx, ebx
jne 0x14034fbea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14034fc14
inc ecx
add ebx, ebx
jne 0x14034fbfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14034fc14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14034fc0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14034fbfc
add ecx, 2
jmp 0x14034fc19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14034fb42
jmp 0x14034fb8d
pop rsi
nop
push rsi
pop rdi
push rsi
nop
push rsi
pop rdi
mov rsi, 0x9ae00
mov dl, 0x1d
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14034fc79
cmp rsi, rcx
jae 0x14034fc81
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14034fc60
cmp al, 0x8f
ja 0x14034fc60
cmp byte [rsi - 2], 0xf
je 0x14034fc66
sub al, 0xe8
cmp al, 1
ja 0x14034fc4a
cmp rsi, rcx
jae 0x14034fc81
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14034fc50
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14034fc81
lodsb al, byte [rsi]
jmp 0x14034fc60
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x34c000]
mov eax, dword [rdi]
or eax, eax
je 0x14034fcea
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x34f1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14034fc8e
jns 0x14034fcc3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14034fccd
push rdi
pop rcx
nop
push rdi
nop
pop rdx
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14034fce4
mov qword [rbx], rax
add rbx, 8
jmp 0x14034fcae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
sub eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14034fd24
cmp al, 0xef
ja 0x14034fd16
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14034fcf6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14034fd05
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
nop
push rdi
pop rcx
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
nop
push rbx
pop rdx
push rdi
pop rcx
nop
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14034fd78
sub rsp, 0xffffffffffffff80
jmp 0x14009a338
Function at 0x140ab4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ab41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ab4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ab406f
add dl, dl
jne 0x140ab4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ab40f6
xor eax, eax
add dl, dl
jne 0x140ab40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ab41ad
add dl, dl
jne 0x140ab40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ab40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ab407e
mov eax, 1
add dl, dl
jne 0x140ab4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ab4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ab40fb
sub eax, ebx
mov ebx, 1
jne 0x140ab414c
mov ecx, 1
add dl, dl
jne 0x140ab412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ab413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ab4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ab407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ab4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ab4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ab415d
cmp eax, 0x7d00
jae 0x140ab419b
cmp eax, 0x500
jb 0x140ab4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ab407e
cmp eax, 0x7f
ja 0x140ab419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ab407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ab41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ab407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180004e1c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180004e8b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004e8b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180004e8b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180004e8b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180004e8b
cmp dword [rcx + 0x84], 0xe
jbe 0x180004e8b
cmp dword [rcx + 0xf8], 0
je 0x180004e8b
mov ecx, ebx
call fcn.180004f30
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180004d24
nop
cmp dword [rbp + 0x20], 0
jne 0x180004eec
call fcn.180006260
cmp eax, 1
jne 0x180004edc
xor dl, dl
jmp 0x180004ee6
call fcn.18000622c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180004ef7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180004f00
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180004e1c
Function at 0x180008388
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800083b8
xor eax, eax
jmp 0x18000847b
mov rbp, rbx
cmp word [rax], si
je 0x1800083dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800083c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800083c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800082a8
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x18000841e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800083b1
call fcn.180009680
mov rdi, rax
test rax, rax
jne 0x180008434
xor ecx, ecx
call fcn.180006860
jmp 0x180008413
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800082a8
test eax, eax
jne 0x180008465
mov rcx, rdi
call fcn.180006860
jmp 0x18000846f
xor ecx, ecx
call fcn.180006860
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000cf80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000cfa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000cfa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret