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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f8]
sub rsp, 0x6d0
xor r12d, r12d
mov rdi, rdx
mov edx, dword [rcx + 8]
mov r13, rcx
mov rcx, qword [rcx]
mov r14, r8
lea r15d, [r12 + 1]
xor r8d, r8d
mov rsi, r9
mov ebx, r15d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x24], ebx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov word [rsp + 0x68], r12w
mov word [rbp + 0x172], r12w
mov qword [rbp + 0x3a0], r12
call fcn.1400724d0
lea r8, [rbp + 0x3c0]
mov rdx, rdi
mov rcx, r13
call fcn.14001bea0
test eax, eax
je 0x14001bd07
lea eax, [r12 + 6]
jmp 0x14001be7d
mov r9, qword [r13]
lea rcx, [rbp + 0x600]
mov r8, r15
mov rdx, r15
call fcn.140072074
mov r9, qword [r13]
mov r12d, 4
lea rcx, [rsp + 0x20]
mov edx, r12d
mov r8, r15
call fcn.140072074
mov r15d, dword [rsp + 0x20]
mov r9, qword [r13]
lea rcx, [rsp + 0x20]
mov edi, 0x87bc
mov r8, rbx
mov edx, r12d
xor r15d, edi
call fcn.140072074
mov r11d, dword [rsp + 0x20]
mov r9, qword [r13]
xor r11d, edi
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, r12d
mov dword [rsi], r11d
mov rdi, rbx
call fcn.140072074
mov eax, dword [rsp + 0x20]
mov rcx, qword [r13]
xor eax, 0xa685
lea edx, [r12 + 0xc]
mov r8d, edi
mov dword [rsp + 0x28], eax
call fcn.1400724d0
mov ecx, dword [rsi]
call fcn.140070548
movsxd rdi, r15d
mov rcx, rdi
mov rsi, rax
call fcn.140070548
mov r9, qword [r13]
mov r8, rbx
mov rcx, rax
mov rdx, rdi
mov r12, rax
call fcn.140072074
mov r8d, dword [r13 + 0xc]
mov edx, r15d
add r8d, 0x2477
mov rcx, r12
call fcn.14001b710
xor edi, edi
test r15d, r15d
je 0x14001bdf3
lea rcx, [rsp + 0x24]
mov r8d, r15d
mov rdx, r12
call fcn.14001a17c
mov ebx, dword [rsp + 0x24]
cmp dword [rsp + 0x28], ebx
je 0x14001be10
mov rcx, rsi
call fcn.140070768
mov rcx, r12
call fcn.140070768
mov eax, 0xa
jmp 0x14001be7d
cmp byte [rbp + 0x600], 1
jne 0x14001be6d
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x68], di
mov word [rbp + 0x172], di
mov qword [rbp + 0x3a0], rdi
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rsi
call fcn.14001a1e4
mov rcx, r12
call fcn.140070768
jmp 0x14001be78
mov rcx, rsi
call fcn.140070768
mov rsi, r12
mov qword [r14], rsi
xor eax, eax
lea r11, [rsp + 0x6d0]
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 0x14001bea0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x378]
sub rsp, 0x450
xor edi, edi
mov r15, r8
mov r14, rdx
lea ebx, [rdi + 1]
mov rsi, rcx
mov r13d, edi
mov r12b, bl
mov r9, qword [rsi]
lea rcx, [rsp + 0x20]
mov r8d, 4
mov rdx, rbx
call fcn.140072074
lea rcx, [rsp + 0x20]
mov edx, 4
mov r8d, 0x18ee
call fcn.14001b710
lea rdx, str.FILE
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x24], dil
call fcn.1400720b0
test eax, eax
jne 0x14001c067
mov r9, qword [rsi]
lea edx, [rax + 4]
lea rcx, [rbp + 0x398]
mov r8, rbx
add r13d, ebx
call fcn.140072074
mov edi, dword [rbp + 0x398]
mov r9, qword [rsi]
xor edi, 0xadbc
lea rcx, [rsp + 0x30]
mov edx, 1
lea ebx, [rdi + rdi]
movsxd r8, ebx
call fcn.140072074
lea r8d, [rdi + 0xb33f]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.14001b710
movsxd r11, edi
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x140]
mov word [rsp + r11*2 + 0x30], ax
call fcn.14006f74c
mov r9, qword [rsi]
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rbp + 0x398]
call fcn.140072074
mov edi, dword [rbp + 0x398]
mov r9, qword [rsi]
xor edi, 0xf820
lea rcx, [rsp + 0x30]
mov edx, 1
lea ebx, [rdi + rdi]
movsxd r8, ebx
call fcn.140072074
lea r8d, [rdi + 0xf479]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.14001b710
movsxd r11, edi
lea rdx, [rsp + 0x30]
xor edi, edi
mov rcx, r15
mov word [rsp + r11*2 + 0x30], di
call fcn.14006f74c
lea rcx, [rbp + 0x140]
mov rdx, r14
call fcn.140070060
test eax, eax
je 0x14001c099
lea rdx, [0x14008e220]
mov rcx, r14
call fcn.140070060
test eax, eax
jne 0x14001c024
test r13d, r13d
je 0x14001c099
mov rcx, qword [rsi]
mov ebx, 1
mov r8d, ebx
mov edx, ebx
call fcn.1400724d0
mov r9, qword [rsi]
lea edx, [rbx + 3]
lea rcx, [rsp + 0x28]
mov r8d, ebx
call fcn.140072074
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsi]
xor edx, 0x87bc
mov r8d, ebx
mov dword [rsp + 0x28], edx
add edx, 0x18
call fcn.1400724d0
jmp 0x14001c06a
mov r12b, dil
cmp r12b, bl
je 0x14001beda
mov eax, 6
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor eax, eax
jmp 0x14001c078
Function at 0x140026780
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 0x140026825
lea rdx, [0x14008dcac]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x140026803
lea rdx, [0x140090e98]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x140026803
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.140011ae0
test al, al
je 0x140026815
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jmp 0x1400267bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x1400268fe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x140026843
mov al, sil
jmp 0x1400268fe
lea rdx, [rsp + 0x30]
lea rcx, [0x140090e90]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400268f1
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x1400268db
lea rdx, [0x14008dcac]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x1400268db
lea rdx, [0x140090e98]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x1400268db
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.140026780
test al, al
je 0x1400268f3
lea rcx, [0x140090e98]
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 0x140026869
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 0x1400286bc
Capabilities:
Create directory
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x990]
sub rsp, 0xa90
mov dil, r8b
mov rbx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r12d, r12d
test eax, eax
jne 0x140028704
xor eax, eax
jmp 0x140028845
lea r8, [rbp + 0x780]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.1400701b0
lea rcx, [rsp + 0x50]
call fcn.14006f364
mov rsi, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x14002873f
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x14002873f
mov word [rsp + rax*2 + 0x4e], r12w
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140028753
test dil, dil
je 0x1400286fd
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140028793
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400286fd
xor edx, edx
lea rcx, [rbp + 0x160]
lea r8d, [rdx + 0x14]
call fcn.14006fdf0
add si, si
lea rdx, [rsp + 0x50]
mov word [rbp + 0x16a], si
lea rcx, [rbp + 0x170]
add si, 2
mov r8d, 0x104
mov dword [rbp + 0x160], 0xa0000003
mov word [rbp + 0x16c], si
call fcn.14006fedc
movzx r11d, word [rbp + 0x16a]
mov qword [rsp + 0x38], r12
add r11w, 0xc
lea rax, [rbp + 0x9c8]
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], rax
movzx r9d, r11w
mov edx, 0x900a4
mov rcx, rdi
add r9d, 8
mov dword [rsp + 0x28], r12d
mov word [rbp + 0x164], r11w
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
test eax, eax
jne 0x14002883a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140028785
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400297b8
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 0x140029874
lea rdx, [0x14008dcac]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x140029852
lea rdx, [0x140090e98]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x140029852
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 0x140029864
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jmp 0x1400297f7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14002994a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x1d0], bl
jne 0x14002988d
mov al, sil
jmp 0x14002994a
lea rdx, [rsp + 0x30]
lea rcx, [0x140090e90]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002993d
mov rsi, qword [rbp + 0x1b8]
test byte [rsp + 0x30], 0x10
je 0x140029927
lea rdx, [0x14008dcac]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x140029927
lea rdx, [0x140090e98]
lea rcx, [rsp + 0x5c]
call fcn.140070060
test eax, eax
je 0x140029927
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.1400297b8
test al, al
je 0x14002993f
lea rcx, [0x140090e98]
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 0x1400298b3
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 0x14002a880
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.140001c28
mov rax, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
lea rdx, [0x140090e90]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
inc dword [rax]
mov qword [rsp + 0x68], r11
mov qword [rbp - 0x80], rax
call fcn.140001dc4
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 0x14002aa30
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.14001d300
cmp eax, 1
je 0x14002aa29
cmp eax, 0xb
jne 0x14002a93b
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002a916
lea rdx, [0x14008dcac]
lea rcx, [rbp - 0x44]
call fcn.140070060
test eax, eax
je 0x14002aa11
lea rdx, [0x140090e98]
lea rcx, [rbp - 0x44]
call fcn.140070060
test eax, eax
je 0x14002aa11
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140001d50
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x48]
call fcn.140001dc4
test byte [rbp - 0x70], 0x10
je 0x14002a9eb
test sil, sil
je 0x14002a996
inc qword [rdi]
cmp byte [rbp + 0x230], 0
je 0x14002aa11
lea rdx, [0x14008b76c]
lea rcx, [rsp + 0x48]
call fcn.140001dc4
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.14002a880
mov bl, al
test al, al
je 0x14002aa2b
jmp 0x14002aa11
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 0x14002aa11
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
je 0x14002aa2b
jmp 0x14002a916
xor bl, bl
mov rax, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x68]
call fcn.140001d20
lea rcx, [rsp + 0x48]
call fcn.140001d20
mov al, bl
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002e9c0
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 0x14002e9ef
mov r8b, r9b
call fcn.14002eb08
jmp 0x14002eaf1
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 0x14002ea5e
mov dword [rbx + 0x20], reloc.WSOCK32.dll_setsockopt
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ea57
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x14002eaf1
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 0x14002ea8e
mov dword [rbx + 0x20], SafeArrayUnaccessData
jmp 0x14002ea3c
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 0x14002eace
cmp byte [rbx + 0x48], 0
mov rdx, rdi
mov rcx, rbx
je 0x14002eac5
call fcn.14002ee68
jmp 0x14002eaca
call fcn.14002ed0c
mov bl, al
jmp 0x14002eae6
and dword [rbx + 0x20], 0
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002eae4
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov bl, 1
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 0x14002eb08
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov eax, dword [rcx + 0x90]
and qword [rsp + 0x28], 0
mov rsi, rdx
mov rdx, qword [rcx + 0x28]
mov rbx, rcx
mov rcx, qword [rcx + 8]
and eax, 0x80000000
mov r12b, r8b
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rdi, rax
test rax, rax
jne 0x14002eb82
mov dword [rbx + 0x20], reloc.OLEAUT32.dll_SafeArrayCreateEx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ecf3
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14002ecf3
mov ecx, dword [rsi + 0xe0]
lea rax, [rbx + 0x108]
lea r8, [rbx + 0xa0]
cmp ecx, 1
lea rsi, [rbx + 0xc0]
cmove r8, rax
lea rax, [rbx + 0x128]
cmove rsi, rax
mov rax, qword [r8 + 8]
test rax, rax
je 0x14002ebe5
mov r8, qword [r8]
lea r9d, [rax + 1]
mov edx, 0x2b
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, dword [rsi + 8]
mov r8, qword [rsi]
inc r9d
mov edx, 0x2c
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x14002ecc8
and dword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x30]
mov edx, 0x20000013
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], 4
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
or ecx, 0xffffffff
test eax, eax
cmovne ecx, dword [rbp - 0x30]
cmp ecx, 0xc8
jne 0x14002ecc8
and dword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x28]
mov edx, 5
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], SafeArrayDestroyDescriptor
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x28]
call fcn.1400700a8
mov qword [rbx + 0x18], rax
test r12b, r12b
je 0x14002eca5
cmp byte [rbx + 0x48], 0
mov rdx, rdi
mov rcx, rbx
je 0x14002ec91
call fcn.14002ee68
jmp 0x14002ec96
call fcn.14002ed0c
mov rcx, rdi
mov bl, al
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
jmp 0x14002ecf5
and dword [rbx + 0x20], 0
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ecbb
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x14002ecf5
mov dword [rbx + 0x20], 0x2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ecea
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14002ed0c
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 rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rbp, rdx
lea rdx, [0x14008e224]
call fcn.140071ca4
xor edi, edi
mov rsi, rax
test rax, rax
jne 0x14002ed6e
mov dword [rbx + 0x20], SafeArrayDestroyDescriptor
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ee4d
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14002ee4d
mov dword [rsp + 0x430], 1
lea r9, [rsp + 0x430]
lea rdx, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002ee23
cmp dword [rsp + 0x430], edi
je 0x14002edd4
mov edx, dword [rsp + 0x430]
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 1
call fcn.140071494
mov eax, dword [rsp + 0x430]
add qword [rbx + 0x10], rax
cmp dword [rsp + 0x430], edi
jne 0x14002ed79
cmp qword [rbx + 0x10], rdi
jne 0x14002edfe
mov dword [rbx + 0x20], SafeArrayDestroyDescriptor
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ee16
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14002ee16
mov dword [rbx + 0x20], edi
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ee13
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov dil, 1
mov rcx, rsi
call fcn.140071d2c
mov al, dil
jmp 0x14002ee4f
mov dword [rbx + SafeArrayDestroyDescriptor], 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x24], eax
mov rcx, qword [rbx + 0x190]
test rcx, rcx
je 0x14002ee45
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call fcn.140071d2c
xor al, al
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002ee68
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 r12
push r13
mov rbp, rsp
sub rsp, 0x30
mov r13, rdx
mov rdi, rcx
lea rdx, [rbp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov dword [rbp + 0x40], 1
mov qword [rbp + 0x48], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rax, qword [rbp + 0x48]
mov r11d, 0x400
test rax, rax
cmovne r11, rax
cmp dword [rbp + 0x40], 0
mov qword [rbp + 0x48], r11
je 0x14002f00c
mov ebx, 4
test r11, r11
jne 0x14002eed0
xor esi, esi
jmp 0x14002eedf
mov rcx, r11
call fcn.14006f7d8
mov r11, qword [rbp + 0x48]
mov rsi, rax
lea r9, [rbp + 0x40]
mov r8d, r11d
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14002f01c
mov ecx, dword [rbp + 0x40]
test ecx, ecx
je 0x14002f004
mov r12d, ecx
test rsi, rsi
je 0x14002eff1
test ecx, ecx
je 0x14002eff1
mov rcx, qword [rdi + 0x88]
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
cmp qword [rdi + 0x80], rcx
jne 0x14002ef8b
add rcx, rcx
mov eax, 8
cmp rcx, rbx
cmovb rcx, rbx
mov qword [rdi + 0x88], rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14006f7d8
mov r8, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x78]
shl r8, 3
mov rcx, rax
mov rbx, rax
call fcn.14006f030
mov rcx, qword [rdi + 0x78]
call fcn.14006f380
mov qword [rdi + 0x78], rbx
mov ebx, 4
mov ecx, reloc.WSOCK32.dll_recv
call fcn.14006f7d8
mov r11, rax
test rax, rax
je 0x14002efa7
movups xmm0, xmmword [rbp - 0x10]
movdqu xmmword [rax], xmm0
jmp 0x14002efaa
xor r11d, r11d
mov rcx, qword [rdi + 0x80]
mov rax, qword [rdi + 0x78]
mov qword [rax + rcx*8], r11
inc qword [rdi + 0x80]
xor ecx, ecx
call fcn.14006f380
mov rax, qword [rdi + 0x78]
mov rcx, qword [rdi + 0x80]
mov rcx, qword [rax + rcx*8 - 8]
mov qword [rcx], rsi
mov rcx, qword [rdi + 0x80]
mov rax, qword [rdi + 0x78]
mov rcx, qword [rax + rcx*8 - 8]
mov qword [rcx + 8], r12
mov ecx, dword [rbp + 0x40]
mov eax, ecx
add qword [rdi + 0x10], rax
test ecx, ecx
je 0x14002f00c
mov r11, qword [rbp + 0x48]
jmp 0x14002eec7
mov rcx, rsi
call fcn.14006f380
cmp qword [rdi + 0x10], 0
jne 0x14002f04a
mov dword [rdi + 0x20], SafeArrayDestroyDescriptor
jmp 0x14002f02b
mov rcx, rsi
call fcn.14006f380
mov dword [rdi + SafeArrayDestroyDescriptor], 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x24], eax
mov rcx, qword [rdi + 0x190]
test rcx, rcx
je 0x14002f046
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x14002f062
and dword [rdi + 0x20], 0
mov rcx, qword [rdi + 0x190]
test rcx, rcx
je 0x14002f060
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret