joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000d3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x18000d3e3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000d426
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x18000d421
cmp rbx, r11
jae 0x18000d426
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x18000d410
cmp rbx, r11
jb 0x18000d42a
xor eax, eax
jmp 0x18000d436
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180014070
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x2a0
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp eax, 0xffffffff
jne 0x1800140b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x1800141c0
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1800140e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x1800141c0
mov qword [rsp + 0x2b8], rbp
mov qword [rsp + 0x2c0], rdi
xor ebp, ebp
lea rcx, [rsp + 0x7c]
call fcn.18007eee8
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x40], 7
mov rdx, rax
xor eax, eax
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov word [rsp + 0x28], bp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x28]
call fcn.180004cc0
lea rcx, [rsp + 0x7c]
mov rdx, rsi
call fcn.18007a988
test eax, eax
jne 0x18001417c
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [rsp + 0x58]
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebp
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edx, dword [rsp + 0x24]
cmp dword [rsp + 0x20], edx
je 0x1800141e1
test edx, edx
je 0x1800141e1
cmp qword [rsp + 0x40], 8
jb 0x18001418e
mov rcx, qword [rsp + 0x28]
call fcn.18007a7a4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800140f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov rbp, qword [rsp + 0x2b8]
mov rdi, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x40], 8
mov edi, dword [rsp + 0x58]
jb 0x180014200
mov rcx, qword [rsp + 0x28]
call fcn.18007a7a4
mov eax, edi
jmp 0x1800141b0
Function at 0x180018710
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
add rcx, 0x230
mov r10, qword [rcx + 0x10]
cmp r10, r10
mov rbx, r10
cmp qword [rcx + 0x18], 8
jb 0x180018737
mov rdx, qword [rcx]
jmp 0x18001873a
mov rdx, rcx
mov r9d, recv
lea r8, str.terraexplorer
cmp r10, r9
cmovb r9, r10
xor r11d, r11d
or esi, 0xffffffff
test r9, r9
je 0x180018776
nop dword [rax]
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x1800187ab
add rdx, 2
add r8, 2
dec r9
jne 0x180018760
mov r9d, r11d
movsxd rax, r9d
test r9d, r9d
jne 0x18001878d
cmp r10, 0xd
jb 0x180018795
mov eax, r11d
setne al
test eax, eax
je 0x180018873
cmp rbx, rbx
mov r10, rbx
cmovb r10, rbx
cmp qword [rcx + 0x18], 8
jb 0x1800187ba
mov rdx, qword [rcx]
jmp 0x1800187bd
cmp word [rdx], ax
mov r9d, 1
cmovb r9d, esi
jmp 0x180018779
mov rdx, rcx
mov r9d, recv
lea r8, str.terrabuilder
cmp r10, r9
cmovb r9, r10
test r9, r9
je 0x1800187fa
nop word [rax + rax]
movzx eax, word [r8]
cmp word [rdx], ax
jne 0x180018883
add rdx, 2
add r8, 2
dec r9
jne 0x1800187e0
mov r9d, r11d
movsxd rax, r9d
test r9d, r9d
jne 0x180018811
cmp r10, 0xc
jb 0x180018815
mov eax, r11d
setne al
test eax, eax
je 0x180018873
cmp rbx, rbx
mov r9, rbx
cmovb r9, rbx
cmp qword [rcx + 0x18], 8
jb 0x180018829
mov rcx, qword [rcx]
mov r8d, recv
lea rdx, str.citybuilder
cmp r9, r8
cmovb r8, r9
test r8, r8
je 0x180018857
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x180018895
add rcx, 2
add rdx, 2
dec r8
jne 0x180018842
mov r8d, r11d
movsxd rax, r8d
test r8d, r8d
jne 0x18001886f
cmp r9, 0xb
jb 0x1800188a4
setne r11b
mov eax, r11d
test eax, eax
jne 0x1800188a4
mov eax, 1
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
cmp word [rdx], ax
mov r9d, 1
cmovb r9d, esi
jmp 0x1800187fd
cmp word [rcx], ax
mov r8d, 1
cmovb r8d, esi
jmp 0x18001885a
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
xor eax, eax
ret
Function at 0x180020300
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edi, r9d
mov esi, r8d
mov r13, rdx
mov r12, rcx
mov r9d, r8d
lea r8, [0x1800a97a8]
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.18007b760
mov ebp, eax
mov ecx, dword [str.0000]
mov dword [rsp + 0x48], ecx
movzx ecx, byte [0x1800aaa10]
mov byte [rsp + 0x4c], cl
cmp eax, 4
jge 0x180020399
mov ebx, 4
sub ebx, eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, ebx
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, dword [rsp + 0x30]
jne 0x1800203fb
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, ebp
lea rdx, [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebp, dword [rsp + 0x30]
jne 0x1800203fb
lea rax, vtable.CKeyFileHelper.0
mov qword [rsp + 0x38], rax
dec edi
jne 0x1800203d8
mov edx, esi
mov rcx, r13
call fcn.1800200d0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [rsp + 0x30]
je 0x1800203ff
xor eax, eax
jmp 0x180020404
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180020430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov ebx, r8d
mov rdi, rdx
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea r8d, [rax + 4]
mov rsi, rcx
mov qword [rsp + 0x38], rax
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], al
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 4
je 0x18002048c
or eax, 0xffffffff
jmp 0x1800204f1
lea r8, [rsp + 0x34]
lea rdx, [0x1800a97a8]
lea rcx, [rsp + 0x38]
mov byte [rsp + 0x3c], 0
call fcn.18007b890
mov r8d, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x34]
cmp r11d, dword [rsp + 0x30]
jne 0x180020487
dec ebx
jne 0x1800204e6
mov edx, r11d
mov rcx, rdi
call fcn.1800201e0
mov r11d, dword [rsp + 0x34]
movsxd rax, r11d
mov byte [rax + rdi], 0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180026e30
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
lea r8, [rsp + 0x34]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor ebx, ebx
lea r8, [rsp + 0x30]
lea r9d, [rbx + 0x10]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x180027010
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov rax, rsp
push r13
sub rsp, 0xa0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
cmp rcx, 0xffffffffffffffff
jne 0x180027058
xor al, al
jmp 0x180027149
xor sil, sil
mov byte [rsp + 0x30], sil
mov r13d, 1
mov r9d, r13d
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180027051
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8d, [r13 + 0x3f]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180027125
cmp dword [rsp + 0x34], 0x40
jne 0x180027125
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x180027125
mov r12d, dword [rsp + 0x8c]
cmp r12d, 0x2000
jae 0x180027125
cmp r12d, 0x40
jb 0x180027125
lea edx, [r12 - 0x40]
mov r9d, r13d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
jne 0x180027125
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8d, [r13 + 3]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180027125
cmp dword [rsp + 0x34], 4
jne 0x180027125
movzx esi, sil
cmp dword [rsp + 0x50], 0x4550
cmove esi, r13d
mov byte [rsp + 0x30], sil
jmp 0x180027131
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
movzx eax, sil
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x1800279e0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0xfb0]
mov eax, 0x10b0
call fcn.18007fc70
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x10c8], rbx
mov qword [rsp + 0x10d0], rsi
mov qword [rsp + 0x10d8], rdi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov rbx, rcx
xor esi, esi
mov word [rbp - 0x60], si
xor edx, edx
mov r8d, 0xffe
lea rcx, [rbp - 0x5e]
call fcn.18007e840
xor r9d, r9d
lea r8d, [rsi + 0x23]
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.180004cc0
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180027a8a
and eax, 0x10
jne 0x180027a96
xor edx, edx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov r8d, 9
lea rdx, str.piclesoft
lea rcx, [rsp + 0x48]
call fcn.180004cc0
nop
lea r8, [rsp + 0x48]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.180027780
nop
mov rdx, rax
mov rcx, rbx
call fcn.180004950
nop
cmp qword [rbp - 0x78], 8
jb 0x180027af1
mov rcx, qword [rsp + 0x70]
call fcn.18007a7a4
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rsi
mov word [rsp + 0x70], si
cmp qword [rsp + 0x60], 8
jb 0x180027b14
mov rcx, qword [rsp + 0x48]
call fcn.18007a7a4
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0x28]
test rax, rax
je 0x180027b43
xor r9d, r9d
lea r8, [rsp + 0x30]
lea edx, [r9 + 1]
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
cmp qword [rbx + 0x18], 8
jb 0x180027b4f
mov rcx, qword [rbx]
jmp 0x180027b52
mov rcx, rbx
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [rbx + 0x18], 8
jb 0x180027b67
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180027b81
and eax, 0x10
je 0x180027b81
mov eax, 1
jmp 0x180027b83
xor eax, eax
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180028f00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x1048
call fcn.18007fc70
sub rsp, rax
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, rcx
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0xffe
lea rdi, [rsp + 0x1068]
mov word [rsp + 0x30], ax
call fcn.18007e840
mov edx, 0x800
lea rcx, [rsp + 0x30]
lea r8d, [rdx - 1]
mov r9, rbx
mov qword [rsp + 0x20], rdi
call fcn.18007c2f8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.18007a7c0
add rsp, 0x1048
pop rdi
pop rbx
ret

Function at 0x180029b00
Capabilities:
Enumerate threads
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
call fcn.180029e80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180029b44
xor eax, eax
jmp 0x180029c2b
xor eax, eax
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x30], 0x1c
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180029c1d
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], r12
xor r12d, r12d
mov edx, dword [rsp + 0x3c]
cmp edx, ebp
jne 0x180029bf7
mov rbx, qword [rdi + 8]
mov ecx, dword [rsp + 0x38]
mov rax, qword [rbx + 8]
cmp byte [rax + 0x21], r12b
jne 0x180029bb7
cmp dword [rax + 0x18], ecx
jae 0x180029bab
mov rax, qword [rax + 0x10]
jmp 0x180029bb1
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x21], r12b
je 0x180029ba0
cmp rbx, qword [rdi + 8]
je 0x180029bc2
cmp ecx, dword [rbx + 0x18]
jae 0x180029bf4
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x24], r12d
call fcn.18002a160
lea rdx, [rsp + 0x28]
mov r8, rbx
mov rcx, rdi
mov r9, rax
call fcn.180029f50
mov rbx, qword [rsp + 0x28]
mov edx, dword [rsp + 0x3c]
mov dword [rbx + 0x1c], edx
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180029b86
mov r12, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18007a7c0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x180029c40
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
mov rbx, rcx
mov dword [rcx + 8], esi
mov qword [rcx], rsi
cmp dword [rcx + 0xc], esi
jne 0x180029cb9
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x180029cb6
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180029cb6
lea r8, [rbx + 8]
lea rdx, [rbx + 4]
mov rcx, rbx
call rax
mov word [rbx + 0xa], si
mov esi, 1
mov dword [rbx + 0xc], esi
cmp dword [rbx + 0xc], 0
jne 0x180029cfe
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rbx + 0xc], eax
cmp dword [rbx + 0xc], 0
mov eax, dword [rsp + 0x54]
mov dword [rbx], eax
mov eax, dword [rsp + 0x58]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbx + 8], eax
je 0x180029db3
mov ecx, dword [rbx]
sub ecx, 4
je 0x180029d96
dec ecx
je 0x180029d6c
dec ecx
je 0x180029d30
cmp ecx, 4
jne 0x180029db3
cmp dword [rbx + 4], 0
jne 0x180029db3
mov dword [rbx + reloc.WS2_32.dll_recv], 0x10
jmp 0x180029db3
mov eax, dword [rbx + 4]
test eax, eax
je 0x180029d63
cmp eax, 1
je 0x180029d5a
jbe 0x180029db3
cmp eax, 3
jbe 0x180029d51
cmp eax, 4
jne 0x180029db3
mov dword [rbx + 0x10], send
jmp 0x180029db3
mov dword [rbx + 0x10], send
jmp 0x180029db3
mov dword [rbx + 0x10], send
jmp 0x180029db3
mov dword [rbx + 0x10], 0xa
jmp 0x180029db3
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x180029d8d
dec ecx
je 0x180029d84
dec ecx
jne 0x180029db3
mov dword [rbx + 0x10], 7
jmp 0x180029db3
mov dword [rbx + 0x10], 6
jmp 0x180029db3
mov dword [rbx + 0x10], 5
jmp 0x180029db3
mov eax, dword [rbx + 4]
cmp eax, 0xa
je 0x180029dac
cmp eax, 0x5a
jne 0x180029db3
mov dword [rbx + 0x10], 4
jmp 0x180029db3
mov dword [rbx + 0x10], 3
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18002cce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x18], 8
mov rdi, rcx
jb 0x18002cd0b
mov rcx, qword [rcx]
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea r9, [rsp + 0x40]
lea r8d, [rsi + 4]
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov byte [rsp + 0x48], sil
mov qword [rsp + 0x49], rax
mov byte [rsp + 0x51], al
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11d, dword [rsp + 0x48]
cmp r11d, dword [str.PS]
jne 0x18002cd99
cmp qword [rdi + 0x18], 8
jb 0x18002cd92
mov rcx, qword [rdi]
call fcn.18007a7a4
mov eax, 1
jmp 0x18002cdaa
cmp qword [rdi + 0x18], 8
jb 0x18002cda8
mov rcx, qword [rdi]
call fcn.18007a7a4
xor eax, eax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x18002d6c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x98], rbx
mov r12, rdx
mov r13, rcx
xor r14d, r14d
mov qword [rsp + 0x88], r14
add rcx, 0x50
call fcn.18002e470
mov rdx, qword [r13 + 0x78]
mov rdx, qword [rdx + 8]
lea rcx, [r13 + 0x70]
call fcn.180048b90
mov r11, qword [r13 + 0x78]
mov qword [r11 + 8], r11
mov rax, qword [r13 + 0x78]
mov qword [rax], rax
mov rax, qword [r13 + 0x78]
mov qword [rax + 0x10], rax
mov qword [r13 + 0x80], r14
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, r13
call fcn.180004e20
lea rcx, [r13 + 0x28]
or r8, 0xffffffffffffffff
xor edx, edx
call fcn.180004e20
nop
cmp qword [r12 + 0x18], 8
jb 0x18002d753
mov rcx, qword [r12]
jmp 0x18002d756
mov rcx, r12
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x90], rax
cmp rax, 0xffffffffffffffff
jne 0x18002d795
xor al, al
jmp 0x18002d86a
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
test eax, eax
jns 0x18002d7bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18002d86a
je 0x18002d850
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x80], r14d
mov rcx, rdi
call fcn.180078408
mov rsi, rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x80]
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002d83b
mov r8d, dword [rsp + 0x80]
cmp edi, r8d
jne 0x18002d83b
mov rdx, rsi
mov rcx, r13
call fcn.18002cde0
mov rcx, rsi
call fcn.18007b7a8
mov qword [rsp + 0x88], r14
jmp 0x18002d850
mov rcx, rsi
call fcn.18007b7a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x18002d86a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, r12
mov rcx, r13
call fcn.18002d470
mov al, 1
jmp 0x18002d86a
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18002fb40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
lea rsi, [0x180000000]
mov ecx, ebx
nop dword [rax]
movsx rax, byte [rcx + rsi + 0xa8550]
add rcx, 6
movzx eax, byte [rax + rdi - 1]
mov byte [rcx + rsi + 0xd59ca], al
movsx rax, byte [rcx + rsi + 0xa854b]
movzx eax, byte [rax + rdi - 1]
mov byte [rcx + rsi + 0xd59cb], al
movsx rax, byte [rcx + rsi + 0xa854c]
movzx eax, byte [rax + rdi - 1]
mov byte [rcx + rsi + 0xd59cc], al
movsx rax, byte [rcx + rsi + 0xa854d]
movzx eax, byte [rax + rdi - 1]
mov byte [rcx + rsi + 0xd59cd], al
movsx rax, byte [rcx + rsi + 0xa854e]
movzx eax, byte [rax + rdi - 1]
mov byte [rcx + rsi + 0xd59ce], al
movsx rax, byte [rcx + rsi + 0xa854f]
movzx eax, byte [rax + rdi - 1]
mov byte [rcx + rsi + 0xd59cf], al
cmp rcx, 0x30
jl 0x18002fb60
mov rax, qword [0x1800d59d0]
lea r9, [0x1800d9b90]
mov r8, rbx
mov qword [0x1800d9b90], rax
mov rax, qword [0x1800d59d8]
sub rdx, r9
mov qword [0x1800d9b98], rax
mov rax, qword [0x1800d59e0]
mov qword [0x1800d9ba0], rax
mov rax, qword [0x1800d59e8]
mov qword [0x1800d9ba8], rax
mov rax, qword [0x1800d59f0]
mov qword [0x1800d9bb0], rax
mov rax, qword [0x1800d59f8]
mov qword [0x1800d9bb8], rax
nop dword [rax]
lea rcx, [r8 + r9]
add r8, 6
movzx eax, byte [rdx + rcx]
xor byte [rcx], al
movzx eax, byte [rdx + rcx + 1]
xor byte [rcx + 1], al
movzx eax, byte [rdx + rcx + 2]
xor byte [rcx + 2], al
movzx eax, byte [rdx + rcx + 3]
xor byte [rcx + 3], al
movzx eax, byte [rdx + rcx + 4]
xor byte [rcx + 4], al
movzx eax, byte [rcx + rdx + 5]
xor byte [rcx + 5], al
cmp r8, 0x30
jl 0x18002fc50
mov rcx, rdi
call fcn.18002fd40
nop word [rax + rax]
movsx rax, byte [rbx + rsi + 0xa8580]
add rbx, 4
movzx eax, byte [rax + rdi - 1]
mov byte [rbx + rsi + 0xd59cc], al
movsx rax, byte [rbx + rsi + 0xa857d]
movzx eax, byte [rax + rdi - 1]
mov byte [rbx + rsi + 0xd59cd], al
movsx rax, byte [rbx + rsi + 0xa857e]
movzx eax, byte [rax + rdi - 1]
mov byte [rbx + rsi + 0xd59ce], al
movsx rax, byte [rbx + rsi + 0xa857f]
movzx eax, byte [rax + rdi - 1]
mov byte [rbx + rsi + 0xd59cf], al
cmp rbx, 0x20
jl 0x18002fca0
mov rax, qword [0x1800d59d0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov qword [rdi], rax
mov rax, qword [0x1800d59d8]
mov qword [rdi + 8], rax
mov rax, qword [0x1800d59e0]
mov qword [rdi + 0x10], rax
mov rax, qword [0x1800d59e8]
mov qword [rdi + 0x18], rax
add rsp, 0x20
pop rdi
ret