joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140080cec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov edx, 1
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140080d1d
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140026010
jmp 0x140080d2b
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400331cc
movzx ecx, byte [rsp + 0x34]
lea rdx, str.EA06
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
xor ebx, ebx
shl ecx, 8
or ecx, eax
mov byte [rsp + 0x34], bl
movzx eax, byte [rsp + 0x36]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.1400332b0
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140080d80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x460]
mov rbx, rcx
mov ecx, dword [rcx + 0x458]
cmp dword [rbx + 0x20], 1
jne 0x140080dde
cmp eax, ecx
jae 0x140080e55
mov r8d, dword [rbx + 0x460]
mov rax, qword [rbx + 0x450]
and r8d, 0x1ffff
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x460]
inc dword [rbx + 0x10]
mov eax, dword [rbx + 0x460]
cmp eax, dword [rbx + 0x458]
jb 0x140080da3
jmp 0x140080e55
cmp eax, ecx
jae 0x140080e55
movsxd rdx, dword [rbx + 0x488]
mov r8d, eax
mov rax, qword [rbx + 0x450]
and r8d, 0x1ffff
mov rcx, qword [rbx + 0x478]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x488]
cmp dword [rbx + 0x488], 0x10000
jne 0x140080e3c
mov r9, qword [rbx + 0x30]
mov edx, 1
mov rcx, qword [rbx + 0x478]
mov r8d, 0x10000
call fcn.140030f74
and dword [rbx + 0x488], 0
mov eax, dword [rbx + 0x460]
inc dword [rbx + 0x10]
inc eax
mov dword [rbx + 0x460], eax
cmp eax, dword [rbx + 0x458]
jb 0x140080de2
and dword [rbx + 0x45c], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140080e64
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test edx, edx
je 0x140080e82
cmp edx, r8d
jne 0x140080ea0
mov r9, qword [rcx + 0x28]
mov edx, 1
mov rcx, qword [rcx + 0x480]
call fcn.1400331cc
and dword [rbx + 0x48c], 0
xor edx, edx
mov rax, qword [rbx + 0x480]
movsxd rcx, edx
mov al, byte [rcx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400810c8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x20]
mov ebx, r8d
call fcn.140080ebc
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140080f18
test esi, esi
je 0x140081113
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.140081090
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x1400810fe
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400828e8
Capabilities:
Create directory
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x4ff68]
mov eax, 0x50050
call fcn.1400474f0
sub rsp, rax
mov sil, r9b
mov rdi, r8
mov rcx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xff50]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r14d, r14d
test eax, eax
jne 0x14008293d
xor eax, eax
jmp 0x140082a7e
lea r8, [rbp + 0xff50]
lea rdx, [0x1400dc7c0]
lea rcx, [rsp + 0x50]
call fcn.140024b1c
lea rcx, [rsp + 0x50]
call fcn.1400272dc
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140082978
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x140082978
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14008298c
test sil, sil
je 0x140082936
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400829cc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140082936
xor edx, edx
lea rcx, [rbp + 0x1ff50]
mov r8d, 0x2fffa
call fcn.140026550
add bx, bx
mov dword [rbp + 0x1ff50], 0xa0000003
mov word [rbp + 0x1ff5a], bx
lea rdx, [rsp + 0x50]
add bx, 2
lea rcx, [rbp + 0x1ff60]
mov r8d, 0x7fff
mov word [rbp + 0x1ff5c], bx
call fcn.140030594
movzx eax, word [rbp + 0x1ff5a]
lea r8, [rbp + 0x1ff50]
add ax, 0xc
mov qword [rsp + 0x38], r14
movzx r9d, ax
mov edx, 0x900a4
lea rax, [rbp + 0x4ff70]
mov word [rbp + 0x1ff54], r9w
mov qword [rsp + 0x30], rax
add r9d, 8
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x140082a73
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400829be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0x50050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140089130
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov r13, rdx
xor ebx, ebx
mov rcx, r13
lea rdx, [rsp + 0x30]
mov r15d, r9d
mov r12d, r8d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400891e4
lea rdx, [0x1400b5394]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x1400891d2
lea rdx, [0x1400dc4a0]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x1400891d2
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
lea rcx, [rsp + 0x5c]
mov eax, r15d
or edx, r12d
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140089201
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008917f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14b, byte [rbp + 0x1d0]
test r14b, r14b
jne 0x140089211
mov al, sil
jmp 0x1400892b5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x1400892b5
lea rdx, [rsp + 0x30]
lea rcx, [0x1400dc498]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400892a8
mov rsi, qword [rbp + 0x1b0]
test byte [rsp + 0x30], 0x10
je 0x140089296
lea rdx, [0x1400b5394]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x140089296
lea rdx, [0x1400dc4a0]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x140089296
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, r15d
mov byte [rsp + 0x20], r14b
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
call fcn.140089130
test al, al
je 0x1400892aa
lea rcx, [0x1400dc4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140089233
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400892d8
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov r12, rdx
mov r13, rcx
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, r12
mov r14d, r9d
mov r15, r8
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140089372
lea rdx, [0x1400b5394]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x140089360
lea rdx, [0x1400dc4a0]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x140089360
mov r8d, r14d
lea rcx, [rsp + 0x5c]
mov rdx, r15
call fcn.14007b4fc
test al, al
je 0x140089390
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008931f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x1400893a0
mov al, sil
jmp 0x14008943d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14008943d
lea rdx, [rsp + 0x30]
lea rcx, [0x1400dc498]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140089430
test byte [rsp + 0x30], 0x10
je 0x14008941e
lea rdx, [0x1400b5394]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x14008941e
lea rdx, [0x1400dc4a0]
lea rcx, [rsp + 0x5c]
call fcn.140027b40
test eax, eax
je 0x14008941e
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, r14d
mov byte [rsp + 0x20], bpl
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.1400892d8
test al, al
je 0x140089432
lea rcx, [0x1400dc4a0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400893bb
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140089658
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
lea rcx, [rsp + 0x40]
mov r14, r9
mov r12, r8
call fcn.1400094fc
mov rax, qword [rsp + 0x40]
lea rdx, [0x1400dc498]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
inc dword [rax]
call fcn.1400093ec
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov bl, 1
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400897f6
mov r15b, byte [rbp + 0x230]
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.1400698fc
cmp eax, 1
je 0x1400897f4
cmp eax, 0xb
jne 0x140089725
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140089700
lea rdx, [0x1400b5394]
lea rcx, [rbp - 0x54]
call fcn.140027b40
test eax, eax
je 0x1400897dd
lea rdx, [0x1400dc4a0]
lea rcx, [rbp - 0x54]
call fcn.140027b40
test eax, eax
je 0x1400897dd
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140009694
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x40]
call fcn.1400093ec
test byte [rbp - 0x80], 0x10
je 0x1400897c4
test sil, sil
je 0x140089780
inc qword [rdi]
test r15b, r15b
je 0x1400897dd
lea rdx, [0x1400b5498]
lea rcx, [rsp + 0x40]
call fcn.1400093ec
mov rdx, qword [rsp + 0x40]
mov r9, r14
mov rcx, qword [rbp + 0x200]
mov r8, r12
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rdi
call fcn.140089658
mov bl, al
test al, al
je 0x1400897f6
jmp 0x1400897dd
mov ecx, dword [rbp - 0x64]
mov eax, dword [rbp - 0x60]
shl rcx, 0x20
or rcx, rax
add qword [r12], rcx
test sil, sil
je 0x1400897dd
inc qword [r14]
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140089700
jmp 0x1400897f6
xor bl, bl
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x60]
call fcn.1400079ac
lea rcx, [rsp + 0x40]
call fcn.1400079ac
lea r11, [rsp + 0x2d0]
mov al, bl
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14008c58c
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov sil, r9b
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x14008c5bb
mov r8b, r9b
call fcn.14008c6c4
jmp 0x14008c6af
mov ebp, dword [rcx + 0x90]
mov rcx, qword [rdx + 0x60]
and qword [rsp + 0x38], 0
mov eax, dword [rdx + 0xe0]
and dword [rsp + 0x30], 0
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
mov rdx, qword [rdx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x14008c61a
xor r9d, r9d
lea edx, [rax + 0x15]
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14008d8ac
jmp 0x14008c6af
mov rdx, qword [rdi + 0xc0]
mov r9d, ebp
and qword [rsp + 0x20], 0
mov r8d, 0x80000000
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov rdi, rax
test rax, rax
jne 0x14008c64f
xor r9d, r9d
lea edx, [rax + 0x16]
mov r8d, 0xdeadbeef
jmp 0x14008c695
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [rsp + 0x60]
shl rcx, 0x20
mov eax, eax
or rcx, rax
mov qword [rbx + 0x18], rcx
test sil, sil
je 0x14008c68d
cmp byte [rbx + 0x48], 0
mov rdx, rdi
mov rcx, rbx
je 0x14008c686
call fcn.14008d75c
jmp 0x14008c69d
call fcn.14008d670
jmp 0x14008c69d
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14008d8ac
mov bl, al
test rdi, rdi
je 0x14008c6ad
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14008c9a0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov eax, dword [rcx + 0x90]
mov r15b, r8b
mov r8, qword [rdx + 0x60]
mov r14d, eax
bts r14d, 0x17
mov r12b, r9b
cmp dword [rdx + 0xe4], 4
mov rsi, rdx
mov r9, qword [rdx + 0x40]
mov rdi, rcx
mov rcx, qword [rcx + 8]
cmovne r14d, eax
mov eax, dword [rdx + 0xe0]
xor r13d, r13d
mov qword [r11 - 0x60], r13
mov dword [r11 - 0x68], r13d
mov dword [rsp + 0x28], eax
mov qword [r11 - 0x78], r8
movzx r8d, word [rdx + 0xe8]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rdi], rax
test rax, rax
jne 0x14008ca36
xor r9d, r9d
lea edx, [rax + 0xb]
mov r8d, 0xdeadbeef
mov rcx, rdi
call fcn.14008d8ac
jmp 0x14008cb79
mov r8, qword [rsi + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor edx, edx
mov dword [rsp + 0x30], r14d
mov rcx, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
test rax, rax
jne 0x14008ca6f
lea edx, [rax + 0xc]
jmp 0x14008cb54
test r15b, r15b
je 0x14008ca82
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.14008d8f4
bt r14d, 0xc
jae 0x14008cac1
mov r14d, 4
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x40]
mov dword [rbp + 0x48], r14d
mov rcx, rbx
lea esi, [r14 + 0x1b]
mov edx, esi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
bts dword [rbp + 0x40], 8
lea r8, [rbp + 0x40]
mov r9d, r14d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x14008cb4f
mov rdx, rbx
call fcn.14008c950
cmp eax, 0xc8
jne 0x14008cb4f
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
lea r9, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x20]
mov dword [rbp + 0x48], reloc.OLEAUT32.dll_RegisterActiveObject
mov edx, 5
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x20]
mov word [rbp - 2], r13w
call fcn.140028dbc
mov qword [rdi + 0x18], rax
mov rcx, rdi
test r12b, r12b
je 0x14008cb45
mov rdx, rbx
cmp byte [rdi + 0x48], r13b
je 0x14008cb3e
call fcn.14008d75c
jmp 0x14008cb65
call fcn.14008d670
jmp 0x14008cb65
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14008cb60
mov edx, reloc.WSOCK32.dll_listen
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rdi
call fcn.14008d8ac
mov dil, al
test rbx, rbx
je 0x14008cb76
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, dil
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008d528
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, 1
mov rbx, rcx
cmp edx, edi
jne 0x14008d547
movzx eax, word [rcx + 0x100]
jmp 0x14008d54e
movzx eax, word [rcx + 0x98]
mov rcx, qword [rcx + 0x168]
cmp ax, di
jne 0x14008d55e
mov edx, edi
jmp 0x14008d587
cmp ax, 2
jne 0x14008d585
mov eax, 0x148
lea r9, str._local_
cmp edx, edi
mov edx, 3
lea r8d, [rax - 0x68]
cmovne eax, r8d
mov r8, qword [rax + rbx]
jmp 0x14008d58d
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14008d5cd
cmp byte [rbx + 0x19c], 0
je 0x14008d5ca
and dword [rsp + 0x44], 0
lea r8, [rsp + 0x40]
mov r9d, 8
mov dword [rsp + 0x40], edi
xor ecx, ecx
lea edx, [r9 + 0x2a]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, dil
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14008d670
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x420
mov rbp, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x50]
lea rdx, [0x1400dc3f0]
call fcn.140032e50
mov rsi, rax
test rax, rax
jne 0x14008d6aa
lea edx, [rax + 0x1f]
jmp 0x14008d71c
mov ebx, 1
mov dword [rsp + 0x430], ebx
lea r9, [rsp + 0x430]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14008d717
mov eax, dword [rsp + 0x430]
test eax, eax
je 0x14008d702
mov edx, eax
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8, rbx
call fcn.140030f74
mov ecx, dword [rsp + 0x430]
add qword [rdi + 0x10], rcx
test ecx, ecx
jne 0x14008d6b6
cmp qword [rdi + 0x10], 0
jne 0x14008d710
mov edx, SafeArrayDestroyDescriptor
jmp 0x14008d71c
xor edx, edx
xor r8d, r8d
jmp 0x14008d724
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor bl, bl
mov r8d, 0xdeadbeef
mov r9b, bl
mov rcx, rdi
call fcn.14008d8ac
mov bl, al
test rsi, rsi
je 0x14008d73e
mov rcx, rsi
call fcn.140032ee0
lea r11, [rsp + 0x420]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008d75c
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r15, rdx
mov dword [rbp + 0x40], 1
mov rbx, rcx
mov qword [rbp + 0x48], 1
mov rcx, r15
lea rdx, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rax, qword [rbp + 0x48]
mov ecx, 0x400
test rax, rax
cmove rax, rcx
cmp dword [rbp + 0x40], 0
mov qword [rbp + 0x48], rax
je 0x14008d861
test rax, rax
jne 0x14008d7be
xor edi, edi
jmp 0x14008d7cd
mov rcx, rax
call fcn.140024f08
mov rdi, rax
mov rax, qword [rbp + 0x48]
lea r9, [rbp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14008d86f
mov ecx, dword [rbp + 0x40]
test ecx, ecx
je 0x14008d857
mov esi, ecx
test rdi, rdi
je 0x14008d844
test ecx, ecx
je 0x14008d844
and qword [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
and qword [rbp - 8], 0
lea rcx, [rbx + 0x70]
call fcn.14008dc9c
xor edx, edx
xor ecx, ecx
call fcn.140024ec4
mov rax, qword [rbx + 0x78]
mov rcx, qword [rbx + 0x80]
mov rcx, qword [rax + rcx*8 - 8]
mov qword [rcx], rdi
mov rcx, qword [rbx + 0x80]
mov rax, qword [rbx + 0x78]
mov rcx, qword [rax + rcx*8 - 8]
mov qword [rcx + 8], rsi
mov ecx, dword [rbp + 0x40]
mov eax, ecx
add qword [rbx + 0x10], rax
test ecx, ecx
je 0x14008d861
mov rax, qword [rbp + 0x48]
jmp 0x14008d7b5
xor edx, edx
mov rcx, rdi
call fcn.140024ec4
cmp qword [rbx + 0x10], 0
jne 0x14008d889
mov edx, SafeArrayDestroyDescriptor
jmp 0x14008d87e
xor edx, edx
mov rcx, rdi
call fcn.140024ec4
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14008d891
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14008d8ac
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008da38
Capabilities:
Parse url

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rbx, rdx
lea rcx, [rbp - 0x39]
xor edx, edx
mov rsi, r8
lea r8d, [rdx + 0x68]
call fcn.140026550
mov r14d, 1
mov dword [rbp - 0x39], 0xf0
mov rcx, rbx
mov dword [rbp - 9], r14d
mov dword [rbp - 0x19], r14d
mov dword [rbp - 0x29], r14d
mov dword [rbp + 0x27], r14d
mov dword [rbp + 0x17], r14d
mov dword [rbp + 7], r14d
call fcn.1400272dc
mov rdx, rax
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x14008dba3
mov r9d, dword [rbp - 0x29]
xor r8d, r8d
mov rdx, qword [rbp - 0x31]
mov rcx, rsi
call fcn.140008db0
mov r9d, dword [rbp - 0x19]
lea rcx, [rsi + 0x20]
mov rdx, qword [rbp - 0x21]
xor r8d, r8d
call fcn.140008db0
mov r9d, dword [rbp - 9]
lea rcx, [rsi + 0x40]
mov rdx, qword [rbp - 0x11]
xor r8d, r8d
call fcn.140008db0
mov r9d, dword [rbp + 7]
lea rcx, [rsi + 0x60]
mov rdx, qword [rbp - 1]
xor r8d, r8d
call fcn.140008db0
mov r9d, dword [rbp + 0x17]
lea rdi, [rsi + 0x80]
mov rdx, qword [rbp + 0xf]
mov rcx, rdi
xor r8d, r8d
call fcn.140008db0
mov r9d, dword [rbp + 0x27]
lea rbx, [rsi + 0xa0]
mov rdx, qword [rbp + 0x1f]
mov rcx, rbx
xor r8d, r8d
call fcn.140008db0
mov r8, rbx
lea rdx, [rbp + 0x37]
mov rcx, rdi
call fcn.14006b860
lea rcx, [rsi + 0xc0]
cmp rcx, rax
je 0x14008db5a
mov rdx, rax
call fcn.140009694
lea rcx, [rbp + 0x37]
call fcn.1400079ac
mov ecx, dword [rbp - 0x25]
movzx eax, word [rbp - 0x15]
mov dword [rsi + 0xe4], ecx
mov word [rsi + 0xe8], ax
sub ecx, r14d
je 0x14008db99
cmp ecx, r14d
je 0x14008db8d
mov dword [rsi + 0xe0], 3
jmp 0x14008dba0
mov dword [rsi + 0xe0], 2
jmp 0x14008dba0
mov dword [rsi + 0xe0], r14d
mov al, r14b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14008dbc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x188], 0
mov rbx, rcx
je 0x14008dc27
test dl, dl
je 0x14008dc27
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x14008dbf0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x190], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r8, rbx
lea rcx, [0x14008dc70]
xor edx, edx
mov qword [rbx + 0x190], rax
call fcn.1400303e4
cmp dword [rbx + 0x20], 0
sete al
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14008c820
Function at 0x140094058
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
mov esi, dword [rsp + 0x30]
lea r14, [0x1400d74b0]
mov ebp, r9d
mov edi, r8d
imul ebp, dword [rsp + 0x30]
mov eax, r9d
shl eax, 2
or r10d, 0xffffffff
movsxd rbx, eax
add rdi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
shl ebp, 2
shl esi, 2
movzx eax, byte [r11 + 2]
movzx ecx, r10b
xor rcx, rax
shr r10d, 8
movzx eax, byte [r11 + 1]
mov edx, dword [r14 + rcx*4]
xor edx, r10d
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r14 + rcx*4]
xor r8d, edx
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
mov r10d, dword [r14 + rcx*4]
xor r10d, r8d
cmp r11, rdi
jb 0x1400940f4
mov eax, esi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x1400940a2
mov rbx, qword [rsp + 0x10]
not r10d
mov rbp, qword [rsp + 0x18]
xorps xmm0, xmm0
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov eax, r10d
cvtsi2sd xmm0, rax
pop r14
ret