joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1440de058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1440de1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1440de089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1440de06f
add dl, dl
jne 0x1440de096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1440de0f6
xor eax, eax
add dl, dl
jne 0x1440de0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1440de1ad
add dl, dl
jne 0x1440de0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1440de0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1440de0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1440de0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1440de0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1440de07e
mov eax, 1
add dl, dl
jne 0x1440de106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1440de113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1440de0fb
sub eax, ebx
mov ebx, 1
jne 0x1440de14c
mov ecx, 1
add dl, dl
jne 0x1440de12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1440de13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1440de123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1440de07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1440de168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1440de175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1440de15d
cmp eax, 0x7d00
jae 0x1440de19b
cmp eax, 0x500
jb 0x1440de196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1440de07e
cmp eax, 0x7f
ja 0x1440de19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1440de07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1440de1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1440de07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000ae50
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x240], rax
movdqa xmm0, xmmword [0x1400cde10]
lea rcx, [0x140122d60]
mov edx, 0x208
movdqa xmmword [0x140122d50], xmm0
call fcn.14002dab0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.1400a20f0
xor ebx, ebx
lea rdi, str.C:Program_FilesHuaweiwucswucsLogsproxy_
nop dword [rax + rax]
movzx eax, word [rbx + rdi]
cmp ax, word [0x140120118]
mov word [rsp + rbx + 0x30], ax
je 0x14000aecf
cmp ax, word [0x140120114]
jne 0x14000af65
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000aee0
mov ecx, dword [0x140120110]
cmp rax, rcx
jbe 0x14000af65
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000af65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000af65
lea rax, [rsp + 0x30]
mov ecx, 1
lea r9, str.INFO
mov qword [rsp + 0x20], rax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__dir:_ws_r_n
call fcn.14000afc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], eax
lea rdx, str.__s_____s___0x_lx__create_directory_failed_r_n
call fcn.14000afc0
add rbx, 2
cmp rbx, 0x58
jb 0x14000aeb0
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__ucs_proxy_log_init_r_n
call fcn.14000afc0
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400a0360
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x14000b420
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rdi
sub rsp, 0x6f0
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x250
call fcn.1400a20f0
lea rdx, [rsp + 0x70]
lea rcx, str.C:Program_FilesHuaweiwucswucsLogsproxy
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000b492
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WUCSProxy__find_first_file_failed__ErrorCode:_lu_n
call fcn.14000b790
mov edx, 0x2330000a
lea rcx, str._WUCSProxy__remove_invalid_file_failed__ErrorCode:_lx_n
call fcn.14000b790
jmp 0x14000b676
mov qword [rsp + 0x700], rbx
mov qword [rsp + 0x708], rsi
lea rsi, str.C:Program_FilesHuaweiwucswucsLogsproxy_
nop dword [rax]
movzx ecx, word [rsp + 0x9c]
cmp cx, word [0x1400cd85c]
movzx eax, word [rsp + 0x9e]
jne 0x14000b4d6
cmp ax, word [0x1400cd85e]
je 0x14000b647
cmp cx, word [0x1400cd860]
jne 0x14000b4fd
cmp ax, word [0x1400cd862]
jne 0x14000b4fd
movzx eax, word [rsp + 0xa0]
cmp ax, word [0x1400cd864]
je 0x14000b647
xor ebx, ebx
cmp dword [0x14012011c], ebx
jbe 0x14000b5d6
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x2c0]
mov r8d, 0x208
call fcn.1400a20f0
xor ecx, ecx
call fcn.1400a8d78
mov ecx, dword [0x140120120]
lea rdx, [rsp + 0x40]
imul ecx, ebx
sub rax, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.1400a8cd8
test eax, eax
jne 0x14000b68f
mov ecx, dword [rsp + 0x58]
lea r9, str.ucs_proxy_service__04lu__02lu__02lu.log
mov edx, dword [0x140120124]
inc ecx
add edx, dword [rsp + 0x5c]
mov r8, 0xffffffffffffffff
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x2c0]
mov dword [rsp + 0x20], edx
mov edx, 0x104
call fcn.14000b720
test eax, eax
js 0x14000b647
lea rax, [rsp + 0x2c0]
lea r8, [rsp + 0x9c]
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b5c4
add rax, 2
test ecx, ecx
jne 0x14000b5b0
test edx, edx
je 0x14000b647
inc ebx
cmp ebx, dword [0x14012011c]
jb 0x14000b510
xor edx, edx
lea rcx, [rsp + 0x4d0]
mov r8d, 0x208
call fcn.1400a20f0
lea rax, [rsp + 0x9c]
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, str._ws_ws
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x4d0]
call fcn.14000b720
test eax, eax
js 0x14000b647
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000b647
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._WUCSProxy__remove_file_failed__ErrorCode:_lu_n
mov edx, eax
call fcn.14000b790
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000b4b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x708]
mov rbx, qword [rsp + 0x700]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x6f0
pop rdi
ret
lea rcx, str._WUCS__localtime_s_failed__ErrorCode:_d_n
jmp 0x14000b640
Function at 0x14000bb80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x27b0]
mov eax, 0x28b0
call fcn.1400a0440
sub rsp, rax
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rbp + 0x27a0], rax
mov rsi, rcx
mov qword [rbp - 0x6c], 0x26600012
xor r14d, r14d
lea rcx, [rbp - 0x60]
xor edx, edx
mov dword [rbp - 0x70], r14d
mov r8d, 0x2800
mov dword [rbp - 0x64], r14d
call fcn.1400a20f0
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], r14d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x78], rax
mov r8d, 0x2810
mov dword [rsp + 0x30], r14d
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x34], r14d
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000bda4
mov qword [rsp + 0x28d8], rbx
mov qword [rsp + 0x28e0], rdi
cmp dword [rsp + 0x30], 0x2810
jne 0x14000bd94
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNamedPipeClientProcessId]
test al, al
je 0x14000bd6b
mov edi, dword [rsp + 0x70]
cmp dword [0x140122f88], edi
jne 0x14000bc76
mov eax, dword [0x140122f8c]
inc eax
cmp eax, dword [0x140120134]
mov dword [0x140122f8c], eax
jb 0x14000bcf7
mov dword [0x140122f8c], r14d
mov ecx, edi
call fcn.14004ab60
mov ebx, eax
test eax, eax
je 0x14000bcf1
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
mov ecx, 3
lea rdx, str.__s_____s___0x_lx__proxy_verify_pe_file_failed_r_n
call fcn.14000afc0
mov r8d, 0x1a
mov qword [rsp + 0x50], r14
lea rdx, str.alarm_sdk_pe_verify_failed
mov qword [rsp + 0x58], 0xf
lea rcx, [rsp + 0x40]
mov byte [rsp + 0x40], r14b
call fcn.1400046c0
mov r8d, dword [rsp + 0x70]
lea rax, [rsp + 0x40]
mov ecx, dword [rbp - 0x70]
mov r9d, ebx
mov edx, 1
mov qword [rsp + 0x20], rax
call fcn.14000a450
jmp 0x14000bd07
mov dword [0x140122f88], edi
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400053c0
mov ebx, eax
lea r9, [rsp + 0x34]
mov dword [rbp - 0x6c], ebx
mov r8d, 0x2810
mov qword [rsp + 0x20], r14
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000bd5c
cmp dword [rsp + 0x34], 0x2810
jne 0x14000bd5c
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r14
mov r8d, 0x2810
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000bc20
jmp 0x14000bd94
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.__s_____s___0x_lx__WriteFile_failed_r_n
jmp 0x14000bd78
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.__s_____s___0x_lx__Get_client_pid_failed_r_n
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
mov ecx, 3
call fcn.14000afc0
mov rbx, qword [rsp + 0x28d8]
mov rdi, qword [rsp + 0x28e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x27a0]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x28b0
pop r14
pop rsi
pop rbp
ret
Function at 0x14000c810
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__ucs_reg_change_start_monitor_start_r_n
call fcn.14000afc0
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], esi
xor ecx, ecx
lea edx, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140122fa0], rax
test rax, rax
jne 0x14000c86a
lea rdi, str.__s_____s___0x_lx__Error_in_create_thread_exit_event_r_n
jmp 0x14000c8ca
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140122fa8], rax
test rax, rax
jne 0x14000c891
lea rdi, str.__s_____s___0x_lx__Error_in_create_monitor_event_r_n
jmp 0x14000c8ca
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000c490]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140122f98], rax
test rax, rax
jne 0x14000c9b0
lea rdi, str.__s_____s___0x_lx__Error_in_create_monitor_thread_r_n
mov ebx, dword [0x140120158]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov rdx, rdi
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], eax
mov ecx, 3
call fcn.14000afc0
test ebx, ebx
je 0x14000c9cf
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__UcsRegChangeStopMonitor_r_n
call fcn.14000afc0
mov rcx, qword [0x140122fa0]
test rcx, rcx
je 0x14000c935
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x140122fa0]
mov rax, qword [0x140122f98]
test rax, rax
je 0x14000c96a
mov edx, 0x7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x140122f98]
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__UcsRegChangeStartMonitor_OK_r_n
call fcn.14000afc0
Function at 0x14000e6c0
Capabilities:
Create service

Disassembly:
sub rsp, 0x298
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [0x1400cd62b]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000e736
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov ecx, 3
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], eax
lea rdx, str.__s_____s___0x_lx__Cannot_install_service_r_n
call fcn.14000afc0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x298
ret
xor edx, edx
mov qword [rsp + 0x2a0], rbx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000e782
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__OpenSCManager_failed_r_n
lea ecx, [rbx + 3]
call fcn.14000afc0
jmp 0x14000e84e
xor eax, eax
mov qword [rsp + 0x290], rdi
mov qword [rsp + 0x60], rax
lea r8, str.WUCSProxy
mov qword [rsp + 0x58], rax
lea rdx, str.WUCSProxy
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rax
mov rcx, rbx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000e815
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CreateService_failed_r_n
lea ecx, [rdi + 3]
call fcn.14000afc0
jmp 0x14000e83d
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__Service_installed_successfully_r_n
call fcn.14000afc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x298
ret
Function at 0x14000ea90
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rcx
lea rsi, str.WUCSProxy
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000eb48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
lea r8, str._s_failed_with__d
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov edx, 0x50
call fcn.14000e2a0
xor ecx, ecx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], r9w
lea edx, [r9 - 1]
mov qword [rsp + 0x20], rcx
mov r9d, 0xc0020001
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400a0360
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000eb70
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
call fcn.14000ae50
mov rcx, qword [rbx + 8]
lea rdx, str.install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000ebbd
lea r9, str.INFO
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__proxy_service__tmain_error_r_n
lea ecx, [rax + 1]
call fcn.14000afc0
call fcn.14000e6c0
xor eax, eax
add rsp, 0x40
pop rbx
ret
lea rax, str.WUCSProxy
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, [0x14000e870]
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000ebfc
lea rcx, str.StartServiceCtrlDispatcher
call fcn.14000ea90
call fcn.1400492a0
test al, al
je 0x14000ec35
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__proxy_service_install_in_win7_64_os_r_n
call fcn.14000afc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__proxy_service__tmain_end_r_n
call fcn.14000afc0
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140011ae0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r13, qword [rsp + 0x80]
xor r14d, r14d
mov rdi, r8
mov r15, r9
mov r8, rdx
mov rbp, rcx
test r13, r13
jne 0x140011b24
mov qword [rdi], r14
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
movabs r9, 0xaaaaaaaaaaaaaaab
mov rax, r9
mul r13
mov rax, r14
shr rdx, 1
lea rcx, [rdx + rdx*2]
cmp r13, rcx
setne al
add rax, rdx
movabs rdx, 0x3fffffffffffffff
cmp rax, rdx
jbe 0x140011b6f
mov qword [rdi], 0xffffffffffffffff
mov eax, 0xffffffd6
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
lea rax, [rax*4 + 1]
cmp r8, rax
jb 0x140011cda
test rbp, rbp
je 0x140011cda
mov qword [rsp + 0x68], rbx
mov rax, r14
mov qword [rsp + 0x28], rsi
mov rbx, rbp
mov qword [rsp + 0x20], r12
test rcx, rcx
je 0x140011c4e
dec rcx
mov rax, r9
mul rcx
mov r12, rdx
shr r12, 1
inc r12
lea rax, [r12 + r12*2]
mov qword [rsp + 0x80], rax
nop word [rax + rax]
movzx edi, byte [r15]
movzx esi, byte [r15 + 1]
movzx ecx, dil
movzx ebp, byte [r15 + 2]
add r15, 3
shr cl, 2
call fcn.140017540
movzx ecx, sil
shl dil, 4
shr cl, 4
add cl, dil
mov byte [rbx], al
and cl, 0x3f
call fcn.140017540
movzx ecx, bpl
shl sil, 2
shr cl, 6
add cl, sil
mov byte [rbx + 1], al
and cl, 0x3f
call fcn.140017540
and bpl, 0x3f
mov byte [rbx + 2], al
movzx ecx, bpl
call fcn.140017540
mov byte [rbx + 3], al
add rbx, 4
sub r12, 1
jne 0x140011bd0
mov rdi, qword [rsp + 0x70]
mov rax, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x60]
cmp rax, r13
jae 0x140011cb0
movzx esi, byte [r15]
lea r12, [rax + 1]
cmp r12, r13
jae 0x140011c65
movzx r14d, byte [r15 + 1]
movzx ecx, sil
shr cl, 2
call fcn.140017540
mov ecx, r14d
shl sil, 4
shr ecx, 4
add cl, sil
mov byte [rbx], al
and cl, 0x3f
call fcn.140017540
mov byte [rbx + 1], al
cmp r12, r13
jae 0x140011ca3
and r14b, 0xf
shl r14b, 2
movzx ecx, r14b
call fcn.140017540
jmp 0x140011ca5
mov al, 0x3d
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
mov r12, qword [rsp + 0x20]
mov rax, rbx
mov rsi, qword [rsp + 0x28]
sub rax, rbp
mov qword [rdi], rax
xor eax, eax
mov byte [rbx], 0
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov qword [rdi], rax
mov eax, 0xffffffd6
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x1400177c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx r15d, byte [rcx + 1]
lea r14, [rdx - 0xb]
movzx eax, byte [rcx]
xor esi, esi
xor r10b, r10b
mov rbx, rdx
cmp r9, r14
mov rbp, r9
mov edx, 2
mov r13, r9
cmova rbp, r14
mov r11, rcx
xor r15d, 2
mov edi, esi
or r15d, eax
cmp rdx, rbx
jae 0x140017840
movzx ecx, byte [rdx + r11]
neg cl
or cl, byte [rdx + r11]
inc rdx
not cl
shr cl, 7
or r10b, cl
movzx eax, r10b
neg al
or al, r10b
not al
movzx eax, al
shr rax, 7
add rdi, rax
cmp rdx, rbx
jb 0x140017810
movzx ecx, r10b
lea rax, [rdi - 8]
shr rax, 0x3f
neg ecx
shr ecx, 0x1f
mov r10d, ebx
sub r10d, edi
dec ecx
sub r10d, 3
and ecx, 1
or ecx, eax
or r15d, ecx
mov ecx, inet_ntoa
mov edx, r15d
neg edx
or edx, r15d
shr edx, 0x1f
neg edx
mov eax, edx
mov edi, edx
not eax
not edi
and r10d, eax
mov eax, ebp
and eax, edx
and edx, 0x4100
or r10d, eax
mov rax, rbp
sub rax, r10
shr rax, 0x3f
mov r9d, eax
or eax, r15d
neg r9d
mov r8d, eax
neg r8d
shr r9d, 0x1f
or r8d, eax
neg r9d
and edi, r9d
shr r8d, 0x1f
and edi, 0x4400
neg r8d
or edi, edx
neg edi
mov dword [rsp + 0x60], edi
cmp rbx, rcx
jbe 0x14001798e
cmp r14, 0x40
jb 0x14001796f
movsx eax, r8b
and r14d, 0x3f
mov rdx, rbx
sub rdx, r14
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
pandn xmm2, xmmword [0x1400cf0c0]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [r11 + rcx]
movdqa xmm1, xmm2
pand xmm1, xmm0
movdqu xmmword [r11 + rcx], xmm1
movdqu xmm0, xmmword [r11 + rcx + 0x10]
movdqa xmm1, xmm2
pand xmm1, xmm0
movdqu xmmword [r11 + rcx + 0x10], xmm1
movdqu xmm0, xmmword [r11 + rcx + 0x20]
movdqa xmm1, xmm2
pand xmm1, xmm0
movdqu xmmword [r11 + rcx + 0x20], xmm1
movdqu xmm0, xmmword [r11 + rcx + 0x30]
movdqa xmm1, xmm2
pand xmm1, xmm0
movdqu xmmword [r11 + rcx + 0x30], xmm1
add rcx, 0x40
cmp rcx, rdx
jb 0x140017910
cmp rcx, rbx
jae 0x14001798e
mov rdx, rbx
lea rax, [rcx + r11]
sub rdx, rcx
not r8b
and byte [rax], r8b
lea rax, [rax + 1]
sub rdx, 1
jne 0x140017981
mov r14d, r9d
mov ecx, r9d
not r14d
mov eax, ebp
and r14, r10
and rcx, rax
sub r11, rbp
or r14, rcx
lea r12, [r11 + rbx]
test rbp, rbp
je 0x140017a30
lea r15, [rbp - 1]
nop word [rax + rax]
mov rax, rsi
sub rax, r14
shr rax, 0x3f
test r15, r15
je 0x140017a10
mov r11d, eax
mov r10, r12
neg r11d
mov rbx, r15
shr r11d, 0x1f
neg r11d
mov edi, r11d
not edi
nop word [rax + rax]
movzx ecx, byte [r10]
movzx r8d, byte [r10 + 1]
lea r10, [r10 + 1]
and r8d, edi
and ecx, r11d
or r8d, ecx
mov byte [r10 - 1], r8b
sub rbx, 1
jne 0x1400179f0
movzx ecx, byte [r12 + rbp - 1]
neg eax
shr eax, 0x1f
inc rsi
neg eax
and eax, ecx
mov byte [r12 + rbp - 1], al
cmp rsi, rbp
jb 0x1400179c0
mov edi, dword [rsp + 0x60]
test r13, r13
je 0x140017a52
mov rcx, qword [rsp + 0x70]
mov r8, rbp
mov rdx, r12
call fcn.1400a1c90
mov rcx, qword [rsp + 0x80]
mov qword [rcx], r14
jmp 0x140017a5d
mov rax, qword [rsp + 0x80]
mov qword [rax], r14
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ef80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xc0]
mov rbp, rdx
mov rbx, qword [rsp + 0xb0]
xor edx, edx
mov r15, qword [rsp + 0xd0]
mov rsi, rcx
mov r14, qword [rsp + 0xd8]
call fcn.14001f4d0
test eax, eax
jne 0x14001f147
mov r8, qword [rsp + 0xb8]
mov rdx, rbx
mov rcx, rsi
call fcn.14001fcb0
test eax, eax
jne 0x14001f147
lea rax, [rsp + 0x30]
mov r9, r14
mov qword [rsp + 0x28], rax
mov r8, rbp
mov rdx, r15
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call fcn.14001f760
test eax, eax
jne 0x14001f147
mov rbx, qword [rsp + 0xc8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call fcn.14001f220
test eax, eax
jne 0x14001f147
xor ecx, ecx
mov eax, ecx
test rbx, rbx
je 0x14001f145
cmp rbx, 8
jb 0x14001f101
mov rdx, rbx
lea rcx, [rsp + 0x38]
and rdx, 0xfffffffffffffff8
mov r8, rdi
sub r8, rcx
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax]
nop dword [rax + rax]
movd xmm2, dword [rdi + rax]
lea rcx, [r8 + rax]
movd xmm1, dword [rsp + rax + 0x38]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rsp + rax + 0x3c]
por xmm2, xmm4
punpcklbw xmm1, xmm0
movdqa xmm4, xmm2
punpcklwd xmm1, xmm0
movd xmm2, dword [rsp + rcx + 0x3c]
add rax, 8
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
pxor xmm2, xmm1
por xmm2, xmm3
movdqa xmm3, xmm2
cmp rax, rdx
jb 0x14001f080
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd ecx, xmm3
cmp rax, rbx
jae 0x14001f12f
lea rdx, [rsp + 0x38]
sub rdi, rdx
nop
lea r8, [rsp + 0x38]
add r8, rax
inc rax
movzx r9d, byte [rdi + r8]
movzx r8d, byte [r8]
xor r9d, r8d
or ecx, r9d
cmp rax, rbx
jb 0x14001f110
test ecx, ecx
je 0x14001f145
mov rdx, rbp
mov rcx, r14
call fcn.140023aa0
mov eax, 0xffffffee
jmp 0x14001f147
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret