joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e5c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400cba70]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003e7f3
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14003e7f3
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call fcn.140071300
mov r8, qword [0x1400cba70]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14003e693
movsx rdx, word [r8 + 0x6338]
lea rax, [r8 + 0x633c]
mov r9d, dword [r8 + 0x4098]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14003e688
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6338], cx
movsx rax, cx
lea rax, [rax*8 + 0x633c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6330]
test rdi, rdi
je 0x14003e6b0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14003e6b3
mov rdi, rbx
or dword [rsi + 0xc], 0xc06
lea rax, [0x1400b8d78]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov byte [rdi + 0x30], 1
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14003e6fd
mov rbp, qword [r8 + 0x98]
jmp 0x14003e700
mov rbp, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbp + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14003e72b
mov dword [rbp + 0x2c], ebx
mov rax, qword [0x1400cba70]
mov rcx, qword [rax + 0x4c80]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x50], rax
mov qword [rdx + 0x48], rax
test dword [rsi + 8], 0x400
je 0x14003e755
call fcn.1400417c0
lea rax, str.xinput1_4.dll
mov byte [rdi + 0x32], 1
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003e7b3
inc rbx
cmp rbx, 5
jl 0x14003e795
jmp 0x14003e7df
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14003e7f5
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005f9a0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140041bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400cba70]
mov rcx, qword [rax + 0x5000]
mov r9, qword [rax + 0x4140]
movups xmm0, xmmword [r9 + 0x278]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x278], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2e0]
add rsp, 0x38
jmp fcn.140037830

Function at 0x140041cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400cba70]
mov rcx, qword [rax + 0x5000]
mov r10, qword [rax + 0x4140]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2e0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x278], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2e0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2e0]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.140037830
Function at 0x14005f050
Capabilities:
List tcp connections and listeners

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov dword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov r9d, 2
mov dword [rsp + 0x20], 5
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
mov ecx, dword [rsp + 0x30]
call fcn.140071300
mov r14, rax
test rax, rax
je 0x14005f2d0
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x30]
mov r9d, 2
mov dword [rsp + 0x20], 5
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
test eax, eax
jne 0x14005f2d0
xorps xmm0, xmm0
lea rcx, [rsp + 0x38]
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
call fcn.14005f300
mov r15d, dword [r14]
xor esi, esi
mov rbp, qword [rsp + 0x38]
movabs rdi, 0x6666666666666667
test r15d, r15d
je 0x14005f26c
mov rcx, qword [rsp + 0x40]
mov rax, rdi
sub rcx, rbp
imul rcx
mov r11, rdx
sar r11, 4
mov rax, r11
shr rax, 0x3f
add r11, rax
nop dword [rax]
nop word [rax + rax]
xor r10d, r10d
lea rcx, [rsi + rsi*2]
test r11, r11
je 0x14005f257
mov edi, dword [r14 + rcx*8 + 0x18]
lea r9, [rbp + 0x10]
nop dword [rax]
cmp edi, dword [r9 + 0x10]
jne 0x14005f247
cmp qword [r9 + 8], 7
lea rax, [r9 - 0x10]
jbe 0x14005f188
mov rax, qword [rax]
cmp qword [rbx + 0x18], 7
mov r8, rbx
mov rdx, qword [rbx + 0x10]
jbe 0x14005f199
mov r8, qword [rbx]
cmp rdx, qword [r9]
jne 0x14005f247
test rdx, rdx
je 0x14005f1c8
sub r8, rax
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x14005f247
add rax, 2
sub rdx, 1
jne 0x14005f1b0
lea r8, [r10 + r10*4]
mov ebx, dword [rbp + r8*8 + 0x20]
test rbp, rbp
je 0x14005f240
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.14005f5b0
mov r9, qword [rsp + 0x38]
movabs rax, 0x6666666666666667
mov rcx, qword [rsp + 0x48]
mov r8, r9
sub rcx, r9
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
cmp rdx, 0x1000
jb 0x14005f238
mov r9, qword [r9 - 8]
add rdx, 0x27
sub r8, r9
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x14005f2f9
mov rcx, r9
call fcn.140060054
mov eax, ebx
jmp 0x14005f2d2
inc r10
add r9, 0x28
cmp r10, r11
jb 0x14005f170
inc esi
cmp esi, r15d
jb 0x14005f150
movabs rdi, 0x6666666666666667
test rbp, rbp
je 0x14005f2d0
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.14005f5b0
mov r8, qword [rsp + 0x38]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
sub rcx, r8
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r8
lea rdx, [rdx + rdx*4]
shl rdx, 3
cmp rdx, 0x1000
jb 0x14005f2c8
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f2f9
mov rcx, r8
call fcn.140060054
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005f9a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400716ac
int3
Function at 0x14005f300
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r14d, r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x20], 1
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14005f4ef
xor edx, edx
mov r8d, 0x234
lea rcx, [rbp - 0x6c]
call fcn.1400873a0
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14005f4e5
lea rax, [rsp + 0x28]
mov qword [rsp + 0x78], rax
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x44]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14005f3d0
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x28]
call fcn.14004c290
mov edi, dword [rbp - 0x68]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14004d5b0
mov dword [rsp + 0x68], edi
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x14005f441
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f43c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f519
call fcn.140060054
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], r14w
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14005f485
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
mov eax, 7
mov word [rsp + 0x48], r14w
mov dword [rdx + 0x20], edi
add qword [rbx + 8], 0x28
jmp 0x14005f497
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.14005f640
mov rax, qword [rsp + 0x60]
cmp rax, 7
jbe 0x14005f4d0
lea rdx, [rax*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f4cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f519
call fcn.140060054
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14005f3b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.14005f9a0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400716ac
nop
int3

Function at 0x14006081c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140060866
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140060866
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140060866
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140060866
cmp dword [rcx + 0x84], 0xe
jbe 0x140060866
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140060868
xor al, al
add rsp, 0x28
ret
Function at 0x140060ab0
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 0x140060aea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140060aef
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 0x140060b38
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008a7d0]
cmp byte [rcx + rax], 0
je 0x140060b38
dec r8
sub rdx, 1
jne 0x140060b1e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400674d4
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.1400856e0
sub rsp, rax
mov rax, qword [0x1400c9040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14007604c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140067523
mov rax, rbp
jmp 0x14006762b
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 + 0xcb2f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400762dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xcb2f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140067627
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 0x140067627
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400762dc
test rax, rax
js 0x140067627
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140067627
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140067619
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140067619
cmp byte [rcx], 0xd
jne 0x1400675ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006760e
cmp byte [rcx + 1], 0xa
jne 0x14006760e
inc rcx
jmp 0x14006760e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc9430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400675e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006762b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005f9a0
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 0x140071a40
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140071aaf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140071aaf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140071aaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140071aaf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140071aaf
cmp dword [rcx + 0x84], 0xe
jbe 0x140071aaf
cmp dword [rcx + 0xf8], 0
je 0x140071aaf
mov ecx, ebx
call fcn.140071b60
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.14007193c
nop
cmp dword [rbp + 0x20], 0
je 0x140071afd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140071b08
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140071a40
Function at 0x140071c44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140071a40

Function at 0x140076a60
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, [0x1400cb2f0]
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 0x140076ab7
cmp word [rdx], r13w
jne 0x140076ab7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140076abc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140076be1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140076c02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140076af5
mov rdx, r9
mov word [rbx], cx
jmp 0x140076b1c
cmp r9, r8
jae 0x140076b2c
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 0x140076ad6
jmp 0x140076be1
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 0x140076bd6
cmp dword [rsp + 0x80], esi
je 0x140076bd6
lea r8, [0x1400cb2f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140076bae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140076b7e
mov word [rbx], r13w
jmp 0x140076bde
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 0x140076b8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140076bde
cmp word [rsp + 0x70], r13w
jne 0x140076bbb
cmp rbx, r14
je 0x140076b78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400762e4
cmp word [rsp + 0x70], r13w
je 0x140076be1
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, [0x1400cb2f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140076bdb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140076be1
Function at 0x14007a8fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007a912
mov al, 1
jmp 0x14007a972
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007a923
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007a970
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007d3ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007a970
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007a970
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007a970
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007a972
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007c880
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 0x14007c907
mov rsi, rbx
cmp word [rax], bp
je 0x14007c8c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14007c8b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007c8ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140079380
mov rdi, rax
test rax, rax
je 0x14007c8f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140087760
mov rbp, rdi
xor ecx, ecx
call fcn.140077744
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 0x14007fad0
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.140076700
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 0x14007fb71
cmp ebx, dword [rsp + 0x30]
je 0x14007fb6a
test esi, esi
je 0x14007fb6a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007fb45
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007fb52
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007fb2f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007fb56
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007fb73
mov eax, 1
jmp 0x14007fb73
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140084b20
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400762e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400762e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140084c70
cmp rax, 0xffffffffffffffff
je 0x140084c70
xor edi, edi
test rbp, rbp
jle 0x140084c1b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400776cc
mov rbx, rax
test rax, rax
jne 0x140084ba8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140084c11
mov edx, 0x8000
mov ecx, r14d
call fcn.140072a1c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140078c74
cmp eax, 0xffffffff
je 0x140084bf1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140084bb8
mov edx, r15d
mov ecx, r14d
call fcn.140072a1c
jmp 0x140084c11
cmp byte [rsi + 0x38], dil
je 0x140084c08
cmp dword [rsi + 0x34], 5
jne 0x140084c08
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140084c11
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140077744
jmp 0x140084c84
jns 0x140084c84
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400762e4
cmp rax, 0xffffffffffffffff
jne 0x140084c3c
cmp byte [rsi + 0x30], dil
je 0x140084c84
mov edi, dword [rsi + 0x2c]
jmp 0x140084c84
mov ecx, r14d
call fcn.14007d3ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140084c84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140084c84
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140084c7d
mov eax, dword [rsi + 0x2c]
jmp 0x140084c82
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400762e4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400857d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400857f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400857f8
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