joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a648
Capabilities:
Get geographical location

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

Function at 0x14003b9a0
Capabilities:
Parse pe header

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

Function at 0x1400418d8
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 0x140041743
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041743
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041743
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041743
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041743
cmp dword [rcx + 0x84], 0xe
jbe 0x140041743
cmp dword [rcx + 0xf8], 0
je 0x140041743
mov ecx, ebx
call fcn.1400417f4
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.1400415d0
nop
cmp dword [rbp + 0x20], 0
je 0x140041791
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004179c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400416d4
Function at 0x140048208
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140056190
sub rsp, rax
mov rax, qword [0x140097050]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140048c6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140048257
mov rax, rbp
jmp 0x14004835f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x98e90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004e158
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x98e90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004835b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004835b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004e158
test rax, rax
js 0x14004835b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004835b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004834d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004834d
cmp byte [rcx], 0xd
jne 0x140048333
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140048342
cmp byte [rcx + 1], 0xa
jne 0x140048342
inc rcx
jmp 0x140048342
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x97420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140048315
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004835f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003ac10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d594
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, [0x140098e90]
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 0x14004d5eb
cmp word [rdx], r13w
jne 0x14004d5eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004d5f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004d715
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004d736
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004d629
mov rdx, r9
mov word [rbx], cx
jmp 0x14004d650
cmp r9, r8
jae 0x14004d660
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 0x14004d60a
jmp 0x14004d715
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 0x14004d70a
cmp dword [rsp + 0x80], esi
je 0x14004d70a
lea r8, [0x140098e90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004d6e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004d6b2
mov word [rbx], r13w
jmp 0x14004d712
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 0x14004d6bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004d712
cmp word [rsp + 0x70], r13w
jne 0x14004d6ef
cmp rbx, r14
je 0x14004d6ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004e160
cmp word [rsp + 0x70], r13w
je 0x14004d715
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, [0x140098e90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004d70f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004d715
Function at 0x14004fe08
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 0x14004fe8f
mov rsi, rbx
cmp word [rax], bp
je 0x14004fe4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004fe38
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004fe34
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004c0d0
mov rdi, rax
test rax, rax
je 0x14004fe7c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003cbb0
mov rbp, rdi
xor ecx, ecx
call fcn.14004a114
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 0x1400547c4
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.14004e160
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004e160
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140054914
cmp rax, 0xffffffffffffffff
je 0x140054914
xor edi, edi
test rbp, rbp
jle 0x1400548bf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004a09c
mov rbx, rax
test rax, rax
jne 0x14005484c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400548b5
mov edx, 0x8000
mov ecx, r14d
call fcn.140049d04
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.14005182c
cmp eax, 0xffffffff
je 0x140054895
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005485c
mov edx, r15d
mov ecx, r14d
call fcn.140049d04
jmp 0x1400548b5
cmp byte [rsi + 0x38], dil
je 0x1400548ac
cmp dword [rsi + 0x34], 5
jne 0x1400548ac
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400548b5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004a114
jmp 0x140054928
jns 0x140054928
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004e160
cmp rax, 0xffffffffffffffff
jne 0x1400548e0
cmp byte [rsi + 0x30], dil
je 0x140054928
mov edi, dword [rsi + 0x2c]
jmp 0x140054928
mov ecx, r14d
call fcn.140048bf4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140054928
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 0x140054928
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140054921
mov eax, dword [rsi + 0x2c]
jmp 0x140054926
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004e160
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 0x140688058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406881df
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 0x140688089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14068806f
add dl, dl
jne 0x140688096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406880f6
xor eax, eax
add dl, dl
jne 0x1406880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406881ad
add dl, dl
jne 0x1406880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14068807e
mov eax, 1
add dl, dl
jne 0x140688106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140688113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406880fb
sub eax, ebx
mov ebx, 1
jne 0x14068814c
mov ecx, 1
add dl, dl
jne 0x14068812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14068813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140688123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140688168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140688175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14068815d
cmp eax, 0x7d00
jae 0x14068819b
cmp eax, 0x500
jb 0x140688196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068807e
cmp eax, 0x7f
ja 0x14068819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14068807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406881d2
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 0x14068807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001100
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001930
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14006d280]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rsi, rcx
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rbp + 4]
mov r8d, 0x234
mov rdi, rax
call fcn.1400521d0
lea rdx, [rbp]
mov dword [rbp], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400019b7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
cmp dword [rbp + 8], ebx
je 0x1400019b7
lea rdx, [rbp]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400019a2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 8
mov rbx, rax
call fcn.140036b40
xor edi, edi
test rax, rax
je 0x1400019ea
mov qword [rax], rbx
jmp 0x1400019ed
mov rax, rdi
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140001080]
xor ecx, ecx
mov dword [rsp + 0x20], edi
xor edx, edx
call fcn.14003ed2c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001b59
cmp dword [rsp + 0x38], edi
je 0x140001b4e
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.1400359a8
test eax, eax
jne 0x140001b4e
xorps xmm0, xmm0
mov qword [rsp + 0x360], r14
mov ecx, 0x98
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
call fcn.140036b40
test rax, rax
je 0x140001add
xorps xmm0, xmm0
lea rdx, [rsp + 0x60]
xor ecx, ecx
movaps xmmword [rsp + 0x60], xmm0
mov qword [rbp - 0x10], rcx
mov r8d, 1
movaps xmmword [rsp + 0x70], xmm0
mov rcx, rax
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm0
movsd xmm0, qword [rbp - 0x10]
movsd qword [rbp - 0x60], xmm0
call fcn.140002040
mov rsi, rax
mov rbx, rax
test rax, rax
je 0x140001ae3
mov rcx, qword [rax + 8]
lea r14, [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, 8
add rcx, rax
mov rdx, qword [rcx]
call qword [rdx]
mov qword [rsp + 0x30], rbx
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
mov rax, qword [rcx]
call qword [rax]
jmp 0x140001aec
mov rbx, rdi
mov rsi, rdi
lea r14, [rsi + 8]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400082e0
test eax, eax
cmovns edi, eax
test rbx, rbx
je 0x140001b1c
mov rcx, qword [r14]
movsxd rcx, dword [rcx + 4]
add rcx, 8
add rcx, rbx
mov rdx, qword [rcx]
call qword [rdx + 8]
mov r14, qword [rsp + 0x360]
mov eax, edi
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140036c10
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call fcn.140035bf0
int3
mov ecx, 6
mov dword [rsp + 0x38], edi
call fcn.140035bf0
int3
Function at 0x140037a30
Capabilities:
Parse pe header

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

Function at 0x140040fe8
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 0x140041057
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041057
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041057
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041057
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041057
cmp dword [rcx + 0x84], 0xe
jbe 0x140041057
cmp dword [rcx + 0xf8], 0
je 0x140041057
mov ecx, ebx
call fcn.140041114
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.140040ee4
nop
cmp dword [rbp + 0x20], 0
je 0x1400410a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400410b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140040fe8

Function at 0x1400411f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140040fe8
Function at 0x140049a5c
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 0x140049ae3
mov rsi, rbx
cmp word [rax], bp
je 0x140049aa2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049a8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140049a88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400455ec
mov rdi, rax
test rax, rax
je 0x140049ad0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140051b30
mov rbp, rdi
xor ecx, ecx
call fcn.1400444f4
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 0x140051790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400517b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400517b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400089d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140008a50
cmp r10, r11
jb 0x140008ac7
cmp r10, rdx
ja 0x140008ad9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140008a52
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140008a30
jmp 0x140008ab4
ja 0x140008a5a
mov r11, r10
cmp rax, r8
jne 0x1400089fe
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140008a90
mov rdi, r8
sub ecx, edx
jns 0x140008aab
jmp 0x140008ab6
cmp r8, rsi
je 0x140008ae8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008ab6
xor al, 1
cmp rdi, rsi
jne 0x140008a70
jmp 0x140008ab6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140028450
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400281d0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140028460
int3

Function at 0x14000cf70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000cf95
cmp rax, rcx
je 0x14000cf9b
cmp rdx, 4
jae 0x14000cfa2
xor eax, eax
xor r8d, r8d
jmp 0x14000d040
pop rbp
jmp fcn.140006560
xor eax, eax
jmp 0x14000d057
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002a4d0]
movdqa xmm3, xmmword [0x14002a4e0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000cfd0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000d057
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000d040
pop rbp
ret
Function at 0x1400140e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140014166
test al, al
jne 0x14001413f
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x14001413f
invalid
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x140015290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
in al, dx
push 0x246c8d48
invalid
mov rsi, r9
mov rdi, r8
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
add rsi, r8
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x30], 0x81
mov byte [rbp - 0x24], 0x81
mov r14b, 0x81
lea r9, [0x140042bd8]
or cl, bl
add al, byte [rax]

Function at 0x140019fa4
Capabilities:
Parse pe header

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

Function at 0x14001d720
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 0x14001d78f
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d78f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d78f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d78f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d78f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d78f
cmp dword [rcx + 0xf8], 0
je 0x14001d78f
mov ecx, ebx
call fcn.14001d840
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.14001d61c
nop
cmp dword [rbp + 0x20], 0
je 0x14001d7dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d7e8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001d720

Function at 0x14001d924
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d720