joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801d90a4
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.1801cc6b0
sub rsp, rax
mov rax, qword [0x18028ab00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801ebf04
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1801d90f3
mov rax, rbp
jmp 0x1801d91fb
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x390e70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1801e6180
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x390e70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1801d91f7
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 0x1801d91f7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1801e6180
test rax, rax
js 0x1801d91f7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1801d91f7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1801d91e9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1801d91e9
cmp byte [rcx], 0xd
jne 0x1801d91cf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1801d91de
cmp byte [rcx + 1], 0xa
jne 0x1801d91de
inc rcx
jmp 0x1801d91de
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x28ad80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1801d91b1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1801d91fb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1801cb9c0
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 0x1801e07c4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1801e07fb
call fcn.1801d5f34
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1801d6354
xor eax, eax
jmp 0x1801e0889
mov rdx, r9
mov rcx, r8
call fcn.1801e0760
mov rbx, rax
test rax, rax
je 0x1801e0886
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1801e068c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1801e0873
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801d5ea8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801e085a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1801e0869
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1801eeaa4
jmp 0x1801e0886
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1801e0883
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1801e46c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x18028ab00]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x18022c1a8]
mov rbp, rcx
call fcn.1801e5258
xor edi, edi
test rax, rax
je 0x1801e47a6
mov ebx, edi
call fcn.1801d5f34
mov r14d, dword [rax]
call fcn.1801d5f34
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1801f42a0
mov rsi, rax
test rax, rax
je 0x1801e4737
call fcn.1801d5f34
mov dword [rax], r14d
jmp 0x1801e4761
call fcn.1801d5f34
cmp dword [rax], 0x22
jne 0x1801e479e
call fcn.1801d5f34
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1801f42a0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1801e479e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1801e4765
cmp rax, 3
je 0x1801e4780
mov rcx, rsi
call fcn.1801e461c
test al, al
je 0x1801e4791
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1801e4791
mov dil, 1
mov rcx, rbx
call fcn.1801d5f54
mov al, dil
jmp 0x1801e47a8
mov rcx, rbx
call fcn.1801d5f54
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1801cb9c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1801e8f9c
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 0x1801e900b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1801e900b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1801e900b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1801e900b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1801e900b
cmp dword [rcx + 0x84], 0xe
jbe 0x1801e900b
cmp dword [rcx + 0xf8], 0
je 0x1801e900b
mov ecx, ebx
call fcn.1801e90bc
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.1801e8e98
nop
cmp dword [rbp + 0x20], 0
je 0x1801e9059
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1801e9064
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1801e8f9c
Function at 0x1801ea094
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, [0x180390e70]
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 0x1801ea0eb
cmp word [rdx], r13w
jne 0x1801ea0eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1801ea0f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1801ea215
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1801ea236
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1801ea129
mov rdx, r9
mov word [rbx], cx
jmp 0x1801ea150
cmp r9, r8
jae 0x1801ea160
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 0x1801ea10a
jmp 0x1801ea215
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 0x1801ea20a
cmp dword [rsp + 0x80], esi
je 0x1801ea20a
lea r8, [0x180390e70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1801ea1e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1801ea1b2
mov word [rbx], r13w
jmp 0x1801ea212
mov ecx, reloc.WS2_32.dll_listen
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 0x1801ea1bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1801ea212
cmp word [rsp + 0x70], r13w
jne 0x1801ea1ef
cmp rbx, r14
je 0x1801ea1ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1801e6188
cmp word [rsp + 0x70], r13w
je 0x1801ea215
mov ecx, reloc.WS2_32.dll_listen
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, [0x180390e70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1801ea20f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1801ea215
Function at 0x1801f1258
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1801f126e
mov al, 1
jmp 0x1801f12ce
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1801f127f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1801f12cc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1801f3cd4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1801f12cc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1801f12cc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1801f12cc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1801f12ce
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1801f2b58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1801f2bb9
test byte [rbx + 6], 0xf
jne 0x1801f2bac
xor edi, edi
cmp word [rbx + 4], di
jne 0x1801f2bac
cmp word [rbx + 2], di
jne 0x1801f2bac
cmp word [rbx], di
jne 0x1801f2bac
lea esi, [rdi + 1]
jmp 0x1801f2bb1
mov esi, 2
movzx eax, si
jmp 0x1801f2db1
xor edi, edi
test cx, cx
jne 0x1801f2bd4
mov rcx, rbx
call fcn.1801fc9b0
movzx ecx, ax
cmp di, ax
jl 0x1801f2dae
movsx edx, cx
test esi, esi
jle 0x1801f2c04
sub ebp, edx
cmp ebp, esi
jg 0x1801f2c04
movsd xmm0, qword [0x18022e2b8]
cmp word [rbx + 6], di
jge 0x1801f2bf6
xorps xmm0, xmmword [0x18025a2a0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1801f2db1
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1801f2c31
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1801f2db1
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, reloc.WS2_32.dll_recv
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1801f2da3
test ebp, ebp
jns 0x1801f2da3
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1801f2cc6
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x1801f2c98
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1801f2d45
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1801f2d5b
jne 0x1801f2d7a
test byte [rbx], sil
je 0x1801f2d7a
add word [rbx], si
jne 0x1801f2d7a
add word [rbx + 2], si
jne 0x1801f2d7a
add word [rbx + 4], si
jne 0x1801f2d7a
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1801f2c29
cmp r11w, r15w
jne 0x1801f2c29
cmp word [rbx + 4], di
jne 0x1801f2c29
cmp word [rbx + 2], di
jne 0x1801f2c29
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x1801f2db1
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1801f3de4
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.1801e6188
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801e6188
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1801f3f34
cmp rax, 0xffffffffffffffff
je 0x1801f3f34
xor edi, edi
test rbp, rbp
jle 0x1801f3edf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1801ec830
mov rbx, rax
test rax, rax
jne 0x1801f3e6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1801f3ed5
mov edx, 0x8000
mov ecx, r14d
call fcn.1801f3744
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.1801eb44c
cmp eax, 0xffffffff
je 0x1801f3eb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1801f3e7c
mov edx, r15d
mov ecx, r14d
call fcn.1801f3744
jmp 0x1801f3ed5
cmp byte [rsi + 0x38], dil
je 0x1801f3ecc
cmp dword [rsi + 0x34], 5
jne 0x1801f3ecc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1801f3ed5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1801eeaa4
jmp 0x1801f3f48
jns 0x1801f3f48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801e6188
cmp rax, 0xffffffffffffffff
jne 0x1801f3f00
cmp byte [rsi + 0x30], dil
je 0x1801f3f48
mov edi, dword [rsi + 0x2c]
jmp 0x1801f3f48
mov ecx, r14d
call fcn.1801f3cd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1801f3f48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1801f3f48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1801f3f41
mov eax, dword [rsi + 0x2c]
jmp 0x1801f3f46
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801e6188
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 0x1801f7730
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 0x1801f7760
xor eax, eax
jmp 0x1801f7823
mov rbp, rbx
cmp word [rax], si
je 0x1801f7785
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1801f776c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801f7768
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.1801f35cc
movsxd r14, eax
test eax, eax
jne 0x1801f77c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801f7759
mov rcx, r14
call fcn.1801f0198
mov rdi, rax
test rax, rax
jne 0x1801f77dc
xor ecx, ecx
call fcn.1801eeaa4
jmp 0x1801f77b8
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.1801f35cc
test eax, eax
jne 0x1801f780d
mov rcx, rdi
call fcn.1801eeaa4
jmp 0x1801f7817
xor ecx, ecx
call fcn.1801eeaa4
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 0x1801f7840
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 0x1801f78c7
mov rsi, rbx
cmp word [rax], bp
je 0x1801f7886
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1801f7870
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1801f786c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1801f0198
mov rdi, rax
test rax, rax
je 0x1801f78b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1802059b0
mov rbp, rdi
xor ecx, ecx
call fcn.1801eeaa4
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 0x1801f81bc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801f81dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801d5ea8
or eax, 0xffffffff
jmp 0x1801f81de
xor eax, eax
add rsp, 0x28
ret

Function at 0x1801fae3c
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.1801ecdd8
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 0x1801faedd
cmp ebx, dword [rsp + 0x30]
je 0x1801faed6
test esi, esi
je 0x1801faed6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1801faeb1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1801faebe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1801fae9b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1801faec2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1801faedf
mov eax, 1
jmp 0x1801faedf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1801fcd68
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18028ab00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1801fcdb2
call fcn.1801d5f14
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1801d5f34
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1801d6354
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1801cb9c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1801fcdbd
lea eax, [rbx + 1]
jmp 0x1801fcd9f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1801fcd9d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1801fcd9f

Function at 0x1801fe7a0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401762f0]
mov dword [rax], 1
mov rax, qword [0x140176300]
mov dword [rax], 1
mov rax, qword [0x140176310]
mov dword [rax], 1
mov rax, qword [0x140176270]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400e6950
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401510f0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400e6a15
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14016200e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400e69f6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400e69e8
test rsi, rsi
je 0x14016200e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400e69a8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400e6a44
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400e6a60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400e6b1d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x140162014
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400e6afe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400e6af0
test rsi, rsi
je 0x140162014
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400e6ab0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret