joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025744
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14371c390]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002579b
cmp word [rdx], r13w
jne 0x14002579b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400257a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400258c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400258e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400257d9
mov rdx, r9
mov word [rbx], cx
jmp 0x140025800
cmp r9, r8
jae 0x140025810
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400257ba
jmp 0x1400258c5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400258ba
cmp dword [rsp + 0x80], esi
je 0x1400258ba
lea r8, [0x14371c390]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140025892
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140025862
mov word [rbx], r13w
jmp 0x1400258c2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002586f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400258c2
cmp word [rsp + 0x70], r13w
jne 0x14002589f
cmp rbx, r14
je 0x14002585c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400263ac
cmp word [rsp + 0x70], r13w
je 0x1400258c5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14371c390]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400258bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400258c5
Function at 0x140029958
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 0x140029988
xor eax, eax
jmp 0x140029a4b
mov rbp, rbx
cmp word [rax], si
je 0x1400299ad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140029994
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140029990
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.140027f30
movsxd r14, eax
test eax, eax
jne 0x1400299eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140029981
mov rcx, r14
call fcn.1400217f8
mov rdi, rax
test rax, rax
jne 0x140029a04
xor ecx, ecx
call fcn.140021374
jmp 0x1400299e0
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.140027f30
test eax, eax
jne 0x140029a35
mov rcx, rdi
call fcn.140021374
jmp 0x140029a3f
xor ecx, ecx
call fcn.140021374
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 0x14002c8b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001ff40
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002c951
cmp ebx, dword [rsp + 0x30]
je 0x14002c94a
test esi, esi
je 0x14002c94a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002c925
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002c932
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002c90f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002c936
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002c953
mov eax, 1
jmp 0x14002c953
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140030ecc
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.14001b898
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140030f56
cmp byte [rbp - 0x21], r15b
je 0x140030f51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140030f8c
call fcn.140023dd8
test eax, eax
jne 0x140030f78
cmp byte [rbp - 0x21], r15b
je 0x140030f70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140030f8c
cmp byte [rbp - 0x21], r15b
je 0x140030f89
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.14001beec
test eax, eax
jne 0x14003102c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001b898
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140030fcb
cmp byte [rbp - 0x21], r15b
je 0x140031000
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140031000
call fcn.140023dd8
test eax, eax
jne 0x140030fec
cmp byte [rbp - 0x21], r15b
je 0x140030fe5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140031000
cmp byte [rbp - 0x21], r15b
je 0x140030ffd
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.14001beec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003102c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003102f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003103d
mov rcx, rdi
call fcn.140021374
cmp byte [rbp + 0x3f], r15b
je 0x14003104c
mov rcx, qword [rbp + 0x27]
call fcn.140021374
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 0x140032264
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400263ac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400263ac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400323b4
cmp rax, 0xffffffffffffffff
je 0x1400323b4
xor edi, edi
test rbp, rbp
jle 0x14003235f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140020514
mov rbx, rax
test rax, rax
jne 0x1400322ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140032355
mov edx, 0x8000
mov ecx, r14d
call fcn.14001cfd0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002106c
cmp eax, 0xffffffff
je 0x140032335
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400322fc
mov edx, r15d
mov ecx, r14d
call fcn.14001cfd0
jmp 0x140032355
cmp byte [rsi + 0x38], dil
je 0x14003234c
cmp dword [rsi + 0x34], 5
jne 0x14003234c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140032355
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140021374
jmp 0x1400323c8
jns 0x1400323c8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400263ac
cmp rax, 0xffffffffffffffff
jne 0x140032380
cmp byte [rsi + 0x30], dil
je 0x1400323c8
mov edi, dword [rsi + 0x2c]
jmp 0x1400323c8
mov ecx, r14d
call fcn.14002a35c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400323c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400323c8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400323c1
mov eax, dword [rsi + 0x2c]
jmp 0x1400323c6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400263ac
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140032bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140032bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140032bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400031d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000321a
mov ecx, _invalid_parameter_noinfo_noreturn
cmp word [rax], cx
jne 0x14000321a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000321a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000321a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000321a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000321c
xor al, al
add rsp, 0x28
ret
Function at 0x14000a7c0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a865
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a81d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a810
cmp rcx, 1
jb 0x14000a896
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a833
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400105a0
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a800
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bc30
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.140010264
int3

Function at 0x14000a920
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a965
xor al, al
jmp 0x14000a9b2
cmp word [rbx], 0
je 0x14000a97d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a970
cmp word [rsp + 0x30], 0
je 0x14000a9ab
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a9d3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a990
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bc30
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.140010264
int3
Function at 0x14000b120
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.140020420
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140032dd4]
lea rsi, [0x140037e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000b199
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a9e0
test al, al
je 0x14000b279
lea rcx, [rsp + 0x20]
call fcn.140014968
movsxd r11, dword [0x140032dd4]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140032dd4], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b1d4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b1c4
add rax, 2
test ecx, ecx
jne 0x14000b1b0
test edx, edx
je 0x14000b1f7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b1a4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b1e0
cmp rax, 2
jne 0x14000b1fb
cmp word [rdi + 2], 0x3a
jne 0x14000b1fb
mov al, 1
jmp 0x14000b258
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b226
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b24d
mov bl, 1
cmp dword [0x140032dd4], 0x400
jge 0x14000b24d
mov rcx, rdi
call fcn.140014968
movsxd rdx, dword [0x140032dd4]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140032dd4], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bc30
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000afc0
int3

Function at 0x14000b3a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140032dd8]
test rcx, rcx
je 0x14000b3e0
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b3ce
mov rcx, qword [0x140032dd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140032dd8]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
ret
Function at 0x14000c4f0
Capabilities:
Parse pe header

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

Function at 0x140010258
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 0x1400100c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400100c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400100c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400100c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400100c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400100c3
cmp dword [rcx + 0xf8], 0
je 0x1400100c3
mov ecx, ebx
call fcn.140010174
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.14000ff50
nop
cmp dword [rbp + 0x20], 0
je 0x140010111
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001011c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010054
Function at 0x140019854
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 0x1400198db
mov rsi, rbx
cmp word [rax], bp
je 0x14001989a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019884
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019880
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140017084
mov rdi, rax
test rax, rax
je 0x1400198c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020b30
mov rbp, rdi
xor ecx, ecx
call fcn.1400160a8
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 0x1000246c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100024715
cmp rcx, 0xffffffffffffffff
je 0x100024715
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10002470d
cmp dword [rcx + 0x3c], edx
jl 0x10002470d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10002470d
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 0x100024715
mov rax, rdx
add rsp, 0x18
ret

Function at 0x180011181
Capabilities:
Create thread

Disassembly:
jmp 0x180011770
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x180021001]
call fcn.1800112e4
nop
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x1800117b0
jmp 0x1800117d6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18001125d]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x1800111ae
Capabilities:
Terminate process

Disassembly:
jmp 0x1800151c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140909058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409091df
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 0x140909089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14090906f
add dl, dl
jne 0x140909096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409090f6
xor eax, eax
add dl, dl
jne 0x1409090a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409091ad
add dl, dl
jne 0x1409090b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409090c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409090d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409090dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409090ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14090907e
mov eax, 1
add dl, dl
jne 0x140909106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140909113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409090fb
sub eax, ebx
mov ebx, 1
jne 0x14090914c
mov ecx, 1
add dl, dl
jne 0x14090912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14090913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140909123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14090907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140909168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140909175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14090915d
cmp eax, 0x7d00
jae 0x14090919b
cmp eax, 0x500
jb 0x140909196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14090907e
cmp eax, 0x7f
ja 0x14090919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14090907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409091d2
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 0x14090907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140015f60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013a90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140013ab0
xor al, al
jmp 0x140013b31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013ac3
xor al, al
jmp 0x140013b31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140013aed
xor al, al
jmp 0x140013b31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140013b01
xor al, al
jmp 0x140013b31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140013b13
xor al, al
jmp 0x140013b31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140013b2f
xor al, al
jmp 0x140013b31
mov al, 1
add rsp, 0x38
ret

Function at 0x140012890
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001138e
movzx eax, al
test eax, eax
jne 0x1400128b0
mov ecx, 7
call fcn.14001130c
nop
mov byte [rsp + 0x20], 0
call fcn.140011320
mov byte [rsp + 0x21], al
cmp dword [0x140022220], 1
jne 0x1400128d4
mov ecx, 7
call fcn.14001130c
nop
jmp 0x14001292c
cmp dword [0x140022220], 0
jne 0x140012927
mov dword [0x140022220], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119a
test eax, eax
je 0x140012908
mov eax, 0xff
jmp 0x140012a31
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011316
mov dword [0x140022220], 2
jmp 0x14001292c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112fd
call fcn.14001128f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012989
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140012989
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140028020]
nop
call fcn.1400112c1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400129bd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x1400129bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001134d
nop
call fcn.140012ae0
mov dword [rsp + 0x28], eax
call fcn.14001126c
movzx eax, al
test eax, eax
jne 0x1400129dc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400129eb
call fcn.140011357
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140012a31
add rsp, 0x68
ret