joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c8a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x170
mov rax, qword [0x140013640]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebp, ebp
lea r9, [rsp + 0x20]
and dword [rsp + 0x20], ebp
mov rsi, rdx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbp + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000c92d
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000c92d
mov r8d, dword [rsp + 0x20]
xor r9d, r9d
mov rdx, rax
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jns 0x14000c957
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000ddb0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edi, edi
cmp dword [rbx], edi
jbe 0x14000ca19
mov eax, edi
lea rcx, [rsp + 0x30]
imul rax, rax, 0x128
mov edx, 2
add rax, 8
add rax, rbx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x14000c97b
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x58]
call fcn.14000ca68
mov rcx, rax
mov rdx, r14
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000ca09
inc edi
cmp edi, dword [rbx]
jb 0x14000c961
jmp 0x14000ca19
mov rbp, qword [rsp + 0x40]
test rsi, rsi
je 0x14000ca19
mov ecx, dword [rsp + 0x48]
mov dword [rsi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
jmp 0x14000c92f

Function at 0x14000ca2c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r8, rcx
test edx, edx
jne 0x14000ca36
xor eax, eax
ret
movzx eax, byte [rcx]
xor eax, 0x4b9ace2f
imul ecx, eax, 0x1000193
cmp edx, 1
jbe 0x14000ca63
inc r8
dec edx
movzx eax, byte [r8]
inc r8
xor eax, ecx
imul ecx, eax, 0x1000193
sub rdx, 1
jne 0x14000ca4e
mov eax, ecx
ret
Function at 0x14000cb20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov esi, r8d
mov ebx, ecx
mov edx, r8d
mov rcx, rdi
call fcn.14000ca2c
xor ebx, eax
test esi, esi
je 0x14000cb66
mov ecx, esi
imul ebx, ebx, 0x41c64e6d
add ebx, 0x3039
mov eax, ebx
shr eax, 0x10
xor byte [rdi], al
inc rdi
sub rcx, 1
jne 0x14000cb4a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000cb78
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x14000cc01
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
lea eax, [r8 + 1]
mov r10d, r8d
movzx eax, al
xor r11d, r11d
imul ebp, eax, 0x33
mov edi, edx
mov al, r10b
mov rsi, rcx
shl al, 2
lea ebx, [rax + r8]
mov r9b, r11b
movzx ecx, bpl
inc r11d
xor edx, edx
lea eax, [r9 + 1]
movzx r8d, al
mov eax, r10d
div r11d
imul r8d, ecx
mov al, r9b
add r9b, r9b
add al, r9b
add r8b, dl
add r8b, al
add r8b, bl
xor byte [rsi], r8b
inc rsi
cmp r11d, edi
jb 0x14000cbb2
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14000cdb4
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r9, rdx
mov rsi, rcx
mov eax, 0x5a4d
xor ebx, ebx
cmp word [rcx], ax
jne 0x14000cf13
mov eax, dword [rcx + 0x3c]
test eax, eax
jne 0x14000cde9
mov eax, ebx
jmp 0x14000cdec
add rax, rsi
test rax, rax
je 0x14000cf13
cmp dword [rax], 0x4550
jne 0x14000cf13
movzx ecx, word [rax + 0x18]
mov edx, 0x20b
cmp cx, dx
jne 0x14000ce16
mov ecx, 0x88
jmp 0x14000ce29
mov edx, 0x10b
cmp cx, dx
jne 0x14000cf13
mov ecx, 0x78
mov edx, dword [rcx + rax + 4]
mov dword [rsp + 0x80], edx
mov edx, dword [rcx + rax]
test edx, edx
je 0x14000cf13
mov edi, edx
add rdi, rsi
je 0x14000cf13
mov eax, dword [rdi + 0x20]
test eax, eax
mov r15, rbx
je 0x14000ce58
lea r15, [rsi + rax]
mov eax, dword [rdi + 0x1c]
test eax, eax
mov r12, rbx
je 0x14000ce66
lea r12, [rsi + rax]
mov eax, dword [rdi + 0x24]
test eax, eax
mov r13, rbx
je 0x14000ce74
lea r13, [rsi + rax]
test r15, r15
je 0x14000cf13
test r12, r12
je 0x14000cf13
test r13, r13
je 0x14000cf13
mov r14d, ebx
mov dword [rsp + 0x20], ebx
cmp r14d, dword [rdi + 0x18]
jae 0x14000cf13
mov eax, r14d
mov qword [rsp + 0x88], rax
mov ecx, dword [r15 + rax*4]
test ecx, ecx
je 0x14000cf09
mov edx, ecx
add rdx, rsi
je 0x14000cf09
mov r8d, 0x100
mov rcx, r9
call sub.ntoskrnl.exe_strncmp
test eax, eax
jne 0x14000cf04
mov rcx, qword [rsp + 0x88]
movzx ecx, word [r13 + rcx*2]
cmp ecx, dword [rdi + 0x14]
jae 0x14000cf13
mov ecx, dword [r12 + rcx*4]
test ecx, ecx
jne 0x14000cee8
mov rcx, rbx
jmp 0x14000ceeb
add rcx, rsi
cmp rcx, rdi
jb 0x14000ceff
mov eax, dword [rsp + 0x80]
add rax, rdi
cmp rcx, rax
jbe 0x14000cf13
mov rbx, rcx
jmp 0x14000cf13
mov r9, qword [rsp + 0x78]
inc r14d
mov dword [rsp + 0x20], r14d
jmp 0x14000ce96
mov rax, rbx
jmp 0x14000cf1a
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002934c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140f8c0c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f8c0d2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f8c0fb
pop rbp
sub rbp, 0x33
sub rbp, 0xf8c0c8
in eax, dx
enter 0xfffffffffffff8c0, 0
sub rsp, 0x20
jmp 0x140f8c11a
mov rax, 0xf8c0c8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff888abf3a
xor byte [rax], dl
inc rax
dec rcx
leave
jne 0x140f8c139
jmp 0x140f8c150
jb 0x140f8c105
sal dword [rcx + 0x3a3a06b3], cl
cmp dh, byte [rdx - 0x45]
sti
xor bh, byte [rbx]
cmp bh, byte [rdx]
jb 0x140f8c19d
sal dword [rdx - 3], cl
cli
cmp eax, 0x723a3a3a
std
clc
adc bh, byte [rdx]
cmp bh, byte [rdx]
jb 0x140f8c140
fdiv dword [rdx + 0x3b]
sti
mov cl, 0xbb
cmp bh, byte ss:[rdx]
cmp dh, byte [rdx + 0x3b]
shr byte [rdx + 0x6a], cl
jb 0x140f8c106
invalid
in eax, dx
invalid
Function at 0x140001000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
call fcn.140001e78
test al, al
jne 0x1400011aa
call fcn.140001f9c
test al, al
je 0x1400011aa
call fcn.1400018c4
test al, al
je 0x1400011aa
lea rax, [0x140001b18]
mov qword [rbx + 0x70], rax
lea rdx, [0x1400025b0]
mov qword [rbx + 0x80], rax
lea rcx, [rsp + 0x40]
lea rax, [0x140001958]
mov qword [rbx + 0xe0], rax
lea rax, [0x1400011bc]
mov qword [rbx + 0x68], rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1400011af
mov dl, 0x10
mov cl, 1
call qword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
lea rbx, [0x1400041a8]
lea rdx, [0x1400025d0]
mov rcx, rbx
test al, al
jne 0x1400010c9
lea rdx, [0x140002610]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
js 0x14000119b
mov edi, 0x5975616e
mov edx, 0x30d40
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, edi
mov edx, 0x9c40
xor ecx, ecx
mov qword [0x140004060], rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [0x140004060]
mov qword [0x140004070], rax
test rcx, rcx
je 0x140001179
test rax, rax
je 0x140001171
mov rdx, qword [0x140004028]
lea rcx, [0x1400012ac]
call fcn.140001e00
mov edi, eax
test eax, eax
jns 0x14000116d
mov rcx, qword [0x140004060]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x140004070]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
jmp 0x14000119b
xor eax, eax
jmp 0x1400011af
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x140004070]
test rcx, rcx
je 0x14000118d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov edi, 0xc0000001
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, edi
jmp 0x1400011af
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140001e00
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
mov qword [rax - 0x18], rdx
xor r9d, r9d
mov qword [rax - 0x20], rcx
xor r8d, r8d
and qword [rax - 0x28], 0
lea rcx, [rax + 0x18]
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x140001e3b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140001f9c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, 0x5000
xor esi, esi
mov edx, edi
xor ecx, ecx
mov r8d, 0x5975616e
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000206e
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001ffa
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add edi, edi
jmp 0x140001fb2
test eax, eax
js 0x140002060
mov rcx, qword [rbx + 0x18]
mov r9d, 0x51eb851f
mov qword [0x140004010], rcx
mov sil, 1
mov eax, dword [rbx + 0x20]
mov dword [0x140004004], eax
mov r8, qword [rbx + 0x140]
mov qword [0x140004008], r8
mov eax, dword [rbx + 0x148]
mov dword [section..data], eax
mov eax, r9d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
mov dword [0x140004020], edx
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [0x140004024], edx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, sil
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001000
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
lea rcx, str.gh00sty4__Cheater.Net
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140001027
call fcn.1400017a4
call fcn.14000a43d
xor eax, eax
add rsp, 0x28
ret
Function at 0x14011e410
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 0x14011e43e
xor eax, eax
jmp 0x14011e524
cmp qword [rcx + 0x68], 0
je 0x14011e44f
call fcn.14011db14
jmp 0x14011e524
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14011e466
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14011e468
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14011e49a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140121d20
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 0x14011e51e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14011e4d1
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 0x14011e4fa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14012ba70
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14011e51e
cmp rsi, rbx
ja 0x14011e4d8
test rsi, rsi
je 0x14011e51e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14012ba70
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 0x14011f8fc
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401273d4
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 0x140127443
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140127443
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140127443
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140127443
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140127443
cmp dword [rcx + 0x84], 0xe
jbe 0x140127443
cmp dword [rcx + 0xf8], 0
je 0x140127443
mov ecx, ebx
call fcn.14012730c
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.140127568
nop
cmp dword [rbp + 0x20], 0
je 0x140127491
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401273a0
int3

Function at 0x1401304f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140130518
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140130518
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14013b46c
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.140133bc8
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 0x14013b50d
cmp ebx, dword [rsp + 0x30]
je 0x14013b506
test esi, esi
je 0x14013b506
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14013b4e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14013b4ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14013b4cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14013b4f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14013b50f
mov eax, 1
jmp 0x14013b50f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14013c484
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.14011cdd0
sub rsp, rax
mov rax, qword [0x14015d4b0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140138ab8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14013c4d3
mov rax, rbp
jmp 0x14013c5db
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 + 0x160b50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14013c1b4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x160b50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14013c5d7
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 0x14013c5d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14013c1b4
test rax, rax
js 0x14013c5d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14013c5d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14013c5c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14013c5c9
cmp byte [rcx], 0xd
jne 0x14013c5af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14013c5be
cmp byte [rcx + 1], 0xa
jne 0x14013c5be
inc rcx
jmp 0x14013c5be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15df90]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14013c591
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14013c5db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14011ffb0
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 0x14013c96c
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 0x14013c99c
xor eax, eax
jmp 0x14013ca5f
mov rbp, rbx
cmp word [rax], si
je 0x14013c9c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14013c9a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14013c9a4
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.140133a88
movsxd r14, eax
test eax, eax
jne 0x14013c9ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14013c995
mov rcx, r14
call fcn.140133998
mov rdi, rax
test rax, rax
jne 0x14013ca18
xor ecx, ecx
call fcn.14013395c
jmp 0x14013c9f4
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.140133a88
test eax, eax
jne 0x14013ca49
mov rcx, rdi
call fcn.14013395c
jmp 0x14013ca53
xor ecx, ecx
call fcn.14013395c
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 0x14013ca7c
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 0x14013cb03
mov rsi, rbx
cmp word [rax], bp
je 0x14013cac2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14013caac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14013caa8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140133998
mov rdi, rax
test rax, rax
je 0x14013caf0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140121d20
mov rbp, rdi
xor ecx, ecx
call fcn.14013395c
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 0x14013ebb0
Capabilities:
Get file size

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