joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402e4730
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.1402e8f80
sub rsp, rax
mov rax, qword [0x14032ca58]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1402e47f2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402e479d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402e4790
cmp rcx, 1
jb 0x1402e484a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402e47c0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1402f5438
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402e4780
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1402e4823
lea rcx, [rsp + 0x80]
call fcn.1402f8104
jmp 0x1402e4825
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1402e8cb0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1402eb018
int3
Function at 0x1402e87a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14032ca58]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x1402e8845
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402e87fd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402e87f0
cmp rcx, 1
jb 0x1402e8876
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402e8813
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1402f5438
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402e87e0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402e8cb0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1402eb018
int3
Function at 0x1402e8980
Capabilities:
Set environment variable

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0xb0
mov rax, qword [0x14032ca58]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140344fc8]
mov rbp, r8
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1402e89d0
lea rcx, [0x140305654]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x140344fc8], rax
test rax, rax
je 0x1402e8c0a
mov qword [rsp + 0xa8], rbx
lea rdx, str.environ
mov qword [rsp + 0xa0], rdi
mov rcx, rax
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r15
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov r15, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
movzx edx, byte [rsi]
lea rbx, [rsp + 0x30]
xor ecx, ecx
mov r13, rax
mov word [rsp + 0x30], cx
lea edi, [rcx + 0x28]
test rbp, rbp
je 0x1402e8b06
test dl, dl
je 0x1402e8aa2
nop
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402e8a4d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402e8a40
cmp rcx, 1
jb 0x1402e8c10
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402e8a70
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1402f5438
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402e8a30
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdx, r13
mov rcx, r15
mov r8, rax
mov rbx, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x1402e8aed
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x1402e8ba7
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1402e8ba7
test dl, dl
je 0x1402e8b82
nop word [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1402e8b2d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1402e8b20
cmp rcx, 1
jb 0x1402e8c04
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1402e8b50
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1402f5438
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1402e8b10
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r15
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1402e8ba7
mov rcx, r14
call fcn.14000e460
sub qword [r13], 1
jne 0x1402e8bb8
mov rax, qword [r13 + 8]
mov rcx, r13
call qword [rax + 0x30]
sub qword [r15], 1
jne 0x1402e8bc8
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
mov r13, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402e8cb0
add rsp, 0xb0
pop r14
pop rsi
pop rbp
ret
call fcn.1402eb018
int3
call fcn.1402eb018
int3
call fcn.1402eb018
int3
Function at 0x1402e96f8
Capabilities:
Parse pe header

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

Function at 0x1402ec5c8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1402ec45b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402ec45b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402ec45b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402ec45b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402ec45b
cmp dword [rcx + 0x84], 0xe
jbe 0x1402ec45b
cmp dword [rcx + 0xf8], 0
je 0x1402ec45b
mov ecx, ebx
call fcn.1402ec4fc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1402ec2ec
cmp dword [rbp + 0x20], 0
je 0x1402ec4a8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402ec4b0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402ec3f4
Function at 0x180001000
Capabilities:
Acquire debug privileges
Create thread
Print debug messages
Terminate process

Disassembly:
push rbx
sub rsp, 0x360
call fcn.180002564
mov ecx, 0x8007
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, str.SeDebugPrivilege
mov rcx, rbx
call fcn.180002794
lea rdx, str.SeTcbPrivilege
mov rcx, rbx
call fcn.180002794
and dword [rsp + 0x388], 0
lea rcx, [rsp + 0xb1]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0xb0], 0
call fcn.180015710
call fcn.180002564
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x388]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1800032f4
call fcn.180002564
mov rcx, rax
call fcn.1800034bc
mov r11d, dword [rsp + 0x30]
test r11d, r11d
je 0x180001162
mov ebx, 1
sub r11d, ebx
je 0x18000118b
sub r11d, ebx
je 0x1800010d3
cmp r11d, ebx
jne 0x1800011a5
lea rcx, [0x18001d4bc]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.180002564
mov dword [rax + 8], ebx
call fcn.180001a8c
int3
lea rcx, [0x18001d4b8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.1800063dc
mov rcx, rax
call fcn.180006458
xor ecx, ecx
call fcn.18000b840
lea rdx, [rsp + 0x1c0]
mov rcx, rax
call fcn.18000c380
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
lea r8, [0x18000a85c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x180001137
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800011a5
mov qword [rsp + 0x38], rax
call fcn.180002564
lea rdx, [rsp + 0x38]
mov rcx, qword [rax]
or r9d, 0xffffffff
mov r8d, ebx
mov qword [rsp + 0x40], rcx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800011a5
lea rcx, str.ipok
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [rsp + 0x388]
lea r8, [rsp + 0xb0]
lea rcx, [rsp + 0x388]
call fcn.180004a38
lea rcx, [0x18001d4b4]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.180002564
mov rcx, rax
call fcn.180002c6c
call fcn.180002564
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0x4c7
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x180001a8c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x140
and dword [rax + 8], 0
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.180015710
call fcn.1800063dc
mov rcx, rax
call fcn.180006458
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x150]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov r8d, dword [rsp + 0x150]
lea rdx, str..PIPERMS_d
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0x88
call fcn.18001216c
mov rbx, rax
test rax, rax
je 0x180001b1d
mov rcx, rax
call fcn.18000693c
or qword [rbx + 0x80], 0xffffffffffffffff
lea r11, vtable.CPipe.0
mov qword [rbx], r11
jmp 0x180001b1f
xor ebx, ebx
call fcn.180002564
mov r8d, 1
mov rcx, rbx
mov rdx, qword [rax]
mov rax, qword [rbx]
mov qword [rbx + 8], rdx
lea rdx, [rsp + 0x30]
call qword [rax + htons]
test eax, eax
je 0x180001b52
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
jmp 0x180001aef
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180001b84]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180001b43
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180001aef

Function at 0x180001c80
Capabilities:
Get disk information
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov rbp, r8
mov r15, rdx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.180015710
lea rdx, [rsp + 0x20]
mov ecx, 0x208
mov ebx, edi
lea r12, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea rsi, [rsp + 0x20]
cmp word [rsp + 0x20], di
je 0x180001d5b
xor r15d, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea rcx, [r12 + 4]
mov r8, rsi
mov edx, 4
mov dword [r12], eax
call fcn.18001245c
lea r9, [r12 + 0x1c]
lea r8, [r12 + 0xc]
lea rdx, [r12 + 0x14]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, r15d
jne 0x180001d32
mov qword [r12 + 0x14], r15
mov qword [r12 + 0xc], r15
mov qword [r12 + 0x1c], r15
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
add r12, 0x24
inc ebx
not rcx
lea rsi, [rsi + rcx*2]
cmp word [rsi], r15w
jne 0x180001ce7
mov r15, qword [rsp + 0x268]
xor edi, edi
mov eax, 0x100
mov r8d, 0x7530
mov rdx, rbp
mov word [rbp + 4], ax
movzx eax, bx
mov rcx, r15
shl ax, 3
mov word [rbp + 0xe], di
add bx, ax
shl bx, 2
mov word [rbp + 8], bx
call fcn.180006c30
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180001dac
Capabilities:
Enumerate files 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 r12
push r13
push r14
sub rsp, 0x480
movzx r12d, word [r8 + 4]
mov rbx, r8
mov rbp, rdx
lea rcx, [rax - 0x226]
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov word [rax - 0x228], r14w
call fcn.180015710
movzx eax, word [rbx + 8]
lea r8, [rbx + 0x10]
lea rdx, [0x18001d4c0]
lea rcx, [rsp + 0x270]
mov byte [rax + rbx + 0x10], r14b
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180001e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180001f1e
mov r8d, 0x7530
mov rdx, rbx
mov rcx, rbp
mov word [rbx + 4], r12w
mov word [rbx + 0xe], r14w
call fcn.180006c30
mov edi, eax
cmp eax, r14d
je 0x180001e73
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
jmp 0x180001f3d
lea rdx, [0x18001d4cc]
lea rcx, [rsp + 0x4c]
call fcn.1800123c8
cmp eax, r14d
je 0x180001efe
lea rdx, [0x18001d4d0]
lea rcx, [rsp + 0x4c]
call fcn.1800123c8
cmp eax, r14d
je 0x180001efe
mov eax, dword [rsp + 0x20]
lea rcx, [rbx + 0x24]
lea r8, [rsp + 0x4c]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x3c]
lea rdx, [0x18001d4d8]
mov dword [rbx + 0x18], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x14], eax
mov rax, qword [rsp + 0x34]
mov qword [rbx + 0x1c], rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov eax, 0x21c
mov r8d, 0x7530
mov rdx, rbx
mov rcx, rbp
mov word [rbx + 8], ax
mov word [rbx + 4], r12w
mov word [rbx + 0xe], r14w
call fcn.180006c30
mov edi, eax
cmp eax, r14d
jne 0x180001f15
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, r14d
jne 0x180001e73
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r8d, 0x7530
mov rdx, rbx
mov rcx, rbp
mov word [rbx + 4], r12w
mov word [rbx + 8], r14w
mov word [rbx + 0xe], di
call fcn.180006c30
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x180001f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
mov rsi, rdx
xor edx, edx
mov rdi, r8
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.180015710
lea rax, str.open
xor ebx, ebx
mov qword [rsp + 0x40], rax
lea rax, [rdi + 0x10]
mov dword [rsp + 0x30], WSAStartup
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x48], rax
call fcn.180002564
mov byte [rsp + 0x20], 0x53
mov rcx, rax
mov rax, qword [0x180024888]
mov byte [rsp + 0x21], 0x68
mov byte [rsp + 0x22], 0x65
mov byte [rsp + 0x23], WSAGetLastError
mov byte [rsp + 0x24], WSAGetLastError
mov byte [rsp + 0x25], 0x45
mov byte [rsp + 0x26], 0x78
mov byte [rsp + 0x27], 0x65
mov byte [rsp + 0x28], 0x63
mov byte [rsp + 0x29], 0x75
mov byte [rsp + 0x2a], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x2b], 0x65
mov byte [rsp + 0x2c], 0x45
mov byte [rsp + 0x2d], 0x78
mov byte [rsp + 0x2e], 0x57
mov byte [rsp + 0x2f], bl
cmp rax, rbx
jne 0x18000203a
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024888], rax
cmp rax, rbx
jne 0x18000203a
mov eax, ebx
jmp 0x180002041
lea rcx, [rsp + 0x30]
call rax
mov ecx, 0x102
mov word [rdi + 8], bx
mov word [rdi + 4], cx
cmp eax, ebx
jne 0x18000205b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov r8d, 0x7530
mov rdx, rdi
mov rcx, rsi
mov word [rdi + 0xe], bx
call fcn.180006c30
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180002088
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rdi, rdx
xor edx, edx
mov rbx, r8
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180015710
movzx eax, word [rbx + 0xe]
lea r11, [rbx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [r11 + 0x208]
xor esi, esi
mov qword [rsp + 0x50], rax
mov eax, 0x615
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x48], r11
mov word [rsp + 0x58], ax
call fcn.180002564
mov byte [rsp + 0x20], 0x53
mov rcx, rax
mov rax, qword [0x180024878]
mov byte [rsp + 0x21], 0x48
mov byte [rsp + 0x22], 0x46
mov byte [rsp + 0x23], 0x69
mov byte [rsp + 0x24], WSAGetLastError
mov byte [rsp + 0x25], 0x65
mov byte [rsp + 0x26], 0x4f
mov byte [rsp + 0x27], WSAStartup
mov byte [rsp + 0x28], 0x65
mov byte [rsp + 0x29], WSAStartup
mov byte [rsp + 0x2a], 0x61
mov byte [rsp + 0x2b], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x2c], 0x69
mov byte [rsp + 0x2d], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x2e], WSAGetLastError
mov byte [rsp + 0x2f], 0x57
mov byte [rsp + 0x30], sil
cmp rax, rsi
jne 0x18000216e
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180024878], rax
cmp rax, rsi
jne 0x18000216e
or eax, 0xffffffff
jmp 0x180002175
lea rcx, [rsp + 0x38]
call rax
mov ecx, 0x103
mov r8d, 0x7530
mov rdx, rbx
mov word [rbx + 4], cx
mov rcx, rdi
mov word [rbx + 8], si
mov word [rbx + 0xe], ax
call fcn.180006c30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180002274
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r13d, r13d
mov rsi, r8
lea rcx, [r8 + 0x20]
mov qword [rax - 0x38], r13
mov r12, rdx
mov dword [rax - 0x40], 0x80
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax + 0x18], r13d
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r14d, 0x107
cmp rax, 0xffffffffffffffff
jne 0x1800022dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800023ca
lea rdx, [rsi + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, r13d
je 0x180002307
mov rdx, qword [rsi + 0x18]
lea r8, [rsi + 0x18]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, r13d
jne 0x180002314
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800023c1
mov eax, 0x105
mov r8d, 0x7530
mov rdx, rsi
mov word [rsi + 4], ax
mov eax, 0x420
mov rcx, r12
mov word [rsi + 8], ax
mov word [rsi + 0xe], r13w
call fcn.180006c30
mov ebx, eax
mov rcx, rdi
cmp eax, r13d
je 0x180002353
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800023e9
mov r14d, 0x2000
jmp 0x180002394
mov eax, dword [rsp + 0x80]
cmp eax, r13d
je 0x1800023bb
mov ecx, 0x107
mov r8d, 0x7530
mov rdx, rsi
mov word [rsi + 4], cx
mov rcx, r12
mov word [rsi + 8], ax
mov word [rsi + 0xe], r13w
call fcn.180006c30
mov rcx, rdi
mov ebx, eax
cmp eax, r13d
jne 0x180002346
lea r9, [rsp + 0x80]
lea rdx, [rsi + 0x10]
mov r8d, r14d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, r13d
jne 0x18000235b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r14d, 0x107
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x7530
mov rdx, rsi
mov rcx, r12
mov word [rsi + 4], r14w
mov word [rsi + 8], r13w
mov word [rsi + 0xe], bx
call fcn.180006c30
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180002400
Capabilities:
Get file size
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
xor r14d, r14d
mov rdi, r8
lea rcx, [r8 + 0x20]
mov qword [rax - 0x28], r14
mov r12, rdx
mov dword [rax - 0x30], 0x80
lea r8d, [r14 + 2]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rax + 0x18], r14d
mov dword [rax - 0x38], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180002485
mov eax, 0x106
mov word [rdi + 8], r14w
mov word [rdi + 4], ax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x7530
mov rdx, rdi
mov rcx, r12
mov word [rdi + 0xe], ax
call fcn.180006c30
jmp 0x180002547
lea rdx, [rdi + 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdx, qword [rdi + 0x18]
lea r8, [rdi + 0x18]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, 0x106
mov r8d, 0x7530
mov word [rdi + 4], ax
mov eax, 0x420
mov rdx, rdi
mov rcx, r12
mov word [rdi + 0xe], r14w
mov word [rdi + 8], ax
call fcn.180006c30
mov ebx, eax
cmp eax, r14d
jne 0x18000253c
jmp 0x180002513
movzx ebx, word [rdi + 0xe]
cmp ebx, r14d
jne 0x18000253c
cmp word [rdi + 8], r14w
je 0x18000253c
mov eax, 0x107
cmp ax, word [rdi + 4]
jne 0x180002537
movzx r8d, word [rdi + 8]
lea r9, [rsp + 0x70]
lea rdx, [rdi + 0x10]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r14d
je 0x18000252d
mov r8d, 0x7530
mov rdx, rdi
mov rcx, r12
call fcn.180006aa4
mov ebx, eax
cmp eax, r14d
je 0x1800024d7
jmp 0x18000253c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000253c
mov ebx, 0x54f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x180002628
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x30
mov rbx, qword [rsp + 0x60]
lea rax, [r11 + 0x18]
mov rsi, r9
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rdx
mov rdx, rcx
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x18000266e
mov ecx, dword [rsp + 0x50]
mov dword [rsi], ecx
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbx], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret