joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180385d70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1c8]
mov rax, qword [0x1807d8f00]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x180829524]
call fcn.1801f166f
nop
mov eax, dword [rbp + 0x1a0]
imul rax, rax, 0x38
mov rcx, qword [0x1807ebb20]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov qword [rbp + 0x48], 5
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180385e13
mov rax, qword [rbp + 0x68]
sub rax, 5
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
add rax, 2
mov qword [rbp + 0x48], rax
lea r9, [rbp + 0x24]
mov r8d, 0x40
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180385e39
mov eax, 0xa
jmp 0x180385f6c
cmp dword [rbp + 0x1a8], 0
je 0x180385ead
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov byte [rax], 0xe9
mov rax, qword [rbp + 0x68]
add rax, 5
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x88]
mov dword [rcx + 1], eax
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180385eab
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov byte [rax], 0xeb
mov rax, qword [rbp + 0xa8]
mov byte [rax + 1], 0xf9
jmp 0x180385ef6
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180385edb
mov rax, qword [rbp + 8]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rbp + 0x68]
call fcn.1801ed09c
nop
jmp 0x180385ef6
mov rax, qword [rbp + 8]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rbp + 0x68]
call fcn.1801ed09c
nop
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
nop
movzx eax, byte [rbp + 0x1a8]
and al, 1
shl al, 1
mov rcx, qword [rbp + 8]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rbp + 8]
mov byte [rcx + 0x20], al
movzx eax, byte [rbp + 0x1a8]
and al, 1
shl al, 2
mov rcx, qword [rbp + 8]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rbp + 8]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x180639210]
call fcn.1801eff8b
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1801ed033
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1803860d0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x1807d8f00]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x180829524]
call fcn.1801f166f
nop
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 4
call fcn.1801ecf16
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x180386318
mov dword [rbp + 0x48], 0x1c
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.1801ee2e9
test eax, eax
je 0x18038630d
mov dword [rbp + 4], 1
mov eax, dword [rbp + 0x48]
cmp rax, 0x10
jb 0x18038629e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rbp + 0x54], eax
jne 0x18038629e
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbp + 0x50], eax
je 0x18038629e
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x1803861ed
mov rax, qword [rbp + 0x180]
mov dword [rax + 8], 0x80
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x1807e1fe8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp + 0x180]
mov qword [rcx], rax
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x1803861e8
mov dword [rbp + 4], 0
jmp 0x1803862ba
jmp 0x18038626e
mov rax, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x180]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x18038626e
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rbp + 0x180]
mov dword [rcx + 8], eax
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 8]
shl rax, 2
mov r9, rax
mov rax, qword [rbp + 0x180]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1807e1fe8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x18038625d
mov dword [rbp + 4], 0
jmp 0x1803862ba
mov rax, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x88]
mov qword [rax], rcx
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x180]
mov rcx, qword [rcx]
mov edx, dword [rbp + 0x50]
mov dword [rcx + rax*4], edx
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rbp + 0x180]
mov dword [rcx + 0xc], eax
mov dword [rbp + 0x48], 0x1c
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.1801e9da7
test eax, eax
jne 0x18038615f
cmp dword [rbp + 4], 0
je 0x1803862d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1803862d2
mov dword [rbp + 4], 0
cmp dword [rbp + 4], 0
jne 0x18038630d
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
je 0x18038630d
mov rax, qword [rbp + 0x180]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1807e1fe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0x180]
mov qword [rax], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x180639190]
call fcn.1801eff8b
mov eax, edi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1801ed033
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x180386670
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x180829524]
call fcn.1801f166f
nop
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x180]
mov qword [rax], 0
mov rax, qword [rbp + 0x180]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x180]
mov dword [rax + 0xc], 0
mov rcx, qword [rbp + 0x180]
call fcn.1803860d0
test eax, eax
jne 0x1803866e6
mov dword [rbp + 4], 9
jmp 0x1803867ac
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
je 0x1803867ac
mov dword [rbp + 0x24], 0
jmp 0x180386708
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x24], eax
jae 0x1803867ac
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x180]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
cmp qword [rbp + 0x48], 0
je 0x18038678d
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xffffffff
je 0x180386782
mov dword [rbp + 0x64], 1
mov r8d, dword [rbp + 0x190]
mov edx, dword [rbp + 0x188]
mov rcx, qword [rbp + 0x48]
call fcn.180387580
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp + 0x64], 0
jne 0x1803867a7
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x180]
mov rcx, qword [rcx]
mov dword [rcx + rax*4], 0
jmp 0x180386700
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x180387970
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x180829524]
call fcn.1801f166f
nop
mov rax, qword [rbp + 0x140]
cmp qword [rax], 0
je 0x180387a28
mov dword [rbp + 4], 0
jmp 0x1803879b2
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0xc]
cmp dword [rbp + 4], eax
jae 0x180387a0e
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x180387a0c
mov r8d, dword [rbp + 0x24]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x180387a0c
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1803879aa
mov rax, qword [rbp + 0x140]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1807e1fe8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x180388450
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1808295f7]
call fcn.1801f166f
nop
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1803884c6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1803884c6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1803884c6
xor eax, eax
jmp 0x180388513
mov dword [rbp + 4], 1
jmp 0x1803884d7
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x108]
cmp dword [rbp + 4], eax
jae 0x18038850e
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x100]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18038850c
xor eax, eax
jmp 0x180388513
jmp 0x1803884cf
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140001f80
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x14002f040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edx, edx
mov ecx, 2
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000211d
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x234
call fcn.14001edb0
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140002051
lea rdx, [rsp + 0x9c]
lea rcx, str.gmod.exe
call fcn.14000b45c
test eax, eax
je 0x14000204d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140002051
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x9c]
lea rcx, str.gmod.exe
call fcn.14000b45c
test eax, eax
je 0x14000204d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140002020
jmp 0x140002051
mov edi, dword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000211d
mov qword [rsp + 0x30], 0
lea rcx, str..CsDriver
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400020a5
lea rdx, str.Failed_to_create_driver_handle._n
jmp 0x140002124
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x40]
mov eax, edi
xorps xmm0, xmm0
mov qword [rsp + 0x40], rax
xorps xmm1, xmm1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x221a58
mov qword [rsp + 0x20], rax
mov rcx, rbx
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000210b
lea rdx, str.Attachement_successful._n
call fcn.140002910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140002160
xor eax, eax
jmp 0x140002133
lea rdx, str.Failed_to_find_gmod._n
call fcn.140002910
call fcn.140002160
mov eax, 1
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140005920
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret
Function at 0x1400047c4
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 0x1400047f2
xor eax, eax
jmp 0x1400048d8
cmp qword [rcx + 0x68], 0
je 0x140004803
call fcn.1400048f4
jmp 0x1400048d8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000481a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000481c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000484e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14001e710
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 0x1400048d2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140004885
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 0x1400048ae
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000c8f8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400048d2
cmp rsi, rbx
ja 0x14000488c
test rsi, rsi
je 0x1400048d2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000c8f8
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 0x1400067b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400067fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400067fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400067fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400067fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400067fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400067fc
xor al, al
add rsp, 0x28
ret
Function at 0x14000f38c
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 0x14000f3fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f3fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f3fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f3fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f3fb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f3fb
cmp dword [rcx + 0xf8], 0
je 0x14000f3fb
mov ecx, ebx
call fcn.14000f4a0
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.14000f294
nop
cmp dword [rbp + 0x20], 0
jne 0x14000f45c
call fcn.1400198dc
cmp eax, 1
jne 0x14000f44c
xor dl, dl
jmp 0x14000f456
call fcn.1400198a8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000f467
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f470
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000f38c

Function at 0x14000f574
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f38c

Function at 0x140012a88
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 [0x140034050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140012aed
test rax, rax
jne 0x140012adb
lea r9, str.GetLocaleInfoEx
lea r8, [0x140024368]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140012698
test rax, rax
je 0x140012aed
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14001e6d0
jmp 0x140012b07
xor edx, edx
mov rcx, rbp
call fcn.140012d78
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 0x1400148b4
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.140005f70
sub rsp, rax
mov rax, qword [0x14002f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140013444
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140014903
mov rax, rbp
jmp 0x140014a0f
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 + 0x314d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140015a9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x314d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014a0b
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 0x140014a0b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140015a9c
test rax, rax
js 0x140014a0b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014a0b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400149fd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400149fd
cmp byte [rcx], 0xd
jne 0x1400149e3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400149f2
cmp byte [rcx + 1], 0xa
jne 0x1400149f2
inc rcx
jmp 0x1400149f2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2f480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400149c5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014a0f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140005920
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 0x140014c30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014c46
mov al, 1
jmp 0x140014cb2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014c57
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014cb0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019bb8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014cb0
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 0x140014cb0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014cb0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014cb2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014d84
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, [0x1400314d0]
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 0x140014dda
cmp word [rdx], r9w
jne 0x140014dda
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140014ddf
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140014f5e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140014f29
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140014e27
cmp rcx, r8
jae 0x140014e47
cmp word [rcx], r9w
jne 0x140014e27
add rax, 4
mov edx, r9d
jmp 0x140014e2a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140014dfc
jmp 0x140014f5e
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 0x140014f22
cmp dword [rsp + 0x80], edi
je 0x140014f22
lea r9, [0x1400314d0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140014efc
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140014eaf
mov word [rbx], bp
jmp 0x140014f5b
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 0x140014eca
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 0x140014f5b
cmp word [rsp + 0x70], bp
jne 0x140014f08
cmp rbx, rsi
je 0x140014ea7
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140015aa4
cmp word [rsp + 0x70], bp
je 0x140014f5e
mov word [rbx], 0xd
jmp 0x140014f5b
mov rcx, r15
lea r9, [0x1400314d0]
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 0x140014f58
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140014f5e
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