joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800207f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180020822
call fcn.180025030
xor eax, eax
lea r8, [0x18001fe20]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.18001c670
mov eax, 1
add rsp, 0x38
ret

Function at 0x180020830
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 0x3e
jb 0x180020840
mov byte [rcx + 0x3e], 0
mov rax, rcx
ret

Function at 0x180020860
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 4
jb 0x180020870
mov byte [rcx + 4], 0
mov rax, rcx
ret

Function at 0x180020890
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 0xb
jb 0x1800208a0
mov byte [rcx + 0xb], 0
mov rax, rcx
ret

Function at 0x1800208c0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 0x46
jb 0x1800208d0
mov byte [rcx + 0x46], 0
mov rax, rcx
ret

Function at 0x1800208f0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 5
jb 0x180020900
mov byte [rcx + 5], 0
mov rax, rcx
ret

Function at 0x180020920
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 0x17
jb 0x180020930
mov byte [rcx + 0x17], 0
mov rax, rcx
ret

Function at 0x180020950
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 2
jb 0x180020960
mov byte [rcx + 2], 0
mov rax, rcx
ret

Function at 0x180020980
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 7
jb 0x180020990
mov byte [rcx + 7], 0
mov rax, rcx
ret

Function at 0x1800209b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 8
jb 0x1800209c0
mov byte [rcx + 8], 0
mov rax, rcx
ret

Function at 0x1800209e0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop dword [rax]
nop word [rax + rax]
movsxd r8, eax
lea edx, [rax + 0x55]
inc eax
xor byte [r8 + rcx], dl
cmp eax, 6
jb 0x1800209f0
mov byte [rcx + 6], 0
mov rax, rcx
ret
Function at 0x180025030
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r13, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x74]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800251fc
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea rax, [rbp - 0x64]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800250d0
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x30]
call fcn.180006110
nop
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov r8d, recvfrom
lea rdx, str.EasyAntiCheat
lea rcx, [rsp + 0x50]
call fcn.180006110
lea r9, [rsp + 0x50]
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x68]
cmp r15, 8
cmovae r9, rdi
lea rcx, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 8
cmovae rcx, rbx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
call fcn.180006e90
mov r12, rax
cmp r15, 8
jb 0x18002519a
lea rdx, [r15*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180025188
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800251ea
mov rcx, rdi
call fcn.180029c7c
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
cmp r14, 8
jb 0x1800251d1
lea rdx, [r14*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800251c9
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800251f1
mov rcx, rbx
call fcn.180029c7c
cmp r12, 0xffffffffffffffff
jne 0x1800251f8
lea rdx, [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1800250a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov esi, dword [rsp + 0x78]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180029c20
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180025240
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov qword [rbx + 0x18], 7
test eax, eax
jne 0x180025297
xor eax, eax
lea rdx, [0x18002e10c]
mov qword [rbx], rax
xor r8d, r8d
mov qword [rbx + 0x10], rax
mov word [rbx], ax
jmp 0x1800252c0
xor eax, eax
mov r8, 0xffffffffffffffff
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
lea rax, [rsp + 0x30]
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1800252b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180006110
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180029c20
add rsp, 0x250
pop rbx
ret

Function at 0x1800252f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18002537c
mov ecx, recvfrom
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x180025370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180025351
mov rdx, rax
mov rcx, rbx
call fcn.180006110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1800273e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180037020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0x238
xor edx, edx
mov esi, ecx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180027458
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18002744f
cmp esi, dword [rsp + 0x28]
je 0x18002747f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180027437
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180029c20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [rsp + 0x20]
mov ecx, 4
nop dword [rax]
lea rbx, [rbx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rbx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rbx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rbx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rbx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rbx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rbx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rbx - 0x20], xmm0
movups xmmword [rbx - 0x10], xmm1
sub rcx, 1
jne 0x180027490
movups xmm0, xmmword [rax]
mov rcx, qword [rax + 0x30]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x18002745a
Function at 0x1800298c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 2]
and rax, 0xff
ret

Function at 0x1800298d7
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
xor rax, rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0xbc]
and rax, 0x70
ret
Function at 0x14002fe40
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14002feb7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140087010], rax
jne 0x14002feba
mov rsi, rcx
call fcn.140038260
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140001950
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14002fed0
mov ecx, dword [0x140097ab0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400930f8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x128], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x1400384b0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14009a1c8], 0
jne 0x1400384ed
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400384e0
mov dword [rdi], eax
mov dword [0x14009a1d0], eax
mov qword [0x14009a1c8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14003a9d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rdx, rdx
je 0x14003aac8
cmp dword [0x14009a248], ecx
jg 0x14003aac8
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
movsxd r12, eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add r12, rsi
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rsi, r12
jae 0x14003aa69
mov dword [rsp + 0x2c], 0
mov r8d, r12d
sub r8d, esi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x2c]
test eax, eax
cmovne eax, ecx
je 0x14003aa69
add rsi, rax
test ecx, ecx
jne 0x14003aa2f
test edi, edi
je 0x14003aac8
cmp byte [r12 - 1], 0xa
je 0x14003aac8
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
xor eax, eax
lea rdi, str._nl_
lea rbx, [rsp + 0x2c]
test rax, rax
jne 0x14003aac8
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
mov r9, rbx
call r15
mov ecx, dword [rsp + 0x2c]
test eax, eax
cmovne eax, ecx
je 0x14003aac8
test ecx, ecx
jne 0x14003aa91
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003cba0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14003c6ec
Capabilities:
Parse pe header

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

Function at 0x14003d174
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14003d1ec
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14003d1ec
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14003d1ec
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14003d1e0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14003d1fe
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14003d1ce
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14003d1ee
Function at 0x140047018
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 0x14004704f
call fcn.140049e18
mov dword [rax], 0x16
call fcn.140057864
xor eax, eax
jmp 0x1400470dd
mov rdx, r9
mov rcx, r8
call fcn.140047100
mov rbx, rax
test rax, rax
je 0x1400470da
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140047170]
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 0x1400470c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140049e58
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400470ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400470bd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003bee0
jmp 0x1400470da
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400470d7
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 0x14004738c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004738c
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 0x1400473fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400473fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400473fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400473fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400473fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400473fb
cmp dword [rcx + 0xf8], 0
je 0x1400473fb
mov ecx, ebx
call fcn.1400472c4
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.140047520
nop
cmp dword [rbp + 0x20], 0
je 0x140047449
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140047358
int3
Function at 0x14004b3ac
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, [0x140093fb0]
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 0x14004b403
cmp word [rdx], r13w
jne 0x14004b403
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004b408
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004b52d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004b54e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004b441
mov rdx, r9
mov word [rbx], cx
jmp 0x14004b468
cmp r9, r8
jae 0x14004b478
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 0x14004b422
jmp 0x14004b52d
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 0x14004b522
cmp dword [rsp + 0x80], esi
je 0x14004b522
lea r8, [0x140093fb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004b4fa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004b4ca
mov word [rbx], r13w
jmp 0x14004b52a
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 0x14004b4d7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004b52a
cmp word [rsp + 0x70], r13w
jne 0x14004b507
cmp rbx, r14
je 0x14004b4c4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005d6d0
cmp word [rsp + 0x70], r13w
je 0x14004b52d
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, [0x140093fb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004b527
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004b52d
Function at 0x1400518d0
Capabilities:
Parse pe header

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

Function at 0x14005ba38
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.1400554f4
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 0x14005bad9
cmp ebx, dword [rsp + 0x30]
je 0x14005bad2
test esi, esi
je 0x14005bad2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14005baad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14005baba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005ba97
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14005babe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14005badb
mov eax, 1
jmp 0x14005badb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005c9a8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005ca2f
mov rsi, rbx
cmp word [rax], bp
je 0x14005c9ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005c9d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005c9d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002a1a0
mov rdi, rax
test rax, rax
je 0x14005ca1c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140067200
mov rbp, rdi
xor ecx, ecx
call fcn.14003bee0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005f6b4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005f6ca
mov al, 1
jmp 0x14005f72a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005f6db
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005f728
mov ecx, dword [rcx + 0x18]
nop
call fcn.140049f6c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005f728
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005f728
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005f728
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005f72a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180008ba0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180008bc4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x180008c52
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180008c20
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180008c20
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180064fe0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180008c3d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180008c45
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180008be1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x180008d30
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180008c69
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180008c6b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180008c9d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180064fe0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180008d2d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008cd8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x180008d0e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18004eab4
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180008d2d
cmp rsi, rax
ja 0x180008ce1
test rsi, rsi
je 0x180008d2d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18004eab4
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret