joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037ab0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x140095050]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rdx
mov rbx, rcx
call fcn.140005bb0
test al, al
je 0x140037af5
mov rdx, r15
mov rcx, rbx
call fcn.140037890
jmp 0x140037cba
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x55], xmm0
movups xmmword [rbp - 0x45], xmm0
movups xmmword [rbp - 0x35], xmm0
mov qword [rbp - 0x25], rax
mov dword [rbp - 0x1d], eax
movups xmmword [rbp - 0x19], xmm0
xor esi, esi
mov edx, esi
mov qword [rbp - 9], rdx
mov r8d, 7
mov qword [rbp - 1], r8
mov word [rbp - 0x19], si
lea r14d, [rax + 1]
mov rcx, qword [rbx + 0x60]
mov rax, qword [rbx + 0x68]
sub rax, rcx
sar rax, 5
cmp rax, r14
jbe 0x140037baf
mov edi, 0x20
nop dword [rax]
nop dword [rax + rax]
lea rax, [rdi + rcx]
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140037b61
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rbp - 0x19]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x19]
call fcn.140003100
inc r14
add rdi, 0x20
mov rcx, qword [rbx + 0x60]
mov rax, qword [rbx + 0x68]
sub rax, rcx
sar rax, 5
cmp r14, rax
jb 0x140037b50
mov r8, qword [rbp - 1]
mov rdx, qword [rbp - 9]
cmp qword [rbx + 0x10], 0
jne 0x140037bc2
cmp qword [rcx + 0x18], 8
jb 0x140037bcf
mov rcx, qword [rcx]
jmp 0x140037bcf
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140037bcf
mov rcx, qword [rbx]
mov qword [rbp - 0x71], rcx
test rdx, rdx
jne 0x140037bde
mov qword [rbp - 0x69], rsi
jmp 0x140037bef
lea rax, [rbp - 0x19]
cmp r8, 8
cmovae rax, qword [rbp - 0x19]
mov qword [rbp - 0x69], rax
lea rax, str.runas
mov qword [rbp - 0x79], rax
mov dword [rsp + 0x40], 0x70
mov qword [rsp + 0x48], rsi
mov eax, esi
cmp byte [rbx + 0x7d], 2
setne al
mov dword [rbp - 0x59], eax
mov dword [rsp + 0x44], 0x40
cmp qword [rbx + 0x30], 0
je 0x140037c31
lea rsi, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x140037c31
mov rsi, qword [rbx + 0x20]
mov qword [rbp - 0x61], rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
je 0x140037c95
lea rax, str.ShellExecuteExW:
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x11
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 7]
call fcn.140001350
mov rbx, rax
mov rdx, rax
mov rcx, r15
call fcn.140002f90
mov eax, dword [rbx + 0x20]
mov dword [r15 + 0x20], eax
lea rcx, [rbp + 7]
call fcn.1400012e0
xor bl, bl
jmp 0x140037cae
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rbx + 0x78], eax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea rcx, [rbp - 0x19]
call fcn.1400012e0
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14003a1e0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038f50
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140095050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
test rdx, rdx
jne 0x14003907a
cmp rcx, 0xffffffffffffffff
je 0x140039002
xor esi, esi
lea rax, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rsi + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140039002
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140039002
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
lea edx, [rsi + 3]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
je 0x14003900c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor bl, bl
movzx eax, bl
jmp 0x1400390f8
mov eax, dword [rdi]
lea rdx, [rax*2 + 1]
add rdx, rax
lea rax, [rdi + 4]
lea rdx, [rdi + rdx*4]
cmp rax, rdx
je 0x140039040
nop word [rax + rax]
mov dword [rax + 8], 2
add rax, 0xc
cmp rax, rdx
jne 0x140039030
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, 1
sete bl
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bl
jmp 0x1400390f8
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
cmp rbx, rdi
je 0x1400390f6
xor esi, esi
nop dword [rax + rax]
mov rdx, qword [rbx]
lea r8, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, 1
jne 0x1400390ed
mov dword [rsp + 0x38], eax
lea r8, [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov r9d, 0x10
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, 1
jne 0x1400390ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x140039115
add rbx, 8
cmp rbx, rdi
jne 0x140039090
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003a1e0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
xor al, al
jmp 0x1400390f8
Function at 0x140039200
Capabilities:
Query service status
Start service

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov rax, qword [0x140095050]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbx], rax
test rax, rax
jne 0x140039289
lea rax, [0x14005a700]
mov qword [rsp + 0x48], 0x24
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.140001350
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140002f90
mov eax, dword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov dword [rdi + 0x20], eax
call fcn.1400012e0
xor al, al
jmp 0x1400393cc
mov r8d, 0x14
lea rdx, str.TrustedInstaller
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400392ba
lea rax, str.TiElevator::Elevate_OpenServiceW_
mov qword [rsp + 0x48], 0x22
jmp 0x140039245
mov qword [rsp + 0xc0], rbp
lea rcx, [rsp + 0x30]
xor ebp, ebp
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x20], rcx
lea r8, [rbx + 0x20]
mov qword [rsp + 0x88], r14
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r15
lea r9d, [rbp + 0x24]
mov dword [rsp + 0x30], ebp
mov r14d, ebp
xor dil, dil
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x1400393aa
nop
mov eax, dword [rbx + 0x24]
cmp eax, 1
jne 0x140039336
test sil, sil
jne 0x140039381
mov rcx, qword [rbx + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
jne 0x140039381
movzx esi, al
jmp 0x140039381
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400393f0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov eax, dword [rbx + 0x34]
test dil, dil
je 0x14003936c
cmp eax, ebp
jbe 0x14003935c
xor dil, dil
jmp 0x140039381
mov eax, dword [rbx + 0x38]
sub rcx, r14
cmp rcx, rax
ja 0x1400393e3
xor dil, dil
jmp 0x140039381
mov r14, rcx
xor edx, edx
mov ecx, 0xfa
mov ebp, eax
mov dil, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rbx + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
je 0x140039310
xor al, al
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003a1e0
add rsp, 0x98
pop rdi
pop rbx
ret
mov ecx, 0x5b4
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400393aa
mov al, 1
jmp 0x1400393ac
Function at 0x140039c18
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140039c9c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005ab40]
cmp byte [rcx + rax], 0
je 0x140039c9c
dec r8
sub rdx, 1
jne 0x140039c82
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003af70
Capabilities:
Parse pe header

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

Function at 0x140040eb8
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 0x140040d17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140040d17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140040d17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140040d17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140040d17
cmp dword [rcx + 0x84], 0xe
jbe 0x140040d17
cmp dword [rcx + 0xf8], 0
je 0x140040d17
mov ecx, ebx
call fcn.140040dd4
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.140040ba4
nop
cmp dword [rbp + 0x20], 0
je 0x140040d65
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140040d70
int3
xor r8d, r8d
xor edx, edx
jmp 0x140040ca8
Function at 0x140047718
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.1400555f0
sub rsp, rax
mov rax, qword [0x140095050]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140048178
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140047767
mov rax, rbp
jmp 0x14004786f
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 + 0x96e70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004d670
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x96e70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004786b
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 0x14004786b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004d670
test rax, rax
js 0x14004786b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004786b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004785d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004785d
cmp byte [rcx], 0xd
jne 0x140047843
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140047852
cmp byte [rcx + 1], 0xa
jne 0x140047852
inc rcx
jmp 0x140047852
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x95420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140047825
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004786f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003a1e0
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 0x14004b43c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14004b46e
call fcn.140044fac
mov dword [rax], 0x16
call fcn.140040b0c
jmp 0x14004b58d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004b58d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14004b58d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14004b49d
lock or dword [rcx + 0x14], 0x10
jmp 0x14004b58d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14004b4b1
call fcn.140051d3c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140048178
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14004cf34
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14004b57b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14004b546
mov rcx, rsi
call fcn.140048178
cmp eax, edi
je 0x14004b531
mov rcx, rsi
call fcn.140048178
cmp eax, 0xfffffffe
je 0x14004b531
mov rcx, rsi
call fcn.140048178
movsxd rbx, eax
lea r14, [0x140096e70]
mov rcx, rsi
sar rbx, 6
call fcn.140048178
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14004b538
lea rdx, [0x140095260]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004b546
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14004b56a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14004b56a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14004b56a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x14004b590
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14004ca88
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140096e70]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14004cae6
cmp word [rdx], r12w
jne 0x14004cae6
or byte [rax + r8*8 + 0x38], cl
jmp 0x14004caec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14004cc47
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14004cc22
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14004cb25
mov rcx, r9
jmp 0x14004cb48
cmp r9, rdx
jae 0x14004cb5f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14004cb09
jmp 0x14004cc47
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004cc1c
cmp dword [rsp + 0x80], edi
je 0x14004cc1c
mov rdx, r14
lea r11, [0x140096e70]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14004cbf5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14004cbc8
mov word [rbx], r12w
jmp 0x14004cc43
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14004cbd1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14004cc43
cmp word [rsp + 0x70], r12w
jne 0x14004cc02
cmp rbx, rsi
je 0x14004cbc2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14004d678
cmp word [rsp + 0x70], r12w
je 0x14004cc47
mov word [rbx], r13w
jmp 0x14004cc43
lea r11, [0x140096e70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14004cc3f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14004cc47
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004f2c0
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 0x14004f347
mov rsi, rbx
cmp word [rax], bp
je 0x14004f306
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004f2f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004f2ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004b5a8
mov rdi, rax
test rax, rax
je 0x14004f334
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003c180
mov rbp, rdi
xor ecx, ecx
call fcn.140049614
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 0x140053bf4
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.14004d678
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004d678
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140053d44
cmp rax, 0xffffffffffffffff
je 0x140053d44
xor edi, edi
test rbp, rbp
jle 0x140053cef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004959c
mov rbx, rax
test rax, rax
jne 0x140053c7c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140053ce5
mov edx, 0x8000
mov ecx, r14d
call fcn.140049204
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.140050d04
cmp eax, 0xffffffff
je 0x140053cc5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140053c8c
mov edx, r15d
mov ecx, r14d
call fcn.140049204
jmp 0x140053ce5
cmp byte [rsi + 0x38], dil
je 0x140053cdc
cmp dword [rsi + 0x34], 5
jne 0x140053cdc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140053ce5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140049614
jmp 0x140053d58
jns 0x140053d58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004d678
cmp rax, 0xffffffffffffffff
jne 0x140053d10
cmp byte [rsi + 0x30], dil
je 0x140053d58
mov edi, dword [rsi + 0x2c]
jmp 0x140053d58
mov ecx, r14d
call fcn.140048100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140053d58
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 0x140053d58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140053d51
mov eax, dword [rsi + 0x2c]
jmp 0x140053d56
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004d678
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 0x140002390
Capabilities:
Create process memory minidump
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rbx, rcx
call fcn.1400020b0
mov rsi, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14000243a
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x44], rbx
mov dword [rsp + 0x4c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov r9d, 0x1120
mov qword [rsp + 0x28], rdi
mov r8, rsi
mov qword [rsp + 0x20], rcx
mov edx, ebx
mov rcx, rax
call sub.dbghelp.dll_MiniDumpWriteDump
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140002424
lea rcx, [0x140168700]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
setne dil
mov eax, edi
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rsi
ret

Function at 0x1400094f0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x20
mov eax, r9d
mov rbx, r8
test rcx, rcx
je 0x140009553
test rdx, rdx
je 0x140009553
cmp byte [rdx], 0
je 0x140009553
test rbx, rbx
je 0x140009553
cmp qword [rcx + 0x10], 0
je 0x140009553
cmp qword [rcx + 0x30], 0
je 0x140009553
mov dword [r8], 0
mov r9, rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140009532
mov r9, qword [rcx]
add rcx, 0x20
cmp qword [rcx + 0x18], 0x10
jb 0x140009540
mov rcx, qword [rcx]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [rbx], eax
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140009560
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x38
mov r10, r9
test rcx, rcx
je 0x1400095f0
test rdx, rdx
je 0x1400095f0
cmp byte [rdx], 0
je 0x1400095f0
cmp qword [rcx + 0x10], 0
je 0x1400095f0
cmp qword [rcx + 0x30], 0
je 0x1400095f0
xorps xmm0, xmm0
mov rax, rcx
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movups xmmword [r8 + 0x30], xmm0
movups xmmword [r8 + 0x40], xmm0
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm0
movups xmmword [r8 + 0x70], xmm0
cmp qword [rcx + 0x18], 0x10
jb 0x1400095bf
mov rax, qword [rcx]
add rcx, 0x20
cmp qword [rcx + 0x18], 0x10
jb 0x1400095cd
mov rcx, qword [rcx]
mov r9, r8
mov qword [rsp + 0x28], rax
mov r8, r10
mov dword [rsp + 0x20], 0x7f
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
setg al
add rsp, 0x38
ret
xor al, al
add rsp, 0x38
ret
Function at 0x140009dd0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x890
mov rax, qword [0x1401677b8]
xor rax, rsp
mov qword [rsp + 0x880], rax
cmp qword [0x140168950], 0
mov rdi, rcx
je 0x140009ed7
test rcx, rcx
je 0x140009ed7
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x8a8], rbx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x801
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x6e]
movzx edx, word [rsp + 0x6c]
movzx r8d, word [rsp + 0x6a]
movzx r10d, word [rsp + 0x68]
movzx r11d, word [rsp + 0x66]
movzx ebx, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], edx
mov edx, 0x800
mov dword [rsp + 0x38], r8d
lea r8, str.__04d__02d__02d__02d__02d__02d._03d___d_:__s_n
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
call fcn.14000a140
mov rbx, qword [rsp + 0x8a8]
lea rax, [rsp + 0x70]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x140009ea5
mov r9, qword [0x140168950]
lea rcx, [rsp + 0x70]
mov r8d, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [0x140168950]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov al, 1
jmp 0x140009ed9
xor al, al
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.14007a540
add rsp, 0x890
pop rdi
ret