joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441e80
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x441fea
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x441e98
cmp edx, ecx
jne 0x441fd8
nop dword [rax]
test rsi, rsi
jne 0x441fd8
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x441ef4
nop
call fcn.0045ffc0
xorps xmm15, xmm15
mov r14, qword [0x005984c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00441d80
mov rcx, qword [0x005455e8]
mov rdx, qword [0x005455e0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x441fd3
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x441fc8
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x00545ff0]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x00545ff0], rbx
nop
mov edx, 1
lea rsi, [0x00545ff8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x441fb7
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x004b1098]
mov ebx, 0x28
call fcn.00433740
mov rcx, rax
mov rax, rsi
call fcn.0045e620
call fcn.00431d60
lea rax, [0x004b04a2]
mov ebx, 0x23
call fcn.00433740
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bfc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00441e80
Function at 0x44cbe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44cd58
movzx edx, byte [rax]
nop
test edx, edx
jne 0x44cc1c
test r8b, r8b
jne 0x44cc1c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x44cc2f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44cd18
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x44cd06
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x44ccfc
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x44cc83
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x44ccc6
mov eax, 1
cmp rax, rbx
ja 0x44ccb5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.0045e6e0
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x44ccf4
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x44ccbd
mov r8d, eax
mov eax, r10d
jmp 0x44cc88
mov rcx, rbx
call fcn.0045e620
xor eax, eax
mov rcx, rax
call fcn.0045e620
mov eax, r8d
mov rcx, rbx
call fcn.0045e6e0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44cd4e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x44cd11
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44cc35
mov eax, edx
mov rcx, rbx
call fcn.0045e620
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045e620
nop
int3
Function at 0x454440
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4544f9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x00454540]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045be80
xorps xmm15, xmm15
mov r14, qword [0x005984c0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045bfc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00454440
Function at 0x45e060
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40280f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00408ea0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bfc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4027e0
cmp byte [0x005982ef], 0
je 0x45e075
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45b0c0
jmp 0x4027e0

Function at 0x45e080
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005985a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005982ef], 0
je 0x45e0b5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005988e0]
aesenc xmm0, xmmword [0x005988f0]
aesenc xmm0, xmmword [0x00598900]
movq rax, xmm0
ret
jmp 0x4090a0

Function at 0x45e0c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005985a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005982ef], 0
je 0x45e0f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005988e0]
aesenc xmm0, xmmword [0x005988f0]
aesenc xmm0, xmmword [0x00598900]
movq rax, xmm0
ret
jmp 0x409100

Function at 0x45fae0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x00598860]
mov qword [rsp + 8], rdx
lea r8d, [0x00598304]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045dfa0
add rsp, 0x30
ret

Function at 0x460020
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x460050
mov rcx, 0x28
jmp 0x46005b
shl rcx, 3
add rcx, 0x1480
mov qword [0x005984c0], rcx
ret
Function at 0x140001178
Capabilities:
Create process on windows
Execute command

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rcx, qword [str.test.cpl]
mov ebx, 8
xorps xmm0, xmm0
mov qword [rbp - 0x10], rbx
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x20], rcx
mov edx, ebx
lea r12d, [rbx + 7]
mov byte [rbp - 0x18], 0
lea rcx, [rbp - 0x20]
mov qword [rbp - 8], r12
mov qword [rsp + 0x28], rbx
call fcn.140001348
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rbp], xmm0
mov ebx, 0x1000
movdqu xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
and qword [rax + 0x10], 0
mov qword [rax + 0x18], r12
mov byte [rax], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140001245
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, rbx
jb 0x140001240
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001240
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000152c
cmp qword [rbp + 0x18], 0x10
lea rcx, [rbp]
cmovae rcx, qword [rbp]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor edx, edx
mov dword [rsp + 0x70], 0x68
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, str.test.exe
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400012ca
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
lea r8, [0x140003389]
lea rdx, str.Made_for_Damaan__exit
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14000131d
mov rcx, qword [rbp]
inc rdx
mov rax, rcx
cmp rdx, rbx
jb 0x140001318
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001318
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000152c
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400014d0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x140001eb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f04
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, r9d
mov rbx, r8
mov rsi, rcx
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400010dd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400010d0
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov edx, 0x6610
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x1400010c5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400013f1
Capabilities:
Enumerate files on windows
Get common file path
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
call fcn.1400010e6
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14000145a
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140001462
lea rcx, [0x1400520e0]
lea rdx, str.Error_getting_Desktop_folder_path.
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov eax, 1
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, str..
lea rsi, [rsp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x1400014f2
mov rdi, rax
xor esi, esi
lea rbx, [rsp + 0x30]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [rsp + 0x30]
and eax, 0x10
cmp eax, 1
adc esi, 0
mov rcx, rdi
mov rdx, rbx
call r14
test eax, eax
jne 0x14000149f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [0x140052210]
lea rdx, str.Number_of_files_in_the_Desktop_folder:
call fcn.1400015a8
mov rcx, rax
mov edx, esi
call fcn.1400017e6
mov rcx, rax
call fcn.1400017b2
test esi, esi
jne 0x1400014f2
xor ecx, ecx
call fcn.14000de80
lea rsi, [0x140052210]
lea rdx, str.___Executing_NtAllocateVirtualMemory...
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov rcx, 0xffffffffffffffff
call fcn.1400012b5
mov rdi, rax
lea rdx, str._t___Allocated_at:_0x
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
mov rdx, rdi
call fcn.140001974
mov rcx, rax
call fcn.1400017b2
lea rbx, [rsp + 0x2c]
and dword [rbx], 0
lea rdx, str.___Executing_NtWriteVirtualMemory...
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov rcx, 0xffffffffffffffff
mov rdx, rdi
mov r8, rbx
call fcn.140001317
lea rdx, str.___Executing_NtCreateThreadEx...
mov rcx, rsi
call fcn.1400015a8
mov rcx, rax
call fcn.1400017b2
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8, rdi
call fcn.14000138d
lea rcx, str.pause
call fcn.14000de8c
int3

Function at 0x140005980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400059cc
xor al, al
add rsp, 0x28
ret
Function at 0x140007210
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 0x14000723e
xor eax, eax
jmp 0x140007324
cmp qword [rcx + 0x68], 0
je 0x14000724f
call fcn.140007340
jmp 0x140007324
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007266
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007268
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000729a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400095a0
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 0x14000731e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400072d1
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 0x1400072fa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400141fc
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000731e
cmp rsi, rbx
ja 0x1400072d8
test rsi, rsi
je 0x14000731e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400141fc
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 0x14000de80
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 0x14000dceb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dceb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000dceb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000dceb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000dceb
cmp dword [rcx + 0x84], 0xe
jbe 0x14000dceb
cmp dword [rcx + 0xf8], 0
je 0x14000dceb
mov ecx, ebx
call fcn.14000dd9c
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.14000db78
nop
cmp dword [rbp + 0x20], 0
je 0x14000dd39
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000dd44
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000dc7c
Function at 0x14001bffc
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 0x14001c02c
xor eax, eax
jmp 0x14001c0ef
mov rbp, rbx
cmp word [rax], si
je 0x14001c051
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c038
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c034
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.14001bf1c
movsxd r14, eax
test eax, eax
jne 0x14001c08f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c025
mov rcx, r14
call fcn.1400192f8
mov rdi, rax
test rax, rax
jne 0x14001c0a8
xor ecx, ecx
call fcn.1400171c0
jmp 0x14001c084
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.14001bf1c
test eax, eax
jne 0x14001c0d9
mov rcx, rdi
call fcn.1400171c0
jmp 0x14001c0e3
xor ecx, ecx
call fcn.1400171c0
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 0x14001ff54
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.14001835c
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 0x14001fff5
cmp ebx, dword [rsp + 0x30]
je 0x14001ffee
test esi, esi
je 0x14001ffee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001ffc9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001ffd6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001ffb3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001ffda
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001fff7
mov eax, 1
jmp 0x14001fff7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400217f8
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.140028f10
sub rsp, rax
mov rax, qword [0x140051118]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a47c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140021847
mov rax, rbp
jmp 0x14002194f
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 + 0x52cb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022918
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x52cb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002194b
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 0x14002194b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022918
test rax, rax
js 0x14002194b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002194b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002193d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002193d
cmp byte [rcx], 0xd
jne 0x140021923
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021932
cmp byte [rcx + 1], 0xa
jne 0x140021932
inc rcx
jmp 0x140021932
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x51a60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021905
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002194f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140028ee0
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 0x140021b70
Capabilities:
Get file size

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