joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e1bb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov qword [rbp - 0x68], rcx
xor esi, esi
mov dword [rsp + 0x70], esi
lea rax, [0x140172078]
mov qword [rcx], rax
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], rsi
or r8d, 0xffffffff
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
lea rcx, [rsp + 0x78]
call fcn.140004060
nop
mov rcx, rax
call fcn.140021850
mov rdx, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400e1c72
cmp eax, 0xffffffff
je 0x1400e1c80
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e1c80
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
test bl, bl
je 0x1400e1db9
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400e1dae
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400e1dae
mov ebx, esi
mov dword [rsp + 0x74], 0xff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x60]
mov edx, ebx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400e1da2
or r8d, 0xffffffff
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x78]
call fcn.140005580
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.14000cf80
nop
mov rdx, rax
mov rcx, rdi
call fcn.14002dc60
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400e1d66
cmp eax, 0xffffffff
je 0x1400e1d75
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e1d75
mov rcx, qword [rbp - 0x80]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cd80
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400e1d94
cmp eax, 0xffffffff
je 0x1400e1da2
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400e1da2
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400e1ce2
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14010a180
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400e3b80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov dword [rsp + 0x34], 0
mov rbx, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.14010d770
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r8d, 0xffffffff
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140005580
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14010a180
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400e3f80
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
xor ebx, ebx
lea r8, [rsp + 0x40]
mov ecx, eax
mov word [rsp + 0x20], bx
lea r9d, [rbx + 3]
lea edx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x1400e3ffb
mov qword [rsp + 0x30], 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
call fcn.14006feb0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010a180
add rsp, 0x50
pop rbx
ret
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010a180
add rsp, 0x50
pop rbx
ret
Function at 0x140108130
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14147a440]
test rcx, rcx
jne 0x14010815a
xor r8d, r8d
lea edx, [rcx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14147a440], rax
jmp 0x140108163
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r10, qword [0x14147a468]
lea rax, [rbx - 0x10]
mov rcx, qword [rax]
mov r9, rax
sub r9, qword [rax + 8]
sub r10, rcx
mov qword [0x14147a468], r10
cmp qword [r9], 0
jne 0x14010819a
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x1401081c9
xor edx, edx
mov qword [rax + 0x20], rcx
mov rcx, qword [0x14147a460]
lea r8, [rax + 0x20]
mov qword [rax], rdx
mov r9, rax
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdx
test rcx, rcx
je 0x1401081c2
mov qword [rcx + 0x18], rax
mov qword [0x14147a460], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], 0
lea rdx, [rcx + r9]
jne 0x140108215
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1401081ef
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x18]
mov rax, qword [rdx + 0x10]
test rcx, rcx
je 0x140108202
mov qword [rcx + 0x10], rax
jmp 0x140108209
mov qword [0x14147a460], rax
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], 0
jne 0x14010827b
cmp qword [rdx], 1
jne 0x14010827b
mov rcx, qword [0x14147a470]
lea rax, [r10 + r10*2]
sub rcx, qword [r8]
shr rax, 1
cmp rcx, rax
jbe 0x14010827b
mov qword [0x14147a470], rcx
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x140108250
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 0x10]
test rcx, rcx
je 0x140108263
mov qword [rcx + 0x10], rax
jmp 0x14010826a
mov qword [0x14147a460], rax
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x14147a440]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lock adc dword [0x16aaff8d3], edx
ret 0xaf88
Function at 0x14011349c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14010aae0
sub rsp, rax
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.14011a37c
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x1401134f0
mov rax, r14
jmp 0x14011360a
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0x147b970]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.140113878
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0x147b970]
cmp r13, qword [rbx + rcx + 0x30]
je 0x140113557
or rax, 0xffffffffffffffff
jmp 0x14011360a
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0x147b970]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011354e
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.140113878
test rax, rax
js 0x14011354e
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x14011354e
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x1401135fe
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401135fe
cmp byte [rcx], 0xd
jne 0x1401135e4
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401135f3
cmp byte [rcx + 1], 0xa
jne 0x1401135f3
inc rcx
jmp 0x1401135f3
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2f1350]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x1401135c6
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14010a180
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140117eec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x14147b970]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x140117f51
cmp byte [r14], 0xa
jne 0x140117f51
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x140117f72
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x1401180cc
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x14011808c
cmp al, 0xd
je 0x140117fa6
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x140118081
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x140117fcc
cmp byte [rax], 0xa
jne 0x140117fbe
mov byte [rbx], 0xa
mov eax, 2
jmp 0x140117fc4
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x14011807e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140118074
cmp dword [rsp + 0x78], 0
je 0x140118074
mov rcx, rdi
lea r10, [0x14147b970]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x140118044
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x140118050
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14011807e
cmp byte [rsp + 0x70], 0xa
jne 0x140118055
cmp rbx, r14
jne 0x140118055
mov byte [rbx], 0xa
jmp 0x14011807e
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.140113880
cmp byte [rsp + 0x70], 0xa
lea r10, [0x14147b970]
je 0x140118081
jmp 0x14011807b
lea r10, [0x14147b970]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x140117f8b
jmp 0x1401180cc
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x1401180c5
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x1401180cc
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401180ec
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 r11, [0x14147b970]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x140118158
cmp word [r14], r10w
jne 0x140118158
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x140118179
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x140118352
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x140118310
cmp ax, cx
je 0x1401181b5
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x1401182a9
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x1401181dd
cmp word [rax], r10w
jne 0x1401181cf
mov word [rbx], r10w
mov eax, 4
jmp 0x1401181d5
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x1401182f3
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401182f8
cmp dword [rsp + 0x80], 0
je 0x1401182f8
mov rcx, rdi
lea r11, [0x14147b970]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x1401182b7
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14011824f
mov word [rbx], r10w
jmp 0x1401182a1
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x140118270
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x140118195
jmp 0x140118352
cmp word [rsp + 0x70], r10w
jne 0x1401182c4
cmp rbx, r14
je 0x140118249
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140113880
mov r10d, 0xa
lea r11, [0x14147b970]
cmp word [rsp + 0x70], r10w
je 0x1401182a4
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x1401182a9
mov ecx, 0xd
lea r11, [0x14147b970]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x1401182a9
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x140118349
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x140118352
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [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
Function at 0x14011dfcc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14011de57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011de57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011de57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011de57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011de57
cmp dword [rcx + 0x84], 0xe
jbe 0x14011de57
cmp dword [rcx + 0xf8], 0
je 0x14011de57
mov ecx, ebx
call fcn.14011def8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14011dcd4
cmp dword [rbp + 0x20], 0
je 0x14011dea4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14011deac
int3
xor r8d, r8d
xor edx, edx
jmp 0x14011ddf0
Function at 0x140152a64
Capabilities:
Write file on windows

Disassembly:
jmp 0x14037fb70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1405699a7]
call fcn.1401589dc
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14037fbc8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14037fcda
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14037fc73
cmp qword [rbp + 0x28], 0
jle 0x14037fc73
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14037fc11
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1401582a7
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14037fcc9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14037fcc9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140154ef4
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140199540
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x538
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xe6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x558]
mov rax, qword [0x140527100]
xor rax, rbp
mov qword [rbp + 0x508], rax
mov qword [rbp + 0x308], 0
lea rcx, [0x1405689b5]
call fcn.1401589dc
nop
mov dword [rbp + 0x10], 0x238
xor edx, edx
mov ecx, 0xf
call fcn.14015527d
mov qword [rbp + 0x268], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140156074
nop
mov dword [rbp + 0x284], 0
call fcn.1401579e2
mov dword [rbp + 0x2a4], eax
mov qword [rbp + 0x2c8], 0
mov qword [rbp + 0x2e8], 0
mov rcx, qword [rbp + 0x538]
call fcn.1401529c4
mov qword [rbp + 0x4d8], rax
lea rax, [rbp + 0x3c]
mov qword [rbp + 0x2c8], rax
cmp qword [rbp + 0x2c8], 0
jne 0x140199628
mov qword [rbp + 0x4e0], 0
jmp 0x140199713
mov rcx, qword [rbp + 0x2c8]
call qword [sym.imp.ucrtbased.dll_wcslen]
inc eax
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0x3fffffff
jle 0x140199659
mov qword [rbp + 0x4e8], 0
jmp 0x140199705
movsxd rax, dword [rbp + 0x284]
shl rax, 1
mov qword [rbp + 0x4f0], rax
movsxd rcx, dword [rbp + 0x284]
shl rcx, 1
add rcx, 0x24
mov qword [rbp + 0x4f8], rcx
mov rcx, qword [rbp + 0x4f8]
add rcx, 0xf
cmp rcx, qword [rbp + 0x4f8]
ja 0x14019969d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401533c9
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp + 0x500], rax
lea r8, [rbp + 0x308]
mov rdx, qword [rbp + 0x4f8]
mov rcx, qword [rbp + 0x500]
call fcn.1401593eb
add qword [rbp + 0x500], 0x20
mov r9d, dword [rbp + 0x2a4]
mov rax, qword [rbp + 0x4f0]
mov r8d, eax
mov rdx, qword [rbp + 0x2c8]
mov rcx, qword [rbp + 0x500]
call fcn.1401545b2
mov qword [rbp + 0x4e8], rax
mov rax, qword [rbp + 0x4e8]
mov qword [rbp + 0x4e0], rax
mov rdx, qword [rbp + 0x4d8]
mov rcx, qword [rbp + 0x4e0]
call fcn.140159472
test eax, eax
jne 0x140199755
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x4a4], eax
mov rcx, qword [rbp + 0x538]
call fcn.140153419
mov eax, dword [rbp + 0x4a4]
jmp 0x140199797
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x268]
call fcn.140157a64
test eax, eax
jne 0x1401995f0
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rbp + 0x4c4], 0
mov rcx, qword [rbp + 0x538]
call fcn.140153419
mov eax, dword [rbp + 0x4c4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140416fb0]
mov r8, qword [rbp + 0x308]
call fcn.14015648e
mov rax, rdi
mov rcx, qword [rbp + 0x508]
xor rcx, rbp
call fcn.140155363
lea rsp, [rbp + 0x518]
pop rdi
pop rbp
ret
Function at 0x140155b51
Capabilities:
Terminate process

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

Function at 0x1401563a3
Capabilities:
Write file on windows

Disassembly:
jmp 0x14025d280
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140568cd7]
call fcn.1401589dc
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140156439
Capabilities:
Get geographical location

Disassembly:
jmp 0x140386850
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14038688d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1401589a0
add rsp, 0x58
ret

Function at 0x1401566f5
Capabilities:
Read file on windows

Disassembly:
jmp 0x14025d200
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140568cd7]
call fcn.1401589dc
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret