joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003200c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400162a0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032096
cmp byte [rbp - 0x21], r15b
je 0x140032091
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400320cc
call fcn.140024f44
test eax, eax
jne 0x1400320b8
cmp byte [rbp - 0x21], r15b
je 0x1400320b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400320cc
cmp byte [rbp - 0x21], r15b
je 0x1400320c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400168d8
test eax, eax
jne 0x14003216c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400162a0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003210b
cmp byte [rbp - 0x21], r15b
je 0x140032140
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140032140
call fcn.140024f44
test eax, eax
jne 0x14003212c
cmp byte [rbp - 0x21], r15b
je 0x140032125
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140032140
cmp byte [rbp - 0x21], r15b
je 0x14003213d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400168d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003216c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003216f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003217d
mov rcx, rdi
call fcn.14001fedc
cmp byte [rbp + 0x3f], r15b
je 0x14003218c
mov rcx, qword [rbp + 0x27]
call fcn.14001fedc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140032d6c
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.140028148
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140028148
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140032ebc
cmp rax, 0xffffffffffffffff
je 0x140032ebc
xor edi, edi
test rbp, rbp
jle 0x140032e67
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400229d4
mov rbx, rax
test rax, rax
jne 0x140032df4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140032e5d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001dd10
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.140023640
cmp eax, 0xffffffff
je 0x140032e3d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140032e04
mov edx, r15d
mov ecx, r14d
call fcn.14001dd10
jmp 0x140032e5d
cmp byte [rsi + 0x38], dil
je 0x140032e54
cmp dword [rsi + 0x34], 5
jne 0x140032e54
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140032e5d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001fedc
jmp 0x140032ed0
jns 0x140032ed0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140028148
cmp rax, 0xffffffffffffffff
jne 0x140032e88
cmp byte [rsi + 0x30], dil
je 0x140032ed0
mov edi, dword [rsi + 0x2c]
jmp 0x140032ed0
mov ecx, r14d
call fcn.14002bcec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140032ed0
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 0x140032ed0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140032ec9
mov eax, dword [rsi + 0x2c]
jmp 0x140032ece
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140028148
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 0x140033d10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140033d38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140033d38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001e40
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm7
movaps xmm6, xmm1
movaps xmmword [rsp + 0x40], xmm8
movaps xmm7, xmm0
movaps xmmword [rsp + 0x30], xmm9
movaps xmm8, xmm2
movaps xmm9, xmm3
call qword [sym.imp.USER32.dll_GetCursorPos]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm4, dword [rsp + 0x20]
cvtdq2ps xmm4, xmm4
comiss xmm4, xmm7
jb 0x180001f3c
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x20]
addss xmm7, xmm8
cvtdq2ps xmm0, xmm0
comiss xmm7, xmm0
jb 0x180001f3c
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rsp + 0x20]
shr rax, 0x20
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm6
jb 0x180001f3c
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rsp + 0x20]
addss xmm6, xmm9
shr rax, 0x20
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm6, xmm0
jb 0x180001f3c
mov al, 1
jmp 0x180001f3e
xor al, al
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x78
ret
Function at 0x180002a50
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x90
movaps xmmword [rax - 0x18], xmm6
mov rdi, r9
movaps xmmword [rax - 0x28], xmm7
movaps xmm6, xmm0
addss xmm6, dword [0x18000a1fc]
movaps xmmword [rax - 0x38], xmm8
mov rbx, r8
movaps xmmword [rax - 0x48], xmm9
movaps xmm8, xmm0
movss xmm9, dword [0x18000a148]
movaps xmm7, xmm1
movaps xmmword [rax - 0x58], xmm10
movaps xmm3, xmm9
movss xmm10, dword [0x18000a1a4]
movaps xmm0, xmm6
movaps xmm2, xmm10
call fcn.180001e40
test al, al
je 0x180002b12
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt eax, 0xf
jae 0x180002b0b
cmp byte [0x18000c378], 0
je 0x180002aed
cmp dword [0x18000c37c], 0
je 0x180002b12
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x18000c37c]
add ecx, 0x7d0
cmp ecx, eax
ja 0x180002b12
mov byte [0x18000c378], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x18000c37c], eax
xor eax, eax
cmp dword [rbx], eax
sete al
mov dword [rbx], eax
jmp 0x180002b12
mov byte [0x18000c378], 0
mov ecx, dword [rbx]
test ecx, ecx
je 0x180002b76
cmp ecx, 1
jne 0x180002c3b
movabs rax, qword [0x141e4f8e0]
mov rcx, qword [rax + 0xc8]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x70]
call rdx
mov dword [rsp + 0x30], 0
movaps xmm3, xmm10
mov dword [rsp + 0x28], 0xff000000
movaps xmm2, xmm7
movaps xmm1, xmm6
movss dword [rsp + 0x20], xmm9
mov rcx, qword [rax + 0x530]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov dword [rsp + 0xa0], 0xff008c00
jmp 0x180002bc9
movabs rax, qword [0x141e4f8e0]
mov rcx, qword [rax + 0xc8]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x70]
call rdx
mov dword [rsp + 0x30], 0
movaps xmm3, xmm10
mov dword [rsp + 0x28], 0xff000000
movaps xmm2, xmm7
movaps xmm1, xmm6
movss dword [rsp + 0x20], xmm9
mov rcx, qword [rax + 0x530]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov dword [rsp + 0xa0], 0xff00008c
movabs rax, qword [0x141e4f8e0]
mov rcx, qword [rax + 0xc8]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x70]
call rdx
addss xmm8, dword [0x18000a170]
movss xmm3, dword [0x18000a134]
movaps xmm2, xmm7
addss xmm2, dword [0x18000a12c]
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x30], rdi
addss xmm8, dword [0x18000a1fc]
mov byte [rsp + 0x28], 0xc
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax + 0x530]
movd r9d, xmm3
movaps xmm1, xmm8
movd r8d, xmm2
movd edx, xmm1
call fcn.180001ca0
movabs rax, qword [0x141e4f8e0]
mov rcx, qword [rax + 0xc8]
mov rax, qword [rcx]
mov rdx, qword [rax + 0x70]
call rdx
movss xmm0, dword [0x18000a10c]
movaps xmm3, xmm10
movss dword [rsp + 0x28], xmm0
movaps xmm2, xmm7
movaps xmm1, xmm6
movss dword [rsp + 0x20], xmm9
mov rcx, qword [rax + 0x530]
call fcn.180001b80
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop rdi
ret
Function at 0x1400024f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002518
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000253e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002540
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002599
test ecx, ecx
jle 0x140002579
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002599
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002599
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400025c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400025e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400025f8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002614
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002616
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002652
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400026ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000268d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400026ce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400026ee
cmp rbx, rax
ja 0x1400026a0
test rbx, rbx
je 0x1400026ee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002b20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002b4d
xor eax, eax
jmp 0x140002cb9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002b87
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002cb9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002cac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002bca
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002bf5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cb1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c64
sub eax, 1
je 0x140002c64
cmp eax, 2
jne 0x140002cac
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cb1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002c92
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002cac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002cb1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004d80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003850
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003923
cmp byte [rcx + 0x71], 0
je 0x140003923
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000391f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400038e4
sub eax, 1
je 0x1400038e8
cmp eax, 2
jne 0x14000391f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004d80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003916
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000391f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400038cc
xor al, al
jmp 0x1400038cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004d80
add rsp, 0x60
pop rbx
ret

Function at 0x140004bec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140004c70
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140007550]
cmp byte [rcx + rax], 0
je 0x140004c70
dec r8
sub rdx, 1
jne 0x140004c56
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140005840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000588a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000588a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000588a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000588a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000588a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000588c
xor al, al
add rsp, 0x28
ret
Function at 0x180004788
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 0x1800047f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800047f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800047f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800047f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800047f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800047f7
cmp dword [rcx + 0xf8], 0
je 0x1800047f7
mov ecx, ebx
call fcn.1800048a8
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.180004684
nop
cmp dword [rbp + 0x20], 0
je 0x180004845
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180004850
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180004788
Function at 0x180007dac
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 0x180007ddc
xor eax, eax
jmp 0x180007e9f
mov rbp, rbx
cmp word [rax], si
je 0x180007e01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180007de8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180007de4
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.180007ccc
movsxd r14, eax
test eax, eax
jne 0x180007e3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180007dd5
mov rcx, r14
call fcn.18000903c
mov rdi, rax
test rax, rax
jne 0x180007e58
xor ecx, ecx
call fcn.180006304
jmp 0x180007e34
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.180007ccc
test eax, eax
jne 0x180007e89
mov rcx, rdi
call fcn.180006304
jmp 0x180007e93
xor ecx, ecx
call fcn.180006304
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 0x18000d5f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000d618
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000d618
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140016366
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x14001e620
push rbp
push rsi
push rdi
sub rsp, 0x470
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14005b040]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x140065138]
call fcn.140017144
mov edx, 0x58
lea rcx, [rbp + 0x10]
call fcn.140017158
lea rcx, [rbp + 0x10]
call fcn.140016541
nop
mov edx, 0x48
lea rcx, [rbp + 0x90]
call fcn.140016d5c
lea rcx, [rbp + 0x90]
call fcn.140016f28
nop
mov edx, 0x20
lea rcx, [rbp + 0xf8]
call fcn.1400160e6
lea rcx, [rbp + 0x2b4]
call fcn.14001682a
mov qword [rbp + 0x418], rax
mov byte [rbp + 0x3e8], 0x21
mov byte [rbp + 0x3e9], 0x18
mov byte [rbp + 0x3ea], 0x3a
mov byte [rbp + 0x3eb], 0x35
mov byte [rbp + 0x3ec], 0x47
mov byte [rbp + 0x3ed], 0x4c
mov byte [rbp + 0x3ee], 0x42
mov byte [rbp + 0x3ef], 0x4d
mov byte [rbp + 0x3f0], 0x55
mov byte [rbp + 0x3f1], 0x51
mov byte [rbp + 0x3f2], 0x3a
mov byte [rbp + 0x3f3], 0x31
mov byte [rbp + 0x3f4], 0x57
mov byte [rbp + 0x3f5], 0x51
mov byte [rbp + 0x3f6], 0x52
mov byte [rbp + 0x3f7], 0x43
mov byte [rbp + 0x3f8], 0x4b
mov byte [rbp + 0x3f9], send
mov byte [rbp + 0x3fa], reloc.WS2_32.dll_recv
mov byte [rbp + 0x3fb], 0x3a
mov byte [rbp + 0x3fc], 0x51
mov byte [rbp + 0x3fd], 0x54
mov byte [rbp + 0x3fe], 0x41
mov byte [rbp + 0x3ff], 0x46
mov byte [rbp + 0x400], 0x4d
mov byte [rbp + 0x401], 0x51
mov byte [rbp + 0x402], 0x52
mov byte [rbp + 0x403], recv
mov byte [rbp + 0x404], 0x43
mov byte [rbp + 0x405], 0x56
mov byte [rbp + 0x406], 0x43
lea rax, [rbp + 0x407]
mov r8, rax
lea rdx, [rbp + 0x3e8]
lea rcx, [rbp + 0x2d8]
call fcn.140016771
lea rcx, [rbp + 0x308]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x3c0]
lea rcx, [rbp + 0x308]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rbp + 0x418]
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp + 0xf8]
call fcn.140016d7f
nop
lea rdx, [rbp + 0x338]
lea rcx, [rbp + 0x90]
call fcn.140016ef1
mov qword [rbp + 0x418], rax
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x420], rax
mov rax, qword [rbp + 0x420]
mov qword [rbp + 0x428], rax
mov r8d, 0xde
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0x378]
call fcn.140016fd7
mov qword [rbp + 0x430], rax
mov rax, qword [rbp + 0x430]
mov qword [rbp + 0x438], rax
mov rax, qword [rbp + 0x438]
mov qword [rbp + 0x440], rax
mov r8, qword [rbp + 0x428]
mov rdx, qword [rbp + 0x440]
lea rcx, [rbp + 0x10]
call fcn.1400161a4
nop
lea rcx, [rbp + 0x378]
call fcn.14001630c
nop
lea rcx, [rbp + 0x338]
call fcn.140016528
nop
lea rcx, [rbp + 0xf8]
call fcn.140016528
nop
lea rcx, [rbp + 0x90]
call fcn.140016177
nop
lea rcx, [rbp + 0x10]
call fcn.1400161b3
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.140016e4c
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.14001687a
lea rsp, [rbp + 0x450]
pop rdi
pop rsi
pop rbp
ret