joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ec5c
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x14012e100]
xor rax, rsp
mov qword [rbp + 0x180], rax
cmp qword [rcx + 0x18], 0xf
mov rdx, rcx
jbe 0x14000ec98
mov rdx, qword [rcx]
mov r9, qword [rcx + 0x10]
add r9, rdx
cmp qword [rcx + 0x18], 0xf
jbe 0x14000eca9
mov rcx, qword [rcx]
xor esi, esi
xorps xmm0, xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
movups xmmword [rsp + 0x20], xmm0
cmp rcx, r9
jne 0x14000ecd1
lea edi, [rsi + 7]
mov word [rsp + 0x20], si
mov qword [rsp + 0x38], rdi
jmp 0x14000ece6
sub r9, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140006910
mov rdi, qword [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x234
call fcn.1400672d0
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x14000ed5b
cmp rdi, 7
lea rcx, [rsp + 0x20]
lea r8, [rsp + 0x6c]
cmova rcx, qword [rsp + 0x20]
sub r8, rcx
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x14000ed49
add rcx, 2
test edx, edx
jne 0x14000ed35
mov rcx, rbx
test eax, eax
je 0x14000ed9a
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000ed1e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
call fcn.140005330
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140039740
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140005330
mov eax, ebx
jmp 0x14000ed72

Function at 0x14000edb4
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x268
mov rax, qword [0x14012e100]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x10e
call fcn.1400672d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.14004bde0
xor r9d, r9d
mov r8, qword [rax]
lea edx, [r9 + 5]
lea ecx, [rdx - 1]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400672d0
call fcn.14004bde0
lea rdx, [0x1400d01b4]
lea rcx, [rsp + 0x30]
mov r8, qword [rax]
call fcn.14000d1d8
lea r8, [rsp + 0x30]
lea rdx, str._c_timeout__T_1__del__q___s_
lea rcx, [rsp + 0x140]
call fcn.14000d1d8
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x140]
and qword [rsp + 0x20], 0
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140010ff4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14012e100]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x48], rax
xor r12d, r12d
test rax, rax
jne 0x140011059
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140010f94
nop
jmp 0x140011091
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400110c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140010f94
nop
cmp rbx, 0xffffffffffffffff
je 0x140011091
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140005330
mov eax, 2
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140039740
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [rdi + 0x18], 7
jbe 0x1400110d8
mov r14, qword [rdi]
mov rcx, r14
jmp 0x1400110de
mov rcx, rdi
mov r14, rdi
mov rax, qword [rdi + 0x10]
lea r15, [rcx + rax*2]
mov rsi, rdi
jbe 0x1400110ee
mov rsi, qword [rdi]
cmp rsi, r15
je 0x14001110c
sub r14, rsi
movzx ecx, word [rsi]
call fcn.14004bee4
mov word [r14 + rsi], ax
add rsi, 2
cmp rsi, r15
jne 0x1400110f6
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x7c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x140011127
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x28]
call fcn.1400060c0
nop
lea r14, [rsp + 0x28]
mov r9, qword [rsp + 0x28]
mov r10, qword [rsp + 0x40]
cmp r10, 7
cmova r14, r9
lea rax, [rsp + 0x28]
cmova rax, r9
mov rdx, qword [rsp + 0x38]
lea r15, [rax + rdx*2]
lea rsi, [rsp + 0x28]
cmova rsi, r9
cmp rsi, r15
je 0x1400111a0
sub r14, rsi
movzx ecx, word [rsi]
call fcn.14004bee4
mov word [r14 + rsi], ax
add rsi, 2
cmp rsi, r15
jne 0x14001117b
mov r10, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x28]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400111ad
mov rcx, qword [rdi]
lea r8, [rsp + 0x28]
cmp r10, 7
cmova r8, r9
cmp rdx, qword [rdi + 0x10]
jne 0x14001120a
test rdx, rdx
je 0x1400111dc
sub r8, rcx
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14001120a
add rcx, 2
sub rdx, 1
jne 0x1400111c8
mov esi, dword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140005330
nop
cmp rbx, 0xffffffffffffffff
je 0x1400111fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140005330
mov eax, esi
jmp 0x14001109e
lea rcx, [rsp + 0x28]
call fcn.140005330
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001110c
jmp 0x140011081
Function at 0x14001124c
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14012e100]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov esi, ecx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011284
xor edi, edi
jmp 0x1400112bb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
cmp dword [rsp + 0x2c], esi
je 0x1400112b7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14001129a
lea edi, [rax + 2]
jmp 0x1400112bb
mov edi, dword [rsp + 0x28]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400112ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140039740
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14002f42c
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x140038f24
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14004c5e8
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140038f76
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 0x140038f76
sub ecx, 1
je 0x140038f6f
cmp ecx, 1
je 0x140038f68
xor eax, eax
jmp 0x140038f7b
mov eax, 3
jmp 0x140038f7b
mov eax, 1
jmp 0x140038f7b
mov eax, 2
add rsp, 0x28
ret

Function at 0x14003a5cc
Capabilities:
Parse pe header

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

Function at 0x14003f610
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 0x14003f67f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f67f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f67f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f67f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f67f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f67f
cmp dword [rcx + 0xf8], 0
je 0x14003f67f
mov ecx, ebx
call fcn.14003f724
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.14003f518
nop
cmp dword [rbp + 0x20], 0
jne 0x14003f6e0
call fcn.140053d10
cmp eax, 1
jne 0x14003f6d0
xor dl, dl
jmp 0x14003f6da
call fcn.140053c9c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003f6eb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003f6f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003f610
Function at 0x14003f7f8
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 0x14003f67f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f67f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f67f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f67f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f67f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f67f
cmp dword [rcx + 0xf8], 0
je 0x14003f67f
mov ecx, ebx
call fcn.14003f724
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.14003f518
nop
cmp dword [rbp + 0x20], 0
jne 0x14003f6e0
call fcn.140053d10
cmp eax, 1
jne 0x14003f6d0
xor dl, dl
jmp 0x14003f6da
call fcn.140053c9c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003f6eb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003f6f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003f610

Function at 0x140043f58
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140043f8f
call fcn.140042374
mov dword [rax], 0x16
call fcn.14003fbf0
xor eax, eax
jmp 0x140044021
mov rdx, r9
mov rcx, r8
call fcn.140043ef4
mov rbx, rax
test rax, rax
je 0x14004401e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x140043e28]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14004400b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140042304
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140043ff2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140044001
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140054330
jmp 0x14004401e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004401b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14004ba3c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14004ba5b
call fcn.14005ae4c
jmp 0x14004bb10
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1400463b4
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14004baa6
cmp byte [rbp - 0x38], 0
je 0x14004badb
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004badb
call fcn.140057bac
test eax, eax
jne 0x14004bac7
cmp byte [rbp - 0x38], al
je 0x14004babf
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004badb
cmp byte [rbp - 0x38], 0
je 0x14004bad8
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14004b89c
test eax, eax
je 0x14004baf4
or ebx, 0xffffffff
jmp 0x14004baff
mov rcx, qword [rbp - 0x20]
call fcn.14005ae4c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x14004bb0e
mov rcx, qword [rbp - 0x20]
call fcn.140054330
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14005606c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140056082
mov al, 1
jmp 0x1400560ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140056093
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400560ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005f1cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400560ec
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 0x1400560ec
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400560ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400560ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140057e54
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 [0x140138050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140057eb9
test rax, rax
jne 0x140057ea7
lea r9, [0x140070b70]
lea r8, [0x140070b68]
lea rdx, [0x140070b70]
lea ecx, [rax + 0xa]
call fcn.140057940
test rax, rax
je 0x140057eb9
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140066bf0
jmp 0x140057ed3
xor edx, edx
mov rcx, rbp
call fcn.1400581fc
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 0x140058994
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.140039e70
sub rsp, rax
mov rax, qword [0x14012e100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140055a60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400589e3
mov rax, rbp
jmp 0x140058aef
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 + 0x131dc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005999c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x131dc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140058aeb
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 0x140058aeb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005999c
test rax, rax
js 0x140058aeb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140058aeb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140058add
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140058add
cmp byte [rcx], 0xd
jne 0x140058ac3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140058ad2
cmp byte [rcx + 1], 0xa
jne 0x140058ad2
inc rcx
jmp 0x140058ad2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x12e570]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140058aa5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140058aef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140039740
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 0x140058c84
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
xor edi, edi
mov rax, r15
lea rcx, [0x140131dc0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x140058cda
cmp word [rdx], r9w
jne 0x140058cda
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140058cdf
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140058e5e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140058e29
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140058d27
cmp rcx, r8
jae 0x140058d47
cmp word [rcx], r9w
jne 0x140058d27
add rax, 4
mov edx, r9d
jmp 0x140058d2a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140058cfc
jmp 0x140058e5e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140058e22
cmp dword [rsp + 0x80], edi
je 0x140058e22
lea r9, [0x140131dc0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140058dfc
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140058daf
mov word [rbx], bp
jmp 0x140058e5b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x140058dca
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140058e5b
cmp word [rsp + 0x70], bp
jne 0x140058e08
cmp rbx, rsi
je 0x140058da7
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400599a4
cmp word [rsp + 0x70], bp
je 0x140058e5e
mov word [rbx], 0xd
jmp 0x140058e5b
mov rcx, r15
lea r9, [0x140131dc0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140058e58
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140058e5e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x14005e0a8
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 0x14005e0d8
xor eax, eax
jmp 0x14005e19b
mov rbp, rbx
cmp word [rax], si
je 0x14005e0fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005e0e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005e0e0
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.14005ac18
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14005e13e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005e0d1
call fcn.140054390
mov rdi, rax
test rax, rax
jne 0x14005e154
xor ecx, ecx
call fcn.140054330
jmp 0x14005e133
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.14005ac18
test eax, eax
jne 0x14005e185
mov rcx, rdi
call fcn.140054330
jmp 0x14005e18f
xor ecx, ecx
call fcn.140054330
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 0x14005e1b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005e23f
mov rsi, rbx
cmp word [rax], bp
je 0x14005e1fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005e1e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005e1e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140054390
mov rdi, rax
test rax, rax
je 0x14005e22c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140066c30
mov rbp, rdi
xor ecx, ecx
call fcn.140054330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400616c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140061737
cmp word [rcx], si
je 0x140061737
lea rdx, [0x140071fe8]
call fcn.1400655d8
test eax, eax
je 0x140061737
lea rdx, [0x140072000]
mov rcx, rbx
call fcn.1400655d8
test eax, eax
jne 0x14006172d
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140061754
mov eax, dword [rsp + 0x30]
jmp 0x140061766
mov rcx, rbx
call fcn.140053bc0
jmp 0x140061766
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140061758
xor eax, eax
jmp 0x140061766
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140061766
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140061778
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.140054170
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14006181b
cmp edi, dword [rsp + 0x30]
je 0x140061814
test ebp, ebp
je 0x140061814
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400617f0
sub dx, 0x61
cmp dx, 0x19
ja 0x1400617fc
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x1400617dd
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140061800
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14006181d
mov eax, 1
jmp 0x14006181d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret