joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001bbea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001bbe0
cmp r11, r10
ja 0x14001bc75
cmp r10, rdx
ja 0x14001bc87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001bbe2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001bbc0
jmp 0x14001bc57
ja 0x14001bbea
mov r11, r10
cmp rax, r8
jne 0x14001bb92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001bc5b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001bc30
mov r8, r10
sub ecx, r9d
jns 0x14001bc4e
jmp 0x14001bc5d
cmp r10, rdx
je 0x14001bc69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001bc5d
xor al, 1
cmp r8, rdx
jne 0x14001bc10
jmp 0x14001bc5d
xor eax, eax
jmp 0x14001bc5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001ed30
lea r8, str.__9_
mov rcx, r11
mov rdx, r10
call fcn.14001f230
lea r8, str.__9_
mov rcx, r10
call fcn.14001f220
int3

Function at 0x14001d840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d88a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d88a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d88a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d88a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d88a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d88c
xor al, al
add rsp, 0x28
ret
Function at 0x140005610
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x1400a7040]
xor rax, rsp
mov qword [rsp + 0x450], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
xor edi, edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov r14d, 1
mov edx, r14d
lea rcx, [0x140094ab0]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x1400056eb
mov ecx, 0x9a
call fcn.14003d260
mov r12, rax
mov dword [rsp + 0x28], 0x4d
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.https:__s3plus.meituan.net_smart_com.sankuai.efficiency.case_info_geb17r.jpg
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x84800000
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
jne 0x140005760
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call fcn.14003d10c
mov r14d, edi
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x14000572b
sub rdi, rsi
mov rax, rsi
cmp rdi, 0x1000
jb 0x140005720
add rdi, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005811
mov rdx, rdi
mov rcx, rsi
call fcn.14003d10c
mov eax, r14d
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14003d0b0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400057c1
nop dword [rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400057bc
mov r9d, eax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1400081d0
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140005780
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
sub rbx, rsi
mov qword [0x1400ad548], rbx
mov rcx, rbx
call fcn.14003d260
mov qword [0x1400ad540], rax
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.140080880
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call fcn.14003d10c
jmp 0x1400056f3
call fcn.14005d7a4
int3
Function at 0x140005990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x1400a7040]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor esi, esi
call fcn.140005820
call fcn.140005610
test eax, eax
jne 0x140005a4b
lea rdx, str.ERORR_Downloading_nicecode
lea rcx, [0x1400abcf0]
call fcn.140006ed0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x40], rcx
mov rdx, qword [rcx]
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x38]
call fcn.140006c10
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx edi, al
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140005a36
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140005a36
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, dil
mov rcx, rbx
call fcn.140007db0
mov rcx, rbx
call fcn.140006950
nop
mov edi, esi
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x140005ab6
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140005aad
nop dword [rax]
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x7c]
call fcn.14005d900
test eax, eax
je 0x140005aa9
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140005a80
jmp 0x140005aad
mov edi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x58
call fcn.14003d0d0
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
mov qword [rbx + 0x50], rax
mov rcx, qword [0x1400ad548]
mov rax, qword [0x1400ad540]
mov dword [rbx + 8], edi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rcx
lea rax, vtable.RemoteTpTimerInsertion.0
mov qword [rbx], rax
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call fcn.140010080
nop
test rbx, rbx
je 0x140005b39
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8 + 0x18]
nop
mov eax, 1
jmp 0x140005b42
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14003d0b0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400113b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x140011545
cmp rcx, rbp
je 0x140011545
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x14001144c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x14001156c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140011463
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140011463
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140011476
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x1400114c3
mov r8d, eax
cmp eax, 0x800
jae 0x140011490
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1400114c3
cmp eax, 0x10000
jae 0x1400114aa
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1400114c3
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x140011545
add qword [rsi], 2
test dil, dil
jne 0x1400114e4
cmp r10d, 3
jae 0x1400114f0
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x14001151e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x140011500
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x140011545
cmp qword [rbx], rbp
jne 0x14001140d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x14001154f
Function at 0x140018314
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 0x140018342
xor eax, eax
jmp 0x140018428
cmp qword [rcx + 0x68], 0
je 0x140018353
call fcn.140005ef0
jmp 0x140018428
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001836a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001836c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001839e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140080880
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 0x140018422
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400183d5
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 0x1400183fe
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400624f8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140018422
cmp rsi, rbx
ja 0x1400183dc
test rsi, rsi
je 0x140018422
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400624f8
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 0x140032558
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001ee26
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001ee09
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001edf4

Function at 0x14003c4d0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1400636b8
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14003c522
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x14003c522
sub ecx, 1
je 0x14003c51b
cmp ecx, 1
je 0x14003c514
xor eax, eax
jmp 0x14003c527
mov eax, 3
jmp 0x14003c527
mov eax, 1
jmp 0x14003c527
mov eax, 2
add rsp, 0x28
ret

Function at 0x14003db44
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003db8e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003db8e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003db8e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003db8e
cmp dword [rcx + 0x84], 0xe
jbe 0x14003db8e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003db90
xor al, al
add rsp, 0x28
ret
Function at 0x1400488a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x1400488bf
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, 0xc
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.140042070
int3

Function at 0x14004f760
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400a7108]
cmp ecx, 0xffffffff
je 0x14004f780
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14004f79a
call fcn.14004fc80
mov ecx, dword [0x1400a7108]
cmp ecx, 0xffffffff
jne 0x14004f794
xor eax, eax
jmp 0x14004f79a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14004e690
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret

Function at 0x14004fbf0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1400a7108]
cmp ecx, 0xffffffff
je 0x14004fc53
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14004fc53
mov rdx, qword [rax + 0x28]
mov rcx, rdx
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x14004fc38
cmp qword [rax + 0x20], rbx
jae 0x14004fc2c
mov rax, qword [rax + 0x10]
jmp 0x14004fc32
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14004fc20
cmp byte [rcx + 0x19], 0
jne 0x14004fc53
cmp rbx, qword [rcx + 0x20]
jb 0x14004fc53
cmp rcx, rdx
je 0x14004fc53
lea rax, [rcx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004fc80
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14004e630
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rdx, [0x14004fbd0]
lea rcx, [0x1400ac818]
call fcn.14004f7c0
mov ecx, dword [0x1400a7108]
cmp ecx, 0xffffffff
je 0x14004fcbb
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x20
pop rbx
ret
Function at 0x14006b260
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 0x14006b2cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14006b2cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14006b2cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14006b2cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14006b2cf
cmp dword [rcx + 0x84], 0xe
jbe 0x14006b2cf
cmp dword [rcx + 0xf8], 0
je 0x14006b2cf
mov ecx, ebx
call fcn.14006b380
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.14006b15c
nop
cmp dword [rbp + 0x20], 0
je 0x14006b31d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14006b328
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14006b260

Function at 0x14006b464
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006b260
Function at 0x1400736e8
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.14003d5c0
sub rsp, rax
mov rax, qword [0x1400a7040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140070298
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140073737
mov rax, rbp
jmp 0x14007383f
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 + 0xace00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140074808
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xace00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007383b
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 0x14007383b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140074808
test rax, rax
js 0x14007383b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007383b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007382d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007382d
cmp byte [rcx], 0xd
jne 0x140073813
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140073822
cmp byte [rcx + 1], 0xa
jne 0x140073822
inc rcx
jmp 0x140073822
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa74e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400737f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007383f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003d0b0
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 0x140073a60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140073a76
mov al, 1
jmp 0x140073ad6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140073a87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140073ad4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140078f18
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140073ad4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140073ad4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140073ad4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140073ad6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140073ba8
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, [0x1400ace00]
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 0x140073bff
cmp word [rdx], r13w
jne 0x140073bff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140073c04
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140073d29
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140073d4a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140073c3d
mov rdx, r9
mov word [rbx], cx
jmp 0x140073c64
cmp r9, r8
jae 0x140073c74
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 0x140073c1e
jmp 0x140073d29
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 0x140073d1e
cmp dword [rsp + 0x80], esi
je 0x140073d1e
lea r8, [0x1400ace00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140073cf6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140073cc6
mov word [rbx], r13w
jmp 0x140073d26
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 0x140073cd3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140073d26
cmp word [rsp + 0x70], r13w
jne 0x140073d03
cmp rbx, r14
je 0x140073cc0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140074810
cmp word [rsp + 0x70], r13w
je 0x140073d29
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, [0x1400ace00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140073d23
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140073d29
Function at 0x1400781b8
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 0x1400781e8
xor eax, eax
jmp 0x1400782ab
mov rbp, rbx
cmp word [rax], si
je 0x14007820d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400781f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400781f0
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.140075cdc
movsxd r14, eax
test eax, eax
jne 0x14007824b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400781e1
mov rcx, r14
call fcn.14006f114
mov rdi, rax
test rax, rax
jne 0x140078264
xor ecx, ecx
call fcn.14006f0d8
jmp 0x140078240
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.140075cdc
test eax, eax
jne 0x140078295
mov rcx, rdi
call fcn.14006f0d8
jmp 0x14007829f
xor ecx, ecx
call fcn.14006f0d8
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 0x1400782c8
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 0x14007834f
mov rsi, rbx
cmp word [rax], bp
je 0x14007830e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400782f8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400782f4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006f114
mov rdi, rax
test rax, rax
je 0x14007833c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140080880
mov rbp, rdi
xor ecx, ecx
call fcn.14006f0d8
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 0x14007b46c
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.14006eb34
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 0x14007b50d
cmp ebx, dword [rsp + 0x30]
je 0x14007b506
test esi, esi
je 0x14007b506
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007b4e1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007b4ee
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007b4cb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007b4f2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007b50f
mov eax, 1
jmp 0x14007b50f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret