joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003774
Capabilities:
Parse pe header

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

Function at 0x140006494
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 0x140006503
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006503
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006503
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006503
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006503
cmp dword [rcx + 0x84], 0xe
jbe 0x140006503
cmp dword [rcx + 0xf8], 0
je 0x140006503
mov ecx, ebx
call fcn.1400065c0
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.140006390
nop
cmp dword [rbp + 0x20], 0
je 0x140006551
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000655c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006494

Function at 0x1400066a4
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 0x140006503
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006503
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006503
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006503
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006503
cmp dword [rcx + 0x84], 0xe
jbe 0x140006503
cmp dword [rcx + 0xf8], 0
je 0x140006503
mov ecx, ebx
call fcn.1400065c0
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.140006390
nop
cmp dword [rbp + 0x20], 0
je 0x140006551
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000655c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006494
Function at 0x14000f974
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000f9fb
mov rsi, rbx
cmp word [rax], bp
je 0x14000f9ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000f9a4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000f9a0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000d1b4
mov rdi, rax
test rax, rax
je 0x14000f9e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140016520
mov rbp, rdi
xor ecx, ecx
call fcn.14000c2d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015d90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015db8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015db8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000b1a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rbx
sub rsp, 0xb0
mov qword [rbp - 0x18], rcx
call fcn.18000ad40
mov edx, dword [0x18022a79c]
mov rcx, rax
movsxd r8, dword [rax + 0x3c]
mov dword [0x18022a798], 0x4f1
mov r9d, dword [rax + r8 + 0x88]
mov r8d, r9d
mov dword [0x18022a798], 0xfffff88b
mov r9d, dword [rax + r8 + 0x20]
mov r10d, r9d
mov r11, rcx
add r11, r10
mov r9d, dword [rax + r8 + 0x18]
cmp r9d, 0
mov qword [rbp - 0x20], r11
mov dword [rbp - 0x24], edx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x38], r8
mov dword [rbp - 0x3c], r9d
je 0x18000b245
xor eax, eax
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x38]
mov r8d, dword [rcx + rdx + 0x24]
mov r9d, r8d
add rcx, r9
mov r8d, dword [rbp - 0x24]
add r8d, 0xfffffd03
mov qword [rbp - 0x48], rcx
mov dword [rbp - 0x4c], r8d
mov dword [rbp - 0x50], eax
jmp 0x18000b25c
mov dword [0x18022a79c], 0x1abe
xor eax, eax
mov ecx, eax
mov qword [rbp - 0x58], rcx
jmp 0x18000b3e6
mov eax, dword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
mov edx, dword [rbp - 0x4c]
xor r8d, r8d
mov r9d, eax
mov r10d, r9d
mov r11, qword [rbp - 0x20]
mov r9d, dword [r11 + r10*4]
mov r10d, r9d
mov dword [0x18022a798], 0x1341
mov dword [0x18022a79c], edx
mov dword [rbp - 0x5c], eax
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x70], r10
mov dword [rbp - 0x74], r8d
mov eax, dword [rbp - 0x74]
mov dword [0x18022a79c], 0x10b6
mov ecx, eax
mov edx, ecx
mov r8, rdx
mov r9, qword [rbp - 0x70]
add r8, r9
mov r10, qword [rbp - 0x30]
mov r11b, byte [r10 + r8]
mov r8, qword [rbp - 0x18]
mov bl, byte [r8 + rdx]
cmp r11b, bl
sete sil
cmp r11b, 0
mov dword [rbp - 0x78], eax
mov byte [rbp - 0x79], sil
mov byte [rbp - 0x7a], bl
je 0x18000b327
mov eax, dword [rbp - 0x78]
add eax, 1
mov cl, byte [rbp - 0x7a]
cmp cl, 0
setne dl
mov r8b, byte [rbp - 0x79]
and r8b, dl
cmp eax, 0x20
setb dl
mov dword [rbp - 0x80], eax
mov byte [rbp - 0x81], r8b
mov byte [rbp - 0x82], dl
mov al, byte [rbp - 0x81]
mov cl, byte [rbp - 0x82]
and al, cl
test al, 1
mov edx, dword [rbp - 0x80]
mov dword [rbp - 0x74], edx
jne 0x18000b299
mov al, byte [rbp - 0x79]
test al, 1
jne 0x18000b39c
jmp 0x18000b330
mov eax, dword [rbp - 0x5c]
add eax, 1
mov rcx, qword [rbp - 0x68]
add rcx, 2
mov dword [0x18022a798], 0x1340
mov edx, dword [rbp - 0x3c]
cmp eax, edx
setb r8b
mov dword [rbp - 0x88], eax
mov qword [rbp - 0x90], rcx
mov byte [rbp - 0x91], r8b
mov eax, 0xdb9
mov cl, byte [rbp - 0x91]
test cl, 1
mov rdx, qword [rbp - 0x90]
mov r8d, dword [rbp - 0x88]
mov dword [rbp - 0x4c], eax
mov qword [rbp - 0x48], rdx
mov dword [rbp - 0x50], r8d
jne 0x18000b25c
jmp 0x18000b245
mov rax, qword [rbp - 0x68]
mov cx, word [rax]
mov rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x38]
mov r9d, dword [rdx + r8 + 0x1c]
mov r10d, r9d
add rdx, r10
movzx r9d, cx
mov r10d, r9d
mov r9d, dword [rdx + r10*4]
mov dword [0x18022a79c], 0xb0f
mov r9d, r9d
mov edx, r9d
mov r10, qword [rbp - 0x30]
add r10, rdx
mov dword [0x18022a798], 0x2092
mov qword [rbp - 0x58], r10
mov rax, qword [rbp - 0x58]
add rsp, 0xb0
pop rbx
pop rsi
pop rbp
ret
Function at 0x18000b3f5
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
xor eax, eax
mov edx, eax
xor eax, eax
mov dword [0x18022a798], 0x1a78
mov dword [0x18022a79c], 0x387
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x34], eax
mov eax, dword [rbp - 0x34]
mov rcx, qword [rbp - 0x30]
lea rdx, section..data
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0xc0
mov r10d, dword [r9]
imul r8, rcx, 0x168
add rdx, r8
add rdx, 0x10
xor r10d, dword [rdx]
add r10d, eax
add rcx, 1
cmp rcx, 0x83e
mov eax, r10d
mov dword [rbp - 0x38], r10d
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x34], eax
jne 0x18000b425
lea rdx, [rbp - 0x20]
mov dword [0x18022a79c], 0xff245715
mov dword [0x18022a798], 0x33a9
mov byte [rbp - 0x20], 0x56
mov qword [rbp - 0x40], rdx
xor eax, eax
mov ecx, eax
mov qword [rbp - 0x48], rcx
jmp 0x18000b4a9
mov rax, qword [rbp - 0x48]
lea rcx, [0x18000d633]
lea rdx, [0x18000d6f0]
mov r8, rax
add r8, 1
mov r9b, byte [rdx + rax + 1]
mov r10b, byte [rcx + rax + 1]
sub r10b, r9b
mov byte [rbp + rax - 0x1f], r10b
cmp r8, 0xd
mov qword [rbp - 0x48], r8
jne 0x18000b4a9
mov dword [0x18022a798], 0x18722
mov eax, dword [rbp - 0x38]
mov ecx, eax
mov edx, ecx
mov dword [0x18022a79c], 0x153a
mov qword [rbp - 0x50], rdx
call fcn.18000bf6f
mov rcx, rax
mov rdx, qword [rbp - 0x40]
call fcn.18000ae0f
xor r8d, r8d
mov ecx, r8d
mov r8d, 0x1000
mov r9d, 4
mov rdx, qword [rbp - 0x50]
call rax
xor r8d, r8d
mov ecx, r8d
xor r8d, r8d
mov r9d, dword [0x18022a798]
add r9d, 0xfffffacd
mov dword [0x18022a798], r9d
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x64], r8d
mov eax, dword [rbp - 0x64]
mov rcx, qword [rbp - 0x60]
lea rdx, section..data
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0xc0
mov r10d, dword [r9]
imul r8, rcx, 0x168
mov r9, rdx
add r9, r8
add r9, 0x160
mov r8, qword [r9]
mov r11d, dword [0x18022a79c]
add r11d, 0xfffff9b0
mov dword [0x18022a798], r11d
imul r9, rcx, 0x168
add rdx, r9
add rdx, 0x10
xor r10d, dword [rdx]
mov r11d, eax
mov edx, r11d
mov r9, qword [rbp - 0x58]
add r9, rdx
mov r11d, r10d
mov edx, r11d
mov qword [rbp - 0x70], rcx
mov rcx, r9
mov qword [rbp - 0x78], rdx
mov rdx, r8
mov r8, qword [rbp - 0x78]
mov dword [rbp - 0x7c], eax
mov dword [rbp - 0x80], r10d
call fcn.18000c1b9
mov eax, dword [rbp - 0x80]
mov r10d, dword [rbp - 0x7c]
add eax, r10d
mov rcx, qword [rbp - 0x70]
add rcx, 1
cmp rcx, 0x83e
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x64], eax
jne 0x18000b556
mov eax, dword [0x18022a79c]
add eax, 0xfffff7f6
mov dword [0x18022a79c], eax
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x38]
call fcn.18000c0e0
mov rcx, qword [rbp - 0x58]
add rcx, 0x1147ec
mov rdx, qword [rbp - 0x28]
mov qword [rdx], rcx
mov qword [rdx + 8], 0x1f0600
mov rcx, qword [rbp - 0x58]
add rcx, 0xb2bda
mov qword [rdx + 0x10], rcx
mov dword [0x18022a79c], 0x115f
mov qword [rdx + 0x18], 0x2030
mov dword [0x18022a798], 0xffffe548
xor eax, eax
add rsp, 0xa0
pop rbp
ret
Function at 0x18000ba21
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
mov dword [0x18022a798], 0x25a
mov eax, dword [0x18022a79c]
mov dword [rbp - 4], eax
lea rax, [fcn.18000ba21]
mov ecx, dword [rbp - 4]
add ecx, 0xfffff307
mov dword [rbp - 8], ecx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp - 8]
cmp word [rax], 0x5a4d
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], ecx
jne 0x18000ba8c
mov rax, qword [rbp - 0x18]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x18000ba8c
mov eax, dword [rbp - 0x1c]
mov dword [0x18022a79c], eax
mov rax, qword [rbp - 0x18]
add rsp, 0x28
pop rbp
ret
mov rax, qword [rbp - 0x18]
add rax, 0xfffffffffffff000
and rax, 0xfffffffffffff000
mov qword [rbp - 0x28], rax
mov eax, 0x423
mov rcx, qword [rbp - 0x28]
mov dword [rbp - 8], eax
mov qword [rbp - 0x10], rcx
jmp 0x18000ba53
Function at 0x140001d24
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400039e8], rbx
je 0x140001d70
cmp rax, rbx
jne 0x140001d63
mov ebx, 1
mov esi, ebx
jmp 0x140001d75
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001d48
mov ebx, 1
mov eax, dword [0x1400039e0]
cmp eax, ebx
jne 0x140001d8b
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140001de8
mov eax, dword [0x1400039e0]
test eax, eax
jne 0x140001de2
mov dword [0x1400039e0], ebx
lea r13, [0x140001170]
lea rdi, [0x140001158]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r13
jae 0x140001dd4
test eax, eax
jne 0x140001dd8
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001dc9
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140001db2
test eax, eax
je 0x140001de8
mov eax, 0xff
jmp 0x140001eb9
mov dword [0x14000343c], ebx
mov eax, dword [0x1400039e0]
cmp eax, ebx
jne 0x140001e0f
lea rdx, [0x140001150]
lea rcx, [0x140001138]
call sub.msvcrt.dll__initterm
mov dword [0x1400039e0], 2
test esi, esi
jne 0x140001e1c
xor eax, eax
xchg qword [0x1400039e8], rax
cmp qword [0x1400039f0], 0
je 0x140001e45
lea rcx, [0x1400039f0]
call fcn.14000211c
test eax, eax
je 0x140001e45
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400039f0]
mov r8, qword [0x140003420]
mov rdx, qword [0x140003428]
mov ecx, dword [0x140003418]
call fcn.140001bc0
mov dword [0x140003438], eax
cmp dword [0x14000341c], 0
jne 0x140001e75
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000343c], 0
jne 0x140001e8a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003438]
jmp 0x140001eb9
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.140002230
add rsp, 0x28
jmp 0x140001d24

Function at 0x140002188
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x1400021d5
cmp rcx, 0xffffffffffffffff
je 0x1400021d5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400021cd
cmp dword [rcx + 0x3c], edx
jl 0x1400021cd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400021cd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400021d5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000619c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000627c
mov ebx, eax
test eax, eax
jne 0x1400061cc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140006228
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000621f
test al, 0x10
je 0x14000621f
bt eax, 0xa
jae 0x140006218
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140005cd8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140006214
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140006238
test edi, edi
jne 0x14000621f
and dword [rsp + 0x3c], 0
jmp 0x140006224
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14000c460
int3

Function at 0x1400062cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140006306
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000630b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140006354
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001ed40]
cmp byte [rcx + rax], 0
je 0x140006354
dec r8
sub rdx, 1
jne 0x14000633a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006d04
Capabilities:
Parse pe header

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

Function at 0x14000ad4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ae94
Function at 0x14000ae94
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000ae94
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 0x14000af03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000af03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000af03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000af03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000af03
cmp dword [rcx + 0x84], 0xe
jbe 0x14000af03
cmp dword [rcx + 0xf8], 0
je 0x14000af03
mov ecx, ebx
call fcn.14000adcc
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.14000b028
nop
cmp dword [rbp + 0x20], 0
je 0x14000af51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ae60
int3

Function at 0x14000c8d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c8f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000c8f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001505c
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 0x14001508c
xor eax, eax
jmp 0x14001514f
mov rbp, rbx
cmp word [rax], si
je 0x1400150b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140015098
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140015094
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.140014f7c
movsxd r14, eax
test eax, eax
jne 0x1400150ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015085
mov rcx, r14
call fcn.1400129ec
mov rdi, rax
test rax, rax
jne 0x140015108
xor ecx, ecx
call fcn.14000fe38
jmp 0x1400150e4
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.140014f7c
test eax, eax
jne 0x140015139
mov rcx, rdi
call fcn.14000fe38
jmp 0x140015143
xor ecx, ecx
call fcn.14000fe38
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 0x14001a580
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000fe74
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001a60a
cmp byte [rbp - 0x21], r15b
je 0x14001a605
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001a640
call fcn.140010c84
test eax, eax
jne 0x14001a62c
cmp byte [rbp - 0x21], r15b
je 0x14001a624
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001a640
cmp byte [rbp - 0x21], r15b
je 0x14001a63d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001442c
test eax, eax
jne 0x14001a6e0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000fe74
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001a67f
cmp byte [rbp - 0x21], r15b
je 0x14001a6b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001a6b4
call fcn.140010c84
test eax, eax
jne 0x14001a6a0
cmp byte [rbp - 0x21], r15b
je 0x14001a699
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001a6b4
cmp byte [rbp - 0x21], r15b
je 0x14001a6b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001442c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001a6e0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001a6e3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001a6f1
mov rcx, rdi
call fcn.14000fe38
cmp byte [rbp + 0x3f], r15b
je 0x14001a700
mov rcx, qword [rbp + 0x27]
call fcn.14000fe38
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140738058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407381df
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 0x140738089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073806f
add dl, dl
jne 0x140738096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407380f6
xor eax, eax
add dl, dl
jne 0x1407380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407381ad
add dl, dl
jne 0x1407380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073807e
mov eax, 1
add dl, dl
jne 0x140738106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140738113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407380fb
sub eax, ebx
mov ebx, 1
jne 0x14073814c
mov ecx, 1
add dl, dl
jne 0x14073812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140738123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140738168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140738175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073815d
cmp eax, 0x7d00
jae 0x14073819b
cmp eax, 0x500
jb 0x140738196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073807e
cmp eax, 0x7f
ja 0x14073819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407381d2
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 0x14073807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20