joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017200
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.180014fc0
call fcn.180007450
call fcn.1800154d0
xor ebx, ebx
lea r8, [0x1800291d0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x18005ffa0]
call fcn.18002c3b0
test eax, eax
jne 0x18001728d
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x18005ffa0]
call fcn.18002c3b0
test eax, eax
je 0x180017272
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [0x18000d650]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x180018d10]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x18001a550]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x18001b0b0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x18001bd20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1800077b0
test eax, eax
jne 0x180017374
lea rcx, [0x18005ffa0]
call fcn.18002c3b0
test eax, eax
je 0x180017374
call fcn.1800077b0
mov rcx, qword [0x18005ff50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18005ff50]
mov ebx, dword [0x18005ff58]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x1800173a8
mov ecx, 0x493e0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180017356
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180017356

Function at 0x1800173d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x1800173fe
xor eax, eax
mov qword [0x18005fda8], rcx
lea r8, [0x1800173c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180017e70
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x108], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov qword [rbp - 0x61], rcx
xor ebx, ebx
mov dword [rbp - 0x69], ebx
mov qword [rcx + 0x18], sendto
mov qword [rcx + 0x10], rbx
mov byte [rcx], bl
mov dword [rbp - 0x69], 1
mov byte [rbp + 0x27], bl
xor eax, eax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], eax
mov word [rbp + 0x34], ax
mov byte [rbp + 0x36], al
mov qword [rbp - 0x39], rbx
mov dword [rbp - 0x49], 0x67452301
mov dword [rbp - 0x45], 0xefcdab89
mov dword [rbp - 0x41], 0x98badcfe
mov dword [rbp - 0x3d], 0x10325476
lea rcx, [rbp - 0x49]
call fcn.180017c80
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x49]
call fcn.180017d50
nop dword [rax + rax]
mov byte [rbp + 0x17], 0
xor eax, eax
mov qword [rbp + 0x18], rax
mov byte [rbp + 0x20], al
movzx r8d, byte [rbp + rbx + 0x27]
lea rdx, str._02x
lea rcx, [rbp + 0x17]
call fcn.18003069c
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x17]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x17]
mov rcx, rsi
call fcn.1800071f0
inc rbx
cmp rbx, 0x10
jl 0x180017f10
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret

Function at 0x180017f80
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x18001800b
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18002f950
add rsp, 0x80
pop rbx
ret
Function at 0x180018030
Capabilities:
Check os version
Get token membership

Disassembly:
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor eax, eax
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x90
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], eax
call fcn.1800334b0
mov dword [rsp + 0x50], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180018165
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x180018165
cmp dword [rsp + 0x54], 6
jb 0x180018110
mov rcx, qword [rsp + 0x38]
mov r9d, 4
lea rax, [rsp + 0x30]
lea edx, [r9 + 0xe]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180018165
cmp dword [rsp + 0x48], 3
jne 0x180018110
mov rcx, qword [rsp + 0x38]
mov r9d, 8
lea rax, [rsp + 0x30]
lea edx, [r9 + 0xb]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180018165
cmp qword [rsp + 0x40], 0
jne 0x180018131
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x180018165
xor edx, edx
lea r9, [rsp + 0x30]
lea r8, [rbp - 0x10]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x30], 0x44
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x180018165
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x34]
lea rdx, [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180018175
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180018185
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.18002f950
add rsp, 0x150
pop rbp
ret
Function at 0x180018530
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12, rdx
mov rsi, rcx
mov qword [r11 - 0x70], rcx
mov qword [r11 - 0x68], rdx
xor edi, edi
mov dword [rsp + 0x20], edi
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x20], 1
lea rdx, [0x18004e4a0]
mov rcx, qword [r12]
call fcn.180030e68
mov r13, rax
or rbx, 0xffffffffffffffff
test rax, rax
je 0x180018661
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rax
call fcn.180032cf0
mov rcx, r13
call fcn.180032880
mov r14d, eax
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.180032cf0
lea ecx, [r14 + 1]
call fcn.18002f604
mov rbp, rax
mov r8d, r14d
mov byte [r14 + rax], dil
mov r9, r13
lea edx, [rdi + 1]
mov rcx, rax
call fcn.180031c44
mov rcx, r13
call fcn.18003110c
test rbp, rbp
je 0x180018661
mov r8d, r14d
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.180017e70
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180018624
mov rdx, qword [rax]
test rdx, rdx
je 0x18001863a
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
mov r8d, edi
mov rcx, rsi
call fcn.180001b40
nop
cmp qword [rsp + 0x58], 0x10
jb 0x180018658
mov rcx, qword [rsp + 0x40]
call fcn.18002f934
mov rcx, rbp
call fcn.18002f934
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18001867d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002f950
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001e910
Capabilities:
Receive data
Receive 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
sub rsp, 0x20
cmp dword [rcx + 8], 0
mov esi, r8d
mov r12, rdx
mov rbp, rcx
je 0x18001e979
xor ebx, ebx
mov edi, r8d
test r8d, r8d
je 0x18001e985
nop word [rax + rax]
mov rcx, qword [rbp]
mov edx, ebx
xor r9d, r9d
add rdx, r12
mov r8d, edi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18001e975
add ebx, eax
cmp ebx, esi
jae 0x18001e985
sub edi, eax
jne 0x18001e950
jmp 0x18001e985
xor eax, eax
jmp 0x18001e98a
mov rcx, qword [rcx]
call fcn.18002ce00
test eax, eax
je 0x18001e975
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18001e9b0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebp, edx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov rcx, qword [r8]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.18001cae0
test eax, eax
jne 0x18001ea25
mov rdx, qword [rsi]
sub rdx, 0x18
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18001ea1e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x18001eb71
mov edx, 1
lea r8d, [rdx + 5]
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov ebx, eax
cmp rbx, 0xffffffffffffffff
jne 0x18001ea4f
or ebx, ebx
jmp 0x18001eb54
mov rdx, qword [rsi]
lea rcx, [rsp + 0x38]
call fcn.180022200
mov word [rsp + 0x58], r12w
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x30], 0x186a0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0x1dd76000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x18001eb31
test edi, edi
je 0x18001eb02
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001eb25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
jmp 0x18001ea0a
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001eb54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18001eb6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18002f950
add rsp, 0x70
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001eb90
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rsi, rcx
mov ecx, 0x80
mov r12, rdx
call fcn.18002f604
xor edx, edx
mov r8d, 0x80
mov rcx, rax
mov rbx, rax
call fcn.1800334b0
mov r9, qword [rsi]
mov r8d, dword [r12]
xor r13d, r13d
mov r11d, 1
lea rdx, str._u_t_u_t_u
cmp dword [rsi + 8], r13d
mov rcx, rbx
cmove r11d, r13d
mov dword [rsp + 0x20], r11d
call fcn.18003069c
lea r8, [0x18001f8b0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rbp
cmp dword [rsi + 8], r13d
je 0x18001ec5b
mov ebx, r13d
mov edi, 4
nop word [rax + rax]
mov rcx, qword [rsi]
mov eax, ebx
xor r9d, r9d
lea rdx, [rsp + rax + 0x60]
mov r8d, edi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18001ed40
add ebx, eax
cmp ebx, 4
jae 0x18001ec76
sub edi, eax
jne 0x18001ec30
jmp 0x18001ec76
mov rcx, qword [rsi]
lea rdx, [rsp + 0x60]
mov r8d, 4
call fcn.18002ce00
test eax, eax
je 0x18001ed40
mov edi, dword [rsp + 0x60]
cmp edi, 0x3200000
ja 0x18001ed40
mov ecx, edi
call fcn.18002f604
mov rbp, rax
test edi, edi
je 0x18001ed38
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.18001e910
test eax, eax
je 0x18001ed38
lea ecx, [rdi + 0x400]
mov dword [rsp + 0x70], ecx
lea ecx, [rdi + 1]
call fcn.18002f604
lea r8, [0x18004e2c8]
mov edx, edi
mov rbx, rax
lea rax, [rsp + 0x70]
mov rcx, rbp
mov r9, rbx
mov qword [rsp + 0x20], rax
call fcn.180024250
test eax, eax
jne 0x18001ecf5
mov rcx, rbx
mov edi, r13d
call fcn.18002f934
mov rbx, r13
jmp 0x18001ecfe
movsxd rdi, dword [rsp + 0x70]
mov byte [rdi + rbx], r13b
mov rcx, rbp
call fcn.18002f934
test rbx, rbx
je 0x18001ed40
test edi, edi
je 0x18001ed26
mov ecx, dword [r12]
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, edi
jne 0x18001ed33
mov rcx, rbx
call fcn.18002f934
jmp 0x18001ec17
mov rcx, rbx
jmp 0x18001ed3b
mov rcx, rbp
call fcn.18002f934
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001fc90
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rdi, rcx
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r9, qword [0x18005fed0]
mov r8d, 2
lea rdx, str.ptype
lea rcx, str.para
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov r8d, eax
lea rdx, [0x18004e268]
lea rcx, [rsp + 0x48]
call fcn.180002980
xor esi, esi
mov eax, esi
mov rbx, qword [rsp + 0x48]
test rbx, rbx
setne al
test eax, eax
jne 0x18001fd1d
mov ecx, 0x80004005
call fcn.180001050
int3
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.180030ab0
test eax, eax
setne al
mov r8d, dword [0x18005e630]
test al, al
cmovne r8d, esi
mov dword [0x18005e630], r8d
mov r9, qword [0x18005fed0]
mov r8, qword [rdi]
lea rdx, str.ptype
lea rcx, str.para
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18001fd7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18001fd99
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180020390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 2]
mov rcx, rsi
call fcn.180032cf0
mov rcx, rsi
call fcn.180032880
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rdi], eax
call fcn.180032cf0
mov ecx, dword [rdi]
inc ecx
call fcn.18002f604
mov ecx, dword [rdi]
mov r9, rsi
mov byte [rcx + rax], 0
mov r8d, dword [rdi]
mov edx, 1
mov rcx, rax
mov rbx, rax
call fcn.180031c44
mov rcx, rsi
call fcn.18003110c
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180020a07
test al, 0x10
je 0x180020a07
mov ebx, 1
jmp 0x180020a09
xor ebx, ebx
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
mov rdi, qword [rsp + 0x30]
dec ecx
test ecx, ecx
jg 0x180020a2d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180020fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor dil, dil
mov rsi, r8
test edx, edx
je 0x180020ff5
mov r9, r8
mov r8d, edx
mov qword [rsp + 0x30], rbx
mov ebx, edx
mov edx, 1
call fcn.180031000
cmp rax, rbx
mov rbx, qword [rsp + 0x30]
jne 0x180020ff8
mov dil, 1
mov rcx, rsi
call fcn.18003110c
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret

Function at 0x180021110
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
sub rsp, 0xe8
xor edx, edx
mov dword [rax - 0x78], 0x68
mov qword [rax - 0x3c], 1
mov qword [rax - 0x70], rdx
mov qword [rax - 0x30], rdx
mov qword [rax - 0x68], rdx
mov qword [rax - 0x60], rdx
mov qword [rax - 0x58], rdx
mov dword [rax - 0x40], edx
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1800211a4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0xe8
ret
xor eax, eax
add rsp, 0xe8
ret
Function at 0x180022200
Capabilities:
Reference google public dns server
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r12, rdx
mov rbx, rcx
mov dword [rbp - 0x69], 0
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
jne 0x180022267
lea rdx, [0x18004dd32]
mov rcx, rbx
call fcn.180001580
jmp 0x18002238c
lea rcx, [rbp - 0x69]
call fcn.180022080
nop
mov rax, qword [rbp - 0x69]
cmp dword [rax - 0x10], 0
je 0x180022290
lea rcx, [rax - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rbx], rax
jmp 0x180022370
mov byte [rbp - 9], 0
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], eax
mov word [rbp + 0x34], ax
mov byte [rbp + 0x36], al
mov rcx, r12
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1800222fb
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea rdx, [0x18004e3b4]
lea rcx, [rbp - 9]
call fcn.18003069c
lea rdx, [rbp - 9]
mov rcx, rbx
call fcn.180001580
nop
jmp 0x180022370
mov qword [rbp - 0x41], sendto
mov qword [rbp - 0x49], 0
mov byte [rbp - 0x59], 0
mov r8d, 7
lea rdx, str.8.8.8.8
lea rcx, [rbp - 0x59]
call fcn.180001660
lea r8, [rbp - 0x59]
mov rdx, r12
lea rcx, [rbp - 0x31]
call fcn.18000ff80
nop
cmp qword [rax + 0x18], 0x10
jb 0x180022340
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.180001580
nop
cmp qword [rbp - 0x19], 0x10
jb 0x18002235c
mov rcx, qword [rbp - 0x31]
call fcn.18002f934
mov qword [rbp - 0x19], sendto
mov qword [rbp - 0x21], 0
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18002238c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18002f950
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x180022530
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x30], 0
mov byte [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x51]
call fcn.1800334b0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x50]
lea r8, [0x18004dd32]
mov rdx, rbx
lea rcx, str.para
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
test rax, 0xffffffffffff0000
jne 0x1800225f8
movzx edi, cx
mov ecx, edi
call fcn.180001110
test rax, rax
je 0x1800225f6
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call fcn.180001a00
nop
jmp 0x18002261a
jmp 0x18002261a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.180001b40
nop
mov rax, rsi
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18002f950
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret

Function at 0x180022860
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x1800228ae
xor edx, edx
mov rcx, rbx
call fcn.180030814
test eax, eax
je 0x18002289b
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0x10
setne cl
mov eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180022c40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, ecx
xor edx, edx
mov ecx, 0x100001
xor bl, bl
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180022c82
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret