joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033df4
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.140027be4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140027be4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140033f44
cmp rax, 0xffffffffffffffff
je 0x140033f44
xor edi, edi
test rbp, rbp
jle 0x140033eef
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400237f4
mov rbx, rax
test rax, rax
jne 0x140033e7c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140033ee5
mov edx, 0x8000
mov ecx, r14d
call fcn.140020b58
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.140026334
cmp eax, 0xffffffff
je 0x140033ec5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140033e8c
mov edx, r15d
mov ecx, r14d
call fcn.140020b58
jmp 0x140033ee5
cmp byte [rsi + 0x38], dil
je 0x140033edc
cmp dword [rsi + 0x34], 5
jne 0x140033edc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140033ee5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002386c
jmp 0x140033f58
jns 0x140033f58
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140027be4
cmp rax, 0xffffffffffffffff
jne 0x140033f10
cmp byte [rsi + 0x30], dil
je 0x140033f58
mov edi, dword [rsi + 0x2c]
jmp 0x140033f58
mov ecx, r14d
call fcn.14002cfc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140033f58
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 0x140033f58
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140033f51
mov eax, dword [rsi + 0x2c]
jmp 0x140033f56
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140027be4
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 0x140034b70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140034b98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140034b98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1406e0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406e01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406e0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e006f
add dl, dl
jne 0x1406e0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e00f6
xor eax, eax
add dl, dl
jne 0x1406e00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e01ad
add dl, dl
jne 0x1406e00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406e00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406e007e
mov eax, 1
add dl, dl
jne 0x1406e0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e00fb
sub eax, ebx
mov ebx, 1
jne 0x1406e014c
mov ecx, 1
add dl, dl
jne 0x1406e012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406e0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e015d
cmp eax, 0x7d00
jae 0x1406e019b
cmp eax, 0x500
jb 0x1406e0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e007e
cmp eax, 0x7f
ja 0x1406e019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406e01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406e007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005f90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov rbx, qword [0x1800fe960]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.180006ad0
mov edx, 0x44a8
mov qword [rdi], rax
mov rcx, rbx
call fcn.180006ad0
cmp dword [0x1800fe978], 0xfc22c78b
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
jne 0x180006123
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentConsoleFontEx]
xor ebx, ebx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventExW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateSymbolicLinkW]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SearchPathW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEventWhenCallbackReturns]
mov r9d, dword [rsp + 0x58]
xor edx, edx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNumaProximityNodeEx]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CallbackMayRunLong]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CheckNameLegalDOS8Dot3W]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Beep]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetSystemTimeAdjustment]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180008ff0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 0xb2fa
nop dword [rax]
inc ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [rdx + rdx*2]
cmp ecx, edx
jne 0x180009000
cmp ecx, 0xb2fb
je 0x18000902b
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x28
ret
Function at 0x1800817dc
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 0x18008184b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008184b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008184b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008184b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008184b
cmp dword [rcx + 0x84], 0xe
jbe 0x18008184b
cmp dword [rcx + 0xf8], 0
je 0x18008184b
mov ecx, ebx
call fcn.1800818fc
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.1800816d8
nop
cmp dword [rbp + 0x20], 0
je 0x180081899
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800818a4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800817dc

Function at 0x18008306c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180083082
mov al, 1
jmp 0x1800830e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180083093
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800830e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18008df84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800830e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800830e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800830e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800830e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180088a8c
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.180072e80
sub rsp, rax
mov rax, qword [0x18009a0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180082f4c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180088adb
mov rax, rbp
jmp 0x180088be3
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xfe1f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008a4ac
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xfe1f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180088bdf
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 0x180088bdf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008a4ac
test rax, rax
js 0x180088bdf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180088bdf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180088bd1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180088bd1
cmp byte [rcx], 0xd
jne 0x180088bb7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180088bc6
cmp byte [rcx + 1], 0xa
jne 0x180088bc6
inc rcx
jmp 0x180088bc6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9a4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180088b99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180088be3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180072b80
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 0x18008984c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800fe1f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800898a3
cmp word [rdx], r13w
jne 0x1800898a3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800898a8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800899cd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800899ee
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800898e1
mov rdx, r9
mov word [rbx], cx
jmp 0x180089908
cmp r9, r8
jae 0x180089918
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800898c2
jmp 0x1800899cd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800899c2
cmp dword [rsp + 0x80], esi
je 0x1800899c2
lea r8, [0x1800fe1f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008999a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008996a
mov word [rbx], r13w
jmp 0x1800899ca
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180089977
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800899ca
cmp word [rsp + 0x70], r13w
jne 0x1800899a7
cmp rbx, r14
je 0x180089964
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008a4b4
cmp word [rsp + 0x70], r13w
je 0x1800899cd
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800fe1f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800899c7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800899cd
Function at 0x18008d7c8
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18008d7f8
xor eax, eax
jmp 0x18008d8bb
mov rbp, rbx
cmp word [rax], si
je 0x18008d81d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18008d804
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18008d800
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18008beb0
movsxd r14, eax
test eax, eax
jne 0x18008d85b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18008d7f1
mov rcx, r14
call fcn.180086908
mov rdi, rax
test rax, rax
jne 0x18008d874
xor ecx, ecx
call fcn.180086484
jmp 0x18008d850
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18008beb0
test eax, eax
jne 0x18008d8a5
mov rcx, rdi
call fcn.180086484
jmp 0x18008d8af
xor ecx, ecx
call fcn.180086484
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180090630
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180083570
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800906d1
cmp ebx, dword [rsp + 0x30]
je 0x1800906ca
test esi, esi
je 0x1800906ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800906a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800906b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18009068f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800906b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800906d3
mov eax, 1
jmp 0x1800906d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180095068
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.18008a4b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008a4b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800951b8
cmp rax, 0xffffffffffffffff
je 0x1800951b8
xor edi, edi
test rbp, rbp
jle 0x180095163
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800853c4
mov rbx, rax
test rax, rax
jne 0x1800950f0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180095159
mov edx, 0x8000
mov ecx, r14d
call fcn.180094eec
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.18008617c
cmp eax, 0xffffffff
je 0x180095139
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180095100
mov edx, r15d
mov ecx, r14d
call fcn.180094eec
jmp 0x180095159
cmp byte [rsi + 0x38], dil
je 0x180095150
cmp dword [rsi + 0x34], 5
jne 0x180095150
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180095159
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180086484
jmp 0x1800951cc
jns 0x1800951cc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008a4b4
cmp rax, 0xffffffffffffffff
jne 0x180095184
cmp byte [rsi + 0x30], dil
je 0x1800951cc
mov edi, dword [rsi + 0x2c]
jmp 0x1800951cc
mov ecx, r14d
call fcn.18008df84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800951cc
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 0x1800951cc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800951c5
mov eax, dword [rsi + 0x2c]
jmp 0x1800951ca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008a4b4
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 0x1800959f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180095a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180095a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006240
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov ebx, 0xffffffff
mov r10, rdx
mov eax, ebx
mov r8, rcx
test rdx, rdx
je 0x1400062ae
lea r11, [0x1401173d0]
nop
movzx r9d, byte [r8]
lea r8, [r8 + 1]
dec r10
cmp r9b, 0x23
jne 0x140006294
cmp r10, 2
jb 0x140006294
cmp byte [r8], r9b
jne 0x140006294
cmp byte [r8 + 1], r9b
jne 0x140006294
not r9b
movzx eax, r9b
mov eax, dword [r11 + rax*4]
xor eax, 0xffffff
jmp 0x140006260
movzx edx, al
xor rdx, r9
shr eax, 8
xor eax, dword [r11 + rdx*4]
test r10, r10
jne 0x140006260
not eax
mov rbx, qword [rsp + 8]
ret
movzx r9d, byte [rcx]
inc r8
test r9b, r9b
je 0x1400062f0
lea r11, [0x1401173d0]
cmp r9b, 0x23
jne 0x1400062d3
cmp byte [r8], r9b
jne 0x1400062d3
cmp byte [r8 + 1], r9b
cmove eax, ebx
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400062c1
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1400075e0
Capabilities:
Write file on windows

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x1401447e0]
xor r15d, r15d
mov r14, rcx
mov dword [rdi + 0x5b84], r15d
test rcx, rcx
je 0x140007754
mov qword [rsp + 0x40], rbx
xor edx, edx
lea rbx, [rdi + 0x5b88]
mov qword [rsp + 0x48], rbp
mov rcx, rbx
mov qword [rsp + 0x50], rsi
mov dword [rdi + 0x5b84], r15d
call fcn.140004710
mov ecx, dword [rbx + 4]
mov esi, dword [rbx]
cmp esi, ecx
jne 0x1400076b0
inc esi
test ecx, ecx
je 0x140007648
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14000764d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1400076b0
mov rax, qword [0x1401447e0]
test rax, rax
je 0x140007668
inc dword [rax + 0xf4]
movsxd rcx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx + 8]
mov rbp, rax
test rdx, rdx
je 0x1400076a9
movsxd r8, dword [rbx]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400076a3
mov rax, qword [0x1401447e0]
test rax, rax
je 0x1400076a3
dec dword [rax + 0xf4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 8], rbp
mov dword [rbx + 4], esi
movsxd rcx, dword [rbx]
mov ebp, r15d
mov rax, qword [rbx + 8]
mov byte [rcx + rax], r15b
inc dword [rbx]
cmp dword [rdi + 0x5b98], r15d
jle 0x1400076f5
mov rsi, r15
nop dword [rax]
mov r9, qword [rdi + 0x5ba0]
mov r8, rbx
add r9, rsi
mov rcx, rdi
mov rdx, r9
call qword [r9 + gethostname]
inc ebp
add rsi, 0x48
cmp ebp, dword [rdi + 0x5b98]
jl 0x1400076d0
mov eax, dword [rbx]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5b90]
cmove ecx, r15d
lea rdi, [0x1401447f0]
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.140006300
mov rbp, qword [rsp + 0x48]
mov rbx, rax
test rax, rax
je 0x14000774a
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000f5d0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
mov r8, rcx
je 0x14000f65b
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop dword [rax + rax]
lea edx, [rax + r9]
lea ecx, [rdx - 0x6b]
xor byte [rax - 2], cl
lea rax, [rax + 0xe]
lea ecx, [rdx - 0x6a]
xor byte [rax - 0xf], cl
lea ecx, [rdx - 0x69]
xor byte [rax - 0xe], cl
lea ecx, [rdx - 0x68]
xor byte [rax - 0xd], cl
lea ecx, [rdx - 0x67]
xor byte [rax - 0xc], cl
lea ecx, [rdx - 0x66]
xor byte [rax - 0xb], cl
lea ecx, [rdx - 0x65]
xor byte [rax - 0xa], cl
lea ecx, [rdx - 0x64]
xor byte [rax - 9], cl
lea ecx, [rdx - 0x63]
xor byte [rax - 8], cl
lea ecx, [rdx - 0x62]
xor byte [rax - 7], cl
lea ecx, [rdx - 0x61]
xor byte [rax - 6], cl
lea ecx, [rdx - 0x60]
xor byte [rax - 5], cl
lea ecx, [rdx - 0x5f]
xor byte [rax - 4], cl
sub dl, 0x5e
xor byte [rax - 3], dl
lea rcx, [r9 + rax]
cmp rcx, 0x46
jb 0x14000f5f0
mov byte [r8 + 0x47], 0
mov rax, r8
ret

Function at 0x14000fb70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x44], 0
je 0x14000fb93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x6b]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x43
jb 0x14000fb80
mov byte [rcx + 0x44], 0
mov rax, rcx
ret

Function at 0x14000fba0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x14000fbc8
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x6b]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x135
jb 0x14000fbb0
mov byte [rcx + 0x136], 0
mov rax, rcx
ret