joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3ae721e30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3ae724230]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3ae721e50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3ae721e58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3ae721e50
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3ae721ead
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3ae721ea4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3ae721e50
add rax, 0x28
cmp rax, r9
jne 0x3ae721e90
xor eax, eax
ret

Function at 0x3ae721eb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3ae724230]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3ae721ecf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3ae721ed8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3ae721ecf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3ae721f70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3ae724230]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3ae721f8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3ae721f98
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140004da0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x18
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
xor r8d, r8d
lea rdx, [0x14008cabe]
call fcn.14000f110
mov qword [rbx + 0x38], 0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140005620
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov rdx, r8
mov rcx, rdi
call fcn.14000c920
mov dword [rsp + 0x20], 1
mov ebp, r14d
mov rdx, rdi
mov rcx, rbx
call fcn.140004e10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400050f0
mov rsi, rax
cmp rdi, rax
je 0x1400056da
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400056ae
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400056a9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005765
mov rcx, r8
call fcn.140055894
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005713
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000570e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005765
call fcn.140055894
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
lea rcx, [rbx + 0x18]
xor r8d, r8d
lea rdx, [0x14008cabe]
call fcn.14000f110
mov qword [rbx + 0x38], r14
inc ebp
cmp ebp, 0xa
jb 0x140005654
mov rax, rdi
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14005c3e8
int3
Function at 0x1400117d0
Capabilities:
Hash data using crc32b

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x3fc
call fcn.1400580e0
xor r10d, r10d
nop dword [rax]
mov ecx, r10d
mov r8d, r10d
and ecx, 1
shr r8d, 1
shl ecx, 7
mov edx, ecx
or edx, 0x40
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 0x20
test r8b, 1
cmove ecx, edx
shr r8d, 1
mov edx, ecx
or edx, 0x10
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 8
test r8b, 1
cmove ecx, edx
shr r8d, 1
mov edx, ecx
or edx, 4
test r8b, 1
cmove edx, ecx
shr r8d, 1
mov ecx, edx
or ecx, 2
test r8b, 1
cmove ecx, edx
mov eax, ecx
or eax, 1
test r8b, 2
cmove eax, ecx
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [rcx + rcx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [rdx + rdx]
xor ecx, eax
mov eax, ecx
add ecx, ecx
sar eax, 0x1f
and eax, 0x4c11db7
xor eax, ecx
xor r9d, r9d
lea r8d, [r9 + 0x1e]
nop dword [rax]
test al, 1
je 0x140011902
lea ecx, [r8 + 1]
mov edx, 1
shl edx, cl
or r9d, edx
shr eax, 1
test al, 1
je 0x140011915
mov ecx, r8d
mov edx, 1
shl edx, cl
or r9d, edx
shr eax, 1
sub r8d, 2
cmp r8d, 0xfffffffe
jg 0x1400118f0
mov dword [rbx], r9d
inc r10d
add rbx, 4
cmp r10d, 0xff
jle 0x1400117f0
add rsp, 0x20
pop rbx
ret

Function at 0x140011940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400119b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400119b8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400119a5
nop
cmp rbx, rcx
jae 0x1400119b8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140011990
cmp rbx, rcx
jae 0x1400119b8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1400119ba
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140018b00
Capabilities:
Create thread
Delete internet cache
Enumerate internet cache

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140108020]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
xor ebx, ebx
mov qword [rsp + 0x68], rbx
lea r9, [rsp + 0x58]
lea r8, [0x140026460]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
nop
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
mov dword [rsp + 0x50], ebx
lea r8, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140018be4
mov esi, dword [rsp + 0x50]
mov ecx, esi
call fcn.140055ba0
mov rbx, rax
lea r8, [rsp + 0x50]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
mov rdi, rax
test rax, rax
je 0x140018bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140018bdc
nop dword [rax]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov dword [rsp + 0x50], esi
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
test eax, eax
jne 0x140018bb0
mov rcx, rdi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, rbx
call fcn.140055894
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
je 0x140018cc3
lea rbx, [rcx + 4]
nop dword [rax + rax]
mov ecx, 0x28
call fcn.14005c460
mov rdi, rax
mov edx, dword [rbx - 4]
mov dword [rsp + 0x20], edx
mov r8d, dword [rbx]
mov dword [rsp + 0x24], r8d
mov ecx, dword [rbx + 4]
sub ecx, edx
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbx + 8]
sub ecx, r8d
mov dword [rsp + 0x2c], ecx
mov qword [rax], rbp
mov dword [rax + 8], 1
lea rcx, [rsp + 0x30]
call fcn.140023fc0
cmp qword [rax + 0x18], 8
jb 0x140018c4d
mov rax, qword [rax]
mov qword [rdi + 0x10], rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140018c93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018c8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018d20
call fcn.140055894
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi + 0x18], xmm0
mov r8, rdi
xor edx, edx
lea rcx, [0x140018ad0]
call fcn.14005f6c8
add rbx, 0x10
lea rax, [rbx - 4]
cmp rax, rsi
jne 0x140018c00
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140018cfa
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018cf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018d26
call fcn.140055894
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140055540
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14005c3e8
nop
call fcn.14005c3e8
int3
Function at 0x1400264a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x140108020]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
call fcn.1400117d0
mov qword [rsp + 0x28], 0
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140016040
nop
mov rax, qword [rsp + 0x28]
movsxd rdx, dword [rax - 0x10]
mov rdi, rdx
cmp dword [rax - 8], 1
jle 0x14002650e
lea rcx, [rsp + 0x28]
call fcn.140015d50
mov rax, qword [rsp + 0x28]
mov ebx, 0xffffffff
mov r8, rax
test rdi, rdi
je 0x14002653b
nop dword [rax + rax]
movzx edx, bl
movzx ecx, byte [r8]
xor rdx, rcx
shr ebx, 8
xor ebx, dword [rsp + rdx*4 + 0x30]
lea r8, [r8 + 1]
sub rdi, 1
jne 0x140026520
not ebx
lea rdx, [rax - 0x18]
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002655c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140026577
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140055540
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140030a0c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140030a90
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140081780]
cmp byte [rcx + rax], 0
je 0x140030a90
dec r8
sub rdx, 1
jne 0x140030a76
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

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

Function at 0x1400562c4
Capabilities:
Parse pe header

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

Function at 0x14005faa4
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 0x14005f90f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005f90f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005f90f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005f90f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005f90f
cmp dword [rcx + 0x84], 0xe
jbe 0x14005f90f
cmp dword [rcx + 0xf8], 0
je 0x14005f90f
mov ecx, ebx
call fcn.14005f9c0
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.14005f79c
nop
cmp dword [rbp + 0x20], 0
je 0x14005f95d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005f968
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005f8a0
Function at 0x14006e3fc
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, [0x14010bac0]
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 0x14006e453
cmp word [rdx], r13w
jne 0x14006e453
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006e458
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006e57d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006e59e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006e491
mov rdx, r9
mov word [rbx], cx
jmp 0x14006e4b8
cmp r9, r8
jae 0x14006e4c8
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 0x14006e472
jmp 0x14006e57d
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 0x14006e572
cmp dword [rsp + 0x80], esi
je 0x14006e572
lea r8, [0x14010bac0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006e54a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006e51a
mov word [rbx], r13w
jmp 0x14006e57a
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 0x14006e527
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006e57a
cmp word [rsp + 0x70], r13w
jne 0x14006e557
cmp rbx, r14
je 0x14006e514
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140071e10
cmp word [rsp + 0x70], r13w
je 0x14006e57d
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, [0x14010bac0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006e577
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006e57d
Function at 0x1400701b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400701ce
mov al, 1
jmp 0x14007022e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400701df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007022c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007569c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007022c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007022c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007022c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007022e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140071920
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.1400560d0
sub rsp, rax
mov rax, qword [0x140108020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006d29c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007196f
mov rax, rbp
jmp 0x140071a77
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 + 0x10bac0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140071e08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x10bac0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140071a73
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 0x140071a73
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140071e08
test rax, rax
js 0x140071a73
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140071a73
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140071a65
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140071a65
cmp byte [rcx], 0xd
jne 0x140071a4b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140071a5a
cmp byte [rcx + 1], 0xa
jne 0x140071a5a
inc rcx
jmp 0x140071a5a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x108440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140071a2d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140071a77
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140055540
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 0x140074c80
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 0x140074d07
mov rsi, rbx
cmp word [rax], bp
je 0x140074cc6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140074cb0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140074cac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006be90
mov rdi, rax
test rax, rax
je 0x140074cf4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140057a20
mov rbp, rdi
xor ecx, ecx
call fcn.14006b77c
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 0x140077bf0
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.14006bb30
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 0x140077c91
cmp ebx, dword [rsp + 0x30]
je 0x140077c8a
test esi, esi
je 0x140077c8a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140077c65
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140077c72
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140077c4f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140077c76
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140077c93
mov eax, 1
jmp 0x140077c93
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x414e40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414fcb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432360
xorps xmm15, xmm15
mov r14, qword [0x006344d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414ea5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414eb4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414ed3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414ee3
cmp rbx, 0x1000
jae 0x414eab
jmp 0x414f4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414ef5
xor edx, edx
jmp 0x414f44
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432360
xorps xmm15, xmm15
mov r14, qword [0x006344d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414ed9
jmp 0x414ec8
call fcn.00462c40
xorps xmm15, xmm15
mov r14, qword [0x006344d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436760
lea rax, [0x004fd799]
mov ebx, 0x18
nop dword [rax]
call fcn.00436fe0
mov rax, qword [rsp + 0x38]
call fcn.00436d20
lea rax, [0x004fdea5]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00436fe0
mov rax, qword [rsp + 0x30]
call fcn.00436d20
call fcn.004369a0
call fcn.004367c0
lea rax, [0x00500a5b]
mov ebx, 0x21
call fcn.00434dc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f580
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414e40