joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400674b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401192e0]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067510
mov rsi, qword [0x1401192d8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140077cf0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401192e0]
call fcn.140076910
cmp dword [0x1401192e0], 0xffffffff
jne 0x1400674ec
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140079e10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400767bc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140119328]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400675d0
lea r8, [0x1401192f8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140043d20
mov qword [0x1401192d8], rsi
lea rcx, [0x1401192e0]
call fcn.1400769a8
jmp 0x1400674ec
lea rcx, [0x140119328]
call fcn.140076910
cmp dword [0x140119328], 0xffffffff
jne 0x1400675a1
xorps xmm0, xmm0
movups xmmword [0x140119318], xmm0
movups xmmword [0x140119308], xmm0
movups xmmword [0x1401192f8], xmm0
lea rcx, [0x1401192f8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140119328]
call fcn.1400769a8
jmp 0x1400675a1
Function at 0x1400721b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14007224a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140072234
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140072211
mov qword [rsi], rdi
call fcn.14005aa10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14007224e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005aa10
mov rcx, qword [rsi]
call fcn.140061fb0
mov qword [rsi], 0
jmp 0x1400721ff
mov byte [rsi + 8], 1
int3

Function at 0x1400724c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14011de58]
cmp rsi, 1
jbe 0x1400724e3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140066650
lea rcx, [0x14011de58]
call fcn.1400369e0
test al, al
je 0x140072528
xorps xmm0, xmm0
movups xmmword [0x14011de60], xmm0
lea rdi, [0x14011de58]
lea rsi, [0x14011de60]
mov rcx, rsi
xor edx, edx
call fcn.140042020
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140036aa0
jmp 0x1400724d3
mov rsi, qword [0x14011de58]
jmp 0x1400724d3

Function at 0x140072960
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14011f848]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140072995
lea rcx, [0x14011f838]
add rsp, 0x28
jmp fcn.140066610
lea rcx, [0x14011f848]
call fcn.140076910
cmp dword [0x14011f848], 0xffffffff
jne 0x140072985
xorps xmm0, xmm0
movups xmmword [0x14011f838], xmm0
lea rcx, [0x14011f838]
xor edx, edx
call fcn.140042020
lea rcx, [0x14011f848]
call fcn.1400769a8
jmp 0x140072985

Function at 0x140073760
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14011f868]
cmp rsi, 1
jbe 0x140073783
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140066650
lea rcx, [0x14011f868]
call fcn.1400369e0
test al, al
je 0x1400737c8
xorps xmm0, xmm0
movups xmmword [0x14011f870], xmm0
lea rdi, [0x14011f868]
lea rsi, [0x14011f870]
mov rcx, rsi
xor edx, edx
call fcn.140042020
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.140036aa0
jmp 0x140073773
mov rsi, qword [0x14011f868]
jmp 0x140073773
Function at 0x1400765e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14011f970]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140076646
lea rcx, [0x14011f960]
xor edx, edx
call fcn.140066650
mov eax, dword [0x14011f988]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140076681
lea rcx, [0x14011f978]
xor edx, edx
add rsp, 0x28
jmp fcn.140066650
lea rcx, [0x14011f970]
call fcn.140076910
cmp dword [0x14011f970], 0xffffffff
jne 0x140076605
xorps xmm0, xmm0
movups xmmword [0x14011f960], xmm0
lea rcx, [0x14011f960]
xor edx, edx
call fcn.140042020
lea rcx, [0x14011f970]
call fcn.1400769a8
jmp 0x140076605
lea rcx, [0x14011f988]
call fcn.140076910
cmp dword [0x14011f988], 0xffffffff
jne 0x140076634
xorps xmm0, xmm0
movups xmmword [0x14011f978], xmm0
lea rcx, [0x14011f978]
xor edx, edx
call fcn.140042020
lea rcx, [0x14011f988]
call fcn.1400769a8
jmp 0x140076634

Function at 0x140085ec4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140086018
Function at 0x1400862f4
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.14008a590
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14008a590
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140086444
cmp rax, 0xffffffffffffffff
je 0x140086444
xor edi, edi
test rbp, rbp
jle 0x1400863ef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005f2d0
mov rbx, rax
test rax, rax
jne 0x14008637c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400863e5
mov edx, 0x8000
mov ecx, r14d
call fcn.14008b6a8
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.14008f11c
cmp eax, 0xffffffff
je 0x1400863c5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14008638c
mov edx, r15d
mov ecx, r14d
call fcn.14008b6a8
jmp 0x1400863e5
cmp byte [rsi + 0x38], dil
je 0x1400863dc
cmp dword [rsi + 0x34], 5
jne 0x1400863dc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400863e5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005f230
jmp 0x140086458
jns 0x140086458
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14008a590
cmp rax, 0xffffffffffffffff
jne 0x140086410
cmp byte [rsi + 0x30], dil
je 0x140086458
mov edi, dword [rsi + 0x2c]
jmp 0x140086458
mov ecx, r14d
call fcn.14008959c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140086458
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 0x140086458
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140086451
mov eax, dword [rsi + 0x2c]
jmp 0x140086456
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14008a590
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 0x14008b268
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1401157c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14008b2c6
cmp word [rdx], r12w
jne 0x14008b2c6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14008b2cc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14008b427
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14008b402
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14008b305
mov rcx, r9
jmp 0x14008b328
cmp r9, rdx
jae 0x14008b33f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14008b2e9
jmp 0x14008b427
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008b3fc
cmp dword [rsp + 0x80], edi
je 0x14008b3fc
mov rdx, r14
lea r11, [0x1401157c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14008b3d5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14008b3a8
mov word [rbx], r12w
jmp 0x14008b423
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14008b3b1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14008b423
cmp word [rsp + 0x70], r12w
jne 0x14008b3e2
cmp rbx, rsi
je 0x14008b3a2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14008a590
cmp word [rsp + 0x70], r12w
je 0x14008b427
mov word [rbx], r13w
jmp 0x14008b423
lea r11, [0x1401157c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14008b41f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14008b427
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140091e08
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.140077c90
sub rsp, rax
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140089544
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140091e57
mov rax, rbp
jmp 0x140091f5f
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 + 0x1157c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14008a634
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1157c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140091f5b
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 0x140091f5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14008a634
test rax, rax
js 0x140091f5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140091f5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140091f4d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140091f4d
cmp byte [rcx], 0xd
jne 0x140091f33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140091f42
cmp byte [rcx + 1], 0xa
jne 0x140091f42
inc rcx
jmp 0x140091f42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x105320]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140091f15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140091f5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140077cf0
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 0x1400a1668
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 0x1400a1698
xor eax, eax
jmp 0x1400a175b
mov rbp, rbx
cmp word [rax], si
je 0x1400a16bd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a16a4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a16a0
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.1400a15b8
movsxd r14, eax
test eax, eax
jne 0x1400a16fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a1691
mov rcx, r14
call fcn.14003c8d0
mov rdi, rax
test rax, rax
jne 0x1400a1714
xor ecx, ecx
call fcn.14005f230
jmp 0x1400a16f0
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.1400a15b8
test eax, eax
jne 0x1400a1745
mov rcx, rdi
call fcn.14005f230
jmp 0x1400a174f
xor ecx, ecx
call fcn.14005f230
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 0x1400a1778
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 0x1400a17ff
mov rsi, rbx
cmp word [rax], bp
je 0x1400a17be
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a17a8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a17a4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003c8d0
mov rdi, rax
test rax, rax
je 0x1400a17ec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140079760
mov rbp, rdi
xor ecx, ecx
call fcn.14005f230
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 0x1400a3da4
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.140080548
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a3e2e
cmp byte [rbp - 0x21], r15b
je 0x1400a3e29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a3e64
call fcn.14009a984
test eax, eax
jne 0x1400a3e50
cmp byte [rbp - 0x21], r15b
je 0x1400a3e48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a3e64
cmp byte [rbp - 0x21], r15b
je 0x1400a3e61
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.140085b28
test eax, eax
jne 0x1400a3f04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140080548
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a3ea3
cmp byte [rbp - 0x21], r15b
je 0x1400a3ed8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a3ed8
call fcn.14009a984
test eax, eax
jne 0x1400a3ec4
cmp byte [rbp - 0x21], r15b
je 0x1400a3ebd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a3ed8
cmp byte [rbp - 0x21], r15b
je 0x1400a3ed5
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.140085b28
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a3f04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a3f07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a3f15
mov rcx, rdi
call fcn.14005f230
cmp byte [rbp + 0x3f], r15b
je 0x1400a3f24
mov rcx, qword [rbp + 0x27]
call fcn.14005f230
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 0x1400a4c00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400a4c32
call fcn.14008914c
mov dword [rax], 0x16
call fcn.14009c544
jmp 0x1400a4d51
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400a4d51
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400a4d51
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400a4c61
lock or dword [rcx + 0x14], 0x10
jmp 0x1400a4d51
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400a4c75
call fcn.1400a60ac
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140089544
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14008aa2c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400a4d3f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400a4d0a
mov rcx, rsi
call fcn.140089544
cmp eax, edi
je 0x1400a4cf5
mov rcx, rsi
call fcn.140089544
cmp eax, 0xfffffffe
je 0x1400a4cf5
mov rcx, rsi
call fcn.140089544
movsxd rbx, eax
lea r14, [0x1401157c0]
mov rcx, rsi
sar rbx, 6
call fcn.140089544
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400a4cfc
lea rdx, [0x140105520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400a4d0a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400a4d2e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400a4d2e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400a4d2e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400a4d54
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x1400a9570
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140077cf0
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x14003c6f0
Function at 0x1400ab960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400aba90
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x1400abaec
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1400abacc
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140077cf0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.140092740
cmp eax, 0xffffffff
je 0x1400abb6e
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1400abb0e
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x1400abb78
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1400abb4a
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x1400abacc
mov edi, r14d
test rdi, rdi
jle 0x1400abc1e
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movzx ecx, byte [rsp + rax + 0x58]
call fcn.140095a14
cmp eax, 0xffffffff
jne 0x1400abb4d
mov edi, 0xffffffff
jmp 0x1400abacc
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [0x140128008]
cmp eax, 1
jne 0x1400abc07
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x1400abb6e
mov rcx, qword [rsi + 0x40]
call fcn.140092740
cmp eax, 0xffffffff
je 0x1400abb6e
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x1400abb89
cmp eax, 2
je 0x1400abb6e
cmp eax, 3
je 0x1400abb34
jmp 0x1400abb3c
movzx edi, byte [rsp + 0x57]
jmp 0x1400abacc
Function at 0x1400abf40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400ac070
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x1400ac0cc
movzx edi, word [rsi + 0x5c]
test bl, bl
je 0x1400ac0ac
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140077cf0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r14d, 1
cmovge r14d, eax
xor r15d, r15d
mov rcx, qword [rsi + 0x40]
call fcn.140092740
cmp eax, 0xffffffff
je 0x1400ac159
mov byte [rsp + r15 + 0x58], al
inc r15
cmp r14, r15
jne 0x1400ac0ee
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x1400ac162
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test bl, bl
je 0x1400ac132
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x1400ac0ac
mov edi, r14d
test rdi, rdi
jle 0x1400ac208
mov rdx, qword [rsi + 0x40]
dec rdi
mov eax, edi
movsx eax, byte [rsp + rax + 0x58]
movzx ecx, ax
call fcn.140095a14
cmp eax, 0xffffffff
jne 0x1400ac135
mov di, 0xffff
jmp 0x1400ac0ac
lea r15, [rsp + 0x48]
mov qword [r15], rdi
lea r12, [rsp + 0x40]
mov qword [r12], rdi
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx edi, word [rdx + 6]
lea r9, [rsp + r14 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x56]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x58]
call qword [0x140128008]
cmp eax, 1
jne 0x1400ac1f1
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], di
cmp r14d, 8
je 0x1400ac159
mov rcx, qword [rsi + 0x40]
call fcn.140092740
cmp eax, 0xffffffff
je 0x1400ac159
mov byte [rsp + r14 + 0x58], al
inc r14
jmp 0x1400ac173
cmp eax, 2
je 0x1400ac159
cmp eax, 3
je 0x1400ac116
jmp 0x1400ac120
movzx edi, word [rsp + 0x56]
jmp 0x1400ac0ac

Function at 0x1400ac4a0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400ac4d7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1400ac4b1
ret

Function at 0x1400ac540
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400ac578
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1400ac551
ret