joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047460
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x14008c0c0]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400475cc
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.140049080
test eax, eax
je 0x1400474fa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140047fc0
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140047542
lea rcx, [0x140068478]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004753f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004753f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14004753f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x140047567
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, 0x11
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400475cc
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400475cc
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400475cc
mov eax, r15d
jmp 0x1400475ce
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.140047440
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140047750
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
xor ebx, ebx
test rcx, rcx
mov rbp, r8
mov r12d, edx
mov rsi, rcx
jne 0x14004779d
call fcn.14004cab0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
mov dword [rax], SafeArrayUnaccessData
call fcn.140048060
or rax, 0xffffffffffffffff
jmp 0x140047832
mov qword [rsp + 0x40], rdi
call fcn.140062910
mov edx, 0x2d8
mov ecx, 1
call fcn.14004c800
test rax, rax
mov rdi, rax
je 0x140047816
call fcn.14004c400
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.14004c1e0
lea r8, [0x1400476b0]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x140047848
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.140047310
test ebx, ebx
je 0x140047829
mov ecx, ebx
call fcn.14004cb10
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140047860
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140047816
mov rax, rbx
jmp 0x14004782d

Function at 0x140048060
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14022f4e0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14004c0e0
test rax, rax
je 0x1400480b4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140048149
mov ecx, 2
call fcn.14004fa90
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14004ba70
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140048135
test ebx, ebx
jne 0x140048135
lea ecx, [rax + 2]
call fcn.14004fa90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140048170
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14022f4e0]
call fcn.14004c0e0
test rax, rax
je 0x1400481a5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.14004fa90
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14004ba70
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14004822e
test ebx, ebx
jne 0x14004822e
lea ecx, [rax + 2]
call fcn.14004fa90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x14004cc00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14004cc3e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14004cc20
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14004ce25
mov ecx, 3
call fcn.140058c20
cmp eax, 1
je 0x14004cddc
mov ecx, 3
call fcn.140058c20
test eax, eax
jne 0x14004cc75
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x14004cddc
cmp edi, 0xfc
je 0x14004ce25
mov qword [rsp + 0x50], rbp
lea rbp, [0x14022f590]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140047a90
test eax, eax
je 0x14004ccb9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140047fc0
lea rdx, [0x14022f5a9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14022f6ad], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14004cd09
lea r8, str._program_name_unknown_
lea rcx, [0x14022f5a9]
mov edx, 0x2fb
call fcn.140047a90
test eax, eax
je 0x14004cd09
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140047fc0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14022f5a9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14004cd58
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14022f8a4]
lea r9d, [rax + 3]
lea r8, [0x140065254]
sub rdx, rcx
call fcn.140058b00
test eax, eax
je 0x14004cd58
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140047fc0
lea r8, [0x140065250]
mov edx, 0x314
mov rcx, rbp
call fcn.14004a750
test eax, eax
je 0x14004cd84
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140047fc0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14004a750
test eax, eax
je 0x14004cdb4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140047fc0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400588a0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14004ce25
cmp rax, 0xffffffffffffffff
je 0x14004ce25
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14004ce40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140058c20
cmp eax, 1
je 0x14004ce72
mov ecx, 3
call fcn.140058c20
test eax, eax
jne 0x14004cf26
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x14004cf26
mov qword [rsp + 0x48], rbx
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14004ce9e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14004ce88
jmp 0x14004cf12
cmp edi, 0x17
jae 0x14004cf12
mov ecx, 3
call fcn.140058c20
cmp eax, 1
je 0x14004cec9
mov ecx, 3
call fcn.140058c20
test eax, eax
jne 0x14004cf12
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x14004cf12
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14004cf12
cmp rax, 0xffffffffffffffff
je 0x14004cf12
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14004cc00
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x14004d027
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14008c0c0]
jne 0x14004745a
rol rcx, 0x10
test cx, 0xffff
jne 0x140047456
repz ret
ror rcx, 0x10
jmp 0x14004cf80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14022f960]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14022fa58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14004d005
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14022f960]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14004d027
mov rax, qword [rsp + 0x88]
mov qword [0x14022fa58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14022f9f8], rax
mov rax, qword [0x14022fa58]
mov qword [0x14022f8d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14022f9e0], rax
mov dword [0x14022f8c0], 0xc0000409
mov dword [0x14022f8c4], 1
mov rax, qword [0x14008c0c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14008c0c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14022f958], eax
mov ecx, 1
call fcn.14004fa90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140065290]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14022f958], 0
jne 0x14004d0ae
mov ecx, 1
call fcn.14004fa90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140055810
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x1402303dc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14005586c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14005584c
mov dword [0x1402303dc], 1
jmp 0x14005587f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140055866
mov dword [0x1402303dc], 2
jmp 0x1400558e9
mov eax, dword [0x1402303dc]
cmp eax, 1
jne 0x1400558e0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400558ba
cmp word [rdi], bp
mov rax, rdi
je 0x140055899
add rax, 2
cmp word [rax], bp
jne 0x140055887
add rax, 2
cmp word [rax], bp
jne 0x140055887
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14004c790
test rax, rax
mov rbx, rax
jne 0x1400558c1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1400559db
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14004a260
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x1400559db
cmp eax, 2
je 0x1400558e9
test eax, eax
jne 0x1400558ba
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x1400558ba
cmp byte [rax], bpl
mov rbx, rax
je 0x140055938
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400558ba
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140055900
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14004c800
test rax, rax
mov r12, rax
jne 0x14005595d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400559db
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x1400559c5
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400559ee
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140055970
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140047310
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x1400559d6
Function at 0x1400588a0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14004bff0
xor ebx, ebx
cmp qword [0x140230458], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400589cc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140058adf
lea rdx, [0x140065e18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140058adf
mov rcx, rax
call fcn.14004bf20
lea rdx, [0x140065e08]
mov rcx, rsi
mov qword [0x140230458], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14004bf20
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140230460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14004bf20
lea rcx, [rsp + 0x98]
mov qword [0x140230468], rax
call fcn.140049080
test eax, eax
je 0x14005897f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140047fc0
cmp dword [rsp + 0x98], 2
jne 0x1400589cc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14004bf20
test rax, rax
mov qword [0x140230478], rax
je 0x1400589cc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14004bf20
mov qword [0x140230470], rax
mov rcx, qword [0x140230470]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140058a78
cmp qword [0x140230478], rbp
je 0x140058a78
call fcn.14004c0e0
mov rcx, qword [0x140230478]
mov rsi, rax
call fcn.14004c0e0
test rsi, rsi
mov r12, rax
je 0x140058a78
test rax, rax
je 0x140058a78
call rsi
test rax, rax
je 0x140058a43
lea rcx, [rsp + 0x34]
mov r9d, SafeArrayGetDim
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140058a43
test byte [rsp + 0x40], 1
jne 0x140058a78
lea rcx, [rsp + 0x30]
call fcn.1400490d0
test eax, eax
je 0x140058a65
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140047fc0
cmp dword [rsp + 0x30], 4
jb 0x140058a72
bts edi, 0x15
jmp 0x140058ab6
bts edi, 0x12
jmp 0x140058ab6
mov rcx, qword [0x140230460]
cmp rcx, rbp
je 0x140058ab6
call fcn.14004c0e0
test rax, rax
je 0x140058ab6
call rax
test rax, rax
mov rbx, rax
je 0x140058ab6
mov rcx, qword [0x140230468]
cmp rcx, rbp
je 0x140058ab6
call fcn.14004c0e0
test rax, rax
je 0x140058ab6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140230458]
call fcn.14004c0e0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140058adf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140058ae1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005c860
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14005c8a7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140047440
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140049410
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140047440
add rsp, 0x38
ret

Function at 0x14005d0c0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140058c80
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x14005d264
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140058c80
cmp rax, 0xffffffffffffffff
je 0x14005d264
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x14005d1e3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x14005d169
call fcn.14004cab0
mov dword [rax], SafeArrayGetDim
call fcn.14004cab0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.14005d280
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140053660
cmp eax, 0xffffffff
je 0x14005d1a5
cdqe
sub rbx, rax
test rbx, rbx
jg 0x14005d180
jmp 0x14005d1be
call fcn.14004cae0
cmp dword [rax], 5
jne 0x14005d1ba
call fcn.14004cab0
mov dword [rax], SafeArrayGetDim
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.14005d280
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x14005d23c
test rbx, rbx
jns 0x14005d246
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140058c80
cmp rax, 0xffffffffffffffff
je 0x14005d14a
mov ecx, esi
call fcn.14005a920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x14005d246
call fcn.14004cab0
mov dword [rax], SafeArrayGetDim
call fcn.14004cae0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x14005d14a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140058c80
cmp rax, 0xffffffffffffffff
je 0x14005d14a
xor eax, eax
jmp 0x14005d151
call fcn.14004cab0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x140060850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov r14, rdx
mov rbp, rcx
je 0x140060904
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, dword [rax + rcx + 0x88]
mov esi, ebx
add rdi, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x1400608ff
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r13
mov r13, rbx
mov r12, rbx
nop
nop
mov eax, dword [rdi + 0x20]
mov rdx, r14
add rax, r13
mov ecx, dword [rax + rbp]
add rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400608cf
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r12
add rcx, rbp
movzx edx, word [rax + rbp]
mov ebx, dword [rcx + rdx*4]
add rbx, rbp
add esi, 1
add r13, 4
add r12, 2
cmp esi, dword [rdi + 0x18]
jb 0x1400608a0
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rax, rbx
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rax, rbx
jmp 0x1400608ec
mov rax, rbx
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x10000b620
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jb 0x10000b669
cmp al, 6
jb 0x10000b669
lea rcx, [0x100002b18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x10000b669
lea rdx, [0x100002b38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10000b669
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
add rsp, 0x28
ret

Function at 0x10000dca8
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x10000ddff
lea rdx, [0x1000016a0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x10000ddcb
lea r8d, [rbx + 0x1c]
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10000dd6c
mov dword [rsp + 0x24], 4
jmp 0x10000dd3f
mov eax, esi
inc esi
cmp eax, 5
jge 0x10000dd5c
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x10000dd60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10000dd2d
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x10000ddaa
mov ebx, 0x80004005
jmp 0x10000ddc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0x41c
je 0x10000dda1
sub edx, 8
je 0x10000dd9d
sub edx, 2
je 0x10000dd9d
cmp edx, 0xf
je 0x10000dd9d
lea rcx, [0x1000031c0]
mov edx, eax
call fcn.10000a81c
jmp 0x10000dda6
xor ebx, ebx
jmp 0x10000ddaa
mov ebx, 0x652
test ebx, ebx
jne 0x10000ddc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x10000ddc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000ddf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
sub ecx, 0x424
je 0x10000ddf2
cmp ecx, 0xc
je 0x10000ddf2
lea rcx, [0x1000031f0]
mov edx, eax
call fcn.10000a81c
jmp 0x10000ddf4
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000de15
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003218]
mov edx, eax
mov ebx, eax
call fcn.10000a81c
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret