joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023400
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
and qword [rax + 8], 0
and qword [rax + 0x18], 0
test rcx, rcx
jne 0x1400235a9
xor ebx, ebx
mov qword [rax + 0x20], rbx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [0x1400b2508]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14009cae0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
sets bpl
lea r12, str.8__r_
test eax, eax
jns 0x14002349e
mov rcx, qword [str.8__r_]
cmp rcx, r12
je 0x140023495
test byte [rcx + 0x1c], 1
je 0x140023495
mov edx, 0x14
mov r9d, eax
lea r8, [0x1400b2548]
mov rcx, qword [rcx + 0x10]
call fcn.140004000
test bpl, bpl
jne 0x1400235d3
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
movabs r10, 0xc2392f9178de2a70
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x40], rdx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14009aae8]
mov edi, eax
test eax, eax
sets bpl
test eax, eax
jns 0x14002352d
mov rcx, qword [str.8__r_]
cmp rcx, r12
je 0x140023524
test byte [rcx + 0x1c], 1
je 0x140023524
mov edx, 0x15
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x1400b2548]
mov rcx, qword [rcx + 0x10]
call fcn.140003c68
test bpl, bpl
jne 0x1400235c5
mov rax, qword [rsp + 0x80]
and qword [rsp + 0x80], 0
mov qword [r14], rax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140023570
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x14009aae8]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140023595
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [0x14009aae8]
nop
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x1400235cd
jmp 0x140023431
mov ecx, edi
call fcn.140079754
nop
call fcn.140022cd8
nop
mov ecx, edi
call fcn.140079754
int3
Function at 0x14002590c
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
xor eax, eax
and dword [rsp + 0x30], eax
mov rsi, rcx
lea rcx, str._nState_of__s_service:_n
mov dword [rsp + 0x60], eax
movups xmmword [rsp + 0x40], xmm0
mov rbp, rdx
xor ebx, ebx
movups xmmword [rsp + 0x50], xmm0
xor edi, edi
call fcn.140077ed0
xor edx, edx
lea r8d, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400259c2
lea r8d, [rdi + 4]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400259c2
lea rcx, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x40]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400259c2
movups xmm0, xmmword [rsp + 0x40]
mov eax, dword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
mov dword [rsi + 0x20], eax
xor esi, esi
jmp 0x1400259ce
call fcn.14007a89c
mov esi, eax
test rdi, rdi
je 0x1400259d7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400259e5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140083d20
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038140
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov ebx, 0x104
mov qword [r8], r15
mov r9d, ebx
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x1400381b3
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1400381b3
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140038191
lea rax, [rdx - 2]
test r9, r9
lea r8, [0x1400b89a0]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov rdx, rbx
mov word [rax], r15w
call fcn.14001f7a4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140038215
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140038200
mov esi, r15d
jmp 0x140038246
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.140037ea4
mov esi, eax
jmp 0x140038246
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov dword [rsp + 0x24], r15d
call fcn.140037ffc
mov esi, eax
test eax, eax
jns 0x14003827d
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.140037e84
test rdi, rdi
jne 0x14003831a
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140083d20
lea r11, [rsp + 0x250]
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
lea r8, [0x1400a4344]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001f7a4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x1400382c0
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.140037ea4
mov esi, eax
jmp 0x14003831a
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.140037ffc
mov esi, eax
test eax, eax
jns 0x1400382f6
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.140037e84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14003833e
jmp 0x14003831a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14003832c
movsxd rcx, dword [rsp + 0x24]
mov esi, r15d
movsxd rax, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140038350
jmp 0x14003824f
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.140037edc
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.140037edc
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.140037edc
int3
Function at 0x140045cf8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea r13, [r8 - 1]
mov r12, r9
mov r14, r13
mov rbp, r8
sar r14, 1
mov rdi, rdx
mov rsi, rcx
mov r15, rdx
mov rbx, rdx
cmp rdx, r14
jge 0x140045d78
add rbx, rbx
lea rcx, [rbx + 2]
shl rcx, 5
add rcx, rsi
lea rdx, [rcx - 0x20]
call fcn.140040ee4
movzx ecx, al
xor rcx, 1
shl rdi, 5
inc rcx
add rbx, rcx
mov rdx, rbx
shl rdx, 5
lea rcx, [rsi + rdi]
add rdx, rsi
call fcn.140019984
mov rdi, rbx
cmp rbx, r14
jl 0x140045d35
cmp rbx, r14
jne 0x140045d9e
test bpl, 1
jne 0x140045d9e
shl rdi, 5
lea rdx, [rsi - 0x20]
shl rbp, 5
add rdx, rbp
lea rcx, [rsi + rdi]
call fcn.140019984
mov rdi, r13
cmp r15, rdi
jge 0x140045ddb
lea rbx, [rdi - 1]
mov rdx, r12
sar rbx, 1
mov rbp, rbx
shl rbp, 5
add rbp, rsi
mov rcx, rbp
call fcn.140040ee4
test al, al
je 0x140045ddb
shl rdi, 5
mov rdx, rbp
lea rcx, [rsi + rdi]
call fcn.140019984
mov rdi, rbx
cmp r15, rbx
jl 0x140045da3
shl rdi, 5
mov rdx, r12
lea rcx, [rsi + rdi]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140019984

Function at 0x14004607c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rax, [r8 - 1]
mov r13, r9
mov r15, rax
mov qword [rsp + 0x50], rax
sar r15, 1
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov r12, rdx
mov r14, rdx
cmp rdx, r15
jge 0x140046115
lea rbx, [r14 + r14]
lea rcx, [rbx + 2]
shl rcx, 6
add rcx, rsi
lea rdx, [rcx - 0x40]
call fcn.140040ee4
lea r14, [rbx + 1]
movzx ecx, al
xor rcx, 1
shl rdi, 6
add r14, rcx
add rdi, rsi
mov rbx, r14
mov rcx, rdi
shl rbx, 6
add rbx, rsi
mov rdx, rbx
call fcn.140019984
lea rdx, [rbx + 0x20]
lea rcx, [rdi + 0x20]
call fcn.140019984
mov rdi, r14
cmp r14, r15
jl 0x1400460be
cmp r14, r15
jne 0x14004614d
test bpl, 1
jne 0x14004614d
shl rbp, 6
shl rdi, 6
add rdi, rsi
mov rcx, rdi
lea rbx, [rsi + rbp]
lea rdx, [rbx - 0x40]
call fcn.140019984
lea rdx, [rbx - 0x20]
lea rcx, [rdi + 0x20]
call fcn.140019984
mov rdi, qword [rsp + 0x50]
cmp r12, rdi
jge 0x140046199
lea rbx, [rdi - 1]
mov rdx, r13
sar rbx, 1
mov rbp, rbx
shl rbp, 6
add rbp, rsi
mov rcx, rbp
call fcn.140040ee4
test al, al
je 0x140046199
shl rdi, 6
mov rdx, rbp
add rdi, rsi
mov rcx, rdi
call fcn.140019984
lea rdx, [rbp + 0x20]
lea rcx, [rdi + 0x20]
call fcn.140019984
mov rdi, rbx
cmp r12, rbx
jl 0x140046152
shl rdi, 6
mov rdx, r13
add rdi, rsi
mov rcx, rdi
call fcn.140019984
lea rdx, [r13 + 0x20]
lea rcx, [rdi + 0x20]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.140019984
Function at 0x14004ed30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14004ed5f
call fcn.14004f5c0
jmp 0x14004edd7
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14004ed76
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004ed78
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004edd1
test ecx, ecx
jle 0x14004edb1
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.140091220
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14004edd1
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004edd1
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14004ee00
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 0x14004ee2e
xor eax, eax
jmp 0x14004ef16
cmp qword [rcx + 0x68], 0
je 0x14004ee3f
call fcn.14004f6a0
jmp 0x14004ef16
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14004ee56
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004ee58
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004ee8a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140091220
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 0x14004ef10
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14004eec1
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 0x14004eeeb
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14004ef10
cmp rsi, rbx
ja 0x14004eec8
test rsi, rsi
je 0x14004ef10
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
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 0x14004f370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rbp + 0x3f], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x14004f3ab
xor eax, eax
jmp 0x14004f4e9
mov rax, qword [rcx + 0x40]
xor r14d, r14d
cmp qword [rax], r14
je 0x14004f3e7
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14004f3e7
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14004f4e9
cmp qword [rbx + 0x80], r14
je 0x14004f4e7
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004f421
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004f445
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x14004f4e7
mov byte [rbp + 7], sil
lea rdx, [rbx + 0x74]
mov qword [rbp + 0x17], r14
mov qword [rbp + 0xf], r14
mov rax, qword [rcx]
movabs r10, 0xba452fa050dd0070
mov rax, qword [rax + 0x38]
lea r8, [rbp + 0xf]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 8]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14009aae8]
test eax, eax
je 0x14004f4ac
sub eax, 1
je 0x14004f4ac
cmp eax, 2
jne 0x14004f4e7
movsx ecx, byte [rbp + 7]
jmp 0x14004f42e
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14004f4d7
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14004f4e7
lea rax, [rbp + 7]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x17], rax
mov eax, esi
jne 0x14004f4e9
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140083d20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004fd94
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004fe2b
cmp byte [rcx + 0x71], 0
je 0x14004fe2b
mov rax, qword [rcx]
movabs r10, 0x85e0a7255cd10370
mov rax, qword [rax + 0x18]
or edx, 0xffffffff
call qword [0x14009aae8]
cmp eax, 0xffffffff
je 0x14004fe80
mov rcx, qword [rbx + 0x68]
lea rdx, [rbx + 0x74]
and qword [rsp + 0x30], 0
mov rax, qword [rcx]
movabs r10, 0xd275361c54538b70
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [0x14009aae8]
test eax, eax
je 0x14004fe45
sub eax, 1
je 0x14004fe49
cmp eax, 2
jne 0x14004fe80
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140083d20
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004fe77
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004fe80
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004fe2d
xor al, al
jmp 0x14004fe2d
Function at 0x140054bf0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x20
and qword [rdx], 0
lea r8, [rax + 8]
and dword [rax + 8], 0
mov rsi, rdx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140054d16
call fcn.14007a89c
mov ebx, eax
test eax, eax
jns 0x140054d16
cmp eax, 0x800700ea
jne 0x140054d1b
mov eax, dword [rsp + 0x30]
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
ja 0x140054cf1
mov ecx, eax
call qword [sym.imp.mpclient.dll_MpAllocMemory]
mov rbx, rax
test rax, rax
je 0x140054ccc
xor edi, edi
lea r8, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140054cc7
call fcn.14007a89c
mov edi, eax
test eax, eax
jns 0x140054cc7
mov rcx, qword [str.8__r_]
lea rdx, str.8__r_
cmp rcx, rdx
je 0x140054cb7
test byte [rcx + 0x1c], 1
je 0x140054cb7
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb3a0]
mov edx, 0x5b
mov r9d, eax
call fcn.140004000
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov eax, edi
jmp 0x140054d4e
mov qword [rsi], rbx
jmp 0x140054cc0
mov rcx, qword [str.8__r_]
lea rdx, str.8__r_
mov ebx, 0x8007000e
cmp rcx, rdx
je 0x140054d4c
test byte [rcx + 0x1c], 1
je 0x140054d4c
mov edx, 0x5a
jmp 0x140054d39
mov ebx, 0x80070216
mov rcx, qword [str.8__r_]
lea rdx, str.8__r_
cmp rcx, rdx
je 0x140054d4c
test byte [rcx + 0x1c], 1
je 0x140054d4c
mov edx, 0x58
jmp 0x140054d39
mov ebx, 0x8000ffff
mov rcx, qword [str.8__r_]
lea rdx, str.8__r_
cmp rcx, rdx
je 0x140054d4c
test byte [rcx + 0x1c], 1
je 0x140054d4c
mov edx, 0x57
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb3a0]
mov r9d, ebx
call fcn.140004000
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140054d60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rbp + 0x380], rax
and qword [rcx], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x38], 0
xor edi, edi
and dword [rsp + 0x30], edi
xorps xmm0, xmm0
mov r14, rdx
mov rsi, rcx
mov r13d, 0x400
xor ebx, ebx
lea r9d, [rdi + 0x10]
mov ecx, r13d
lea edx, [rdi + 0x58]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140054e41
mov eax, 0x800
test word [rsp + 0x4e], ax
je 0x140054e41
lea r9d, [rdi + 2]
mov edx, 0x20001009
lea r8, [rsp + 0x30]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140054e41
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
lea ecx, [r13 - 1]
and ax, cx
cmp ax, 0xd
jne 0x140054e1a
cmp dword [rsp + 0x30], 8
lea eax, [rdi + 0x20]
cmove ebx, eax
jmp 0x140054e3c
mov eax, dword [rsp + 0x30]
cmp eax, 0x17
ja 0x140054e2d
mov ecx, 0x800c42
bt ecx, eax
jb 0x140054e37
mov edi, 1
cmp eax, 0xc
jne 0x140054e41
mov ebx, 0x20
mov edi, 1
or ebx, edi
lea rax, [rbp + 0x170]
mov edi, 0x104
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov r8, r14
mov edx, ebx
mov qword [rsp + 0x20], rax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
test eax, eax
jne 0x140054eac
call fcn.14007a89c
mov ebx, eax
mov rcx, qword [str.8__r_]
lea rdx, str.8__r_
cmp rcx, rdx
je 0x140054ea5
test byte [rcx + 0x1c], 1
je 0x140054ea5
mov edx, 0x5c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb3a0]
mov r9d, ebx
call fcn.140004000
mov eax, ebx
jmp 0x140054f37
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jne 0x140054ef6
call fcn.14007a89c
mov ebx, eax
mov rcx, qword [str.8__r_]
lea rdx, str.8__r_
cmp rcx, rdx
je 0x140054ea5
test byte [rcx + 0x1c], 1
je 0x140054ea5
mov edx, 0x5d
jmp 0x140054e92
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x170]
lea rdx, [0x1400a8d78]
lea rcx, [rsp + 0x38]
call fcn.14007a60c
mov ebx, eax
test eax, eax
jns 0x140054f2d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140054ea5
call fcn.140083d40
jmp 0x140054ea5
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
xor eax, eax
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140083d20
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140056c5c
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x1400d7c88]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r8
mov rsi, rdx
mov r14, rcx
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x140056cb8
test byte [rcx + 0x1c], 4
je 0x140056cb8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb4c8]
mov edx, 0x1b
call fcn.140003cf8
or rbx, 0xffffffffffffffff
mov byte [rsi], 0
xor edi, edi
mov edx, dword [r14 + 8]
mov ecx, 0x18
inc edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x140056d0f
test byte [rcx + 0x1c], 4
je 0x140056d0f
mov rcx, qword [rcx + 0x10]
mov r9, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebp
call fcn.140056c04
cmp rbx, 0xffffffffffffffff
jne 0x140056d62
cmp ebp, 0x18
jne 0x140056d1f
cmp edi, 5
jb 0x140056cc1
call fcn.14007a89c
mov edi, eax
test eax, eax
jns 0x140056d62
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x140056d5b
test byte [rcx + 0x1c], 1
je 0x140056d5b
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb4c8]
mov edx, 0x1d
mov r9d, edi
call fcn.140004000
mov eax, edi
jmp 0x140056e7b
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x434
call fcn.1400860f0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x140056dcd
mov r9d, 8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, [0x140056eb0]
mov rdx, r15
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 7]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_bsearch]
test rax, rax
jne 0x140056e37
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140056d8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140056e3c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x140056e3c
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x140056e1f
test byte [rcx + 0x1c], 1
je 0x140056e1f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb4c8]
mov edx, 0x1f
mov r9d, edi
call fcn.140004000
cmp rbx, 0xffffffffffffffff
je 0x140056d5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140056d5b
mov byte [rsi], 1
jmp 0x140056e6a
mov rcx, qword [str.8__r_]
lea rax, str.8__r_
cmp rcx, rax
je 0x140056e6a
test byte [rcx + 0x1c], 4
je 0x140056e6a
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400bb4c8]
mov edx, 0x20
call fcn.140003cf8
cmp rbx, 0xffffffffffffffff
je 0x140056e79
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140083d20
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140058428
Capabilities:
Check if file exists
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rbx, rcx
test rax, rax
je 0x14005843d
and dword [rax], 0
mov rcx, qword [rcx]
test rcx, rcx
je 0x140058473
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140058473
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140058473
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x140058473
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret