joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800234f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov r12, rcx
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [r12]
mov eax, ebx
xor r9d, r9d
lea rdx, [rsp + rax + 0x50]
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x1800235a5
inc ebx
cmp ebx, 4
jb 0x180023510
mov qword [rsp + 0x40], rsi
mov esi, dword [rsp + 0x50]
cmp esi, 0x6400000
ja 0x1800235a1
lea ecx, [rsi + 1]
mov dword [rbp], esi
call fcn.18002f604
mov ebx, esi
mov byte [rsi + rax], dil
mov rbp, rax
test esi, esi
je 0x180023583
nop dword [rax]
mov rcx, qword [r12]
mov edx, edi
xor r9d, r9d
add rdx, rbp
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180023599
add edi, eax
cmp edi, esi
jae 0x180023583
sub ebx, eax
jne 0x180023560
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
mov rcx, rbp
call fcn.18002f934
xor eax, eax
jmp 0x180023586
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret

Function at 0x1800235c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
mov dword [rsp + 0x20], 0x130
call fcn.1800334b0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x18002366a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x180023661
lea r8, [rsp + 0x4c]
lea rdx, [0x18004e3b4]
lea rcx, [rsp + 0x150]
call fcn.18003069c
mov rdx, qword [rdi]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x1800236ab
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180023621
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180023688
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi]
mov ebx, dword [rsp + 0x28]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800236d4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, ebx
jmp 0x18002368a
Function at 0x180023d20
Capabilities:
Encode data using xor
Encrypt data using tea

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
mov rbx, rcx
mov ecx, dword [rcx]
mov rbp, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rbx + 4]
mov esi, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 4]
mov r12d, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 8]
mov r13d, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 0xc]
mov r14d, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov r9d, reloc.WS2_32.dll_recv
mov r11d, eax
xor r8d, r8d
nop word [rax + rax]
add r8d, 0x9e3779b9
mov edx, ebx
mov ecx, ebx
shl ecx, 4
shr edx, 5
lea eax, [r8 + rbx]
add ecx, r12d
add edx, r13d
xor edx, ecx
xor edx, eax
add esi, edx
mov ecx, esi
mov eax, esi
shr ecx, 5
shl eax, 4
add ecx, r11d
add eax, r14d
xor ecx, eax
lea eax, [r8 + rsi]
xor ecx, eax
add ebx, ecx
dec r9d
jne 0x180023da0
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebx
mov dword [rbp], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov dword [rbp + 4], eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x180023e20
Capabilities:
Encode data using xor
Encrypt data using tea

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
mov rbx, rcx
mov ecx, dword [rcx]
mov rbp, r8
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rbx + 4]
mov esi, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 4]
mov r12d, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 8]
mov r13d, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rdi + 0xc]
mov r14d, eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov r9d, reloc.WS2_32.dll_recv
mov r11d, eax
mov r8d, 0xe3779b90
nop word [rax + rax]
lea eax, [r8 + rsi]
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
add ecx, r14d
add edx, r11d
xor edx, ecx
xor edx, eax
sub ebx, edx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
shl eax, 4
add ecx, r13d
add eax, r12d
xor ecx, eax
lea eax, [r8 + rbx]
add r8d, 0x61c88647
xor ecx, eax
sub esi, ecx
dec r9d
jne 0x180023ea0
mov ecx, esi
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebx
mov dword [rbp], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov dword [rbp + 4], eax
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x180025540
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r13, r9
mov r12, r8
mov r14, rdx
mov ebp, ecx
xor edi, edi
lea rdx, [0x18004e2a0]
mov rcx, r14
call fcn.180010980
lea rdx, [0x18004e2a0]
mov rcx, r14
call fcn.180003f10
lea rdx, [0x18004e2a0]
mov rcx, r12
call fcn.180010980
lea rdx, [0x18004e2a0]
mov rcx, r12
call fcn.180003f10
or esi, 0xffffffff
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.180001790
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
test ebp, ebp
jne 0x1800255d9
mov rcx, 0xffffffff80000000
jmp 0x18002560f
cmp ebp, 1
jne 0x1800255e7
mov rcx, 0xffffffff80000001
jmp 0x18002560f
cmp ebp, 2
jne 0x1800255f5
mov rcx, 0xffffffff80000002
jmp 0x18002560f
cmp ebp, 3
jne 0x180025603
mov rcx, 0xffffffff80000003
jmp 0x18002560f
cmp ebp, 4
jne 0x18002562d
mov rcx, 0xffffffff80000005
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov rbp, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002564f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test esi, esi
jne 0x180025692
lea rdx, [0x18004e29c]
mov rcx, qword [r13]
call fcn.180030ab0
test eax, eax
sete al
mov rdx, qword [r12]
mov rcx, rbp
test al, al
je 0x180025682
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x180025692
lea edi, [rsi + 1]
jmp 0x180025692
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, 1
test eax, eax
cmove edi, ecx
test rbp, rbp
je 0x1800256a1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800256bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800256de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1800256fb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, edi
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800278a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1800278bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800278cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800278da
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800278e9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
xor esi, esi
test rcx, rcx
je 0x18002793f
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 0x38]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x180027936
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x30]
mov qword [rbx + 0x28], rsi
mov dword [rbx + 0x40], esi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
xor eax, eax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x180027d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
lea rdx, str.stop
mov rcx, qword [rdi]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x180027e4f
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea r9, str.stopok
mov r8, qword [rbx + 0x48]
lea rdx, str._s_t_s
lea rcx, [rsp + 0x78]
call fcn.180002980
mov rsi, qword [rsp + 0x78]
lea rcx, [rsi - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8b, 0x1f
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180002d60
mov dword [rbx + 0x54], 1
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi - 8], eax
dec eax
test eax, eax
jg 0x180027e29
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
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 0x180027e45
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, 1
jmp 0x180027edd
xor esi, esi
lea rdx, [0x18004e2c4]
mov rcx, rdi
call fcn.180003f10
lea r8d, [rsi + 2]
lea rdx, [0x18004e2c4]
mov rcx, rdi
call fcn.180003ff0
or edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x180027eb2
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, dword [rdx - 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180027ead
mov rcx, rbx
call fcn.1800278a0
jmp 0x180027eb2
mov esi, 1
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180027edb
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x18002c140
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
xor ebx, ebx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x18002c188
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x10], rbx
mov dword [rdi + 0x18], 1
xor r8d, r8d
lea edx, [r8 + 1]
mov ebp, 2
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x18002c223
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x3c], eax
mov word [rsp + 0x38], bp
movzx ecx, word [rdi + 0x28]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
lea r8d, [rbp + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18002c1fb
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x18002c223
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x10], rbx
jmp 0x18002c223
mov rcx, qword [rdi + 0x20]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x20], rax
mov edx, dword [rdi + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1800159a0
mov ebx, 1
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18002c242
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002c270
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
xor edi, edi
cmp qword [rcx + 0x10], rdi
je 0x18002c29f
mov ecx, dword [rcx + 0x10]
call fcn.180004100
mov qword [rbx + 0x10], rdi
mov dword [rbx + 0x18], edi
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x30], rax
mov edx, dword [rbx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.180004620
mov r11d, eax
mov qword [rbx + 0x10], r11
test eax, eax
je 0x18002c380
mov dword [rsp + 0x70], r11d
lea rcx, [rsp + 0x70]
call fcn.180004290
test rax, rax
je 0x18002c31e
mov dword [rax + 0x5c], 0x30d40
mov dword [rsp + 0x88], 0x30d40
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x88]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rax + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, [rsp + 0x70]
call fcn.180004330
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x80]
call fcn.180004290
lea rcx, [rsp + 0x80]
test rax, rax
je 0x18002c353
mov dword [rax + 0x58], 0x186a0
call fcn.180004330
mov rcx, qword [rbx + 0x20]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x38], rax
mov edx, dword [rbx + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1800159a0
mov edi, 1
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18002c39f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov eax, edi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x18002c3b0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
xor edi, edi
lea rdx, [rcx + 0x28]
add rcx, 0x20
call fcn.180015a20
or edx, 0xffffffff
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsi + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180022200
nop
mov rax, qword [rsp + 0x60]
cmp dword [rax - 0x10], edi
je 0x18002c49a
or edx, 0xffffffff
mov rcx, qword [0x18005ff50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [0x18005ff58]
mov rcx, qword [0x18005ff50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x60]
add rcx, 0xffffffffffffffe8
call fcn.180001790
add rax, 0x18
mov rcx, rsi
test ebx, ebx
je 0x18002c44a
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
call fcn.18002c140
jmp 0x18002c459
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
call fcn.18002c270
mov edi, eax
test eax, eax
je 0x18002c49a
cmp dword [rsi + 0x2c], 0
jne 0x18002c49a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x18002c680]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsi + 0x2c], 1
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002c4c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x18002c4d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x18005ffb8]
xor ebx, ebx
mov edi, edx
mov rsi, rcx
test eax, eax
je 0x18002c522
mov rcx, qword [0x18005ffa8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x18005ffb8]
test eax, eax
je 0x18002c522
mov rcx, qword [0x18005ffb0]
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x18002c533
mov ecx, dword [0x18005ffb0]
mov r8d, edi
mov rdx, rsi
call fcn.180004ae0
cmp eax, edi
mov ecx, 1
cmove ebx, ecx
cmp dword [0x18005ffb8], 0
je 0x18002c553
mov rcx, qword [0x18005ffa8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18002c870
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbp, rdx
mov rdi, rcx
mov dword [rsp + 0x70], 0
lea rdx, [0x18004e84c]
call fcn.180001580
mov dword [rsp + 0x70], 1
lea rdx, [0x18004e340]
mov rcx, qword [rbp]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x18002c977
lea rcx, [rsp + 0x20]
call fcn.18002c7f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.180002810
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002c903
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
cmp dword [rax - 0x10], 0
jne 0x18002ca13
mov r9, qword [0x18005fed0]
mov r8d, 2
lea rdx, str.fmode
lea rcx, str.para
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 2
jne 0x18002c960
or edx, 0xffffffff
mov rcx, qword [0x18005ff50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [0x18005ff58]
mov rcx, qword [0x18005ff50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
test ebx, ebx
setne al
mov r8d, eax
lea rdx, [0x18004e7d0]
mov rcx, rdi
call fcn.180002980
jmp 0x18002ca13
mov rcx, qword [rbp]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
or edx, 0xffffffff
mov rcx, qword [0x18005ffd0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x78]
lea rcx, [0x18005ffd8]
call fcn.180002810
mov rcx, qword [0x18005ffd0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002c9e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r9, qword [0x18005fed0]
mov r8, qword [rbp]
lea rdx, str.fmode
lea rcx, str.para
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov rdx, rbp
mov rcx, rdi
call fcn.180002810
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18002ca2f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18002d3d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov edi, edx
mov rbx, rcx
lea eax, [rdi - 4]
cmp eax, 1
jge 0x18002d3e9
or r9d, 0xffffffff
jmp 0x18002d439
xor r9d, r9d
xor r10d, r10d
movsxd r11, eax
test eax, eax
je 0x18002d436
mov qword [rsp + 0x10], rsi
lea rsi, [0x18004dd40]
nop word [rax + rax]
movsx ecx, byte [rbx + r10 + 4]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
cmp r10, r11
jne 0x18002d410
mov rsi, qword [rsp + 0x10]
not r9d
cmp r9d, dword [r8]
je 0x18002d447
xor eax, eax
mov rbx, qword [rsp + 0x18]
pop rdi
ret
mov eax, dword [r8 + 0x24]
mov edx, 1
test eax, eax
je 0x18002d470
lea rcx, [rax + 0x30]
cmp rcx, rdi
jne 0x18002d46e
lea rax, [rbx + 0x30]
mov qword [r8 + 0x28], rax
mov eax, edx
mov rbx, qword [rsp + 0x18]
pop rdi
ret
xor edx, edx
mov eax, edx
mov rbx, qword [rsp + 0x18]
pop rdi
ret

Function at 0x18002d480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov dword [rcx + 4], r9d
mov rsi, rcx
add eax, 0x50
mov ebx, r8d
mov rbp, rdx
mov ecx, eax
mov dword [rdx], eax
call fcn.18002f604
mov r9d, dword [rsi + 4]
mov dword [rax + 4], r9d
mov edx, dword [rsi + 8]
mov rdi, rax
mov dword [rax + 8], edx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov ecx, dword [rsi + 0x10]
mov dword [rax + 0x10], ecx
mov ecx, dword [rsi + 0x14]
mov dword [rax + 0x14], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rsi + 0x18], ecx
mov dword [rax + 0x18], ecx
mov eax, dword [rsi + 0x1c]
mov dword [rdi + 0x1c], eax
mov dword [rsi + 0x20], ebx
mov dword [rdi + 0x20], ebx
mov eax, dword [rsi + 0x24]
mov dword [rdi + 0x24], eax
xor eax, eax
lea r9d, [rax + 0x30]
mov qword [rdi + 0x28], rax
mov eax, dword [rsi + 0x24]
test eax, eax
je 0x18002d518
mov rdx, qword [rsi + 0x28]
lea rcx, [rdi + 0x30]
mov r8d, eax
call fcn.18002fb80
mov r9d, dword [rsi + 0x24]
add r9d, 0x30
lea eax, [r9 - 4]
cmp eax, 1
jge 0x18002d526
or edx, 0xffffffff
jmp 0x18002d561
xor edx, edx
movsxd r10, eax
mov r8d, edx
test eax, eax
je 0x18002d55f
lea r11, [0x18004dd40]
nop dword [rax]
movsx ecx, byte [rdi + r8 + 4]
mov eax, edx
shr edx, 8
xor rcx, rax
inc r8
movzx eax, cl
mov eax, dword [r11 + rax*4]
xor edx, eax
cmp r8, r10
jne 0x18002d540
not edx
mov rbx, qword [rsp + 0x30]
mov dword [rsi], edx
mov rsi, qword [rsp + 0x40]
mov dword [rdi], edx
mov dword [rbp], r9d
mov rbp, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret