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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.140083a80
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140019bb6
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rax, [rsp + 0x4c]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140019ab0
cmp qword [rbx + 0x18], 7
mov r9, rbx
mov r10, qword [rbx + 0x10]
jbe 0x140019acb
mov r9, qword [rbx]
cmp rcx, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rcx
test r8, r8
je 0x140019b04
lea rax, [rsp + 0x4c]
sub r9, rax
nop word [rax + rax]
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x140019b0f
add rdx, 2
sub r8, 1
jne 0x140019af0
cmp r10, rcx
jb 0x140019b0f
jbe 0x140019bd9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140019bad
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140019b40
cmp qword [rbx + 0x18], 7
mov r9, rbx
mov r10, qword [rbx + 0x10]
jbe 0x140019b5b
mov r9, qword [rbx]
cmp rax, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rax
test r8, r8
je 0x140019b94
lea rcx, [rsp + 0x4c]
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x140019b9b
add rdx, 2
sub r8, 1
jne 0x140019b80
cmp r10, rax
jb 0x140019b9b
jbe 0x140019bd9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140019b30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400559b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140019bb8
Function at 0x14001a230
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
xor edi, edi
lea ecx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a2bf
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.140083a80
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14001a2bf
lea rdx, str.Minecraft.Windows.exe
lea rcx, [rsp + 0x50]
call fcn.14005f160
test eax, eax
je 0x14001a2ba
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14001a291
jmp 0x14001a2bf
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400559b0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x14001a690
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, r9
mov rbx, r8
mov r15, rdx
mov qword [rsp + 0x20], r9
xor r12d, r12d
movzx ebp, byte [rsp + 0xa0]
nop word [rax + rax]
mov eax, dword [0x1400b5c54]
cmp eax, 1
jne 0x14001a6ef
mov dword [0x1400b5c54], 2
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a6d0
cmp eax, 2
jne 0x14001a81a
mov edi, r12d
mov rsi, r12
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
sar rax, 2
test rax, rax
je 0x14001a7da
nop word [rax + rax]
mov r8d, dword [rdx + rsi*4]
mov rdx, qword [r14 + 8]
mov rcx, qword [r14]
call fcn.140054f10
cmp rax, qword [r14 + 8]
jne 0x14001a747
mov rax, qword [rbx]
mov ecx, dword [rax + rsi*4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14001a764
inc edi
inc rsi
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, rdx
sar rcx, 2
movsxd rax, edi
cmp rax, rcx
jb 0x14001a720
jmp 0x14001a7da
test bpl, bpl
jne 0x14001a7ca
mov eax, dword [r15]
mov dword [rsp + 0x28], eax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14001a783
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x14001a790
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.14001e6e0
mov rax, qword [rbx]
mov r8d, dword [rax + rsi*4]
mov rcx, r15
mov eax, r8d
mov dword [rcx], eax
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
call fcn.140054f10
mov r8, qword [rbx + 8]
cmp rax, r8
je 0x14001a7d3
lea rdx, [rax + 4]
sub r8, rdx
mov rcx, rax
call fcn.1400833e0
add qword [rbx + 8], 0xfffffffffffffffc
jmp 0x14001a7d3
mov rax, qword [rbx]
mov ecx, dword [rax + rsi*4]
mov dword [r15], ecx
mov dword [0x1400b5c54], r12d
mov esi, r12d
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 2
test rax, rax
je 0x14001a81a
mov rdi, r12
mov rax, qword [rbx]
mov ecx, dword [rdi + rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14001a7f0
inc esi
add rdi, 4
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
sar rcx, 2
movsxd rax, esi
cmp rax, rcx
jb 0x14001a7f0
cmp dword [0x1400b5c54], r12d
je 0x14001a833
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001a6d0
mov rcx, qword [r14]
test rcx, rcx
je 0x14001a877
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x14001a867
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001a893
mov rcx, r8
call fcn.1400559d0
mov qword [r14], r12
mov qword [r14 + 8], r12
mov qword [r14 + 0x10], r12
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400559b0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14005ed54
int3
Function at 0x14001fdc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001fe1d
lea rbx, [0x14009c770]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001fe04
cmp r10, 2
jb 0x14001fe04
cmp byte [r9], r8b
jne 0x14001fe04
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14001fde0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001fe5f
lea rbx, [0x14009c770]
cmp r8b, 0x23
jne 0x14001fe43
cmp byte [r9], r8b
jne 0x14001fe43
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14001fe30
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14001ffa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001ffba
mov qword [r8], 0
lea rdx, [0x1400a0ec0]
call fcn.14001fe70
mov rbx, rax
test rax, rax
jne 0x14001ffda
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.140062568
mov esi, eax
cmp eax, 0xffffffff
je 0x1400200a8
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14005e914
test eax, eax
jne 0x1400200a8
mov rcx, rbx
call fcn.140062568
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400200a8
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.14005e914
test eax, eax
jne 0x1400200a8
cmp rdi, 0xffffffffffffffff
je 0x1400200a8
mov rax, qword [0x1400b5950]
test rax, rax
je 0x14002004a
inc dword [rax + 0x3b0]
mov rcx, rdi
call fcn.1400682c0
mov rsi, rax
test rax, rax
je 0x1400200a8
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.14005e544
mov rcx, rbx
cmp rax, rdi
je 0x140020096
call fcn.14005d074
mov rax, qword [0x1400b5950]
test rax, rax
je 0x14002008c
dec dword [rax + 0x3b0]
mov rcx, rsi
call fcn.14005e120
jmp 0x1400200b0
call fcn.14005d074
test r14, r14
je 0x1400200a3
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400200b2
mov rcx, rbx
call fcn.14005d074
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400220f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14009c770]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1400b5950]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1c6c], ebx
jne 0x14002217d
mov dword [rax + 0x1c70], ebx
cmp dword [rax + 0x1ca8], ebx
jne 0x14002218c
mov byte [rax + 0x1cac], 1
cmp dword [rax + 0x1c54], ebx
jne 0x1400221a3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140033270
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14002c0d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x1400b5950]
lea r10, [0x14009c770]
movsxd r9, ecx
mov rbx, qword [r8 + 0x1c20]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x1c54], edi
jne 0x14002c175
mov r8, r9
mov edx, 4
mov ecx, edi
call fcn.140033270
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x14002c1a9
inc r8d
test ecx, ecx
je 0x14002c192
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x14002c197
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.140034240
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002d1b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400b5950]
mov edi, ecx
cmp byte [rbx + 0x1fad], 0
jne 0x14002d211
cmp byte [rbx + 0x1fae], 0
jne 0x14002d211
movsx r9d, word [rbx + 0x308e]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14001fd40
test dil, 1
je 0x14002d338
jmp 0x14002d29a
movss xmm1, dword [rbx + 0x1628]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x308e]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400a143c]
mulss xmm1, dword [0x1400a1430]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1d30], rax
mov dword [rbx + 0x1d1c], 1
movss dword [rbx + 0x1d28], xmm0
movss dword [rbx + 0x1d2c], xmm1
movss xmm0, dword [rbx + 0x1684]
mulss xmm0, dword [0x1400a139c]
or dword [rbx + 0x1d18], 0x41
movss dword [rbx + 0x1d78], xmm0
call fcn.14001fd40
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002d2f0
lea r11, [0x14009c770]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14002d2d3
cmp byte [r8], r9b
jne 0x14002d2d3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14002d2c0
not ecx
call fcn.140026ba0
test rax, rax
je 0x14002d338
cmp byte [rax + 0x8e], 0
je 0x14002d338
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x308e]
mov edx, 0x10
movsx r9d, word [rbx + 0x308e]
call fcn.14001fd40
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140029240
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400559b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400534d8
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 0x140053512
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140053517
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 0x140053560
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140086760]
cmp byte [rcx + rax], 0
je 0x140053560
dec r8
sub rdx, 1
jne 0x140053546
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140056770
Capabilities:
Parse pe header

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

Function at 0x14005d244
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 0x14005d27b
call fcn.140069250
mov dword [rax], 0x16
call fcn.14005ed34
xor eax, eax
jmp 0x14005d309
mov rdx, r9
mov rcx, r8
call fcn.14005d1e0
mov rbx, rax
test rax, rax
je 0x14005d306
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005d10c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005d2f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400691c4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005d2da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005d2e9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14006de6c
jmp 0x14005d306
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005d303
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 0x1400622e8
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.140056580
sub rsp, rax
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006d240
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140062337
mov rax, rbp
jmp 0x14006243f
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 + 0xb5110]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400710c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb5110]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006243b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006243b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400710c4
test rax, rax
js 0x14006243b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006243b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006242d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006242d
cmp byte [rcx], 0xd
jne 0x140062413
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140062422
cmp byte [rcx + 1], 0xa
jne 0x140062422
inc rcx
jmp 0x140062422
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb24c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400623f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006243f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400559b0
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 0x140069c88
Capabilities:
Parse pe header

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

Function at 0x14006d360
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006d376
mov al, 1
jmp 0x14006d3d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006d387
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006d3d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140076ff8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006d3d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006d3d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006d3d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006d3d6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140070464
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400b5110]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400704bb
cmp word [rdx], r13w
jne 0x1400704bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400704c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400705e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140070606
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400704f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140070520
cmp r9, r8
jae 0x140070530
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400704da
jmp 0x1400705e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400705da
cmp dword [rsp + 0x80], esi
je 0x1400705da
lea r8, [0x1400b5110]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400705b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140070582
mov word [rbx], r13w
jmp 0x1400705e2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14007058f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400705e2
cmp word [rsp + 0x70], r13w
jne 0x1400705bf
cmp rbx, r14
je 0x14007057c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400710cc
cmp word [rsp + 0x70], r13w
je 0x1400705e5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400b5110]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400705df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400705e5
Function at 0x140076248
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 0x140076278
xor eax, eax
jmp 0x14007633b
mov rbp, rbx
cmp word [rax], si
je 0x14007629d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140076284
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140076280
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.14006fd8c
movsxd r14, eax
test eax, eax
jne 0x1400762db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140076271
mov rcx, r14
call fcn.14006fd2c
mov rdi, rax
test rax, rax
jne 0x1400762f4
xor ecx, ecx
call fcn.14006de6c
jmp 0x1400762d0
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.14006fd8c
test eax, eax
jne 0x140076325
mov rcx, rdi
call fcn.14006de6c
jmp 0x14007632f
xor ecx, ecx
call fcn.14006de6c
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 0x140076358
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 0x1400763df
mov rsi, rbx
cmp word [rax], bp
je 0x14007639e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140076388
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140076384
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006fd2c
mov rdi, rax
test rax, rax
je 0x1400763cc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400833e0
mov rbp, rdi
xor ecx, ecx
call fcn.14006de6c
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 0x14007954c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006d820
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400795ed
cmp ebx, dword [rsp + 0x30]
je 0x1400795e6
test esi, esi
je 0x1400795e6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400795c1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400795ce
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400795ab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400795d2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400795ef
mov eax, 1
jmp 0x1400795ef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret