joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010fa0
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x2190
call fcn.18000d750
sub rsp, rax
mov qword [rsp + 0x2178], 0xfffffffffffffffe
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x2180], rax
mov qword [rsp + 0x150], 0
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x21a0]
add rax, 0x28
mov rcx, rax
call fcn.1800106b0
mov rcx, rax
call fcn.180017280
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.1800171b0
nop
mov byte [rsp + 0x158], 1
lea rcx, [rsp + 0x140]
call fcn.180017160
cmp rax, 0xffffffffffffffff
jne 0x18001105d
mov byte [rsp + 0x2174], 0
lea rcx, [rsp + 0x140]
call fcn.180017230
movzx eax, byte [rsp + 0x2174]
jmp 0x180011233
mov dword [rsp + 0x2170], 0x2000
mov byte [rsp + 0x170], 0
lea rax, [rsp + 0x171]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fff
rep stosb byte [rdi], al
lea r9, [rsp + 0x160]
mov r8d, 0x2000
lea rdx, [rsp + 0x170]
mov rax, qword [rsp + 0x21a0]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rsp + 0x15c], eax
cmp dword [rsp + 0x15c], 0
je 0x18001112e
cmp dword [rsp + 0x160], 0
je 0x18001112e
mov eax, dword [rsp + 0x160]
mov rcx, qword [rsp + 0x150]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x140]
call fcn.180017160
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x160]
mov r8d, dword [rsp + 0x160]
lea rdx, [rsp + 0x170]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18001112c
mov byte [rsp + 0x158], 0
jmp 0x180011161
jmp 0x180011156
cmp dword [rsp + 0x15c], 0
jne 0x180011154
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x21a0]
mov dword [rcx + 0x94], eax
mov byte [rsp + 0x158], 0
jmp 0x180011161
xor eax, eax
cmp eax, 1
jne 0x18001105d
movzx eax, byte [rsp + 0x158]
test eax, eax
je 0x1800111ad
mov rcx, qword [rsp + 0x21a0]
call fcn.180011250
test eax, eax
je 0x1800111ad
mov rax, qword [rsp + 0x21a0]
cmp qword [rax + 0x98], 0
je 0x180011216
mov rax, qword [rsp + 0x21a0]
mov rax, qword [rax + 0x98]
cmp qword [rsp + 0x150], rax
je 0x180011216
mov rax, qword [rsp + 0x21a0]
cmp dword [rax + 0x94], 0xffffffff
jne 0x1800111da
mov rax, qword [rsp + 0x21a0]
mov rcx, qword [rsp + 0x21a0]
mov ecx, dword [rcx + 0x90]
mov dword [rax + 0x94], ecx
mov rax, qword [rsp + 0x21a0]
add rax, 0x28
mov rcx, rax
call fcn.1800106b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [rsp + 0x2175], 0
lea rcx, [rsp + 0x140]
call fcn.180017230
movzx eax, byte [rsp + 0x2175]
jmp 0x180011233
mov byte [rsp + 0x2176], 1
lea rcx, [rsp + 0x140]
call fcn.180017230
movzx eax, byte [rsp + 0x2176]
mov rcx, qword [rsp + 0x2180]
xor rcx, rsp
call fcn.180004800
add rsp, 0x2190
pop rdi
ret
Function at 0x180011310
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180013420
movzx eax, al
test eax, eax
jne 0x180011348
xor al, al
jmp 0x1800113df
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x88], ecx
xor edx, edx
lea rcx, [rsp + 0x34]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
mov eax, dword [rsp + 0x34]
and eax, 4
cmp eax, 4
jne 0x18001137a
mov dword [rsp + 0x38], 0
jmp 0x180011382
mov dword [rsp + 0x38], 4
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x30]
lea rcx, str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x78], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x78], 0
jne 0x1800113d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x94], eax
xor al, al
jmp 0x1800113df
mov rcx, qword [rsp + 0x50]
call fcn.1800113f0
mov al, 1
add rsp, 0x48
ret

Function at 0x1800114e0
Capabilities:
Check http status code
Get http content length

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x98], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov edx, 0x20000013
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180011560
cmp qword [rsp + 0x48], 0xc8
je 0x180011567
cmp qword [rsp + 0x48], 0x12e
je 0x180011567
mov rax, qword [rsp + 0x38]
jmp 0x1800115d6
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov edx, 0x20000005
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1800115b6
mov rax, qword [rsp + 0x38]
jmp 0x1800115d6
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x1800115e0
Capabilities:
Reference cloudflare dns server

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
mov qword [rsp + 0x460], 0xfffffffffffffffe
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x468], rax
mov dword [rsp + 0x458], 0
lea rcx, [rsp + 0x440]
call fcn.1800014d0
nop
mov dword [rsp + 0x448], 0x400
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x41]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x3ff
lea rdx, [rsp + 0x40]
mov ecx, 0x10000001
call sub.urlmon.dll_UrlMkGetSessionOption
mov dword [rsp + 0x44c], eax
cmp dword [rsp + 0x44c], 0x8007000e
je 0x180011691
cmp dword [rsp + 0x44c], 0
jne 0x180011717
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x450]
call fcn.1800102e0
nop
lea rdx, str.User_Agent:
lea rcx, [rsp + 0x440]
call fcn.1800015e0
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x440]
call fcn.180011780
lea rdx, str._Funshion_
lea rcx, [rsp + 0x440]
call fcn.180003910
lea rdx, str.1.0.0.1
lea rcx, [rsp + 0x440]
call fcn.180003910
lea rdx, [0x1800262f0]
lea rcx, [rsp + 0x440]
call fcn.180003910
nop
lea rcx, [rsp + 0x450]
call fcn.1800019a0
lea rcx, [rsp + 0x440]
call fcn.180001700
mov rdx, rax
mov rcx, qword [rsp + 0x480]
call fcn.180001710
mov eax, dword [rsp + 0x458]
or eax, 1
mov dword [rsp + 0x458], eax
lea rcx, [rsp + 0x440]
call fcn.1800019a0
mov rax, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x468]
xor rcx, rsp
call fcn.180004800
add rsp, 0x470
pop rdi
ret

Function at 0x1800123a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
lea rcx, [rsp + 0x50]
call fcn.1800014d0
nop
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.1800122d0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180010340
nop
lea rcx, [rsp + 0x58]
call fcn.1800019a0
lea rcx, [rsp + 0x50]
call fcn.180001700
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x90]
call fcn.1800019d0
shl eax, 1
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x90]
call fcn.180001700
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov ecx, dword [rsp + 0x78]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x50]
call fcn.1800019a0
add rsp, 0x88
ret
Function at 0x1800124d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x80], 0xfffffffffffffffe
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xb0]
call fcn.1800122d0
nop
lea rcx, [rsp + 0x48]
call fcn.180001700
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xb0]
call fcn.180002510
cmp qword [rsp + 0x40], 0xffffffffffffffff
je 0x180012676
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
inc eax
cdqe
mov qword [rsp + 0x88], rax
mov eax, 2
mov rcx, qword [rsp + 0x88]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180017630
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x60]
xor ecx, ecx
mov rdx, qword [rsp + 0x58]
mov word [rdx + rax*2], cx
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
call fcn.1800015e0
mov eax, dword [rsp + 0x60]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.180010580
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xb0]
call fcn.180010340
nop
lea rcx, [rsp + 0x70]
call fcn.1800019a0
mov rcx, qword [rsp + 0xb0]
call fcn.180010410
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.180018384
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
call fcn.1800019a0
add rsp, 0xa8
ret
Function at 0x180012700
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2b0
mov qword [rsp + 0x290], 0xfffffffffffffffe
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov dword [rsp + 0x288], 0
mov dword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x2c8]
call fcn.180001700
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jbe 0x18001299f
mov eax, dword [rsp + 0x30]
mov ecx, eax
call fcn.180017630
mov qword [rsp + 0x280], rax
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x250]
call fcn.180012c20
nop
lea rcx, [rsp + 0x250]
call fcn.180015280
mov qword [rsp + 0x298], rax
mov rcx, qword [rsp + 0x2c8]
call fcn.180001700
mov rcx, qword [rsp + 0x298]
mov r9, rcx
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x180012992
mov qword [rsp + 0x278], 0
lea rcx, [rsp + 0x270]
call fcn.1800014d0
nop
mov qword [rsp + 0x260], 0
mov dword [rsp + 0x258], 0
mov dword [rsp + 0x268], 0
lea rcx, [rsp + 0x250]
call fcn.180015280
lea r9, [rsp + 0x268]
lea r8, [rsp + 0x278]
lea rdx, str.VarFileInfoTranslation
mov rcx, rax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1800128af
lea rdx, [0x18002689c]
mov rcx, qword [rsp + 0x2c0]
call fcn.180001530
mov eax, dword [rsp + 0x288]
or eax, 1
mov dword [rsp + 0x288], eax
lea rcx, [rsp + 0x270]
call fcn.1800019a0
nop
lea rcx, [rsp + 0x250]
call fcn.180012c40
mov rax, qword [rsp + 0x2c0]
jmp 0x1800129cc
mov rax, qword [rsp + 0x278]
movzx eax, word [rax + 2]
mov rcx, qword [rsp + 0x278]
movzx ecx, word [rcx]
mov rdx, qword [rsp + 0x2d0]
mov rdx, qword [rdx]
mov qword [rsp + 0x20], rdx
mov r9d, eax
mov r8d, ecx
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rsp + 0x270]
call fcn.180002600
lea rcx, [rsp + 0x270]
call fcn.180001700
mov qword [rsp + 0x2a0], rax
lea rcx, [rsp + 0x250]
call fcn.180015280
lea r9, [rsp + 0x258]
lea r8, [rsp + 0x260]
mov rcx, qword [rsp + 0x2a0]
mov rdx, rcx
mov rcx, rax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x180012984
mov rdx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x2c0]
call fcn.180001530
mov eax, dword [rsp + 0x288]
or eax, 1
mov dword [rsp + 0x288], eax
lea rcx, [rsp + 0x270]
call fcn.1800019a0
nop
lea rcx, [rsp + 0x250]
call fcn.180012c40
mov rax, qword [rsp + 0x2c0]
jmp 0x1800129cc
lea rcx, [rsp + 0x270]
call fcn.1800019a0
nop
lea rcx, [rsp + 0x250]
call fcn.180012c40
lea rdx, [0x1800268cc]
mov rcx, qword [rsp + 0x2c0]
call fcn.180001530
mov eax, dword [rsp + 0x288]
or eax, 1
mov dword [rsp + 0x288], eax
mov rax, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.180004800
add rsp, 0x2b0
pop rdi
ret
Function at 0x180013560
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov qword [rsp + 0x158], 0xfffffffffffffffe
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov dword [rsp + 0x150], 0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
lea rdx, str.error
lea rcx, [rsp + 0x20]
call fcn.180001530
nop
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180013643
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 5
je 0x1800135f1
cmp dword [rsp + 0x160], 6
je 0x180013604
jmp 0x180013643
lea rdx, [0x180026e50]
lea rcx, [rsp + 0x20]
call fcn.1800015e0
jmp 0x180013643
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x164], eax
cmp dword [rsp + 0x164], 0
jb 0x180013643
cmp dword [rsp + 0x164], 5
jbe 0x180013625
jmp 0x180013643
movzx eax, byte [rsp + 0x14a]
cmp eax, 1
jne 0x180013643
lea rdx, [0x180026e58]
lea rcx, [rsp + 0x20]
call fcn.1800015e0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x180]
call fcn.180001500
mov eax, dword [rsp + 0x150]
or eax, 1
mov dword [rsp + 0x150], eax
lea rcx, [rsp + 0x20]
call fcn.1800019a0
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.180004800
add rsp, 0x170
pop rdi
ret

Function at 0x1800139a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov dword [rsp + 0x240], 0
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x28
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.180001710
mov eax, dword [rsp + 0x240]
or eax, 1
mov dword [rsp + 0x240], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.180004800
add rsp, 0x250
pop rdi
ret

Function at 0x180013a40
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov dword [rsp + 0x240], 0
xor eax, eax
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 0x26
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.180001530
mov eax, dword [rsp + 0x240]
or eax, 1
mov dword [rsp + 0x240], eax
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.180004800
add rsp, 0x250
pop rdi
ret
Function at 0x180013d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x180013d78
xor eax, eax
test eax, eax
jne 0x180013d78
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180013de0
mov eax, dword [rsp + 0x38]
jmp 0x180013e60
cmp dword [rsp + 0x30], 1
je 0x180013df5
cmp dword [rsp + 0x30], 2
je 0x180013df5
mov eax, 0xd
jmp 0x180013e60
cmp qword [rsp + 0x60], 0
je 0x180013e49
cmp dword [rsp + 0x34], 0
je 0x180013e3f
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x180013e36
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
je 0x180013e3d
mov eax, 0xd
jmp 0x180013e60
jmp 0x180013e49
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180014250
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x180014263
xor eax, eax
test eax, eax
jne 0x180014263
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1800142b7
mov eax, dword [rsp + 0x38]
jmp 0x1800142c7
cmp dword [rsp + 0x30], 4
je 0x1800142c5
mov eax, 0xd
jmp 0x1800142c7
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800142d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
cmp eax, 9
je 0x1800142f3
movzx eax, word [rsp + 0x20]
cmp eax, 6
jne 0x1800142fc
mov eax, 1
jmp 0x1800142fe
xor eax, eax
add rsp, 0x58
ret
Function at 0x180014440
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x11c
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180014498
cmp dword [rsp + 0x34], 6
jne 0x180014498
cmp dword [rsp + 0x38], 2
jne 0x180014498
mov eax, 1
jmp 0x18001449a
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180004800
add rsp, 0x160
pop rdi
ret

Function at 0x180014fe0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10], 0
jne 0x180014fff
jmp 0x180015084
mov edx, 0xffffffff
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180015084
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x58]
call fcn.180015260
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x58]
call fcn.180015280
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
mov r8d, ecx
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
add rsp, 0x48
ret

Function at 0x180016040
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
mov qword [rsp + 0x298], 0xfffffffffffffffe
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1800171b0
nop
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x40]
call fcn.180001500
nop
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x1800160ea
mov dword [rsp + 0x290], 0
lea rcx, [rsp + 0x40]
call fcn.1800019a0
nop
lea rcx, [rsp + 0x30]
call fcn.180017230
mov eax, dword [rsp + 0x290]
jmp 0x18001615a
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x180016107
jmp 0x180016133
lea rcx, [rsp + 0x40]
call fcn.180001700
mov rdx, rax
lea rcx, [rsp + 0x7c]
call fcn.1800196ec
test eax, eax
jne 0x18001612c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
jmp 0x180016133
xor eax, eax
cmp eax, 1
jne 0x1800160ea
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x294], eax
lea rcx, [rsp + 0x40]
call fcn.1800019a0
nop
lea rcx, [rsp + 0x30]
call fcn.180017230
mov eax, dword [rsp + 0x294]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.180004800
add rsp, 0x2b8
ret
Function at 0x1800166d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov qword [rsp + 0x2b0], 0xfffffffffffffffe
mov rax, qword [0x18002f0d0]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov dword [rsp + 0x2a8], 0
mov dword [rsp + 0x30], 0x12c
xor eax, eax
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x258
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x2f0]
call fcn.180001700
mov qword [rsp + 0x2b8], rax
mov rcx, qword [rsp + 0x300]
call fcn.180001700
mov qword [rsp + 0x2c0], rax
mov rcx, qword [rsp + 0x2f8]
call fcn.180001700
mov rcx, qword [rsp + 0x2b8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x12c
lea r9, [rsp + 0x40]
lea r8, [0x180028374]
mov rcx, qword [rsp + 0x2c0]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x2a0]
call fcn.180001530
nop
lea rdx, [0x180028388]
lea rcx, [rsp + 0x2a0]
call fcn.180014520
lea rdx, [rsp + 0x2a0]
mov rcx, qword [rsp + 0x2e8]
call fcn.180001500
mov eax, dword [rsp + 0x2a8]
or eax, 1
mov dword [rsp + 0x2a8], eax
lea rcx, [rsp + 0x2a0]
call fcn.1800019a0
mov rax, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.180004800
add rsp, 0x2d0
pop rdi
ret