joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400088f0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rbx
push r14
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, edx
mov rbx, rcx
cmp edx, 3
jbe 0x140008930
mov r8, rcx
mov edx, 3
lea rcx, str.____Reached_maximun_number_of_attempts___i__to_uninstall_the_service__s_n
call fcn.140001480
xor eax, eax
jmp 0x140008ad2
mov qword [rsp + 0xb0], rbp
lea rdx, str.ServicesActive
mov qword [rsp + 0x80], rsi
xor ecx, ecx
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
mov r15d, esi
lea r8d, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400089be
lea r8d, [rsi + 0x20]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
je 0x14000899f
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [rsi + 1]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbp
mov r15d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15d, r15d
je 0x1400089be
mov rdx, rbx
lea rcx, str.____s_service_stopped_n
call fcn.140001480
jmp 0x140008a07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x1400089dc
mov rdx, rbx
lea rcx, str.____s_service_not_running_n
call fcn.140001480
jmp 0x140008a07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x425
jne 0x140008a8d
mov rdx, rbx
lea rcx, str.____s_service_cannot_accept_control_messages_at_this_time__waiting..._n
call fcn.140001480
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140008aa1
mov r8d, 0x10004
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x140008a7c
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140008a7c
cmp dword [rsp + 0x24], 1
mov rcx, rdi
je 0x140008a6b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140008aa1
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x140008aa1
mov eax, esi
jmp 0x140008ab8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_ServiceUninstall___ServiceUninstall__0x_08x__n
call fcn.140001480
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1400088f0
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140009ae0
add rsp, 0x88
pop r14
pop rbx
ret
Function at 0x140009880
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp dword [0x140020400], 0
jne 0x140009a1d
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call fcn.1400081c0
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.1400051b0
xor edi, edi
lea r15, [0x140020400]
mov rsi, rax
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x60], edi
jbe 0x1400099a0
mov qword [rsp + 0x50], rbx
nop dword [rax]
mov rax, qword [rsi + 0x58]
mov rbx, qword [rsi + 0x28]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x1400098f8
lea rdx, [rbx + r9]
jmp 0x140009933
mov rax, qword [rsi + 0x30]
mov r8d, edi
mov r11, qword [rsi + 0x48]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x140009930
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x140009924
add edx, dword [rax]
cmp r9d, edx
jb 0x140009a27
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x140009911
mov rdx, rdi
cmp byte [rdx], 0x5a
jne 0x140009990
cmp byte [rdx + 1], 0x77
jne 0x140009990
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x140009950
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.140005380
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x60]
jb 0x1400098e0
mov rbx, qword [rsp + 0x50]
mov edx, r14d
lea r9, [0x140009840]
mov r8d, 0xc
mov dword [0x140020400], r14d
lea rcx, [0x140020404]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov eax, dword [0x140020400]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test eax, eax
je 0x1400099f7
nop dword [rax]
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x140020400]
cmp edi, eax
jb 0x1400099e0
mov edx, eax
lea r9, [0x140009860]
mov r8d, 0xc
lea rcx, [0x140020404]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x48
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x140009930
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x140009933

Function at 0x14000a3a0
Capabilities:
Parse pe header

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

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x14001f070]
call fcn.140009a50
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d00
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x1400117c0
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x1400210a2]
call fcn.140011370
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 8], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x28], rax
xor eax, eax
cmp eax, 1
je 0x140011881
lea r9, [rbp + 0x74]
mov r8d, 1
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
movzx eax, word [rbp + 0x48]
cmp eax, 2
jne 0x14001187f
mov eax, dword [rbp + 0x50]
and eax, 1
test eax, eax
je 0x14001187f
mov edx, dword [rbp + 0x4c]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0x2a
call qword [sym.imp.ucrtbased.dll_fputc]
mov eax, dword [rbp + 0x58]
and eax, 2
test eax, eax
je 0x14001187f
jmp 0x140011881
jmp 0x14001181b
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140019c40]
call fcn.14001130c
mov eax, edi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014050
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014070
xor al, al
jmp 0x1400140f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014083
xor al, al
jmp 0x1400140f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400140ad
xor al, al
jmp 0x1400140f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400140c1
xor al, al
jmp 0x1400140f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400140d3
xor al, al
jmp 0x1400140f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400140ef
xor al, al
jmp 0x1400140f1
mov al, 1
add rsp, 0x38
ret
Function at 0x180003830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x180003858
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp], rax
jae 0x1800038b5
xor edx, edx
mov rax, qword [rsp]
mov ecx, 8
div rcx
mov rax, rdx
shl rax, 3
movzx ecx, al
mov rax, qword [rsp + 0x30]
shr rax, cl
and rax, 0xff
movsx eax, al
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
movsx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x18000384d
add rsp, 0x18
ret

Function at 0x180007140
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x180007162
xor eax, eax
jmp 0x180007305
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x180007187
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.180007db0
jmp 0x180007305
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.18000e400
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x18000721d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180007310
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.18000e5c0
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.18000f450
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.18000e520
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1800072f5
mov rcx, qword [rsp + 0x60]
call fcn.18000de10
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1800072bd
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.180021598
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1800072bb
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x180007305
jmp 0x180007243
cmp qword [rsp + 0x20], 0
jbe 0x1800072f5
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.180021598
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x180025020
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180025036
mov al, 1
jmp 0x180025096
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180025047
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180025094
mov ecx, dword [rcx + 0x18]
nop
call fcn.180031238
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180025094
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180025094
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180025094
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180025096
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002bbf8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800164e0
sub rsp, rax
mov rax, qword [0x180080080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180024f00
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002bc47
mov rax, rbp
jmp 0x18002bd4f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6ec140]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002d618
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6ec140]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002bd4b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002bd4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002d618
test rax, rax
js 0x18002bd4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002bd4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002bd3d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002bd3d
cmp byte [rcx], 0xd
jne 0x18002bd23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002bd32
cmp byte [rcx + 1], 0xa
jne 0x18002bd32
inc rcx
jmp 0x18002bd32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x804c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002bd05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002bd4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180015b20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002c9b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1806ec140]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18002ca0f
cmp word [rdx], r13w
jne 0x18002ca0f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002ca14
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18002cb39
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18002cb5a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18002ca4d
mov rdx, r9
mov word [rbx], cx
jmp 0x18002ca74
cmp r9, r8
jae 0x18002ca84
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18002ca2e
jmp 0x18002cb39
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002cb2e
cmp dword [rsp + 0x80], esi
je 0x18002cb2e
lea r8, [0x1806ec140]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002cb06
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18002cad6
mov word [rbx], r13w
jmp 0x18002cb36
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18002cae3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002cb36
cmp word [rsp + 0x70], r13w
jne 0x18002cb13
cmp rbx, r14
je 0x18002cad0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002d620
cmp word [rsp + 0x70], r13w
je 0x18002cb39
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1806ec140]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002cb33
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18002cb39
Function at 0x180030634
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180030664
xor eax, eax
jmp 0x180030727
mov rbp, rbx
cmp word [rax], si
je 0x180030689
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180030670
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18003066c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18002ed1c
movsxd r14, eax
test eax, eax
jne 0x1800306c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18003065d
mov rcx, r14
call fcn.180028ba0
mov rdi, rax
test rax, rax
jne 0x1800306e0
xor ecx, ecx
call fcn.1800284d0
jmp 0x1800306bc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18002ed1c
test eax, eax
jne 0x180030711
mov rcx, rdi
call fcn.1800284d0
jmp 0x18003071b
xor ecx, ecx
call fcn.1800284d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800338e4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180025524
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180033985
cmp ebx, dword [rsp + 0x30]
je 0x18003397e
test esi, esi
je 0x18003397e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180033959
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180033966
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180033943
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003396a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180033987
mov eax, 1
jmp 0x180033987
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180037a7c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.180022c04
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180037b06
cmp byte [rbp - 0x21], r15b
je 0x180037b01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180037b3c
call fcn.18002b0a8
test eax, eax
jne 0x180037b28
cmp byte [rbp - 0x21], r15b
je 0x180037b20
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180037b3c
cmp byte [rbp - 0x21], r15b
je 0x180037b39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1800231f4
test eax, eax
jne 0x180037bdc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180022c04
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180037b7b
cmp byte [rbp - 0x21], r15b
je 0x180037bb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180037bb0
call fcn.18002b0a8
test eax, eax
jne 0x180037b9c
cmp byte [rbp - 0x21], r15b
je 0x180037b95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180037bb0
cmp byte [rbp - 0x21], r15b
je 0x180037bad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1800231f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180037bdc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180037bdf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180037bed
mov rcx, rdi
call fcn.1800284d0
cmp byte [rbp + 0x3f], r15b
je 0x180037bfc
mov rcx, qword [rbp + 0x27]
call fcn.1800284d0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180038f38
Capabilities:
Clear file content

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 r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18002d620
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002d620
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180039088
cmp rax, 0xffffffffffffffff
je 0x180039088
xor edi, edi
test rbp, rbp
jle 0x180039033
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002737c
mov rbx, rax
test rax, rax
jne 0x180038fc0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180039029
mov edx, 0x8000
mov ecx, r14d
call fcn.180038dbc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800281c8
cmp eax, 0xffffffff
je 0x180039009
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180038fd0
mov edx, r15d
mov ecx, r14d
call fcn.180038dbc
jmp 0x180039029
cmp byte [rsi + 0x38], dil
je 0x180039020
cmp dword [rsi + 0x34], 5
jne 0x180039020
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180039029
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800284d0
jmp 0x18003909c
jns 0x18003909c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002d620
cmp rax, 0xffffffffffffffff
jne 0x180039054
cmp byte [rsi + 0x30], dil
je 0x18003909c
mov edi, dword [rsi + 0x2c]
jmp 0x18003909c
mov ecx, r14d
call fcn.180031238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003909c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18003909c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180039095
mov eax, dword [rsi + 0x2c]
jmp 0x18003909a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002d620
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1800398c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800398e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800398e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret