joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012c0
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x330
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x88], 0
lea rdx, [rsp + 0x120]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rsp + 0x120]
mov qword [rsp + 0x40], rax
sub qword [rsp + 0x40], 2
add qword [rsp + 0x40], 2
mov rax, qword [rsp + 0x40]
cmp word [rax], 0
jne 0x140001377
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x348]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x140001397
xor edx, edx
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rsp + 0x120]
mov qword [rsp + 0x48], rax
sub qword [rsp + 0x48], 2
add qword [rsp + 0x48], 2
mov rax, qword [rsp + 0x48]
cmp word [rax], 0
jne 0x1400013ca
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x348]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400013ea
cmp dword [rsp + 0x358], 0
je 0x140001448
lea rax, [rsp + 0x120]
mov qword [rsp + 0x50], rax
sub qword [rsp + 0x50], 2
add qword [rsp + 0x50], 2
mov rax, qword [rsp + 0x50]
cmp word [rax], 0
jne 0x140001417
mov rax, qword [rsp + 0x50]
lea rcx, str.dkwofjeiwucuinswncs
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x140001436
jmp 0x14000148a
lea rax, [rsp + 0x120]
mov qword [rsp + 0x58], rax
sub qword [rsp + 0x58], 2
add qword [rsp + 0x58], 2
mov rax, qword [rsp + 0x58]
cmp word [rax], 0
jne 0x14000145b
mov rax, qword [rsp + 0x58]
lea rcx, str.fsdkioajfuiewfwwss
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x14000147a
mov r8d, 0x2328
mov edx, 8
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x60]
mov r9, qword [str.jujuun]
mov r8d, eax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call section..text
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 7
mov edx, 0xc0000000
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [rsp + 0xb0], 0x68
xor eax, eax
add rsp, 0x330
pop rdi
ret
Function at 0x140001070
Capabilities:
Create thread
Enumerate processes
Get common file path
Inject dll
Inject thread

Disassembly:
push rbp
push r12
sub rsp, 0x198
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor edx, edx
mov dword [rsp + 0x40], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rdx, [rsp + 0x40]
mov rcx, rbp
xor r12b, r12b
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x140001282
mov qword [rsp + 0x1b0], rbx
mov qword [rsp + 0x190], r13
xor r13d, r13d
mov qword [rsp + 0x1b8], rsi
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x188], r14
mov qword [rsp + 0x180], r15
nop
lea rdx, str.wordpad.exe
lea rcx, [rsp + 0x6c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000112e
lea rdx, str.Wordpad.exe
lea rcx, [rsp + 0x6c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001236
mov ecx, 0x104
mov r12b, 1
call fcn.140001518
mov ecx, 0x104
mov r14, rax
call fcn.140001518
mov rdx, r14
mov ecx, 0x104
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov r9, r14
lea r8, str._slibrary.dll
mov edx, 0x104
mov rcx, rbx
call fcn.140001010
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0x2a]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rcx, str.kernel32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], r13b
jne 0x1400011b0
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp byte [rbx + r9], r13b
jne 0x1400011e0
mov r8, rbx
mov qword [rsp + 0x20], r13
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r13
mov r9, r15
mov dword [rsp + 0x28], r13d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.140001510
mov rcx, rbx
call fcn.140001510
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x140001100
mov r15, qword [rsp + 0x180]
mov r14, qword [rsp + 0x188]
mov r13, qword [rsp + 0x190]
mov rdi, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1b0]
test r12b, r12b
jne 0x14000128e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400012c0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400014f0
add rsp, 0x198
pop r12
pop rbp
ret
Function at 0x140004170
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140004194
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140004222
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400041f0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400041f0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14002fcd0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000420d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004215
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400041b1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140004300
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140004239
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000423b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000426d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14002fcd0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400042fd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400042a8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400042de
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400191c4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400042fd
cmp rsi, rax
ja 0x1400042b1
test rsi, rsi
je 0x1400042fd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400191c4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x14000b480
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140046100]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x14000b5b4
mov r8, qword [rsp + 0x48]
cmp rbx, r8
ja 0x14000b521
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov word [rax + rbx*2], si
jmp 0x14000b580
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x50]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000b568
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x38]
cmp rdi, 7
cmova r9, qword [rsp + 0x38]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14000b55d
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x14000b580
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14000ba90
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rax, qword [rsp + 0x38]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x64]
call fcn.140030370
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000b63f
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 7
cmova rdi, qword [rsp + 0x38]
lea rax, [rbp - 0x74]
sub rdi, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x14000b623
add rax, 2
test ecx, ecx
jne 0x14000b610
test edx, edx
je 0x14000b63b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000b5f0
jmp 0x14000b63f
mov esi, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x14000b687
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b682
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b6b1
call fcn.14000f200
mov eax, esi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400199e8
int3
Function at 0x14000b6c0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140046100]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x14000b744
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x14000b744
cmp byte [rsp + 0x30], sil
jne 0x14000b770
test rbx, rbx
jne 0x14000b6f0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x14000b74b
Function at 0x140010050
Capabilities:
Parse pe header

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

Function at 0x140019b90
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 0x140019bc7
call fcn.140016bc8
mov dword [rax], 0x16
call fcn.1400199c8
xor eax, eax
jmp 0x140019c59
mov rdx, r9
mov rcx, r8
call fcn.140019b2c
mov rbx, rax
test rax, rax
je 0x140019c56
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x140019a60]
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 0x140019c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016b58
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140019c2a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140019c39
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001fbd0
jmp 0x140019c56
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140019c53
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 0x14001b440
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 0x14001b4af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b4af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b4af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b4af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b4af
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b4af
cmp dword [rcx + 0xf8], 0
je 0x14001b4af
mov ecx, ebx
call fcn.14001b554
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.14001b348
nop
cmp dword [rbp + 0x20], 0
jne 0x14001b510
call fcn.1400239f0
cmp eax, 1
jne 0x14001b500
xor dl, dl
jmp 0x14001b50a
call fcn.140025aa8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14001b51b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001b524
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001b440
Function at 0x14001b628
Capabilities:
Parse pe header

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

Function at 0x14001e16c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e182
mov al, 1
jmp 0x14001e1ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e193
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e1ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027e14
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e1ec
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 0x14001e1ec
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e1ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e1ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002074c
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 [0x14004d050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400207b1
test rax, rax
jne 0x14002079f
lea r9, str.GetLocaleInfoEx
lea r8, [0x140038278]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140020300
test rax, rax
je 0x1400207b1
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14002fc90
jmp 0x1400207cb
xor edx, edx
mov rcx, rbp
call fcn.140020a3c
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 0x1400228fc
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.14000f910
sub rsp, rax
mov rax, qword [0x140046100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001e04c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002294b
mov rax, rbp
jmp 0x140022a57
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 + 0x48c20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023904
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x48c20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140022a53
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 0x140022a53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023904
test rax, rax
js 0x140022a53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140022a53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140022a45
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140022a45
cmp byte [rcx], 0xd
jne 0x140022a2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140022a3a
cmp byte [rcx + 1], 0xa
jne 0x140022a3a
inc rcx
jmp 0x140022a3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x46540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140022a0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140022a57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f1e0
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 0x140022bec
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, [0x140048c20]
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 0x140022c42
cmp word [rdx], r9w
jne 0x140022c42
or byte [rax + rbp*8 + 0x38], 4
jmp 0x140022c47
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140022dc6
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140022d91
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140022c8f
cmp rcx, r8
jae 0x140022caf
cmp word [rcx], r9w
jne 0x140022c8f
add rax, 4
mov edx, r9d
jmp 0x140022c92
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140022c64
jmp 0x140022dc6
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 0x140022d8a
cmp dword [rsp + 0x80], edi
je 0x140022d8a
lea r9, [0x140048c20]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140022d64
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x140022d17
mov word [rbx], bp
jmp 0x140022dc3
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 0x140022d32
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 0x140022dc3
cmp word [rsp + 0x70], bp
jne 0x140022d70
cmp rbx, rsi
je 0x140022d0f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002390c
cmp word [rsp + 0x70], bp
je 0x140022dc6
mov word [rbx], 0xd
jmp 0x140022dc3
mov rcx, r15
lea r9, [0x140048c20]
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 0x140022dc0
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140022dc6
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 0x1400270bc
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 0x1400270ec
xor eax, eax
jmp 0x1400271af
mov rbp, rbx
cmp word [rax], si
je 0x140027111
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400270f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400270f4
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.1400257ac
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140027152
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400270e5
call fcn.140020fb0
mov rdi, rax
test rax, rax
jne 0x140027168
xor ecx, ecx
call fcn.14001fbd0
jmp 0x140027147
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.1400257ac
test eax, eax
jne 0x140027199
mov rcx, rdi
call fcn.14001fbd0
jmp 0x1400271a3
xor ecx, ecx
call fcn.14001fbd0
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 0x14002a30c
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 0x14002a37f
cmp word [rcx], si
je 0x14002a37f
lea rdx, [0x140039518]
call fcn.14002e0a8
test eax, eax
je 0x14002a37f
lea rdx, [0x140039530]
mov rcx, rbx
call fcn.14002e0a8
test eax, eax
jne 0x14002a375
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 0x14002a39c
mov eax, dword [rsp + 0x30]
jmp 0x14002a3ae
mov rcx, rbx
call fcn.14001df64
jmp 0x14002a3ae
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 0x14002a3a0
xor eax, eax
jmp 0x14002a3ae
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14002a3ae
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret