joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51c9dc
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
movabs rdx, 0x4d1b7003146cb453
mov qword [rsp + 0x1d], rdx
movabs rdx, 0x84e56ffb0d4d1b70
mov qword [rsp + 0x22], rdx
movabs rdx, 0x1000804010c0909
mov qword [rsp + 0x2a], rdx
movabs rdx, 0x30b060c0c010100
mov qword [rsp + 0x30], rdx
xor eax, eax
jmp 0x51c975
movzx r9d, byte [rsp + rsi + 0x1d]
sub r9d, edx
lea edx, [r9 + 0x72]
mov byte [rsp + rdi + 0x1d], dl
lea edx, [r8 + 0x72]
mov byte [rsp + rsi + 0x1d], dl
add rax, 2
cmp rax, 0xe
jge 0x51c9a8
movzx edx, byte [rsp + rax + 0x2a]
movzx esi, byte [rsp + rax + 0x2b]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0xd
jae 0x51c9cf
movzx r8d, byte [rsp + rdi + 0x1d]
sub r8d, edx
nop word [rax + rax]
cmp rsi, 0xd
jb 0x51c958
jmp 0x51c9c3
xor eax, eax
lea rbx, [rsp + 0x1d]
mov ecx, 0xd
call fcn.004418e0
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov eax, esi
mov ecx, 0xd
call fcn.00453440
mov eax, edi
mov ecx, 0xd
call fcn.00453440
nop
nop dword [rax]
call fcn.00450de0
jmp fcn.0051c900

Function at 0x51d680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51d7d2
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
movabs rdx, 0x758a928d6d658073
mov qword [rsp + 0x1f], rdx
movabs rdx, 0x6c813f9c61758a92
mov qword [rsp + 0x24], rdx
movabs rdx, 0x86986c78646aed7e
mov qword [rsp + 0x2c], rdx
movabs rdx, 0x885b6d788b7a737d
mov qword [rsp + 0x34], rdx
movabs rdx, 0x2e14806d6b5a2787
mov qword [rsp + 0x3c], rdx
movabs rdx, 0x60504040e040c21
mov qword [rsp + 0x44], rdx
movabs rdx, 0x150b072206050404
mov qword [rsp + 0x48], rdx
movabs rdx, 0x1f200d0a09091318
mov qword [rsp + 0x50], rdx
movabs rdx, 0x1d14210a11010407
mov qword [rsp + 0x58], rdx
movabs rdx, 0x32305161c191f18
mov qword [rsp + 0x60], rdx
movabs rdx, 0x101315151e170c10
mov qword [rsp + 0x68], rdx
movabs rdx, 0x161b0f0a0004101a
mov qword [rsp + 0x70], rdx
xor eax, eax
jmp 0x51d76a
movzx r9d, byte [rsp + rsi + 0x1f]
lea edx, [r9 + rdx]
lea edx, [rdx - 0x36]
mov byte [rsp + rdi + 0x1f], dl
mov byte [rsp + rsi + 0x1f], r8b
add rax, 2
cmp rax, 0x34
jge 0x51d79c
movzx edx, byte [rsp + rax + 0x44]
movzx esi, byte [rsp + rax + 0x45]
mov edi, edx
xor edx, esi
add edx, eax
cmp rdi, 0x25
jae 0x51d7c5
movzx r8d, byte [rsp + rdi + 0x1f]
lea r8d, [r8 + rdx]
lea r8d, [r8 - 0x36]
cmp rsi, 0x25
jb 0x51d750
jmp 0x51d7b7
xor eax, eax
lea rbx, [rsp + 0x1f]
mov ecx, 0x25
call fcn.004418e0
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov eax, esi
mov ecx, 0x25
nop
call fcn.00453440
mov eax, edi
mov ecx, 0x25
call fcn.00453440
nop
call fcn.00450de0
jmp fcn.0051d680
Function at 0x180001910
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [r11 + 0x18], 0
lea rax, [r11 + 0x20]
mov word [r11 + 0x1c], 0x500
mov qword [r11 - 0x18], rax
lea rcx, [r11 + 0x18]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x78], eax
test eax, eax
je 0x18000199c
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x78]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x78], ecx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x78]
add rsp, 0x60
pop rbx
ret

Function at 0x1800031a0
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], 0x3a980
mov edi, edx
mov rsi, rcx
call fcn.1800074f0
mov ecx, 1
call fcn.180005350
test al, 8
mov ecx, 0x84c03200
mov eax, 0x84400200
cmovne eax, ecx
mov ecx, 0x32
mov dword [0x1800163a4], eax
call fcn.180005350
cmp ax, 1
jne 0x180003202
or dword [0x1800163a4], 0x80000
mov ecx, 0x23
call fcn.180005350
movzx ecx, ax
xor ebp, ebp
test ecx, ecx
je 0x18000323d
sub ecx, 1
je 0x180003234
sub ecx, 1
je 0x18000322d
cmp ecx, 2
je 0x18000323d
mov rax, qword [0x1800163a8]
jmp 0x180003266
xor r8d, r8d
xor edx, edx
jmp 0x18000324f
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000324f
mov ecx, 0x20
call fcn.180005340
mov r8, rax
mov edx, 3
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x1800163a8], rax
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x1800163a8]
lea r8, [rsp + 0x68]
mov r9d, 4
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [0x1800163c0]
xor r9d, r9d
mov rcx, qword [0x1800163a8]
movzx r8d, di
mov qword [rsp + 0x38], rax
mov rdx, rsi
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, 0x23
mov qword [0x1800163b0], rax
call fcn.180005350
cmp ax, 4
jne 0x180003341
mov ecx, 0x21
call fcn.180005330
mov ecx, 0x21
mov ebx, eax
call fcn.180005340
mov rcx, qword [0x1800163b0]
mov r8, rax
mov r9d, ebx
mov edx, 0x2b
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, 0x22
call fcn.180005330
mov ecx, 0x22
mov ebx, eax
call fcn.180005340
mov rcx, qword [0x1800163b0]
mov r8, rax
mov r9d, ebx
mov edx, 0x2c
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180007510
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180003360
Capabilities:
Send data
Send http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rbx, rcx
lea rax, [0x18000f6e0]
xor esi, esi
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x78], rsi
xor edx, edx
mov r8d, 0x400
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov edx, dword [0x1800163a0]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
test edx, edx
je 0x1800035a5
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x520], rdi
call fcn.180006520
mov rcx, qword [rsp + 0x50]
lea r8, [0x18000f6e4]
mov r9, rbx
mov edx, 0x400
call fcn.180001a40
mov rcx, qword [0x180017348]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea r8, [0x18000f6e8]
mov edx, 0x80
mov r9d, eax
lea rcx, [rbp - 0x70]
call fcn.180001a40
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], sil
jne 0x180003440
mov ecx, ntohl
call fcn.180005340
mov rcx, rax
lea r8, [rbp - 0x70]
mov eax, dword [0x1800163a0]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [0x1800163b8]
mov qword [rsp + 0x20], rax
call fcn.180005c40
mov rcx, qword [rsp + 0x48]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x180003486
mov r9, qword [rsp + 0x50]
mov edx, 0x400
test rax, rax
jne 0x1800034b0
lea r8, [0x18000f6ec]
lea rcx, [rbp + 0x10]
call fcn.180001a40
jmp 0x1800034c5
mov qword [rsp + 0x20], rcx
lea r8, [0x18000f6f0]
lea rcx, [rbp + 0x10]
call fcn.180001a40
call fcn.1800074f0
mov ebx, esi
nop dword [rax]
mov ecx, 0x1b
call fcn.180005340
mov rcx, qword [0x1800163b0]
lea r8, [rbp + 0x10]
mov rdx, rax
xor r9d, r9d
mov rax, qword [0x1800163c0]
mov qword [rsp + 0x38], rax
mov eax, dword [0x1800163a4]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.180003050
mov rdx, qword [rsp + 0x40]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], sil
jne 0x180003530
mov eax, dword [rsp + 0x60]
mov rcx, rdi
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.1800036b0
mov rcx, rdi
test eax, eax
jne 0x18000357c
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x1800034d0
jmp 0x180003582
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x1800163a0]
lea rcx, [rsp + 0x40]
call fcn.180006510
mov dword [0x1800163a0], esi
call fcn.180007510
mov rdi, qword [rsp + 0x520]
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800036b0
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rax + 0x10], 0x100
lea r9, [rax + 0x10]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1800036e8
add rsp, 0x130
pop rbx
ret
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_atoi
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret
Function at 0x1800040d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
movsxd r11, edx
mov rbx, rcx
movsxd rax, r9d
lea r10, [r11 - 4]
cmp r10, rax
jbe 0x1800040ef
xor eax, eax
mov rbx, qword [rsp + 8]
ret
sub r11d, 4
je 0x180004120
xor ecx, ecx
mov edx, r11d
mov r9, rbx
sub r9, r8
mov rax, rcx
lea r8, [r8 + 1]
and eax, 3
inc rcx
movzx eax, byte [rax + rbx]
xor al, byte [r9 + r8 + 3]
mov byte [r8 - 1], al
sub rdx, 1
jne 0x180004100
mov rbx, qword [rsp + 8]
mov eax, r11d
ret

Function at 0x180004130
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rbx, r8
add r10, 4
movsxd rax, r9d
mov edi, edx
mov rsi, rcx
cmp r10, rax
jbe 0x180004168
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.180003d50
mov dword [rbx], eax
test edi, edi
je 0x18000419e
xor edx, edx
lea rcx, [rbx + 4]
sub rsi, rbx
mov r8, rdi
nop
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 3
inc rdx
movzx eax, byte [rax + rbx]
xor al, byte [rsi + rcx - 5]
mov byte [rcx - 1], al
sub r8, 1
jne 0x180004180
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800042b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x18000429a
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
call rdi
mov rcx, qword [rbx + 8]
call sub.msvcrt.dll_fclose
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor esi, esi
mov ebp, r8d
cmp qword [0x1800163e8], rsi
mov r14, rdx
mov rdi, rcx
jne 0x1800042ef
mov ecx, 0x80004
call sub.msvcrt.dll_malloc
mov qword [0x1800163e8], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x1800163e8]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, ebp
cmova ebx, ebp
test ebx, ebx
je 0x180004347
nop dword [rax + rax]
mov rax, qword [0x1800163e8]
mov edx, 1
mov r9, qword [rdi + 8]
add rax, 4
mov ecx, esi
add rcx, rax
mov r8d, ebx
call sub.msvcrt.dll_fread
test eax, eax
je 0x180004340
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x180004310
jmp 0x180004347
mov dword [rdi + 4], 0
mov rcx, qword [0x1800163e8]
lea edx, [rsi + 4]
mov r8d, 8
call r14
mov rdx, r14
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180004260
Function at 0x1800049e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
lea rax, [rsp + 0x78]
mov edi, r8d
mov qword [rsp + 0x28], r14
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180004a2c
or eax, 0xffffffff
jmp 0x180004a88
cmp dword [rsp + 0x78], ebx
jbe 0x180004a86
cmp ebx, edi
jae 0x180004a86
mov r8d, edi
mov qword [rsp + 0x20], r14
sub r8d, ebx
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
xor r9d, r9d
add ebx, eax
mov qword [rsp + 0x28], r14
add rsi, rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180004a27
cmp dword [rsp + 0x78], r14d
ja 0x180004a32
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180004de0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, r8d
mov dword [rsp + 0x60], r14d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
jle 0x180004e41
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180004e5e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x180004e5e
add ebx, eax
cmp ebx, edi
jl 0x180004e10
or eax, 0xffffffff
cmp ebx, edi
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
or eax, 0xffffffff
jmp 0x180004e4b

Function at 0x180004f50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov dword [rsp + 0x30], 0
mov rdi, rcx
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x180005000]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
lea rcx, [fcn.180007640]
mov qword [rdi + 0x10], rax
lea rax, [0x1800050a0]
mov qword [rdi + 0x18], rax
lea rax, [0x180004fd0]
mov qword [rdi + 0x20], rax
lea rax, [0x180005090]
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret
Function at 0x180005110
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180005167
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180005186
test eax, eax
je 0x180005167
add ebx, eax
cmp ebx, edi
jl 0x180005140
or eax, 0xffffffff
cmp ebx, edi
cmovne edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
or eax, 0xffffffff
jmp 0x180005171

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

Disassembly:
sub rsp, 0x28
test r8d, r8d
jne 0x1800051a2
lea eax, [r8 + 1]
add rsp, 0x28
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1800052c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x820
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x838]
mov r8, rbx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.180002a70
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_OutputDebugStringA
add rsp, 0x820
pop rbx
ret

Function at 0x180005640
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005690
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800059c0
test eax, eax
jle 0x180005676
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180005660
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180005af0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180017318]
xor edi, edi
test rbx, rbx
je 0x180005ba0
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180005b25
cmp dword [rbx + 0xc], eax
jne 0x180005b3c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180005b10
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180005b25
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180005b25
cmp dword [rbx + 0x10], 0
jne 0x180005b65
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180005b79
cmp dword [rbx + 0x10], 2
je 0x180005b25
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180005b94
mov qword [rdi + 0x28], rax
call fcn.18000811c
mov rbx, qword [rdi + 0x28]
jmp 0x180005b2c
mov qword [0x180017318], rax
call fcn.18000811c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800059c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180017318]
xor ebp, ebp
mov esi, ebp
mov dword [rsp + 0x48], ebp
cmp qword [0x180017320], rsi
mov rdi, rcx
jne 0x1800059f8
mov ecx, 0x100000
call sub.msvcrt.dll_malloc
mov qword [0x180017320], rax
test rbx, rbx
je 0x180005ad2
mov qword [rsp + 0x40], r14
mov r14d, 0xffffc
nop dword [rax]
cmp dword [rbx + 4], 1
jne 0x180005abd
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x48]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x180017320]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x48]
cmp r8d, r14d
cmova r8d, r14d
mov dword [rsp + 0x48], r8d
cmp eax, 0xffffffff
jne 0x180005a6d
mov rcx, qword [0x180017320]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x180005abd
test r8d, r8d
je 0x180005abd
mov rdx, qword [0x180017320]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.180005bb0
cmp eax, 0xffffffff
jne 0x180005aa1
mov rcx, qword [0x180017320]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x180005abd
mov edx, dword [rsp + 0x48]
cmp eax, edx
jne 0x180005abd
mov rcx, qword [0x180017320]
add edx, 4
mov r8d, 5
call rdi
inc esi
mov rcx, qword [rbx + 0x28]
mov rbx, rcx
test rcx, rcx
jne 0x180005a10
mov r14, qword [rsp + 0x40]
mov eax, esi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x180005af0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005690
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800059c0
test eax, eax
jle 0x180005676
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180005660
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180005af0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180017318]
xor edi, edi
test rbx, rbx
je 0x180005ba0
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180005b25
cmp dword [rbx + 0xc], eax
jne 0x180005b3c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180005b10
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180005b25
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180005b25
cmp dword [rbx + 0x10], 0
jne 0x180005b65
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180005b79
cmp dword [rbx + 0x10], 2
je 0x180005b25
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180005b94
mov qword [rdi + 0x28], rax
call fcn.18000811c
mov rbx, qword [rdi + 0x28]
jmp 0x180005b2c
mov qword [0x180017318], rax
call fcn.18000811c
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180005bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180005c06
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
xor r9d, r9d
sub r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rsi, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x180005c1d
cmp ebx, edi
jl 0x180005be0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x180005c08
Function at 0x180007690
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
jne 0x1800076f8
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
add rcx, 8
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800076f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800076ee
mov r9d, dword [rdi]
lea rcx, [rdi + 8]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800076f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180007750
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
mov edx, 0x18
lea rcx, [rsp + 0x40]
mov r8d, 0xf0000000
mov rdi, r9
call fcn.180007560
lea rcx, [rsp + 0x40]
call fcn.180007690
test rax, rax
jne 0x180007793
xor bl, bl
jmp 0x180007821
lea rcx, [rsp + 0x38]
call fcn.1800075b0
mov r9d, dword [rbx + 8]
lea rdx, [rsp + 0x40]
mov r8, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.180007f10
test eax, eax
jne 0x180007815
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.180008100
test eax, eax
jne 0x180007815
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x38]
call fcn.1800080b0
test eax, eax
jne 0x180007815
lea rcx, [rsp + 0x38]
call fcn.180007680
test rax, rax
je 0x180007815
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp eax, 1
sete bl
jmp 0x180007817
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.180007650
lea rcx, [rsp + 0x40]
call fcn.1800075d0
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret