joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140093a54
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.140070e68
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140093ade
cmp byte [rbp - 0x21], r15b
je 0x140093ad9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140093b14
call fcn.1400861f4
test eax, eax
jne 0x140093b00
cmp byte [rbp - 0x21], r15b
je 0x140093af8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140093b14
cmp byte [rbp - 0x21], r15b
je 0x140093b11
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.140076448
test eax, eax
jne 0x140093bb4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140070e68
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140093b53
cmp byte [rbp - 0x21], r15b
je 0x140093b88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140093b88
call fcn.1400861f4
test eax, eax
jne 0x140093b74
cmp byte [rbp - 0x21], r15b
je 0x140093b6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140093b88
cmp byte [rbp - 0x21], r15b
je 0x140093b85
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.140076448
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140093bb4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140093bb7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140093bc5
mov rcx, rdi
call fcn.14004c140
cmp byte [rbp + 0x3f], r15b
je 0x140093bd4
mov rcx, qword [rbp + 0x27]
call fcn.14004c140
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 0x1400ad0b0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140067374
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400ad120]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400765c4
mov qword [rbx], rax
test rax, rax
je 0x1400ad107
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400ad7a0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400ff3f8], 0
je 0x1400ad7e6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400686c0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1400ff3d0]
test rdi, rdi
je 0x1400ad887
test byte [0x1400eef48], 1
je 0x1400ad7c9
cmp byte [rdi + 0x17], 0
jns 0x1400ad808
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400ff3f8], rax
inc rax
cmp rax, 1
ja 0x1400ad7c9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006a7e0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400ad952
xor esi, esi
jmp 0x1400ad7c9
mov ecx, 0x18
call fcn.140067374
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14006a7e0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400d7af0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400230d0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400ad8ee
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1400ad8f4
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1400ad91a
lea rdx, [0x1400daae0]
mov r8d, 9
mov rcx, rdi
call fcn.1400263e0
mov qword [0x1400ff3d0], rdi
jmp 0x1400ad7f6
lea r8, [rax + rax]
test r8, r8
je 0x1400ad8f9
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400ad91e
cmp rdx, 0xfffffffffffffffe
je 0x1400ad8f9
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1400ada19
mov rcx, rdi
call fcn.1400ad740
jmp 0x1400ad8f9
mov rdi, qword [0x1400ff3d0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400818f8
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400260c0
mov rcx, qword [0x1400ff3d0]
call fcn.140024650
cmp word [rax], 0x5c
je 0x1400ad99f
mov rcx, qword [0x1400ff3d0]
lea rdx, [0x1400daadc]
mov r8d, 1
call fcn.1400263e0
mov rcx, qword [0x1400ff3d0]
lea rdx, [0x1400daae0]
mov r8d, 9
call fcn.1400263e0
mov rcx, qword [0x1400ff3d0]
cmp byte [rcx + 0x17], 0
jns 0x1400ad9c8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400ff3f8], rax
inc rax
cmp rax, 1
ja 0x1400ad7c9
mov qword [0x1400ff3f8], 0
jmp 0x1400ad880
call fcn.14007afa0
int3
Function at 0x1400aeec0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400aef3f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400aef44
test bl, bl
je 0x1400aef1b
cmp byte [rdi + 8], 0
je 0x1400aefa0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.14002c880
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400686c0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1400aeeed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400aef6c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400aef71
xor esi, esi
jmp 0x1400aef28
mov rcx, qword [rdi]
jmp 0x1400aef59
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1400aefa8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400aef1b
mov esi, dword [rsp + 0x24]
jmp 0x1400aef1b
mov rcx, qword [rdi]
jmp 0x1400aef10
mov rcx, qword [rdi]
jmp 0x1400aef88
Function at 0x1400bebc0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400bebfe
test rax, rax
je 0x1400becbb
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400bece7
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x1400becae
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x1400becbb
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.14006a130
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x1400bebf2
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400bf220
mov rcx, rdi
mov rdx, r15
call fcn.1400bf7a0
jmp 0x1400bec4d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400959c0
call fcn.14007afa0
int3

Function at 0x1400c6920
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400ed028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400c69a8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400c69a1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1400c6962
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400686c0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140003adc
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.14002a170
sub rsp, rax
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0x1090], rax
lea r14, [rsp + 0x30]
mov qword [rsp + 0x20], r14
lea rcx, [0x140253dec]
lea rdx, [0x1402644f8]
lea r8, [0x140264509]
lea r9, [rsp + 0x38]
call fcn.140001aa0
test eax, eax
je 0x140001238
xor esi, esi
jmp 0x14000126d
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 1]
call fcn.14017f418
mov rsi, rax
mov rbx, qword [rsp + 0x38]
test rax, rax
je 0x140001265
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.14016bb20
mov byte [rsi + rdi], 0
mov rcx, rbx
call fcn.14017e344
mov rcx, rsi
call fcn.14017e344
mov qword [rsp + 0x20], r14
lea rcx, [0x1402540f8]
lea rdx, [0x1402644f8]
lea r8, [0x140264509]
lea r9, [rsp + 0x38]
call fcn.140001aa0
test eax, eax
je 0x1400012a1
xor esi, esi
jmp 0x1400012d6
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 1]
call fcn.14017f418
mov rsi, rax
mov rbx, qword [rsp + 0x38]
test rax, rax
je 0x1400012ce
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.14016bb20
mov byte [rsi + rdi], 0
mov rcx, rbx
call fcn.14017e344
call fcn.140002530
call fcn.140002670
call fcn.140002530
mov rcx, rsi
call fcn.140003390
test eax, eax
je 0x1400012fd
call fcn.140002670
call fcn.140002530
jmp 0x140001317
lea rcx, str.C:Windowscomsetup.log
call fcn.140003390
call fcn.140002670
call fcn.1400030f0
test eax, eax
jne 0x140001339
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.14002a1d0
xor eax, eax
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140002530
lea rcx, [0x140253ef0]
call section..text
mov rdi, rax
lea rcx, [0x140253ff4]
call section..text
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call fcn.140002e60
test eax, eax
je 0x140001479
call fcn.140002530
call fcn.140003340
test eax, eax
jne 0x140001479
call fcn.140002670
call fcn.140003230
mov ebp, eax
call fcn.140002530
test ebp, ebp
je 0x1400013b7
call fcn.140003340
call fcn.140002670
call fcn.140003230
call fcn.140002530
call fcn.140002670
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [0x140253ce8]
call section..text
mov r14, rax
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.140002720
mov rcx, r14
call fcn.14017e344
call fcn.140002670
call fcn.140002530
lea r14, [rsp + 0x14e]
lea r15, [0x140210f74]
mov edx, 0x65
mov rcx, r14
mov r8, r15
call fcn.140003170
call fcn.140002670
lea rcx, [rsp + 0x252]
mov edx, 0x66
mov r8, r15
call fcn.140003170
call fcn.140002530
lea rcx, [rsp + 0x45a]
mov edx, 0x68
mov r8, r15
call fcn.140003170
call fcn.140002670
lea rcx, [rsp + 0x356]
mov edx, 0x69
mov r8, r15
call fcn.140003170
call fcn.140002530
mov rcx, r14
call fcn.140002d50
call fcn.140002530
call fcn.140002670
mov rcx, rsi
call fcn.1400033f0
mov rcx, rsi
call fcn.14017e344
mov rcx, rdi
call fcn.14017e344
mov rcx, rbx
call fcn.14017e344
call fcn.140002530
int3
Function at 0x1400016e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov rsi, r8
mov r8, rcx
mov r9d, dword [rdx]
mov eax, dword [rdx + 4]
bswap r9d
bswap eax
mov r11d, dword [rdx + 8]
bswap r11d
mov edx, dword [rdx + 0xc]
bswap edx
xor r10d, r10d
nop word cs:[rax + rax]
mov ebx, eax
xor r9d, eax
mov ecx, ebx
rol r9d, cl
mov eax, r11d
mov ecx, edx
xor eax, edx
mov r11d, edx
rol eax, cl
mov edx, r9d
add edx, dword [r8 + r10*8]
add eax, dword [r8 + r10*8 + 4]
inc r10
mov r9d, ebx
cmp r10, 0x14
jne 0x140001710
add ebx, dword [r8 + 0xa0]
add r11d, dword [r8 + 0xa4]
mov ecx, ebx
shr ecx, 0x18
mov byte [rsi], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [rsi + 1], cl
mov byte [rsi + 2], bh
mov byte [rsi + 3], bl
mov ecx, eax
shr ecx, 0x18
mov byte [rsi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 5], cl
mov byte [rsi + 6], ah
mov byte [rsi + 7], al
mov ecx, r11d
mov eax, r11d
shr eax, 0x18
mov byte [rsi + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 9], al
mov byte [rsi + 0xa], ch
mov byte [rsi + 0xb], cl
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0xd], al
mov byte [rsi + 0xe], dh
mov byte [rsi + 0xf], dl
pop rbx
pop rsi
ret
Function at 0x140002c70
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rdi, rcx
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0x158], rax
call fcn.140002670
call fcn.140002530
xor ebx, ebx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140002d2b
mov rsi, rax
mov dword [rsp + 0x28], 0x130
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140002d10
call fcn.140002670
call fcn.140002530
lea rbx, [rsp + 0x54]
mov r15, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea r14, [rsp + 0x28]
nop dword [rax + rax]
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x140002d14
mov rcx, rsi
mov rdx, r14
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140002cf0
xor ebx, ebx
jmp 0x140002d18
xor ebx, ebx
jmp 0x140002d22
mov ebx, dword [rsp + 0x30]
call fcn.140002670
call fcn.140002530
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14002a1d0
mov eax, ebx
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140002d50
Capabilities:
Create process on windows

Disassembly:
push rsi
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.140002530
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0xd0], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov word [rsp + 0xb0], 0
call fcn.140002670
call fcn.140002530
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140002e30
call fcn.140002670
mov rcx, qword [rsp + 0x50]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x58]
call rsi
call fcn.140002530
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14002a1d0
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rsi
ret
Function at 0x140002f60
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140002fc4
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call fcn.14016bb20
test rsi, rsi
je 0x14000305b
cmp rsi, 8
jae 0x140002fcb
xor eax, eax
jmp 0x140003050
xor esi, esi
jmp 0x1400030d5
cmp rsi, 0x20
jae 0x140002fd5
xor eax, eax
jmp 0x140003022
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
pcmpeqd xmm0, xmm0
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdi + rcx]
movdqu xmm2, xmmword [rdi + rcx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rdi + rcx], xmm1
movdqu xmmword [rdi + rcx + 0x10], xmm2
add rcx, 0x20
cmp rax, rcx
jne 0x140002ff0
cmp rax, rsi
je 0x14000305b
test sil, 0x18
je 0x140003050
mov rcx, rax
mov rax, rsi
and rax, 0xfffffffffffffff8
pcmpeqd xmm0, xmm0
movq xmm1, qword [rdi + rcx]
pxor xmm1, xmm0
movq qword [rdi + rcx], xmm1
add rcx, 8
cmp rax, rcx
jne 0x140003030
cmp rax, rsi
je 0x14000305b
nop dword [rax]
not byte [rdi + rax]
inc rax
cmp rsi, rax
jne 0x140003050
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0xc0000000
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002a1d0
mov eax, esi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400030f0
Capabilities:
Check mutex on windows
Get hostname

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x140250648]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov dword [rsp + 0x2c], 0x104
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.14016c1c0
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor ecx, ecx
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0xb7
setne sil
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14002a1d0
mov eax, esi
add rsp, 0x240
pop rsi
ret
Function at 0x140003170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140003219
mov rsi, rax
call fcn.140002670
xor r15d, r15d
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
call fcn.140002530
test rbx, rbx
je 0x140003219
call fcn.140002530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400031fc
mov r15, rax
call fcn.140002670
add r14d, 0xfffffc00
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.140002f60
test eax, eax
je 0x1400031fc
call fcn.140002530
call fcn.140002670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 1
mov eax, r15d
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14000f0c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14002a170
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1400186e0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140018707
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x1400186f0
movzx eax, r9b
ret
Function at 0x140019650
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.14002a170
sub rsp, rax
mov rbx, r8
call fcn.140018710
test eax, eax
js 0x1400198a4
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x1400196dd
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140019690
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x1400198a2
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140000000]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x1aae00]
movzx eax, byte [rdi + rax*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aa600]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1aaa00]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x1a9a00]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1aaa00]
movzx eax, byte [rdi + rcx*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aae00]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x1aa600]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x1a9a00]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1aaa00]
movzx eax, byte [rdi + rcx*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aae00]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x1aa600]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x1a9a00]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1aaa00]
movzx eax, byte [rdi + rcx*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aae00]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x1aa600]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140019700
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret