joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001493
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1b0], rcx
lea r8, section..rdata
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp + 0x188], rax
cmp qword [rbp + 0x188], 0
jne 0x1400014e0
mov eax, 0
jmp 0x1400016e3
mov rax, qword [rbp + 0x188]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp + 0x184], eax
mov rax, qword [rbp + 0x188]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp + 0x178], rax
cmp qword [rbp + 0x178], 0
jne 0x140001531
mov eax, 0
jmp 0x1400016e3
mov rax, qword [rbp + 0x178]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp + 0x170], rax
cmp qword [rbp + 0x170], 0
jne 0x14000155f
mov eax, 0
jmp 0x1400016e3
mov rax, qword [rbp + 0x1b0]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0xffffffffffffffff
jne 0x1400015c6
mov rax, qword [rbp + 0x170]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x1400016e3
mov dword [rbp + 0x164], 0
lea r8, [rbp + 0x164]
mov ecx, dword [rbp + 0x184]
mov rdx, qword [rbp + 0x170]
mov rax, qword [rbp + 0x168]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
jne 0x140001636
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x170]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x1400016e3
mov rax, qword [rbp + 0x168]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rdx, qword [rbp + 0x1b0]
lea rax, [rbp + 0x60]
mov r8, rdx
lea rdx, str.rundll32.exe__s_Test
mov rcx, rax
call fcn.140001450
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x10], 0x68
pxor xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movq qword [rbp - 0x20], xmm0
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
add rsp, 0x218
pop rdi
pop rbp
ret
Function at 0x1400016ed
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Write and execute a file
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
lea r8, [0x14000a019]
mov edx, 2
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001728
mov eax, 0
jmp 0x140001888
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x14000176a
mov eax, 0
jmp 0x140001888
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x14000178f
mov eax, 0
jmp 0x140001888
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x1400017ea
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x140001888
mov dword [rbp - 0x2c], 0
lea r8, [rbp - 0x2c]
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
jne 0x140001842
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x140001888
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
lea rax, str.open
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteA]
call rax
add rsp, 0x70
pop rbp
ret
Function at 0x14000188e
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov dword [rbp + 0xc8], r9d
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sCleanUp5.dll
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001493
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sFusionClientDownloader.exe
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400016ed
mov eax, 0
add rsp, 0x120
pop rbp
ret
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.1400019f0
call fcn.140007900
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000806b
jmp 0x1400080e1
test cl, cl
je 0x140008098
and esi, 1
je 0x140008080
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140008067
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140008048
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140008056
test cl, cl
je 0x140008098
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140008098
cmp al, 0x20
jle 0x140008088
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1400080c6
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000a770]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp 0x14000188e
lea rbx, [0x14000a060]
jmp 0x140008098

Function at 0x140001c00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007930
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007930
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e094]
mov rbx, rcx
test esi, esi
jle 0x140001da0
mov rax, qword [0x14000e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ca0
mov rcx, rbx
call fcn.1400026e0
mov rdi, rax
test rax, rax
je 0x140001dc2
mov rax, qword [0x14000e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001da7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d50
add dword [0x14000e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001c00
nop dword [rax]
xor esi, esi
jmp 0x140001cc8
mov rax, qword [0x14000e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001c00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001c00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x1400023ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400023a3
test eax, eax
jne 0x1400023a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002388
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400026e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000275d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002700
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a770]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000277f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002788
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000277f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000283f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140008020
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov dword [rbp + 0xc8], r9d
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sCleanUp5.dll
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001493
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str.temp
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str._sFusionClientDownloader.exe
mov rcx, rax
call fcn.140001450
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400016ed
mov eax, 0
add rsp, 0x120
pop rbp
ret
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call fcn.1400019f0
call fcn.140007900
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000806b
jmp 0x1400080e1
test cl, cl
je 0x140008098
and esi, 1
je 0x140008080
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140008067
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140008048
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140008056
test cl, cl
je 0x140008098
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140008098
cmp al, 0x20
jle 0x140008088
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1400080c6
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x14000a770]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp 0x14000188e
lea rbx, [0x14000a060]
jmp 0x140008098
Function at 0x1800029dc
Capabilities:
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x180002a0c
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x1800029ee
mov rax, r8
ret

Function at 0x180017ea4
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180017ed2
xor eax, eax
jmp 0x180017fb8
cmp qword [rcx + 0x68], 0
je 0x180017ee3
call fcn.180017fd4
jmp 0x180017fb8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180017efa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180017efc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180017f2e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1800e3e40
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180017fb2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180017f65
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180017f8e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800bb3cc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180017fb2
cmp rsi, rbx
ja 0x180017f6c
test rsi, rsi
je 0x180017fb2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800bb3cc
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180019b98
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov r14, rcx
mov r12d, 4
lea rcx, [rbp - 0x20]
mov r8d, r12d
mov rbx, rdx
call fcn.1800e3e40
lea rdx, [rbx + 4]
mov r8d, r12d
lea rcx, [rbp - 0x1c]
call fcn.1800e3e40
lea rdx, [rbx + 8]
mov r8d, r12d
lea rcx, [rbp - 0x18]
call fcn.1800e3e40
lea rdx, [rbx + 0xc]
mov r8d, r12d
lea rcx, [rbp - 0x14]
call fcn.1800e3e40
mov rdx, qword [r14 + 8]
xor edi, edi
sub rdx, 0x10
mov ecx, edi
mov eax, dword [rdx]
add rdx, r12
xor dword [rbp + rcx*4 - 0x20], eax
inc rcx
cmp rcx, r12
jl 0x180019c16
lea rcx, [rbp - 0x20]
call fcn.18001a68c
lea rcx, [rbp - 0x20]
call fcn.18001a724
mov rbx, qword [r14 + 8]
sub rbx, qword [r14]
sar rbx, 4
sub rbx, 2
je 0x180019c8e
mov rsi, rbx
shl rsi, 4
mov rdx, qword [r14]
mov rcx, rdi
add rdx, rsi
mov eax, dword [rdx + rcx*4]
xor dword [rbp + rcx*4 - 0x20], eax
inc rcx
cmp rcx, r12
jl 0x180019c5a
lea rcx, [rbp - 0x20]
call fcn.18001a0e4
lea rcx, [rbp - 0x20]
call fcn.18001a68c
lea rcx, [rbp - 0x20]
call fcn.18001a724
sub rsi, 0x10
sub rbx, 1
jne 0x180019c51
mov rcx, qword [r14]
mov eax, dword [rcx + rdi*4]
xor dword [rbp + rdi*4 - 0x20], eax
inc rdi
cmp rdi, r12
jl 0x180019c91
mov r8, r12
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.1800e3e40
lea rcx, [r15 + 4]
mov r8, r12
lea rdx, [rbp - 0x1c]
call fcn.1800e3e40
lea rcx, [r15 + 8]
mov r8, r12
lea rdx, [rbp - 0x18]
call fcn.1800e3e40
lea rcx, [r15 + 0xc]
mov r8, r12
lea rdx, [rbp - 0x14]
call fcn.1800e3e40
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800af730
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x180031888
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x30]
call fcn.18002effc
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
mov ecx, dword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x20]
test r9, r9
je 0x180031930
mov rcx, r9
mov rdx, r8
mov eax, edi
cmp word [r8], di
je 0x180031920
cmp rcx, 1
je 0x180031923
dec rcx
add rdx, 2
cmp word [rdx], di
jne 0x18003190e
mov rax, rdx
test rax, rax
je 0x180031930
sub rax, r8
sar rax, 1
jmp 0x180031934
or rax, 0xffffffffffffffff
cmp r9, rax
jb 0x180031991
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
mov word [rcx + rax*2], di
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8d, 0x20
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1800e3e40
nop
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800af730
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.180013448
nop
int3
Function at 0x1800423b4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180042442
lea rsi, [rbx + 0x10]
mov ecx, 2
mov rdx, qword [rsi]
lea rdx, [rdx*2 + 1]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18004243a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18004243a
cmp qword [rbx + 0x18], 7
jbe 0x18004240c
mov rbx, qword [rbx]
mov rdx, qword [rsi]
mov r8, rbx
inc rdx
mov rcx, rax
call fcn.1800c2db4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18004809c
Capabilities:
Encode data using xor

Disassembly:
mov r9d, ecx
test rdx, rdx
jne 0x1800480a7
xor eax, eax
ret
not r9d
test r8, r8
je 0x1800480e8
lea r10, [0x180349520]
movzx ecx, byte [rdx]
mov eax, r9d
xor rax, rcx
shr r9d, 4
and eax, 0xf
shr rcx, 4
inc rdx
xor r9d, dword [r10 + rax*4]
mov eax, r9d
shr r9d, 4
and eax, 0xf
xor rax, rcx
xor r9d, dword [r10 + rax*4]
sub r8, 1
jne 0x1800480b6
not r9d
mov eax, r9d
ret
Function at 0x18004889c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test rcx, rcx
je 0x1800489c7
mov r9, qword [rcx + 0x58]
test r9, r9
je 0x1800489c7
cmp edx, dword [rcx + 0x10]
jae 0x1800489c7
cmp dword [rcx + 0x14], 1
jne 0x1800489c7
mov rax, qword [r9 + 0x20]
mov r8d, edx
mov edi, dword [rax + r8*4]
add rdi, qword [r9]
je 0x1800489c7
test rsi, rsi
je 0x1800489c7
mov dword [rsi], edx
mov rax, qword [rcx + 0x58]
mov rcx, qword [rax + 0x20]
mov eax, dword [rcx + r8*4]
mov dword [rsi + 4], eax
movzx eax, word [rdi + 4]
mov word [rsi + 8], ax
movzx eax, word [rdi + 6]
mov word [rsi + 0xa], ax
movzx eax, word [rdi + 8]
mov word [rsi + 0xc], ax
movzx eax, word [rdi + 0xa]
mov word [rsi + 0xe], ax
movzx edx, word [rdi + 0xe]
movzx ecx, word [rdi + 0xc]
call fcn.18004819c
mov qword [rsi + 0x10], rax
lea rdx, [rdi + 0x2e]
mov eax, dword [rdi + 0x10]
mov ecx, 0x103
mov dword [rsi + 0x18], eax
mov eax, dword [rdi + 0x14]
mov qword [rsi + 0x20], rax
mov eax, dword [rdi + 0x18]
mov qword [rsi + 0x28], rax
movzx eax, word [rdi + 0x24]
mov word [rsi + 0x30], ax
mov eax, dword [rdi + 0x26]
mov dword [rsi + 0x34], eax
mov eax, dword [rdi + 0x2a]
mov qword [rsi + 0x38], rax
movzx eax, word [rdi + 0x1c]
cmp eax, ecx
cmovb ecx, eax
mov ebx, ecx
lea rcx, [rsi + 0x44]
mov r8d, ebx
call fcn.1800e3e40
mov byte [rbx + rsi + 0x44], 0
mov edx, 0xff
movzx ecx, word [rdi + 0x20]
cmp ecx, edx
cmovb edx, ecx
mov dword [rsi + 0x40], edx
movzx ecx, word [rdi + 0x1e]
mov ebx, edx
add rcx, rdi
movzx edx, word [rdi + 0x1c]
mov r8d, ebx
add rdx, 0x2e
add rdx, rcx
lea rcx, [rsi + 0x148]
call fcn.1800e3e40
mov eax, 1
mov byte [rbx + rsi + 0x148], 0
jmp 0x1800489c9
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18004c210
Capabilities:
Create process on windows

Disassembly:
test ecx, ecx
je 0x18004c2d7
sub rsp, 0x118
mov rax, qword [0x180375980]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor edx, edx
mov dword [rsp + 0x50], ecx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.1800e44e0
and qword [rsp + 0x58], 0
lea r8, [rsp + 0x50]
xorps xmm0, xmm0
mov dword [rsp + 0x70], WSAGetLastError
lea rdx, str.C:WindowsSystem32cmd.exe__C_start_steam:__run_
lea rcx, [rsp + 0xe0]
movups xmmword [rsp + 0x60], xmm0
call fcn.180020594
lea rcx, [rsp + 0xe0]
call fcn.180030ff4
mov rdx, rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18004c2cf
lea rcx, str.Failed_to_restart_the_game_n
call fcn.18001a9bc
xor ecx, ecx
call fcn.1800c6208
int3
ret