joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004edf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800a4d70]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004ee54
mov eax, 0xa
jmp 0x18004eee7
test esi, esi
je 0x18004ee76
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004ee99
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004ee99
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18004ee92
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004ee99
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18004ef00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x1800a4d7c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18004f020
mov rcx, qword [0x1800a4d70]
add rcx, 0x20
test byte [rcx], 2
je 0x18004ef43
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x18004ef27
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18004f020
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.18004ec40
mov edx, dword [0x1800a4d7c]
cmp ebx, edx
jae 0x18004efa2
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800a4d70]
test byte [rcx + rax + 0x20], 2
jne 0x18004ef9c
mov edx, 1
mov ecx, ebx
call fcn.18004edf0
mov edi, eax
test eax, eax
jne 0x18004efa2
mov edx, dword [0x1800a4d7c]
inc ebx
cmp ebx, edx
jb 0x18004ef70
cmp qword [rsp + 0x20], 0
je 0x18004f020
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004f00c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004eff8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18004efd0
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a4140]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18004f330
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 [0x1800a4138], esi
je 0x18004f381
cmp rbx, 0x20
jae 0x18004f36a
xor ecx, ecx
jmp 0x18004f36c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800a4138], esi
jne 0x18004f360
cmp qword [0x1800a4140], r14
mov qword [rsp + 0x58], r13
je 0x18004f516
mov ecx, dword [0x1800a4d7c]
mov ebx, r15d
test ecx, ecx
je 0x18004f3bf
mov rdx, qword [0x1800a4d70]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x18004f3ca
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004f3b0
mov r14d, 4
jmp 0x18004f51c
cmp ebx, 0xffffffff
je 0x18004f3bf
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18004f47b
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004ec40
xor edx, edx
mov ecx, ebx
call fcn.18004edf0
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x18004f46b
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x18004f457
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 0x18004f448
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 0x18004f420
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a4140]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x18004f51c
mov rdx, qword [0x1800a4d70]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18004fd30
mov edx, dword [0x1800a4d7c]
dec edx
cmp ebx, edx
jae 0x18004f4ca
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1800a4d70]
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 [0x1800a4d78]
mov eax, ecx
mov dword [0x1800a4d7c], edx
shr eax, 1
cmp eax, 0x20
jb 0x18004f51c
cmp eax, edx
jb 0x18004f51c
mov r8, qword [0x1800a4d70]
mov eax, ecx
mov rcx, qword [0x1800a4140]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18004f51c
shr dword [0x1800a4d78], 1
mov qword [0x1800a4d70], rax
jmp 0x18004f51c
mov r14d, 2
xchg dword [0x1800a4138], 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 0x18004f540
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800a4138], esi
je 0x18004f595
cmp rbx, 0x20
jae 0x18004f57e
xor ecx, ecx
jmp 0x18004f580
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800a4138], esi
jne 0x18004f574
cmp qword [0x1800a4140], r15
je 0x18004f67f
test rdi, rdi
jne 0x18004f5b3
call fcn.18004ef00
mov ebp, eax
jmp 0x18004f684
mov ecx, dword [0x1800a4d7c]
mov ebx, r15d
test ecx, ecx
je 0x18004f5df
mov rdx, qword [0x1800a4d70]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x18004f5e9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004f5d0
mov ebp, 4
jmp 0x18004f684
cmp ebx, 0xffffffff
je 0x18004f5df
mov eax, ebx
imul r8, rax, 0x38
test byte [r8 + rdx + 0x20], 2
jne 0x18004f678
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004ec40
mov edx, esi
mov ecx, ebx
call fcn.18004edf0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18004f684
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004f662
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop dword [rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004f658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18004f630
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a4140]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18004f684
mov ebp, 5
jmp 0x18004f684
mov ebp, 2
xchg dword [0x1800a4138], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18004fad0
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 0x18004fb10
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800a4d68]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004fb4e
cmp rsi, r14
jb 0x18004fb46
cmp rsi, r15
jae 0x18004fb46
cmp qword [rsi + 8], 0
jne 0x18004fd17
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18004fb31
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 0x18004fbe2
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 0x18004fbd9
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 0x18004fbd9
cmp dword [rsp + 0x70], 0x10000
je 0x18004fc5b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18004fbd9
sub rbx, rbp
cmp rbx, r14
jae 0x18004fba0
test rsi, rsi
jne 0x18004fcc0
cmp rdi, r15
ja 0x18004fcff
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 0x18004fcff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004fcff
cmp dword [rsp + 0x70], 0x10000
je 0x18004fc91
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 0x18004fc12
jmp 0x18004fcff
test rbx, rbx
je 0x18004fbd9
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 0x18004fcc0
cmp rbx, r14
jae 0x18004fb80
jmp 0x18004fbe2
test rdi, rdi
je 0x18004fcff
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 0x18004fcc0
cmp rdi, r15
jbe 0x18004fbf0
jmp 0x18004fcff
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 0x18004fcd0
mov rax, qword [0x1800a4d68]
mov qword [rsi], rax
mov qword [0x1800a4d68], 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 0x180051810
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 0x18005184a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18005184f
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 0x180051898
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x180051898
dec r8
sub rdx, 1
jne 0x18005187e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180053c08
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 0x180053c36
xor eax, eax
jmp 0x180053d1c
cmp qword [rcx + 0x68], 0
je 0x180053c47
call fcn.18000cae0
jmp 0x180053d1c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180053c5e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180053c60
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180053c92
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18007a3d0
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 0x180053d16
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180053cc9
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 0x180053cf2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180064b88
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180053d16
cmp rsi, rbx
ja 0x180053cd0
test rsi, rsi
je 0x180053d16
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180064b88
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 0x180061be0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x180061c17
call fcn.180062d68
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18005c4d8
xor eax, eax
jmp 0x180061ca5
mov rdx, r9
mov rcx, r8
call fcn.180061b7c
mov rbx, rax
test rax, rax
je 0x180061ca2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180061aa8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x180061c8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180062cdc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180061c76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180061c85
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18006a158
jmp 0x180061ca2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180061c9f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18006ee40
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 0x18006ee70
xor eax, eax
jmp 0x18006ef33
mov rbp, rbx
cmp word [rax], si
je 0x18006ee95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18006ee7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18006ee78
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.18006ed60
movsxd r14, eax
test eax, eax
jne 0x18006eed3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18006ee69
mov rcx, r14
call fcn.18006a080
mov rdi, rax
test rax, rax
jne 0x18006eeec
xor ecx, ecx
call fcn.18006a158
jmp 0x18006eec8
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.18006ed60
test eax, eax
jne 0x18006ef1d
mov rcx, rdi
call fcn.18006a158
jmp 0x18006ef27
xor ecx, ecx
call fcn.18006a158
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 0x1800706f4
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.180079aa0
sub rsp, rax
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006c4a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180070743
mov rax, rbp
jmp 0x18007084b
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa3ab0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800719dc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa3ab0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180070847
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 0x180070847
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800719dc
test rax, rax
js 0x180070847
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180070847
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180070839
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180070839
cmp byte [rcx], 0xd
jne 0x18007081f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007082e
cmp byte [rcx + 1], 0xa
jne 0x18007082e
inc rcx
jmp 0x18007082e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa0b30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180070801
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007084b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180050570
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 0x180070b68
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180070b7e
mov al, 1
jmp 0x180070bde
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180070b8f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180070bdc
mov ecx, dword [rcx + 0x18]
nop
call fcn.180075d2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180070bdc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180070bdc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180070bdc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180070bde
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180070d7c
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, [0x1800a3ab0]
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 0x180070dd3
cmp word [rdx], r13w
jne 0x180070dd3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180070dd8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180070efd
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180070f1e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180070e11
mov rdx, r9
mov word [rbx], cx
jmp 0x180070e38
cmp r9, r8
jae 0x180070e48
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 0x180070df2
jmp 0x180070efd
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 0x180070ef2
cmp dword [rsp + 0x80], esi
je 0x180070ef2
lea r8, [0x1800a3ab0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180070eca
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180070e9a
mov word [rbx], r13w
jmp 0x180070efa
mov ecx, reloc.WS2_32.dll_listen
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 0x180070ea7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180070efa
cmp word [rsp + 0x70], r13w
jne 0x180070ed7
cmp rbx, r14
je 0x180070e94
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800719e4
cmp word [rsp + 0x70], r13w
je 0x180070efd
mov ecx, reloc.WS2_32.dll_listen
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, [0x1800a3ab0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180070ef7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180070efd
Function at 0x180075538
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.1800683c8
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 0x1800755d9
cmp ebx, dword [rsp + 0x30]
je 0x1800755d2
test esi, esi
je 0x1800755d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800755ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800755ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180075597
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800755be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800755db
mov eax, 1
jmp 0x1800755db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180079c10
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62