joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400782f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x20], 1
mov eax, dword [rcx + 0x450]
mov rbx, rcx
jne 0x14007834c
cmp dword [rcx + 0x458], eax
jae 0x1400783c9
mov r8d, dword [rbx + 0x458]
mov rax, qword [rbx + 0x448]
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
and r8d, 0x1ffff
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x458]
mov eax, dword [rbx + 0x458]
inc dword [rbx + 0x10]
cmp eax, dword [rbx + 0x450]
jb 0x140078311
jmp 0x1400783c9
cmp dword [rcx + 0x458], eax
jae 0x1400783c9
mov r8d, dword [rbx + 0x458]
mov rax, qword [rbx + 0x448]
movsxd rdx, dword [rbx + 0x480]
mov rcx, qword [rbx + 0x470]
and r8d, 0x1ffff
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x480]
cmp dword [rbx + 0x480], 0x10000
jne 0x1400783b2
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x470]
mov edx, 1
mov r8d, 0x10000
call fcn.1400278c0
and dword [rbx + 0x480], 0
inc dword [rbx + 0x458]
mov eax, dword [rbx + 0x458]
inc dword [rbx + 0x10]
cmp eax, dword [rbx + 0x450]
jb 0x140078354
and dword [rbx + 0x454], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400783d8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
test dword [rcx + 0x484], 0xfffeffff
mov rbx, rcx
jne 0x14007840f
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x478]
mov edx, 1
mov r8d, 0x10000
call fcn.140029b34
and dword [rbx + 0x484], 0
movsxd rdx, dword [rbx + 0x484]
mov rax, qword [rbx + 0x478]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x484], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140078638
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
lea rcx, [rsp + 0x20]
mov ebx, r9d
mov esi, r8d
mov rdi, rdx
call fcn.140078430
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.14007848c
test esi, esi
je 0x140078683
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.140078600
xor byte [rdi], al
inc rdi
dec rbx
jne 0x14007866f
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140079ab8
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.140037740
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 0x140079b0d
xor eax, eax
jmp 0x140079c4d
lea r8, [rbp + 0xff50]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.1400264f0
lea rcx, [rsp + 0x50]
call fcn.140025748
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140079b48
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x140079b48
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140079b5c
test sil, sil
je 0x140079b06
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140079b9c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140079b06
lea rcx, [rbp + 0x1ff50]
xor edx, edx
mov r8d, 0x2fffa
call fcn.140025970
add bx, bx
lea rdx, [rsp + 0x50]
mov word [rbp + 0x1ff5a], bx
lea rcx, [rbp + 0x1ff60]
add bx, 2
mov r8d, 0x7fff
mov dword [rbp + 0x1ff50], 0xa0000003
mov word [rbp + 0x1ff5c], bx
call fcn.140026f88
movzx eax, word [rbp + 0x1ff5a]
mov qword [rsp + 0x38], r14
add ax, 0xc
lea r8, [rbp + 0x1ff50]
mov edx, 0x900a4
movzx r9d, ax
mov word [rbp + 0x1ff54], ax
lea rax, [rbp + 0x4ff70]
mov qword [rsp + 0x30], rax
add r9d, 8
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x140079c42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140079b8e
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 0x14007f834
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007f8e0
lea rdx, [0x1400a92cc]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007f8ce
lea rdx, [0x1400ca918]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007f8ce
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, dword [rbp + 0x1c8]
or edx, dword [rbp + 0x1c0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14007f8f9
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007f875
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x1d0], bl
jne 0x14007f909
mov al, sil
jmp 0x14007f9c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14007f9c6
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ca910]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007f9b9
mov rsi, qword [rbp + 0x1b8]
test byte [rsp + 0x30], 0x10
je 0x14007f9a3
lea rdx, [0x1400a92cc]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007f9a3
lea rdx, [0x1400ca918]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007f9a3
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, byte [rbp + 0x1d0]
mov r9d, dword [rbp + 0x1c8]
mov r8d, dword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1b0]
mov rdx, rsi
mov byte [rsp + 0x20], al
call fcn.14007f834
test al, al
je 0x14007f9bb
lea rcx, [0x1400ca918]
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 0x14007f92f
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14007f9d4
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ebp, r9d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007fa69
lea rdx, [0x1400a92cc]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007fa57
lea rdx, [0x1400ca918]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007fa57
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.1400727d4
test al, al
je 0x14007fa87
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007fa11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14007fa97
mov al, sil
jmp 0x14007fb52
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14007fb52
lea rdx, [rsp + 0x30]
lea rcx, [0x1400ca910]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14007fb45
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14007fb2f
lea rdx, [0x1400a92cc]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007fb2f
lea rdx, [0x1400ca918]
lea rcx, [rsp + 0x5c]
call fcn.1400263a4
test eax, eax
je 0x14007fb2f
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
mov r9d, esi
mov byte [rsp + 0x20], bpl
call fcn.14007f9d4
test al, al
je 0x14007fb47
lea rcx, [0x1400ca918]
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 0x14007fabd
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007fd6c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
lea rcx, [rsp + 0x48]
call fcn.14001ea0c
mov rax, qword [rsp + 0x48]
lea rdx, [0x1400ca910]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
inc dword [rax]
mov qword [rbp - 0x80], rax
call fcn.14001e870
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x70]
mov bl, 1
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x14007ff1d
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.140006cf0
cmp eax, 1
je 0x14007ff16
cmp eax, 0xb
jne 0x14007fe27
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007fe02
lea rdx, [0x1400a92cc]
lea rcx, [rbp - 0x44]
call fcn.1400263a4
test eax, eax
je 0x14007fefd
lea rdx, [0x1400ca918]
lea rcx, [rbp - 0x44]
call fcn.1400263a4
test eax, eax
je 0x14007fefd
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14001ec74
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x48]
call fcn.14001e870
test byte [rbp - 0x70], 0x10
je 0x14007fed7
test sil, sil
je 0x14007fe82
inc qword [rdi]
cmp byte [rbp + 0x230], 0
je 0x14007fefd
lea rdx, [0x1400a92e4]
lea rcx, [rsp + 0x48]
call fcn.14001e870
mov al, byte [rbp + 0x230]
mov r9, qword [rbp + 0x218]
mov r8, qword [rbp + 0x210]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x200]
mov byte [rsp + 0x30], al
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rdi
call fcn.14007fd6c
mov bl, al
test al, al
je 0x14007ff18
jmp 0x14007fefd
mov eax, dword [rbp - 0x50]
mov ecx, dword [rbp - 0x54]
shl rcx, 0x20
or rcx, rax
mov rax, qword [rbp + 0x210]
add qword [rax], rcx
test sil, sil
je 0x14007fefd
mov rax, qword [rbp + 0x218]
inc qword [rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007fe02
jmp 0x14007ff18
xor bl, bl
mov rax, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x68]
call fcn.14001bc24
lea rcx, [rsp + 0x48]
call fcn.14001bc24
mov al, bl
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140082c18
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 0x140082c47
mov r8b, r9b
call fcn.140082d50
jmp 0x140082d3b
mov ebp, dword [rcx + 0x90]
mov rcx, qword [rdx + 0x60]
mov eax, dword [rdx + 0xe0]
and qword [rsp + 0x38], 0
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 0x140082ca6
lea edx, [rax + 0x15]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.140083ec0
jmp 0x140082d3b
mov rdx, qword [rdi + 0xc0]
and qword [rsp + 0x20], 0
mov r9d, ebp
mov r8d, 0x80000000
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov rdi, rax
test rax, rax
jne 0x140082cdb
xor r9d, r9d
lea edx, [rax + 0x16]
mov r8d, 0xdeadbeef
jmp 0x140082d21
lea rdx, [rsp + 0x60]
mov rcx, rax
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 0x140082d19
cmp byte [rbx + 0x48], 0
mov rdx, rdi
mov rcx, rbx
je 0x140082d12
call fcn.140083d78
jmp 0x140082d29
call fcn.140083c90
jmp 0x140082d29
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.140083ec0
mov bl, al
test rdi, rdi
je 0x140082d39
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 0x140083028
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
cmp dword [rdx + 0xe4], 4
mov r14d, dword [rcx + 0x90]
mov r12b, r9b
mov r15b, r8b
mov rsi, rdx
mov rbx, rcx
jne 0x140083060
bts r14d, 0x17
mov eax, dword [rdx + 0xe0]
mov r10, qword [rdx + 0x60]
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
mov rcx, qword [rcx + 8]
mov rdx, qword [rdx + 0x20]
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x1400830bb
lea edx, [rax + 0xb]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.140083ec0
jmp 0x1400831fc
mov r8, qword [rsi + 0xc0]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r14d
xor r9d, r9d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rdi, rax
test rax, rax
jne 0x1400830f4
lea edx, [rax + 0xc]
jmp 0x1400831d9
test r15b, r15b
je 0x140083107
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call fcn.140083f08
bt r14d, 0xc
jae 0x140083146
mov r14d, 4
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x40]
lea esi, [r14 + 0x1b]
mov rcx, rdi
mov dword [rbp + 0x48], r14d
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, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1400831d4
mov rdx, rdi
call fcn.140082fd8
cmp eax, 0xc8
jne 0x1400831d4
lea rax, [rbp + 0x40]
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x20]
mov edx, 5
mov rcx, rdi
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x48], reloc.OLEAUT32.dll_RegisterActiveObject
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x20]
mov word [rbp - 2], r13w
call fcn.1400263ec
mov rcx, rbx
mov qword [rbx + 0x18], rax
test r12b, r12b
je 0x1400831ca
mov rdx, rdi
cmp byte [rbx + 0x48], r13b
je 0x1400831c3
call fcn.140083d78
jmp 0x1400831ea
call fcn.140083c90
jmp 0x1400831ea
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x1400831e5
mov edx, reloc.WSOCK32.dll_listen
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.140083ec0
mov bl, al
test rdi, rdi
je 0x1400831fa
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
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 0x140083b28
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x140083b3f
movzx eax, word [rcx + 0x100]
jmp 0x140083b46
movzx eax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x140083b5c
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x140083b6c
mov edx, ecx
jmp 0x140083b82
cmp ecx, 2
jne 0x140083b80
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x140083b88
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x140083bce
cmp byte [rbx + 0x19c], 0
je 0x140083bcc
and dword [rsp + 0x44], 0
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140083c90
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], rsi
push rdi
sub rsp, 0x420
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rdx, [0x1400ca868]
call fcn.140029744
mov rdi, rax
test rax, rax
jne 0x140083cc5
lea edx, [rax + 0x1f]
jmp 0x140083d3f
mov dword [rsp + 0x430], 1
lea r9, [rsp + 0x430]
lea rdx, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140083d3a
mov eax, dword [rsp + 0x430]
test eax, eax
je 0x140083d1f
lea rcx, [rsp + 0x20]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.1400278c0
mov ecx, dword [rsp + 0x430]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x140083cd0
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x140083d30
mov edx, SafeArrayDestroyDescriptor
jmp 0x140083d42
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x140083d4b
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.140083ec0
mov bl, al
test rdi, rdi
je 0x140083d5f
mov rcx, rdi
call fcn.1400298ac
lea r11, [rsp + 0x420]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140083d78
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 rbx, rcx
lea rdx, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
mov dword [rbp + 0x40], 1
mov qword [rbp + 0x48], 1
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 0x140083e79
test rax, rax
jne 0x140083dda
xor edi, edi
jmp 0x140083de9
mov rcx, rax
call fcn.14002503c
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 0x140083e87
mov ecx, dword [rbp + 0x40]
test ecx, ecx
je 0x140083e71
mov esi, ecx
test rdi, rdi
je 0x140083e5e
test ecx, ecx
je 0x140083e5e
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
lea rdx, [rbp - 0x10]
lea rcx, [rbx + 0x70]
call fcn.1400842a4
xor ecx, ecx
call fcn.140023700
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 0x140083e79
mov rax, qword [rbp + 0x48]
jmp 0x140083dd1
mov rcx, rdi
call fcn.140023700
cmp qword [rbx + 0x10], 0
jne 0x140083e9f
mov edx, SafeArrayDestroyDescriptor
jmp 0x140083e94
mov rcx, rdi
call fcn.140023700
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x140083ea7
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.140083ec0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140084040
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
xor edx, edx
mov rsi, r8
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x31]
call fcn.140025970
mov r14d, 1
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
mov dword [rbp - 0x39], 0xf0
call fcn.140025748
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1400841a4
mov r9d, dword [rbp - 0x29]
mov rdx, qword [rbp - 0x31]
xor r8d, r8d
mov rcx, rsi
call fcn.14001e130
mov r9d, dword [rbp - 0x19]
mov rdx, qword [rbp - 0x21]
lea rcx, [rsi + 0x20]
xor r8d, r8d
call fcn.14001e130
mov r9d, dword [rbp - 9]
mov rdx, qword [rbp - 0x11]
lea rcx, [rsi + 0x40]
xor r8d, r8d
call fcn.14001e130
mov r9d, dword [rbp + 7]
mov rdx, qword [rbp - 1]
lea rcx, [rsi + 0x60]
xor r8d, r8d
call fcn.14001e130
mov r9d, dword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
lea rdi, [rsi + 0x80]
xor r8d, r8d
mov rcx, rdi
call fcn.14001e130
mov r9d, dword [rbp + 0x27]
mov rdx, qword [rbp + 0x1f]
lea rbx, [rsi + 0xa0]
xor r8d, r8d
mov rcx, rbx
call fcn.14001e130
lea rdx, [rbp + 0x37]
mov r8, rbx
mov rcx, rdi
call fcn.140063620
lea rcx, [rsi + 0xc0]
mov rdx, rax
call fcn.14001ec74
lea rcx, [rbp + 0x37]
call fcn.14001bc24
mov ecx, dword [rbp - 0x25]
movzx eax, word [rbp - 0x15]
mov dword [rsi + 0xe4], ecx
mov word [rsi + 0xe8], ax
dec ecx
je 0x14008419a
dec ecx
je 0x14008418e
mov dword [rsi + 0xe0], 3
jmp 0x1400841a1
mov dword [rsi + 0xe0], 2
jmp 0x1400841a1
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 0x1400841c4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp byte [rcx + 0x188], bl
je 0x14008422a
test dl, dl
je 0x14008422a
mov rcx, qword [rcx + 0x190]
test rcx, rcx
je 0x1400841f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x190], rbx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [0x140084278]
mov r8, rdi
xor edx, edx
mov qword [rdi + 0x190], rax
call fcn.14002a1c8
cmp dword [rdi + 0x20], ebx
sete al
jmp 0x14008422f
call fcn.140082ea8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14008a228
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]
mov ebp, r9d
mov eax, r9d
shl eax, 2
mov edi, r8d
or r10d, 0xffffffff
imul ebp, dword [rsp + 0x30]
movsxd rbx, eax
shl ebp, 2
add rdi, rdx
add rbx, rdx
mov r11, rdx
mov r9, rdx
shl esi, 2
lea r14, [0x1400cacc0]
movzx eax, byte [r11 + 2]
movzx ecx, r10b
shr r10d, 8
xor rcx, rax
movzx eax, byte [r11 + 1]
mov edx, dword [r14 + rcx*4]
xor edx, r10d
movzx ecx, dl
shr edx, 8
xor rcx, rax
movzx eax, byte [r11]
add r11, rbp
mov r8d, dword [r14 + rcx*4]
xor r8d, edx
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
mov r10d, dword [r14 + rcx*4]
xor r10d, r8d
cmp r11, rdi
jb 0x14008a2c4
mov eax, esi
add r9, rax
mov r11, r9
cmp r9, rbx
jb 0x14008a272
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
xorps xmm0, xmm0
mov rdi, qword [rsp + 0x28]
not r10d
mov eax, r10d
cvtsi2sd xmm0, rax
pop r14
ret