joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001ee0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub rsp, 0x2c8
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xa0]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14003978c
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140038600
add rsp, 0x2c8
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x2d0], rbx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140001f76
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14003978c
jmp 0x14000208e
mov qword [rsp + 0x2d8], rsi
xor esi, esi
lea rax, str.LocalSystem
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rax
lea rax, [0x140058760]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0xa0]
lea r9d, [rsi + 4]
lea r8, str.Catalog_Watch_Service
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea rdx, [0x140058798]
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x2c0], rdi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000200d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14003978c
jmp 0x140002067
call fcn.140001e30
mov ecx, 0x320
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001d70
mov ecx, 0x320
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.CatalogWatcher
lea rcx, [rsp + 0x70]
mov r8d, reloc.WS2_32.dll_ntohl
mov qword [rsp + 0x88], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x80], rsi
mov byte [rsp + 0x70], sil
call fcn.140002550
lea rcx, [rsp + 0x70]
call fcn.1400019f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x2d8]
test rdi, rdi
je 0x140002086
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140038600
add rsp, 0x2c8
ret
Function at 0x1400020b0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002117
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14003978c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140038600
add rsp, 0x50
pop rdi
ret
lea rdx, [0x140058798]
mov r8d, 0x10024
mov rcx, rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140002153
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14003978c
jmp 0x14000222b
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400021f5
lea rdx, [0x140058798]
lea rcx, str.Stopping__s.
call fcn.14003978c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1400021d2
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x1400021d6
lea rcx, [0x140058d94]
call fcn.14003978c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400021a0
mov eax, dword [rsp + 0x24]
lea rdx, [0x140058798]
lea rcx, [0x140058d98]
cmp eax, 1
je 0x1400021f0
lea rcx, str._n_s_failed_to_stop._n
call fcn.14003978c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140002218
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14003978c
jmp 0x14000222b
lea rdx, [0x140058798]
lea rcx, str._s_is_removed._n
call fcn.14003978c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140002242
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140038600
add rsp, 0x50
pop rdi
ret
Function at 0x140002bb0
Capabilities:
Resolve dns

Disassembly:
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
cmp qword [rcx + 0x18], 0x10
jb 0x140002bee
mov rcx, qword [rcx]
mov edx, 1
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rdx + 7]
call qword [sym.imp.DNSAPI.dll_DnsQuery_A]
test eax, eax
jne 0x140002c72
mov byte [rsp + 0x50], al
xor edx, edx
lea r8d, [rax + 0x7f]
lea rcx, [rsp + 0x51]
call fcn.140041ee0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x140058e84]
lea rcx, [rsp + 0x50]
call fcn.140004fb0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x50]
lea rcx, [0x140068840]
call fcn.140002550
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
cmp qword [rbx + 0x18], 0x10
jb 0x140002c8a
mov rcx, qword [rbx]
call fcn.140038850
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], 0
mov byte [rbx], 0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140038600
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rdi
ret

Function at 0x140002cc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor eax, eax
mov rdi, rdx
lea rdx, [rsp + 0x20]
lea r8d, [rax + 4]
xor r9d, r9d
mov rbx, rcx
mov byte [rsp + 0x20], 0
mov word [rsp + 0x21], ax
mov byte [rsp + 0x23], al
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140002d4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0xfe
mov byte [rsp + 0x30], 0
mov ebx, eax
call fcn.140041ee0
lea rdx, str.test__recvmessagewithlen_error__d
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.140004fe0
sub ebx, 0x274c
neg ebx
sbb eax, eax
jmp 0x140002d8f
cmp eax, 4
jne 0x140002d8c
mov r8d, dword [rsp + 0x20]
test r8d, r8d
jle 0x140002d8c
cmp r8d, 0x64
jge 0x140002d8c
cmp r8d, 0x1900
jge 0x140002d8c
xor r9d, r9d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140002d8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x274c
neg eax
sbb eax, eax
jmp 0x140002d8f
or eax, 0xffffffff
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140038600
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x14000b1e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000b1c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
add rsp, 0x48
ret

Function at 0x14000c0d0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x21f8
call fcn.14003a210
sub rsp, rax
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x21e0], rax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x2040]
mov cx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x14006c900], 0x94
lea rcx, [0x14006c900]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rax, str.3proxy_tiny_proxy_server_3proxy_0.9.3_stringtable_file
mov qword [0x14005f688], rax
lea rcx, [0x14006a300]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a400]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a3c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a380]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a2c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a340]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a880]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14006a180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14005f530]
call fcn.140019a40
call fcn.1400196e0
mov dword [rsp + 0x20], eax
mov eax, dword [0x14005f5c4]
inc eax
mov dword [0x14005f5c4], eax
cmp dword [rsp + 0x20], 0
je 0x14000c1ca
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
jmp 0x14000c1cf
call fcn.14000b7d0
xor eax, eax
mov rcx, qword [rsp + 0x21e0]
xor rcx, rsp
call fcn.140038600
add rsp, 0x21f8
ret
Function at 0x140013b30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
movzx eax, word [reloc.WS2_32.dll_accept]
mov word [rsp + 0x20], ax
mov dword [rsp + 0x24], 0
jmp 0x140013b5d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp dword [rsp + 0x24], eax
jge 0x140013b8a
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rcx + rax*2]
movzx ecx, word [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov word [rsp + 0x20], ax
jmp 0x140013b53
call fcn.14003be44
movzx ecx, word [rsp + 0x20]
add eax, ecx
mov ecx, eax
call fcn.14003be2c
call fcn.14003be44
mov dword [reloc.WS2_32.dll_accept], eax
call fcn.14003be44
add rsp, 0x38
ret

Function at 0x140014350
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [0x14005f6d0]
test eax, eax
je 0x1400143cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400143cf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400143cf
mov eax, reloc.WS2_32.dll_listen
jmp 0x14001441e
lea rax, [rsp + 0x28]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov eax, reloc.WS2_32.dll_recv
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0x78]
imul eax, eax, 0x3e8
mov r8d, eax
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [0x14005f6f8]
test eax, eax
jg 0x14001441c
mov eax, reloc.WS2_32.dll_listen
jmp 0x14001441e
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140038600
add rsp, 0x50
pop rdi
ret
Function at 0x140014870
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
cmp rax, 0xff
jbe 0x1400148b8
mov rax, qword [rsp + 0x60]
mov byte [rax + 0xff], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400148cc
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x140014930
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
cmp eax, 0x2e
jne 0x140014906
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 3
jle 0x140014904
jmp 0x140014930
jmp 0x1400148c2
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
cmp eax, 0x30
jl 0x14001492c
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
cmp eax, 0x39
jle 0x14001492e
jmp 0x140014930
jmp 0x1400148c2
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x140014969
cmp dword [rsp + 0x28], 3
jne 0x140014969
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.140014780
cmp eax, 4
jne 0x140014969
mov eax, dword [rsp + 0x30]
jmp 0x140014a50
mov rax, qword [0x140068960]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400149e2
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
mov ecx, 2
call qword [rsp + 0x20]
test eax, eax
je 0x14001499d
mov eax, dword [rsp + 0x30]
jmp 0x140014a50
cmp qword [0x14005f680], 0
je 0x1400149b3
mov rcx, qword [0x14005f680]
call fcn.14003a260
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
mov ecx, 2
call qword [rsp + 0x20]
test eax, eax
je 0x1400149d4
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x40], eax
jmp 0x1400149dc
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
jmp 0x140014a50
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140014a20
cmp qword [0x14005f680], 0
je 0x140014a20
mov rcx, qword [0x14005f680]
call fcn.14003a260
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140014a3c
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
jmp 0x140014a44
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
Function at 0x140015180
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [0x14005f59c], 1
mov eax, dword [0x14005f598]
add eax, 0x4000
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140014c90]
mov edx, eax
xor ecx, ecx
call fcn.14003c0e0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400151dd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x14005f59c], 0
je 0x1400151f3
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400151dd
cmp dword [0x140068968], 0
je 0x140015203
mov eax, 0x28
jmp 0x140015205
xor eax, eax
add rsp, 0x48
ret
Function at 0x140029dd0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x34], 0
jmp 0x140029df1
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov ecx, 1
mov dword [rsp + 0x3c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x3c]
shl eax, cl
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x68], eax
jl 0x140029e91
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x68]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140029e8c
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x10
lea rcx, reloc.WS2_32.dll_accept
mov rax, qword [rcx + rax + 8]
movsx eax, byte [rax]
cmp eax, 0x54
jne 0x140029e54
mov dword [rsp + 0x40], 6
jmp 0x140029e5c
mov dword [rsp + 0x40], 0xffff
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x10
lea rcx, reloc.WS2_32.dll_accept
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, dword [rcx + rax]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x140029de7
add rsp, 0x58
ret
Function at 0x140034f60
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4e0
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x4d8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x28]
mov rcx, qword [str.NTLMSSP]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov byte [rax + 8], 2
mov edx, 0x80
lea rcx, [rsp + 0x450]
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rsp + 0x45f], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x450]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
shl eax, 1
mov dword [rsp + 0x440], eax
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rsp + 0x440]
mov byte [rax + 0xc], cl
mov rax, qword [rsp + 0x28]
movzx ecx, byte [rsp + 0x440]
mov byte [rax + 0xe], cl
mov rax, qword [rsp + 0x28]
add rax, 0x30
sub rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x10], al
mov rax, qword [rsp + 0x28]
mov byte [rax + 0x14], 3
mov rax, qword [rsp + 0x28]
mov byte [rax + 0x15], 0x82
mov rax, qword [rsp + 0x28]
mov byte [rax + 0x16], 0x81
mov rax, qword [rsp + 0x28]
mov byte [rax + 0x17], 0xa0
mov rax, qword [rsp + 0x28]
add rax, 0x30
mov r8d, 0x40
mov rdx, rax
lea rcx, [rsp + 0x450]
call fcn.140034e40
mov rcx, qword [rsp + 0x4f8]
call fcn.140013950
mov rax, qword [rsp + 0x4f8]
mov rcx, qword [rsp + 0x4f0]
mov ecx, dword [rcx + 0x18c]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x4f0]
movzx eax, word [rax + 0x18a]
mov rcx, qword [rsp + 0x4f8]
movsx ecx, byte [rcx + 1]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x4f8]
mov byte [rcx + 1], al
mov dword [rsp + 0x20], 0
jmp 0x1400350d9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 8
jge 0x140035129
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x4d0], rax
mov edx, 8
mov rcx, qword [rsp + 0x4f8]
call fcn.140013b30
mov rcx, qword [rsp + 0x4f8]
mov rdx, qword [rsp + 0x4d0]
movsx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x4f8]
mov byte [rdx + rcx], al
jmp 0x1400350cf
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x4f8]
mov rcx, qword [rcx]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x28]
add rax, 0x30
sub rax, qword [rsp + 0x28]
add eax, dword [rsp + 0x440]
mov r8d, eax
mov rdx, qword [rsp + 0x500]
lea rcx, [rsp + 0x40]
call fcn.14001c860
mov rcx, qword [rsp + 0x4d8]
xor rcx, rsp
call fcn.140038600
add rsp, 0x4e0
pop rdi
ret

Function at 0x14003a368
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003a37e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003a380
xor eax, eax
test eax, eax
je 0x14003a390
mov ecx, eax
call fcn.14003e7fc
or eax, 0xffffffff
jmp 0x14003a392
xor eax, eax
add rsp, 0x28
ret
Function at 0x14003fcb3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140066d48]
jne 0x14003861a
rol rcx, 0x10
test cx, 0xffff
jne 0x140038616
repz ret
ror rcx, 0x10
jmp 0x14003fc0c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140068f60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140069058]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14003fc91
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140068f60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14003fcb3
mov rax, qword [rsp + 0x88]
mov qword [0x140069058], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140068ff8], rax
mov rax, qword [0x140069058]
mov qword [0x140068ed0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140068fe0], rax
mov dword [0x140068ec0], 0xc0000409
mov dword [0x140068ec4], 1
mov rax, qword [0x140066d48]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140066d50]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140068f58], eax
mov ecx, 1
call fcn.14004ced4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140056910]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140068f58], 0
jne 0x14003fd3a
mov ecx, 1
call fcn.14004ced4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140042620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14004264a
call fcn.14003e7dc
and dword [rax], 0
call fcn.14003e7bc
mov ebx, reloc.WS2_32.dll_shutdown
mov dword [rax], ebx
call fcn.140040f94
mov eax, ebx
jmp 0x14004269a
test edx, 0xfffffff9
jne 0x14004262d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140042673
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003e7fc
call fcn.14003e7bc
mov eax, dword [rax]
jmp 0x14004269a
test al, 0x10
jne 0x140042698
test al, 1
je 0x140042698
test bl, 2
je 0x140042698
call fcn.14003e7dc
mov dword [rax], 5
call fcn.14003e7bc
mov dword [rax], reloc.WS2_32.dll_listen
jmp 0x14004266a
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004434c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400441bc
Function at 0x14004bdbc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140066d48]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14004091c
xor ebx, ebx
cmp qword [0x14006a070], rbx
mov rdi, rax
jne 0x14004becf
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14004bfa6
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004bfa6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14006a070], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14006a078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14006a080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14006a090], rax
test rax, rax
je 0x14004bec6
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14006a088], rax
jmp 0x14004bed6
mov rax, qword [0x14006a088]
jmp 0x14004bedd
mov rax, qword [0x14006a088]
mov r11, qword [0x14006a090]
cmp rax, rdi
je 0x14004bf44
cmp r11, rdi
je 0x14004bf44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14006a090]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14004bf44
test rax, rax
je 0x14004bf44
call rsi
test rax, rax
je 0x14004bf3e
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14004bf3e
test byte [rsp + 0x40], 1
jne 0x14004bf44
bts ebp, 0x15
jmp 0x14004bf84
mov rcx, qword [0x14006a078]
cmp rcx, rdi
je 0x14004bf84
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14004bf84
call rax
mov rbx, rax
test rax, rax
je 0x14004bf84
mov rcx, qword [0x14006a080]
cmp rcx, rdi
je 0x14004bf84
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14004bf84
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14006a070]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14004bfa6
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14004bfa8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038600
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret