joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801ad3bd
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x18034bff0
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x30]
mov ecx, 0x7c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x230]
mov rax, qword [0x1805c0c48]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov eax, dword [rsp + 0x230]
and eax, 2
test eax, eax
je 0x18034c0c7
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x1f4], eax
cmp dword [rsp + 0x1f4], 0
je 0x18034c06d
mov eax, 2
jmp 0x18034c17f
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x18034c0b7
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x18034c0c7
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x18034c17f
call fcn.1801af663
mov dword [rsp + 0x1f8], eax
cmp dword [rsp + 0x1f8], 0
je 0x18034c0e9
mov eax, dword [rsp + 0x1f8]
jmp 0x18034c17f
lea rcx, str.iphlpapi.dll
call fcn.1801aeb41
mov qword [0x1805c2978], rax
cmp qword [0x1805c2978], 0
je 0x18034c13c
lea rdx, str.if_nametoindex
mov rcx, qword [0x1805c2978]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x200], rax
cmp qword [rsp + 0x200], 0
je 0x18034c13c
mov rax, qword [rsp + 0x200]
mov qword [0x1805c2970], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1801ae5fb
movzx eax, al
test eax, eax
je 0x18034c169
mov byte [0x1805c4e81], 1
jmp 0x18034c170
mov byte [0x1805c4e81], 0
lea rcx, [0x1805c4e90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1801ae55b
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1801ac93b
add rsp, 0x220
pop rdi
ret

Function at 0x1801ad679
Capabilities:
Set environment variable

Disassembly:
jmp 0x1804e94c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1801adbe2
Capabilities:
Get common file path

Disassembly:
jmp 0x1804d5ad0
push rdi
sub rsp, 0x270
mov rax, qword [0x1805c0c48]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x104
ja 0x1804d5b29
lea rcx, [rsp + 0x50]
call fcn.1804d58c0
jmp 0x1804d5bfc
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov dword [rsp + 0x20], Ordinal_41
lea r9, [0x18057a720]
mov r8d, 2
mov edx, 2
mov ecx, eax
call fcn.1801afba4
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1801ac003
lea rcx, [rsp + 0x38]
call fcn.1801af38e
test rax, rax
jne 0x1804d5b91
call fcn.1801abf27
mov dword [rax], listen
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.1801ae312
mov eax, dword [rsp + 0x40]
jmp 0x1804d5bfc
lea rcx, [rsp + 0x38]
call fcn.1801af38e
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1804d5bd8
call fcn.1801abf27
mov dword [rax], listen
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.1801ae312
mov eax, dword [rsp + 0x48]
jmp 0x1804d5bfc
lea rcx, [rsp + 0x38]
call fcn.1801af38e
mov rcx, rax
call fcn.1804d58c0
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.1801ae312
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1801ac93b
add rsp, 0x270
pop rdi
ret
Function at 0x1801ae123
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
jmp 0x1801c4f90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1801af47e
mov rax, qword [rbp + 0x148]
mov qword [rbp + 8], rax
call fcn.1801ae092
test eax, eax
je 0x1801c4fcc
jmp 0x1801c520c
mov ecx, 5
call fcn.18028a2f0
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x28]
call fcn.1801ad304
cmp dword [rbp + 0x140], 0
jle 0x1801c4ff6
cmp qword [rbp + 0x148], 0
jne 0x1801c501b
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1805c2500]
mov dword [rcx + rax], 0
mov rcx, qword [rbp + 0x28]
call fcn.1801ae353
jmp 0x1801c520c
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1805c2500]
cmp dword [rcx + rax], 0
jne 0x1801c5106
xor ecx, ecx
call fcn.1801ad39a
mov qword [rbp + 0x48], rax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x1805c2500]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.expand_32_byte_k
mov rcx, rax
call fcn.1801ac959
cmp qword [rbp + 0x48], 0
jne 0x1801c509a
mov eax, 4
imul rax, rax, 4
lea rcx, [0x1805c2500]
add rcx, rax
mov rax, rcx
mov r8d, Ordinal_46
xor edx, edx
mov rcx, rax
call fcn.1801adf07
jmp 0x1801c50c1
mov eax, 4
imul rax, rax, 4
lea rcx, [0x1805c2500]
add rcx, rax
mov rax, rcx
mov r8, rax
mov edx, Ordinal_46
mov rcx, qword [rbp + 0x48]
call fcn.18028bf50
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1805c2500]
mov edx, 4
imul rdx, rdx, 0xf
lea r8, [0x1805c2500]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx], eax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1805c2500]
mov dword [rcx + rax], 0
mov byte [0x1805c2580], 0
xor eax, eax
cmp eax, 1
je 0x1801c5203
movzx eax, byte [0x1805c2580]
cmp dword [rbp + 0x140], eax
jg 0x1801c516b
movsxd rax, dword [rbp + 0x140]
movzx ecx, byte [0x1805c2580]
sub ecx, dword [rbp + 0x140]
movsxd rcx, ecx
lea rdx, [0x1805c2540]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rbp + 8]
call fcn.1801ac959
movzx eax, byte [0x1805c2580]
sub eax, dword [rbp + 0x140]
mov byte [0x1805c2580], al
jmp 0x1801c5203
movzx eax, byte [0x1805c2580]
test eax, eax
jle 0x1801c51bc
movzx eax, byte [0x1805c2580]
mov r8d, eax
lea rdx, [0x1805c2540]
mov rcx, qword [rbp + 8]
call fcn.1801ac959
movzx eax, byte [0x1805c2580]
mov ecx, dword [rbp + 0x140]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x140], eax
movzx eax, byte [0x1805c2580]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov eax, 4
imul rax, rax, 0xc
lea rcx, [0x1805c2500]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0xc
lea rdx, [0x1805c2500]
mov dword [rdx + rcx], eax
lea rdx, [0x1805c2500]
lea rcx, [0x1805c2540]
call fcn.1801fc6c0
mov byte [0x1805c2580], 0x40
jmp 0x1801c5106
mov rcx, qword [rbp + 0x28]
call fcn.1801ae353
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1801ae213
Capabilities:
Terminate process

Disassembly:
jmp 0x180411310
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18041133e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1801aee8e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1801aeb41
Capabilities:
Get common file path

Disassembly:
jmp 0x18034c220
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18034c25d
xor eax, eax
jmp 0x18034c3f9
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x1805b10c8]
mov rcx, qword [rsp + 0x70]
call fcn.1801abb4e
test rax, rax
je 0x18034c2c9
cmp qword [rsp + 0x28], 0
je 0x18034c2aa
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x18034c2ba
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x18034c3f4
cmp qword [rsp + 0x28], 0
je 0x18034c303
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18034c303
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x18034c3f4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x18034c3f4
mov rcx, qword [rsp + 0x70]
call fcn.1801ac666
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [fcn.1801ad1dd]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18034c3e9
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x18034c3e9
mov rcx, qword [rsp + 0x48]
call fcn.1801ac666
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x1805b10e0]
mov rcx, rax
call fcn.1801abc52
mov rcx, qword [rsp + 0x48]
call fcn.1801ac666
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.1801abc52
cmp qword [rsp + 0x28], 0
je 0x18034c3cf
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x18034c3df
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [fcn.1801abe8c]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x1801aee66
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1803b9c60
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_27
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x1805c2a00], 0
jne 0x1803b9ce1
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1801ae5fb
movzx eax, al
test eax, eax
je 0x1803b9cd7
mov dword [0x1805c2a00], 2
jmp 0x1803b9ce1
mov dword [0x1805c2a00], 1
cmp dword [0x1805c2a00], 2
jne 0x1803b9cec
jmp 0x1803b9d4a
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1803b9d24
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x1803b9d24
jmp 0x1803b9d4a
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1801ae55b
add rsp, 0x90
pop rdi
ret

Function at 0x1801aef15
Capabilities:
Print debug messages

Disassembly:
jmp 0x1804c21b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1801af055
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1804102d0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.18040fc20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180410319
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1805e5020]
jmp 0x180410328
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1801af3e3
Capabilities:
Create thread

Disassembly:
jmp 0x180417990
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x1804179bc
mov dword [rsp + 0x30], 1
jmp 0x1804179c4
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x180417a0d
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x1805591a8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.1801aa91f
cmp eax, 1
jne 0x180417a0d
int3
cmp dword [rsp + 0x34], 0
jne 0x180417a4f
call fcn.1801abf27
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x20], 0
mov r9d, reloc.WLDAP32.dll_Ordinal_200
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.1801ae821
xor eax, eax
jmp 0x180417b4f
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.180417480
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180417280
lea rcx, [rsp + 0x40]
call fcn.1804172f0
movzx eax, al
test eax, eax
jne 0x180417a9f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1804172d0
mov rax, qword [rsp + 0x50]
jmp 0x180417b4f
lea rcx, [rsp + 0x40]
call fcn.180417630
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x180417030]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180417b13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801ab905
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.1804172d0
mov rax, qword [rsp + 0x58]
jmp 0x180417b4f
cmp qword [rsp + 0xa8], 0
je 0x180417b2c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.1804175f0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1804172d0
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x1801af3ed
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x18035e400
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xf0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x60]
mov dword [rax + 0x1380], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70d]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1388], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
test eax, eax
je 0x18035e475
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70d]
cmp eax, ecx
jle 0x18035e48c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x70d]
mov byte [rax + 0x1359], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1180], 0
je 0x18035e4c5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x135a]
test eax, eax
jne 0x18035e4c5
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x1a0
jne 0x18035e4c5
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xdd], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70d]
cmp eax, 0xa
jne 0x18035e4f8
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.1801aece0
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1801ac954
jmp 0x18035e560
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70d]
cmp eax, 0x14
je 0x18035e51f
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x7c], 2
jne 0x18035e539
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x65
jne 0x18035e539
xor eax, eax
test eax, eax
jne 0x18035e51f
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6d0]
mov dword [rax], 2
jmp 0x18035e560
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x70d]
cmp eax, 0xb
jl 0x18035e560
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ce]
test eax, eax
jne 0x18035e560
xor eax, eax
test eax, eax
jne 0x18035e55a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0x64
jl 0x18035e583
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x60], 0xc8
jge 0x18035e583
mov dword [rsp + 0x28], 1
jmp 0x18035e58b
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x18035e59c
mov dword [rsp + 0x2c], 0
jmp 0x18035e5a4
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xde], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x18035e5f2
cmp dword [rsp + 0x30], 0x130
je 0x18035e5d6
jmp 0x18035e617
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x530]
test eax, eax
je 0x18035e5f2
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1464], 1
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xde], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1801af58c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180379230
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1805c0c48]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x20], Ordinal_46
lea rax, str.0123456789abcdef
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0xc8], rax
xor eax, eax
test eax, eax
jne 0x180379293
xor edx, edx
mov rax, qword [rsp + 0x100]
mov ecx, 2
div rcx
cmp rax, 0x80
jae 0x1803792c4
mov rax, qword [rsp + 0x100]
and rax, 1
test rax, rax
jne 0x1803792ce
mov eax, Ordinal_46
jmp 0x1803793d7
mov rax, qword [rsp + 0x100]
dec rax
mov qword [rsp + 0x100], rax
xor edx, edx
mov rax, qword [rsp + 0x100]
mov ecx, 2
div rcx
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xf0]
call fcn.1801aba40
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x18037931c
mov eax, dword [rsp + 0x20]
jmp 0x1803793d7
cmp qword [rsp + 0x100], 0
je 0x1803793c8
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
and eax, 0xf0
sar eax, 4
cdqe
mov rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x28]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0xf8]
inc rax
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xc8]
movzx eax, byte [rax]
and eax, 0xf
cdqe
mov rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x28]
movzx eax, byte [rdx + rax]
mov byte [rcx], al
mov rax, qword [rsp + 0xf8]
inc rax
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xc8]
inc rax
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x100]
sub rax, 2
mov qword [rsp + 0x100], rax
jmp 0x18037931c
mov rax, qword [rsp + 0xf8]
mov byte [rax], 0
mov eax, dword [rsp + 0x20]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1801ae55b
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1801ac93b
add rsp, 0xe0
pop rdi
ret

Function at 0x1801af63b
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x180379410
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1801adf07
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call fcn.1801aa6b3
test eax, eax
je 0x180379452
mov eax, 2
jmp 0x180379454
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18021ba50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
push rdi
sub rsp, 0x1c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_60
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1e8]
mov rax, qword [0x1805c0c48]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1801af47e
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x1d0]
mov qword [rbp + 8], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x30
mov byte [rbp + 0x64], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x30
mov byte [rbp + 0x84], al
mov dword [rbp + 0xa4], 0
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rbp + 0x1c8]
movsx eax, byte [rcx + rax]
sub eax, 0x61
cdqe
lea rcx, [0x180517a88]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0xc4], ax
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rbp + 0x1c8]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov dword [rbp + 0xa4], 0
movzx eax, byte [rbp + 0x64]
mov byte [rbp + 0x194], al
movzx eax, byte [rbp + 0x64]
dec al
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x194]
test eax, eax
je 0x18021bbb4
mov rax, qword [rbp + 0x1c0]
movzx eax, byte [rax]
lea rcx, [0x1805178a0]
movzx eax, byte [rcx + rax]
and eax, 4
test eax, eax
jne 0x18021bb86
jmp 0x18021bc41
imul eax, dword [rbp + 0xa4], 0xa
mov rcx, qword [rbp + 0x1c0]
movsx ecx, byte [rcx]
lea eax, [rax + rcx - 0x30]
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x1c0]
inc rax
mov qword [rbp + 0x1c0], rax
jmp 0x18021bb47
movsx eax, byte [rbp + 0x84]
cmp dword [rbp + 0xa4], eax
jl 0x18021bbec
movzx eax, word [rbp + 0xc4]
cmp dword [rbp + 0xa4], eax
jg 0x18021bbec
movsx eax, byte [rbp + 0x44]
test eax, eax
je 0x18021bbee
movsx eax, byte [rbp + 0x44]
mov rcx, qword [rbp + 0x1c0]
movsx ecx, byte [rcx]
cmp eax, ecx
je 0x18021bbee
jmp 0x18021bc41
mov rax, qword [rbp + 8]
add rax, 8
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax - 8]
mov ecx, dword [rbp + 0xa4]
mov dword [rax], ecx
mov rax, qword [rbp + 0x1c0]
inc rax
mov qword [rbp + 0x1c0], rax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x1c8]
add rax, 4
mov qword [rbp + 0x1c8], rax
movsx eax, byte [rbp + 0x44]
test eax, eax
jne 0x18021baba
mov qword [rbp + 8], 0
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1801ae55b
mov eax, edi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1801ac93b
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret
Function at 0x180244030
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x40]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1801af47e
mov rax, qword [rbp + 0xe0]
mov byte [rax + 0x1c], 1
mov eax, dword [rbp + 0x100]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0xf0]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xe8]
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rcx, qword [rbp + 0xe0]
call fcn.18028a5a0
cmp dword [rbp + 0xf0], 0
jne 0x1802440de
mov eax, dword [rbp + 0x100]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xe8]
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, qword [rbp + 0xe0]
call fcn.18028a5a0
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret