joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d9a0
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 0x14007d9d0
xor eax, eax
jmp 0x14007da93
mov rbp, rbx
cmp word [rax], si
je 0x14007d9f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007d9dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007d9d8
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.14007b638
movsxd r14, eax
test eax, eax
jne 0x14007da33
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007d9c9
mov rcx, r14
call fcn.14007774c
mov rdi, rax
test rax, rax
jne 0x14007da4c
xor ecx, ecx
call fcn.1400738f0
jmp 0x14007da28
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.14007b638
test eax, eax
jne 0x14007da7d
mov rcx, rdi
call fcn.1400738f0
jmp 0x14007da87
xor ecx, ecx
call fcn.1400738f0
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 0x14007dab0
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 0x14007db37
mov rsi, rbx
cmp word [rax], bp
je 0x14007daf6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14007dae0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007dadc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007774c
mov rdi, rax
test rax, rax
je 0x14007db24
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005aea0
mov rbp, rdi
xor ecx, ecx
call fcn.1400738f0
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 0x140080ba8
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.140073590
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 0x140080c49
cmp ebx, dword [rsp + 0x30]
je 0x140080c42
test esi, esi
je 0x140080c42
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140080c1d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140080c2a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140080c07
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140080c2e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140080c4b
mov eax, 1
jmp 0x140080c4b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140083578
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401fbf28]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400835c2
call fcn.140067030
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140067050
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140060a44
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000e6b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400835cd
lea eax, [rbx + 1]
jmp 0x1400835af
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 0x1400835ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400835af
Function at 0x140084be0
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.1400652b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140084c6a
cmp byte [rbp - 0x21], r15b
je 0x140084c65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140084ca0
call fcn.1400749c4
test eax, eax
jne 0x140084c8c
cmp byte [rbp - 0x21], r15b
je 0x140084c84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140084ca0
cmp byte [rbp - 0x21], r15b
je 0x140084c9d
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.140064a54
test eax, eax
jne 0x140084d40
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400652b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140084cdf
cmp byte [rbp - 0x21], r15b
je 0x140084d14
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140084d14
call fcn.1400749c4
test eax, eax
jne 0x140084d00
cmp byte [rbp - 0x21], r15b
je 0x140084cf9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140084d14
cmp byte [rbp - 0x21], r15b
je 0x140084d11
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.140064a54
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140084d40
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140084d43
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140084d51
mov rcx, rdi
call fcn.1400738f0
cmp byte [rbp + 0x3f], r15b
je 0x140084d60
mov rcx, qword [rbp + 0x27]
call fcn.1400738f0
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 0x1400860bc
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.140072b94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140072b94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008620c
cmp rax, 0xffffffffffffffff
je 0x14008620c
xor edi, edi
test rbp, rbp
jle 0x1400861b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14007462c
mov rbx, rax
test rax, rax
jne 0x140086144
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400861ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14006bba4
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.1400764e4
cmp eax, 0xffffffff
je 0x14008618d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140086154
mov edx, r15d
mov ecx, r14d
call fcn.14006bba4
jmp 0x1400861ad
cmp byte [rsi + 0x38], dil
je 0x1400861a4
cmp dword [rsi + 0x34], 5
jne 0x1400861a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400861ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400738f0
jmp 0x140086220
jns 0x140086220
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140072b94
cmp rax, 0xffffffffffffffff
jne 0x1400861d8
cmp byte [rsi + 0x30], dil
je 0x140086220
mov edi, dword [rsi + 0x2c]
jmp 0x140086220
mov ecx, r14d
call fcn.14007956c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140086220
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 0x140086220
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140086219
mov eax, dword [rsi + 0x2c]
jmp 0x14008621e
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140072b94
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 0x1400022f8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002160

Function at 0x1400024b1
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, 1
mov ecx, edi
call fcn.140006894
mov eax, 0x5a4d
cmp word [0x140000000], ax
je 0x14000232c
xor ebx, ebx
jmp 0x140002364
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140002328
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140002328
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x140002364
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
call fcn.1400028c4
test eax, eax
jne 0x140002393
cmp dword [0x1400178dc], 2
je 0x14000237f
call fcn.140002500
mov ecx, 0x1c
call fcn.140002574
mov ecx, 0xff
call fcn.140001f5c
call fcn.140006100
test eax, eax
jne 0x1400023be
cmp dword [0x1400178dc], 2
je 0x1400023aa
call fcn.140002500
mov ecx, 0x10
call fcn.140002574
mov ecx, 0xff
call fcn.140001f5c
call fcn.140004de0
nop
call fcn.1400061a4
test eax, eax
jns 0x1400023d7
mov ecx, 0x1b
call fcn.140002484
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [0x140017a58], rax
call fcn.140006988
mov qword [0x140016ba8], rax
call fcn.1400064d4
test eax, eax
jns 0x140002403
mov ecx, 8
call fcn.140001f74
call fcn.14000675c
test eax, eax
jns 0x140002416
mov ecx, 9
call fcn.140001f74
mov ecx, edi
call fcn.140001fbc
test eax, eax
je 0x140002428
mov ecx, eax
call fcn.140001f74
mov r8, qword [0x140016b68]
mov qword [0x140016b90], r8
mov rdx, qword [0x140016b58]
mov ecx, dword [0x140016b4c]
call fcn.1400010d0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140002459
mov ecx, eax
call fcn.1400022f8
call fcn.140001fac
jmp 0x140002477
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub esp, 0x28
call fcn.1400068dc
add rsp, 0x28
jmp 0x140002304
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180003008]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp edx, 1
jne 0x1800010c5
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov edx, 0x18dff
mov dword [rsp + 0x30], 0
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1800010a9
mov r8d, 0x18dff
lea rdx, [0x180003040]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x30]
mov edx, 0x18dff
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800010a9
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800010f0
add rsp, 0x48
ret
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800010f0
add rsp, 0x48
ret
Function at 0x6151000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r14d, dword [rbp + 0x50]
xor ebx, ebx
mov r12d, r9d
mov r13, r8
mov r11d, edx
mov r15, rcx
mov esi, r14d
cmp r14d, edx
jae 0x615105b
lea r10, [rcx + r14]
xor edx, edx
mov eax, esi
div r12d
mov al, byte [r10]
cmp byte [rdx + r8], al
je 0x61510f6
inc esi
inc r10
cmp esi, r11d
jb 0x615103d
lea rdi, [0x061843c8]
mov eax, dword [0x06178490]
mov ecx, ebx
movsd xmm0, qword [str.GetCurrentPath]
mov dword [rbp - 0x18], eax
movzx eax, word [0x06178494]
mov word [rbp - 0x14], ax
mov al, byte [0x06178496]
mov byte [rbp - 0x12], al
xor eax, eax
movsd qword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], eax
mov word [rbp - 4], ax
mov byte [rbp - 2], al
cmp byte [rbp - 0x20], bl
je 0x61510ab
inc ecx
cmp byte [rbp + rcx - 0x20], bl
jne 0x61510a3
mov eax, 0xe
cmp ecx, eax
cmova ecx, eax
test ecx, ecx
je 0x61510cb
lea rdx, [rbp - 0x10]
lea eax, [rbx + 0x30]
inc ebx
mov byte [rdx], al
inc rdx
cmp ebx, ecx
jb 0x61510bd
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rax, rdi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
sub esi, r14d
je 0x615105b
mov rcx, qword [0x061843d0]
lea r8d, [rsi + 1]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x6151126
lea rax, [0x061843c8]
jmp 0x61510d8
mov r8, rax
mov r9d, esi
xor edx, edx
mov eax, r14d
div r12d
mov cl, byte [rdx + r13]
xor cl, byte [r14 + r15]
inc r14d
mov byte [r8], cl
inc r8
sub r9, 1
jne 0x615112c
jmp 0x6151062
Function at 0x6151150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov edi, dword [rsp + 0x80]
xor ebx, ebx
mov r14d, r9d
mov r15, r8
mov esi, edx
mov rbp, rcx
mov r10d, edi
cmp edi, edx
jae 0x61511aa
lea r11, [rdi + rcx]
xor edx, edx
mov eax, r10d
div r14d
mov al, byte [r11]
cmp byte [rdx + r8], al
je 0x61511a5
inc r10d
inc r11
cmp r10d, esi
jb 0x6151187
jmp 0x61511aa
mov ebx, r10d
sub ebx, edi
mov eax, dword [0x061784a0]
xor ecx, ecx
movsd xmm0, qword [str.OpenStorage]
mov dword [rsp + 0x28], eax
xor eax, eax
movsd qword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
mov word [rsp + 0x3c], ax
mov byte [rsp + 0x3e], al
cmp byte [rsp + 0x20], al
je 0x61511e6
inc ecx
cmp byte [rsp + rcx + 0x20], al
jne 0x61511de
mov eax, 0xe
cmp ecx, eax
cmova ecx, eax
xor edx, edx
test ecx, ecx
je 0x615120a
lea r8, [rsp + 0x30]
lea eax, [rdx + 0x30]
inc edx
mov byte [r8], al
inc r8
cmp edx, ecx
jb 0x61511fb
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x061843d0]
lea r8d, [rbx + 1]
add r8, r8
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8, rax
test rax, rax
jne 0x615123f
lea rax, [0x061843cc]
jmp 0x615126d
test ebx, ebx
je 0x615126a
mov r9, r8
mov r10d, ebx
xor edx, edx
mov eax, edi
div r14d
mov cl, byte [rdx + r15]
xor cl, byte [rdi + rbp]
inc edi
movzx eax, cl
mov word [r9], ax
lea r9, [r9 + 2]
sub r10, 1
jne 0x6151249
mov rax, r8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x6152424
Capabilities:
Encode data using xor

Disassembly:
not r8d
test edx, edx
jne 0x615242e
xor eax, eax
ret
mov r9d, edx
lea rdx, [0x061784c0]
movzx eax, byte [rcx]
inc rcx
xor r8d, eax
mov eax, r8d
shr r8d, 4
and eax, 0xf
xor r8d, dword [rdx + rax*4]
mov eax, r8d
shr r8d, 4
and eax, 0xf
xor r8d, dword [rdx + rax*4]
sub r9, 1
jne 0x6152438
not r8d
mov eax, r8d
ret

Function at 0x61529e8
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [rcx]
mov rbx, rcx
mov rcx, qword [0x061843d0]
inc r8d
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r8d, r8d
mov r9, rax
test rax, rax
je 0x6152a39
cmp dword [rbx], r8d
jbe 0x6152a39
mov ecx, r8d
mov edx, r8d
and ecx, 3
inc r8d
mov al, byte [rcx + rbx + 0x108]
xor al, byte [rdx + rbx + 4]
mov byte [rdx + r9], al
cmp r8d, dword [rbx]
jb 0x6152a19
mov rax, r9
add rsp, 0x20
pop rbx
ret
Function at 0x6152a74
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x88
mov rcx, qword [0x061843d0]
xor ebx, ebx
mov r14d, r8d
mov qword [rbp + 0x77], rbx
mov r8d, 0x118
mov qword [rbp + 0x6f], rbx
mov r15, 0xffffffff80000001
mov esi, ebx
lea edx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp - 0x39], rax
mov rdi, rax
test rax, rax
je 0x6152c6d
lea r9, [rbp - 0x29]
mov dword [rax + 0x108], r14d
mov ecx, r14d
call fcn.0615597c
movsx ecx, byte [rbp - 0x29]
lea eax, [rcx - 0x61]
cmp al, 0x19
lea eax, [rcx - 0x20]
jbe 0x6152af9
mov eax, ecx
mov ecx, 0x235
mov byte [rbp - 0x29], al
call fcn.06153638
mov rcx, qword [0x061816f0]
mov r14, rax
mov qword [rbp + 0x57], rax
cmp dword [rcx + 0x218], 3
jne 0x6152b6f
mov rcx, qword [rcx + 0x110]
lea rdx, [rbp + 0x5f]
mov rax, qword [0x06181720]
mov r15, 0xffffffff80000003
mov qword [rbp + 0x5f], rbx
mov rcx, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rbp + 0x5f]
test rcx, rcx
je 0x6152b8c
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rbx
lea r9, [0x061784b8]
mov qword [rsp + 0x20], rax
mov r8, r14
lea rdx, [0x061784b8]
call fcn.061520d8
jmp 0x6152b85
xor r9d, r9d
lea r8, [rbp - 0x29]
lea rdx, [0x061784b8]
mov rcx, r14
call fcn.061520d8
mov qword [rbp + 0x6f], rax
mov rsi, rax
lea rax, [0x061843c8]
cmp r14, rax
je 0x6152ba5
or rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x57]
call fcn.06151300
lea rax, [rbp + 0x77]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x06181720]
mov rdx, rsi
mov rcx, r15
call qword [rax + 0x28]
test eax, eax
mov rax, qword [0x06181720]
je 0x6152bf4
lea r8, [rbp + 0x57]
mov qword [rbp + 0x57], rbx
mov rdx, rsi
mov rcx, r15
call qword [rax + 0x50]
test eax, eax
jne 0x6152c39
mov rcx, qword [rbp + 0x57]
mov rax, qword [0x06181720]
jmp 0x6152bf8
mov rcx, qword [rbp + 0x77]
call qword [rax + 0x38]
test rsi, rsi
je 0x6152c39
mov qword [rdi + 0x110], r15
mov eax, ebx
cmp byte [rsi], bl
je 0x6152c19
mov rcx, rsi
inc rcx
inc eax
cmp byte [rcx], bl
jne 0x6152c10
mov dword [rdi], eax
test eax, eax
je 0x6152c5d
mov eax, ebx
and eax, 3
mov ecx, ebx
inc ebx
mov al, byte [rbp + rax + 0x67]
xor al, byte [rcx + rsi]
mov byte [rcx + rdi + 4], al
cmp ebx, dword [rdi]
jb 0x6152c1f
jmp 0x6152c5d
mov edx, 0x118
lea rcx, [rbp - 0x39]
call fcn.06151300
xorps xmm0, xmm0
mov rdi, rbx
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
or rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x6f]
call fcn.06151300
mov rax, rdi
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x61545a8
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
xor r13d, r13d
mov r12, rdx
mov dword [rax + 8], r13d
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x270]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [rsp + 0x270]
mov ebp, r13d
mov r15, rax
test ecx, ecx
jle 0x61546f2
lea r14, [rsp + 0x20]
mov rsi, qword [r15]
cmp word [rsi], 0x2f
ja 0x615461f
movzx eax, word [rsi]
movabs rdx, 0xa00000002401
bt rdx, rax
jb 0x615465b
cmp ebx, 0x20
jae 0x615465b
mov rcx, rsi
mov qword [r14], rsi
mov rdi, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
test eax, eax
jle 0x615464e
cmp word [rsi + rdi*2], 0x2c
jne 0x6154646
mov word [rsi + rdi*2], r13w
inc rdi
cmp rdi, rcx
jl 0x615463a
mov ecx, dword [rsp + 0x270]
inc ebx
add r14, 8
inc ebp
add r15, 8
cmp ebp, ecx
jl 0x6154603
cmp ebx, 1
jne 0x6154671
mov rbx, qword [rsp + 0x20]
jmp 0x6154678
jle 0x61546f2
mov rbx, qword [rsp + 0x28]
cmp word [rbx], 0x5c
je 0x61546dc
cmp word [rbx + 2], 0x3a
je 0x61546dc
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor r9d, r9d
lea rdx, [0x06178634]
mov r8, rbx
lea rcx, [rsp + 0x20]
call fcn.06152170
mov r8d, 0x104
mov qword [rsp + 0x280], rax
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rdx, 0xfffffffffffffffe
lea rcx, [rsp + 0x280]
call fcn.06151300
jmp 0x61546ee
mov r8d, 0x104
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
jmp 0x61546f5
or eax, 0xffffffff
mov rbx, qword [rsp + 0x278]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x6154df4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x6154e22
cmp byte [rdx], dil
je 0x6154e22
mov rax, rdx
inc rax
inc edi
cmp byte [rax], 0
jne 0x6154e18
mov r9d, 8
lea r8, [rsp + 0x20]
lea edx, [r9 + 1]
lea ecx, [rdx + 0x29]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea r8, [rsi + 0x400]
mov edx, edi
mov rcx, rbx
call fcn.06155fec
mov rbx, qword [rsp + 0x40]
mov eax, 0x14
mov word [rsi + 0x420], ax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x61558b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
movsxd rsi, edx
mov rdi, rcx
lea rax, str.shlwapi32.dll
xor r9d, r9d
inc rax
inc r9d
cmp byte [rax], 0
jne 0x61558d6
mov eax, 0xf
mov byte [rsp + 0x2f], 0
cmp r9d, eax
cmova r9d, eax
xor ecx, ecx
test r9d, r9d
je 0x615590d
lea rdx, [rsp + 0x20]
lea eax, [rcx + 0x41]
inc ecx
mov byte [rdx], al
inc rdx
cmp ecx, r9d
jb 0x61558fe
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9b, byte [rbx + 0x100]
mov r11, rsi
mov r10b, byte [rbx + 0x101]
test esi, esi
jle 0x615595e
inc r9b
movzx r8d, r9b
mov dl, byte [r8 + rbx]
add r10b, dl
movzx ecx, r10b
mov al, byte [rcx + rbx]
mov byte [r8 + rbx], al
mov byte [rcx + rbx], dl
add dl, byte [r8 + rbx]
movzx eax, dl
mov cl, byte [rax + rbx]
xor byte [rdi], cl
inc rdi
sub r11, 1
jne 0x615592d
mov rsi, qword [rsp + 0x48]
mov byte [rbx + 0x100], r9b
mov byte [rbx + 0x101], r10b
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret