joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051fd0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400e0410]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14005202e
cmp word [rdx], r12w
jne 0x14005202e
or byte [rax + r8*8 + 0x38], cl
jmp 0x140052034
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14005218f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14005216a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14005206d
mov rcx, r9
jmp 0x140052090
cmp r9, rdx
jae 0x1400520a7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140052051
jmp 0x14005218f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140052164
cmp dword [rsp + 0x80], edi
je 0x140052164
mov rdx, r14
lea r11, [0x1400e0410]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14005213d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140052110
mov word [rbx], r12w
jmp 0x14005218b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140052119
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14005218b
cmp word [rsp + 0x70], r12w
jne 0x14005214a
cmp rbx, rsi
je 0x14005210a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140052c5c
cmp word [rsp + 0x70], r12w
je 0x14005218f
mov word [rbx], r13w
jmp 0x14005218b
lea r11, [0x1400e0410]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140052187
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005218f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400575c4
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 0x1400575f4
xor eax, eax
jmp 0x1400576b7
mov rbp, rbx
cmp word [rax], si
je 0x140057619
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140057600
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400575fc
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.140055614
movsxd r14, eax
test eax, eax
jne 0x140057657
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400575ed
mov rcx, r14
call fcn.14004d940
mov rdi, rax
test rax, rax
jne 0x140057670
xor ecx, ecx
call fcn.14004d904
jmp 0x14005764c
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.140055614
test eax, eax
jne 0x1400576a1
mov rcx, rdi
call fcn.14004d904
jmp 0x1400576ab
xor ecx, ecx
call fcn.14004d904
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 0x1400576d4
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 0x14005775b
mov rsi, rbx
cmp word [rax], bp
je 0x14005771a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140057704
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140057700
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004d940
mov rdi, rax
test rax, rax
je 0x140057748
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140036f50
mov rbp, rdi
xor ecx, ecx
call fcn.14004d904
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 0x14005e878
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.14003b6bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005e902
cmp byte [rbp - 0x21], r15b
je 0x14005e8fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005e938
call fcn.14004ec20
test eax, eax
jne 0x14005e924
cmp byte [rbp - 0x21], r15b
je 0x14005e91c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005e938
cmp byte [rbp - 0x21], r15b
je 0x14005e935
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.1400479b4
test eax, eax
jne 0x14005e9d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003b6bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005e977
cmp byte [rbp - 0x21], r15b
je 0x14005e9ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005e9ac
call fcn.14004ec20
test eax, eax
jne 0x14005e998
cmp byte [rbp - 0x21], r15b
je 0x14005e991
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005e9ac
cmp byte [rbp - 0x21], r15b
je 0x14005e9a9
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.1400479b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005e9d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005e9db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005e9e9
mov rcx, rdi
call fcn.14004d904
cmp byte [rbp + 0x3f], r15b
je 0x14005e9f8
mov rcx, qword [rbp + 0x27]
call fcn.14004d904
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 0x14005ef04
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.140052c5c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140052c5c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005f054
cmp rax, 0xffffffffffffffff
je 0x14005f054
xor edi, edi
test rbp, rbp
jle 0x14005efff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004d88c
mov rbx, rax
test rax, rax
jne 0x14005ef8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005eff5
mov edx, 0x8000
mov ecx, r14d
call fcn.14004b70c
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.140051008
cmp eax, 0xffffffff
je 0x14005efd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005ef9c
mov edx, r15d
mov ecx, r14d
call fcn.14004b70c
jmp 0x14005eff5
cmp byte [rsi + 0x38], dil
je 0x14005efec
cmp dword [rsi + 0x34], 5
jne 0x14005efec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005eff5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004d904
jmp 0x14005f068
jns 0x14005f068
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140052c5c
cmp rax, 0xffffffffffffffff
jne 0x14005f020
cmp byte [rsi + 0x30], dil
je 0x14005f068
mov edi, dword [rsi + 0x2c]
jmp 0x14005f068
mov ecx, r14d
call fcn.1400584fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005f068
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 0x14005f068
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005f061
mov eax, dword [rsi + 0x2c]
jmp 0x14005f066
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140052c5c
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 0x14005fe10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005fe38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005fe38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400656b8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov rcx, rbx
mov dword [rbx + 0x50], 0x6a09e667
mov dword [rbx + 0x54], 0xbb67ae85
mov dword [rbx + 0x58], 0x3c6ef372
mov dword [rbx + 0x5c], 0xa54ff53a
mov dword [rbx + 0x60], 0x510e527f
mov dword [rbx + 0x64], 0x9b05688c
mov dword [rbx + 0x68], 0x1f83d9ab
mov dword [rbx + 0x6c], 0x5be0cd19
call fcn.140063910
mov rdx, rdi
mov rcx, rbx
call fcn.1400636a4
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140068ffc
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x140069038
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.140036c68
test rax, rax
jne 0x14006904f
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140069024
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x14006903f

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

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
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x1400690cd
movzx eax, word [r12 + rbx*2]
lea rdx, str.Main
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400690ee
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x1400690a2
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov rax, rbp
jmp 0x1400690cf
Function at 0x180001730
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov eax, dword [rcx]
xor r9d, r9d
mov rsi, r8
mov r11, rdx
mov r10, rcx
mov ebx, r9d
mov edi, r9d
test eax, eax
jle 0x18000177b
mov rdx, r8
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdi, [rdi + 1]
mov rcx, qword [r11]
lea rdx, [rdx + 4]
inc ebx
xor byte [rcx + rdi - 1], al
mov eax, dword [r10]
cmp ebx, eax
jl 0x180001760
mov r8d, r9d
mov rbx, r9
test eax, eax
jle 0x1800017ae
lea rdx, [rsi + 1]
nop dword [rax]
movzx eax, byte [rdx]
lea rbx, [rbx + 1]
mov rcx, qword [r11 + 8]
lea rdx, [rdx + 4]
inc r8d
xor byte [rcx + rbx - 1], al
mov eax, dword [r10]
cmp r8d, eax
jl 0x180001790
mov r8d, r9d
mov rbx, r9
test eax, eax
jle 0x1800017de
lea rdx, [rsi + 2]
nop dword [rax]
movzx eax, byte [rdx]
lea rbx, [rbx + 1]
mov rcx, qword [r11 + 0x10]
lea rdx, [rdx + 4]
inc r8d
xor byte [rcx + rbx - 1], al
mov eax, dword [r10]
cmp r8d, eax
jl 0x1800017c0
mov r8, r9
test eax, eax
jle 0x18000180c
lea rdx, [rsi + 3]
nop dword [rax]
movzx eax, byte [rdx]
lea r8, [r8 + 1]
mov rcx, qword [r11 + 0x18]
lea rdx, [rdx + 4]
inc r9d
xor byte [rcx + r8 - 1], al
cmp r9d, dword [r10]
jl 0x1800017f0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x180001820
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
movzx eax, byte [rdx]
lea r8, [0x18001d910]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r8]
mov byte [rdx], al
movzx eax, byte [rdx + 1]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r8]
mov byte [rdx + 1], al
movzx eax, byte [rdx + 2]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r8]
mov byte [rdx + 2], al
movzx eax, byte [rdx + 3]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + r8]
mov byte [rdx + 3], al
ret
Function at 0x180001b00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [rcx]
lea rdi, [0x18001d810]
xor r8d, r8d
mov r11, rdx
mov r10, rcx
mov r9d, r8d
mov ebx, r8d
test eax, eax
jle 0x180001b5b
nop word [rax + rax]
mov rdx, qword [r11]
lea rbx, [rbx + 1]
inc r9d
movzx eax, byte [rdx + rbx - 1]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [rdx + rbx - 1], al
mov eax, dword [r10]
cmp r9d, eax
jl 0x180001b30
mov r9d, r8d
mov rbx, r8
test eax, eax
jle 0x180001b9c
nop word [rax + rax]
mov rdx, qword [r11 + 8]
lea rbx, [rbx + 1]
inc r9d
movzx eax, byte [rdx + rbx - 1]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [rdx + rbx - 1], al
mov eax, dword [r10]
cmp r9d, eax
jl 0x180001b70
mov r9d, r8d
mov rbx, r8
test eax, eax
jle 0x180001bdc
nop word [rax + rax]
mov rdx, qword [r11 + 0x10]
lea rbx, [rbx + 1]
inc r9d
movzx eax, byte [rdx + rbx - 1]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [rdx + rbx - 1], al
mov eax, dword [r10]
cmp r9d, eax
jl 0x180001bb0
mov r9, r8
test eax, eax
jle 0x180001c0e
mov rdx, qword [r11 + 0x18]
lea r9, [r9 + 1]
inc r8d
movzx eax, byte [rdx + r9 - 1]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [rdx + r9 - 1], al
cmp r8d, dword [r10]
jl 0x180001be3
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180001c20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
movzx r11d, r8b
movzx r9d, dl
xor r10b, r10b
mov ebx, 8
nop word [rax + rax]
movzx eax, r10b
movzx edx, r11b
xor al, r9b
movzx ecx, al
and dl, 1
movzx eax, r10b
movzx edx, r9b
cmove ecx, eax
movzx eax, r9b
add al, al
shr r11b, 1
movzx r8d, al
movzx r10d, cl
movzx ecx, r8b
xor cl, 0x1b
test dl, dl
movzx r9d, cl
cmovns r9d, r8d
sub rbx, 1
jne 0x180001c40
mov rbx, qword [rsp + 8]
movzx eax, r10b
ret
Function at 0x180001c90
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
sub rsp, 0x68
mov rax, rcx
xor ecx, ecx
mov qword [rsp + 0x80], rcx
cmp dword [rax], ecx
jle 0x180001e5d
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x40], r15
mov qword [rsp + 0x88], rcx
nop dword [rax]
mov rax, qword [rdx + 8]
mov r13, qword [rdx]
add r13, rcx
movzx r14d, byte [rcx + rax]
mov rax, qword [rdx + 0x10]
movzx r12d, byte [r13]
movzx ebx, byte [rcx + rax]
mov rax, qword [rdx + 0x18]
movzx r8d, bl
mov dl, 0xd
movzx ebp, byte [rcx + rax]
call fcn.180001c20
movzx r8d, bpl
mov dl, 9
movzx r15d, al
call fcn.180001c20
movzx r8d, r14b
mov dl, 0xb
xor r15b, al
call fcn.180001c20
movzx r8d, r12b
mov dl, 0xe
xor r15b, al
call fcn.180001c20
movzx r8d, bl
mov dl, 0xb
xor r15b, al
call fcn.180001c20
movzx r8d, bpl
mov dl, 0xd
movzx esi, al
call fcn.180001c20
movzx r8d, r14b
mov dl, 0xe
xor sil, al
call fcn.180001c20
movzx r8d, r12b
mov dl, 9
xor sil, al
call fcn.180001c20
movzx r8d, bl
mov dl, 0xe
xor sil, al
call fcn.180001c20
movzx r8d, bpl
mov dl, 0xb
movzx edi, al
call fcn.180001c20
movzx r8d, r14b
mov dl, 9
xor dil, al
call fcn.180001c20
movzx r8d, r12b
mov dl, 0xd
xor dil, al
call fcn.180001c20
movzx r8d, bl
mov dl, 9
xor dil, al
call fcn.180001c20
movzx r8d, bpl
mov dl, 0xe
movzx ebx, al
call fcn.180001c20
movzx r8d, r14b
mov dl, 0xd
xor bl, al
call fcn.180001c20
movzx r8d, r12b
mov dl, 0xb
xor bl, al
call fcn.180001c20
mov rdx, qword [rsp + 0x78]
xor bl, al
mov rcx, qword [rsp + 0x88]
mov byte [r13], r15b
mov rax, qword [rdx + 8]
mov byte [rcx + rax], sil
mov rax, qword [rdx + 0x10]
mov byte [rcx + rax], dil
mov rax, qword [rdx + 0x18]
mov r8, qword [rsp + 0x70]
mov byte [rcx + rax], bl
inc rcx
mov rax, qword [rsp + 0x80]
inc eax
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x80], rax
cmp eax, dword [r8]
jl 0x180001ce0
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x180001000
Capabilities:
Get routing table

Disassembly:
push rbx
push rbp
sub rsp, 0x1c8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rbx + 0x3c]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x180001210
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x1e8], rdi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x180001098
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x18000120c
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbp
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x1800011f8
cmp dword [rbp], ebx
mov qword [rsp + 0x1f0], r12
mov r12d, ebx
jle 0x1800011b8
mov qword [rsp + 0x1e0], rsi
mov qword [rsp + 0x1c0], r13
lea r13, [rbp + 8]
nop dword [rax + rax]
mov ecx, dword [r13 - 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [r13]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0xb0]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [r13 + 8]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x130]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
lea rsi, [rsp + 0x30]
lea rdi, str.0.0.0.0
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x18000116a
lea rsi, [rsp + 0xb0]
lea rdi, str.0.0.0.0
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
je 0x18000117d
inc r12d
add r13, 0x38
cmp r12d, dword [rbp]
jl 0x1800010e0
jmp 0x1800011a8
lea rcx, [0x180008958]
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x130]
inc rbx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x180001190
mov ebx, 1
mov rsi, qword [rsp + 0x1e0]
mov r13, qword [rsp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x1f0]
mov eax, ebx
mov rdi, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800046d0
add rsp, 0x1c8
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
jmp 0x1800011d6
mov eax, ebx
jmp 0x1800011de
Function at 0x180001220
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test edx, edx
je 0x1800012e3
cmp edx, 1
jne 0x180001303
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180001303
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x180008918], rax
test rax, rax
je 0x180001303
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
call section..text
test eax, eax
jne 0x1800012a6
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
call section..text
test eax, eax
je 0x180001292
lea rcx, [0x180008980]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [0x180008958]
lea rdx, str._c_route_add_0.0.0.0_mask_0.0.0.0__s
lea rcx, [0x180008980]
call qword [sym.imp.MSVCR90.dll_sprintf]
call fcn.180002150
mov byte [str.SOFTWARE_test], 0
jmp 0x180001303
mov rcx, qword [0x180008918]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1800087f8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800046d0
add rsp, 0x1d8
ret

Function at 0x180001320
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea rdx, str.Themes
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x1d
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x180001397
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x1800013b0
cmp dword [rsp + 0x24], 1
je 0x1800013b8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
jne 0x180001373
jmp 0x1800013b8
mov dword [rsp + 0x24], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret