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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov r12, r9
and qword [rbp - 0x21], 0
mov r15d, r8d
and dword [rbp + 0x67], 0
mov rdi, rdx
and dword [rbp - 0x39], 0
mov rsi, rcx
cmp dword [r14], r8d
jae 0x1402fb9ee
mov edi, 0x80049e19
jmp 0x1402fbb64
mov rax, qword [rdx]
and qword [rbp - 0x31], 0
and qword [rbp - 0x29], 0
and qword [rbp - 0x19], 0
mov rbx, qword [rax]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x29]
lea rdx, [0x140412058]
mov rcx, rdi
call rax
test eax, eax
je 0x1402fba30
mov edi, 0x80049e2f
jmp 0x1402fbabe
mov rdi, qword [rbp - 0x29]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call rax
mov edi, eax
test eax, eax
js 0x1402fbabe
mov rdx, qword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.1402fb0d8
mov edi, eax
test eax, eax
js 0x1402fbabe
lea rax, [0x140050258]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x29]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x1402fbae7
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
and qword [rbp - 0x31], 0
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x1402fbb0b
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
test edi, edi
js 0x1402fbb64
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x21]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.1401661ac
mov edi, eax
test eax, eax
js 0x1402fbb64
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x21]
mov dword [rbp - 0x39], eax
call fcn.140166514
mov edi, eax
test eax, eax
js 0x1402fbb64
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rcx, qword [rbp - 0x21]
call fcn.140165518
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000ca30
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000bf93
cmp r8, 0x40000000
ja 0x14000bf93
mov rcx, r8
call fcn.14002166c
mov rdx, r14
mov rcx, rbx
mov rsi, rax
call fcn.14000aff0
test rax, rax
je 0x14000bf93
mov r9, rsi
mov r8, rdi
mov rdx, rax
mov rcx, rbx
call fcn.14000b1f0
test eax, eax
je 0x14000bf93
mov r9, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x14000bf30
mov ebx, 0
sub rdi, rax
je 0x14000bf8b
movzx r10d, byte [r9]
mov r11, rsi
sub r11, rbp
nop
mov rdx, r9
mov rcx, rbp
test r10b, r10b
je 0x14000bf7e
movzx eax, r10b
lea r8, [r11 + rbx]
cmp al, 0x78
jne 0x14000bf70
movzx eax, byte [rcx]
cmp byte [r8 + rcx], al
jne 0x14000bf83
movzx eax, byte [rdx + 1]
inc rdx
inc rcx
test al, al
jne 0x14000bf63
cmp byte [rdx], 0
je 0x14000bfb0
inc rbx
cmp rbx, rdi
jb 0x14000bf50
mov rcx, rsi
call fcn.140021138
xor eax, eax
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
lea rax, [rbx + rsi]
test rax, rax
je 0x14000bf8b
mov rcx, rsi
call fcn.140021138
lea rax, [rbx + r14]
jmp 0x14000bf95
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1030
call fcn.140021aa0
sub rsp, rax
mov rbx, r8
mov rdi, rcx
test r8, r8
je 0x14000cad7
mov rdx, rbx
call fcn.14000aff0
test rax, rax
je 0x14000cad7
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rax
mov rcx, rdi
call fcn.14000b1f0
test eax, eax
je 0x14000cad7
movsxd rax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x14000cad7
nop
lea rcx, [r8 + r8*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x14000cacf
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14000cac0
cmp rax, 4
je 0x14000caea
inc r8d
cmp r8d, r9d
jb 0x14000caa0
xor eax, eax
mov rbx, qword [rsp + 0x1040]
add rsp, 0x1030
pop rdi
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x14000cad7
mov r8d, dword [rdx + 8]
mov ecx, eax
lea rax, [rsp + 0x30]
add rax, rcx
je 0x14000cad7
test r8d, r8d
je 0x14000cad7
lea rdx, [rcx + rbx]
test rdx, rdx
je 0x14000cad7
lea rax, str.xxx____x_xxxxxxx
mov rcx, rdi
lea r9, [0x14005dc50]
mov qword [rsp + 0x1060], rax
mov rbx, qword [rsp + 0x1040]
add rsp, 0x1030
pop rdi
jmp 0x14000beb0
Function at 0x140014c60
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rbp + 0xd8], rax
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x64]
call fcn.140023b70
mov dword [rsp + 0x60], 0x130
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140014e1b
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
mov r8d, 7
lea rdx, str.dwm.exe
lea rcx, [rsp + 0x20]
call fcn.140010610
nop
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 0xf
lea rax, [rbp - 0x74]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140014d20
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x40]
call fcn.140010610
lea rdx, [rsp + 0x20]
mov r13, qword [rsp + 0x38]
cmp r13, 0x10
setae byte [rbp + 0xd0]
mov rbx, qword [rsp + 0x20]
cmovae rdx, rbx
lea rcx, [rsp + 0x40]
mov r15, qword [rsp + 0x58]
cmp r15, 0x10
setae r12b
mov rdi, qword [rsp + 0x40]
cmovae rcx, rdi
mov r8, qword [rsp + 0x50]
cmp r8, qword [rsp + 0x30]
jne 0x140014d8b
call fcn.140023d90
test eax, eax
jne 0x140014d8b
mov r14b, 1
jmp 0x140014d8e
xor r14b, r14b
test r12b, r12b
je 0x140014dc5
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140014dbc
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014e4b
mov rcx, rdi
call fcn.140021138
nop
cmp byte [rbp + 0xd0], 0
je 0x140014dfb
lea rdx, [r13 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140014df3
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014e45
mov rcx, rbx
call fcn.140021138
test r14b, r14b
jne 0x140014e17
lea rdx, [rsp + 0x60]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x140014cc4
mov esi, dword [rsp + 0x68]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e15c
nop
call fcn.14002e15c
nop
int3
Function at 0x140015a80
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov r15, rdx
mov r12, rcx
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x50], r13
mov ebx, 0xf
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x40], r13b
lea rcx, [rbp]
call fcn.14000fb90
mov r14, rax
mov qword [rbp + 0x78], rax
mov byte [rbp - 0x70], r13b
mov qword [rbp - 0x2c], r13
mov dword [rbp - 0x24], 0x67452301
mov dword [rbp - 0x20], 0xefcdab89
mov dword [rbp - 0x1c], 0x98badcfe
mov dword [rbp - 0x18], 0x10325476
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140015b04
mov rdx, qword [rax]
mov r8d, dword [rax + 0x10]
lea rcx, [rbp - 0x70]
call fcn.14001e440
lea rcx, [rbp - 0x70]
call fcn.14001e520
cmp byte [rbp - 0x70], 0
jne 0x140015b3b
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], rbx
xor r8d, r8d
lea rdx, [0x14005d9eb]
jmp 0x140015ba4
lea rbx, [rbp - 0x14]
lea rdi, [rsp + 0x60]
mov esi, 0x10
nop dword [rax]
movzx r8d, byte [rbx]
lea rdx, str._02x
mov rcx, rdi
call fcn.140013700
add rdi, 2
lea rbx, [rbx + 1]
sub rsi, 1
jne 0x140015b50
mov byte [rbp - 0x80], sil
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x30], r13
mov ebx, 0xf
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140015b95
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140010610
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0x10
jb 0x140015be9
mov rcx, qword [r14]
inc rdx
cmp rdx, 0x1000
jb 0x140015be4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140015ca4
mov rcx, r8
call fcn.140021138
mov byte [r14], 0
mov qword [r14 + 0x10], r13
mov qword [r14 + 0x18], rbx
cmp rbx, 0x10
jb 0x140015c2f
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015c29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015cb0
call fcn.140021138
nop
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [r12 + 0x10], xmm1
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140015c7a
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x140015c75
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140015caa
mov rcx, r8
call fcn.140021138
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], rbx
mov byte [r15], 0
mov rax, r12
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14002e15c
nop
call fcn.14002e15c
nop
call fcn.14002e15c
int3
Function at 0x140018f30
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
test rax, rax
je 0x140019105
movzx r8d, word [rbx + 0xb4]
test r8w, r8w
je 0x140019105
xor r9d, r9d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 8], rax
test rax, rax
je 0x140019105
cmp dword [rbx + 0x2c], ebp
je 0x140019105
mov ecx, dword [rbx + 0xb0]
test ecx, ecx
je 0x140019105
mov rdx, qword [rbx + 0x20]
xor r9d, r9d
mov r8, rdi
cmp ecx, 0xb
mov rcx, rax
jne 0x140018fd2
mov dword [rsp + 0x30], 0x800000
jmp 0x140018fd6
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140019105
cmp dword [rbx + 0x2c], 0xb
jne 0x1400190c3
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov r8d, 7
lea rdx, str.submit
lea rcx, [rsp + 0x40]
call fcn.140010610
nop
lea rdx, [rbx + 0x70]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14001903f
mov rdx, qword [rdx]
lea rcx, [rsp + 0x40]
call fcn.140010770
lea r9, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400190e7
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400190bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001911f
call fcn.140021138
jmp 0x1400190e7
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne dil
test dil, dil
je 0x140019105
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140019105
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140019105
mov al, 1
jmp 0x140019107
xor al, al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call fcn.14002e15c
int3
Function at 0x14001eb00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x170
mov rbx, qword [0x140077110]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], dil
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14001eb50
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140010610
nop
mov r8d, 0xf
lea rdx, str.win32kfull.sys
lea rcx, [rsp + 0x40]
call fcn.140010770
mov rax, qword [rbx + 0x28]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae r8, qword [rsp + 0x40]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
lea rcx, [rdx - 1]
call rax
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x14001ebe4
lea rcx, [0x140061020]
call fcn.1403db833
nop
mov rdx, rax
lea rcx, [0x1400759e0]
call fcn.140010d70
mov rcx, rax
call fcn.140010fe0
xor bl, bl
jmp 0x14001ebe6
mov bl, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14001ec1f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ec1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ec33
call fcn.140021138
movzx eax, bl
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rdi
ret
call fcn.14002e15c
int3
Function at 0x14001fe30
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x36
syscall
ret

Function at 0x14002c7a4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002c7c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002fbbc
or eax, 0xffffffff
jmp 0x14002c7c6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400330c0
Capabilities:
Parse pe header

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

Function at 0x1400363ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140036402
mov al, 1
jmp 0x140036462
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140036413
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140036460
mov ecx, dword [rcx + 0x18]
nop
call fcn.140041574
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036460
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140036460
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140036460
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140036462
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003b294
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.140021aa0
sub rsp, rax
mov rax, qword [0x1400700a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400362cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003b2e3
mov rax, rbp
jmp 0x14003b3eb
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 + 0x76940]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003c1e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x76940]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003b3e7
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 0x14003b3e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003c1e0
test rax, rax
js 0x14003b3e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003b3e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003b3d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003b3d9
cmp byte [rcx], 0xd
jne 0x14003b3bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003b3ce
cmp byte [rcx + 1], 0xa
jne 0x14003b3ce
inc rcx
jmp 0x14003b3ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x704b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003b3a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003b3eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140021a70
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 0x14003b580
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, [0x140076940]
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 0x14003b5d7
cmp word [rdx], r13w
jne 0x14003b5d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003b5dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003b701
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003b722
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003b615
mov rdx, r9
mov word [rbx], cx
jmp 0x14003b63c
cmp r9, r8
jae 0x14003b64c
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 0x14003b5f6
jmp 0x14003b701
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 0x14003b6f6
cmp dword [rsp + 0x80], esi
je 0x14003b6f6
lea r8, [0x140076940]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003b6ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003b69e
mov word [rbx], r13w
jmp 0x14003b6fe
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 0x14003b6ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003b6fe
cmp word [rsp + 0x70], r13w
jne 0x14003b6db
cmp rbx, r14
je 0x14003b698
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003c1e8
cmp word [rsp + 0x70], r13w
je 0x14003b701
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, [0x140076940]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003b6fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003b701
Function at 0x140040860
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 0x140040890
xor eax, eax
jmp 0x140040953
mov rbp, rbx
cmp word [rax], si
je 0x1400408b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004089c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140040898
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.14003ef70
movsxd r14, eax
test eax, eax
jne 0x1400408f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140040889
mov rcx, r14
call fcn.140036ebc
mov rdi, rax
test rax, rax
jne 0x14004090c
xor ecx, ecx
call fcn.140036e80
jmp 0x1400408e8
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.14003ef70
test eax, eax
jne 0x14004093d
mov rcx, rdi
call fcn.140036e80
jmp 0x140040947
xor ecx, ecx
call fcn.140036e80
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 0x140043ac8
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.1400368ac
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 0x140043b69
cmp ebx, dword [rsp + 0x30]
je 0x140043b62
test esi, esi
je 0x140043b62
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140043b3d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140043b4a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140043b27
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140043b4e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140043b6b
mov eax, 1
jmp 0x140043b6b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret