joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800116b0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
mov rdi, rcx
xor ebx, ebx
lea rcx, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x30], ebx
mov r8d, 0x20a
call fcn.18005f7c0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rsi, [rdi + 0xc8]
cmp qword [rsi + 0x18], 8
jb 0x18001171e
mov rdx, qword [rsi]
jmp 0x180011721
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
add rdi, 0xe8
cmp qword [rdi + 0x18], 8
jb 0x18001173f
mov rdx, qword [rdi]
jmp 0x180011742
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800117ab
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1b]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp qword [rsi + 0x18], 8
jb 0x180011785
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp qword [rdi + 0x18], 8
jb 0x18001179d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rbx
mov word [r14], bx
cmp word [rsp + 0x40], bx
je 0x1800117da
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800117d0
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.180008a90
mov rax, r14
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18003ff90
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x180011820
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x158]
test rcx, rcx
je 0x180011882
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180011882
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ecx, ecx
call fcn.180067270
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x58]
mov rcx, rbx
call fcn.1800115b0
nop
lea r9, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae r9, qword [rbp - 0x58]
lea rsi, [0x1800be588]
mov rdx, rsi
cmp qword [0x1800be5a0], 8
cmovae rdx, qword [0x1800be588]
lea r14, [0x1800be548]
mov rcx, r14
cmp qword [0x1800be560], 8
cmovae rcx, qword [0x1800be548]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov eax, eax
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], ecx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
xor dil, dil
test rax, rax
je 0x18001196a
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1800671d0
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1800671d0
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x74], eax
jne 0x18001196a
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x70], eax
jne 0x18001196a
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x6c], eax
jne 0x18001196a
mov dil, 1
jmp 0x1800119fe
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x30]
call fcn.18005f7c0
xor ecx, ecx
call fcn.180067270
mov r9d, 0xa
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov ecx, eax
call fcn.180065e30
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.1800115b0
lea r9, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae r9, qword [rbp - 0x78]
cmp qword [0x1800be5a0], 8
cmovae rsi, qword [0x1800be588]
cmp qword [0x1800be560], 8
cmovae r14, qword [0x1800be548]
lea r8, [rbp - 0x30]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x1800119fe
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.180003e80
nop
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x180011a18
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.180003e80
movzx eax, dil
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.18003ff90
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180012ba0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x30]
call fcn.1800116b0
cmp qword [rsp + 0x48], 8
lea rcx, [rsp + 0x30]
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x180012c10
cmp qword [rsp + 0x48], 8
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], 1
lea r9, [0x180090448]
cmovae r8, qword [rsp + 0x30]
lea rdx, str.open
xor ecx, ecx
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x180012c2d
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
inc r8
call fcn.180003e80
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x68
ret
Function at 0x180017a80
Capabilities:
Parse url

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rbx, rdx
mov esi, r8d
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x68]
call fcn.18005f7c0
xor edx, edx
mov r8d, 0x2454
mov rcx, rbx
call fcn.18005f7c0
lea rax, [rbx + 8]
mov dword [rsp + 0x20], 0x68
mov qword [rsp + 0x28], rax
or rdx, 0xffffffffffffffff
lea rax, [rbx + 0x2148]
mov dword [rsp + 0x30], 0x20
mov qword [rsp + 0x38], rax
lea rax, [rbx + 0x48]
mov qword [rsp + 0x68], rax
lea rax, [rbx + 0x1048]
mov qword [rsp + 0x78], rax
lea rax, [rbx + 0x2348]
mov qword [rsp + 0x48], rax
lea rax, [rbx + 0x2048]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0x100
mov dword [rsp + 0x70], 0x800
mov dword [rsp + 0x80], 0x800
mov dword [rsp + 0x50], 0x80
mov dword [rsp + 0x60], 0x80
nop dword [rax]
inc rdx
cmp word [rdi + rdx*2], 0
jne 0x180017b40
lea r9, [rsp + 0x20]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x180017b97
mov ecx, dword [rsp + 0x34]
lea eax, [rcx - 1]
test eax, 0xfffffffc
jne 0x180017b97
cmp ecx, 2
je 0x180017b97
xor eax, eax
mov dword [rbx + 4], ecx
mov qword [rbx + 0x2448], rax
movzx eax, word [rsp + 0x44]
mov word [rbx], ax
mov eax, 1
mov dword [rbx + 0x2450], 0xffffffff
jmp 0x180017b99
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800180c0
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 8], 0
mov rbx, rcx
je 0x1800180f7
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x70
pop rbx
ret
mov qword [rsp + 0x88], rsi
add rcx, 0x5d390
xor esi, esi
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
xor r9d, r9d
mov dword [rsp + 0x5a], 0x5c003a
add ax, 0x41
mov word [rsp + 0x5e], si
xor r8d, r8d
mov word [rsp + 0x58], ax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1800182e2
mov rax, qword [rbx + 0x5d370]
cmp rax, 0xffffffffffffffff
je 0x180018172
cmp qword [rsp + 0x50], rax
ja 0x180018172
mov dword [rbx + 0x2480], 2
jmp 0x1800182e2
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
lea rcx, [rbx + 0x5d390]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800182cc
cmp dword [rbx + 0x2730], esi
je 0x1800182c5
lea rdi, [rbx + 0x2718]
mov rcx, rbx
mov rax, qword [rdi]
mov qword [rdi + 8], rax
call fcn.18001a340
test eax, eax
jne 0x1800182c5
cmp dword [rbx + 0x2478], esi
ja 0x1800181ea
mov dword [rbx + 0x2478], 5
cmp dword [rbx + 0x2478], 0xa
jbe 0x1800181fd
mov dword [rbx + 0x2478], 0xa
mov qword [rbx + 0x5d230], rsi
lea rcx, [rsp + 0x48]
mov rax, qword [rbx + 0x5d370]
lea rsi, [rbx + 0x5d228]
dec rax
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x5d238], rax
mov rax, qword [rdi + 8]
cmp rcx, rax
jae 0x180018270
mov rcx, qword [rdi]
lea rdx, [rsp + 0x48]
cmp rcx, rdx
ja 0x180018270
lea rsi, [rsp + 0x48]
sub rsi, rcx
sar rsi, 3
cmp rax, qword [rdi + 0x10]
jne 0x18001825b
mov edx, 1
mov rcx, rdi
call fcn.18001b740
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x18001828f
mov rax, qword [rdi]
mov rcx, qword [rax + rsi*8]
mov qword [rdx], rcx
jmp 0x18001828f
cmp rax, qword [rdi + 0x10]
jne 0x180018283
mov edx, 1
mov rcx, rdi
call fcn.18001b740
mov rax, qword [rdi + 8]
test rax, rax
je 0x18001828f
mov qword [rax], rsi
add qword [rdi + 8], 8
lea r8, [rsp + 0x40]
mov rax, qword [rbx + 0x5d370]
xor r9d, r9d
mov edx, dword [rbx + 0x5d370]
mov rcx, qword [rbx + 8]
sar rax, 0x20
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, 1
jmp 0x1800182e4
mov dword [rbx + 0x2480], 3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x2484], eax
xor eax, eax
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x70
pop rbx
ret
Function at 0x1800183b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx eax, word [0x18008e0a0]
mov rbx, rcx
xor edi, edi
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x42]
mov dword [rsp + 0x30], edi
xor edx, edx
mov dword [rsp + 0x34], edi
mov r8d, 0x206
call fcn.18005f7c0
mov rcx, qword [rbx + 8]
lea r9d, [rdi + 2]
xor r8d, r8d
lea edx, [rdi - 0x6a]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
lea r8d, [rdi + 0x6a]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 0x6a
jne 0x1800184c1
lea rdx, [rsp + 0x40]
mov eax, edi
lea r8, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
movzx ecx, word [rdx + rax*2]
cmp cx, word [r8 + rax*2]
jne 0x1800184c1
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r8 + rax*2 + 2]
jne 0x1800184c1
add rax, 2
cmp rax, 0x36
jne 0x180018444
mov rcx, qword [rbx + 8]
lea r9d, [rax - 0x35]
lea edx, [r9 - 0x6f]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x34]
mov r9d, 1
add edx, dword [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rbx + 8]
neg edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18003ff90
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x180018cf0
Capabilities:
Send data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x2700]
mov rdi, rcx
mov r8d, edx
mov rbx, qword [rax + r8*8]
mov rax, qword [rbx + 0x40]
mov dword [rbx + 0x4c], 2
cmp dword [rax + 4], 1
je 0x180018d90
cmp qword [rcx + 0x2490], 0
je 0x180018d63
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rdi + 0x2498]
lea r9, [rsp + 0x38]
mov rdx, qword [rdi + 0x2490]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x180018d73
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180018dc8
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx], 0
jne 0x180018db2
mov rax, qword [rbx + 8]
test rax, rax
je 0x180018db2
mov qword [rbx + 0x30], rax
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, 1
mov dword [rbx + 0x4c], 0
call fcn.18001b180
test eax, eax
jne 0x180018d63
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800194c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x2700]
mov rdi, rcx
mov esi, edx
mov rbx, qword [rax + rsi*8]
mov rax, qword [rbx + 0x40]
cmp dword [rax + 4], 1
je 0x180019644
mov rdx, rbx
call fcn.18001a040
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180019504
mov dword [rcx + 0x2450], eax
cmp dword [rbx], 0
jne 0x1800195ad
cmp eax, 0xce
jne 0x1800195ad
cmp qword [rdi + 0x5d370], 0xffffffffffffffff
je 0x1800195cf
mov rdx, rbx
mov rcx, rdi
call fcn.180019e80
test eax, eax
je 0x1800195e5
mov rdx, qword [rbx + 0x60]
cmp rdx, 0xffffffffffffffff
je 0x1800195e5
mov rax, qword [rbx + 0x8068]
mov rcx, qword [rdi + 0x5d378]
mov rax, qword [rax + 8]
add rax, rdx
test rcx, rcx
je 0x18001959f
cmp rcx, rax
je 0x18001959f
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x180019579
mov dword [rax + 0x244c], 1
mov edx, esi
mov rcx, rdi
call fcn.180017670
mov edx, 4
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.180017f20
cmp qword [rdi + 0x5d370], rax
jne 0x1800195e5
jmp 0x18001965e
cmp eax, 0x1f4
jne 0x180019604
mov rcx, rdi
mov r8d, 1
mov dword [rbx + 0x4c], 4
mov edx, esi
call fcn.18001b180
test eax, eax
jne 0x1800195ef
cmp dword [rdi + 0x2730], 0
je 0x1800195e5
mov edx, 0x15f90
mov rcx, rdi
call fcn.18001b2a0
mov edx, esi
mov rcx, rdi
call fcn.180017670
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x194
jne 0x1800195cf
mov rax, qword [rbx + 0x40]
test rax, rax
je 0x18001961e
mov dword [rax + 0x244c], 1
mov edx, esi
mov rcx, rdi
call fcn.180017670
mov edx, 4
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.180017f20
cmp dword [rbx], 0
jne 0x1800195b7
mov rax, qword [rbx + 8]
test rax, rax
je 0x1800195b7
mov qword [rbx + 0x38], rax
mov rax, qword [rbx + 0x40]
cmp dword [rax + 0x2448], 0xffffffff
jne 0x18001967e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rbx + 0x40]
sub eax, dword [rbx + 0x10]
mov dword [rcx + 0x2448], eax
cmp dword [rdi + 0x2730], 0
je 0x1800196a8
mov rcx, qword [rbx + 0x38]
lea r8, [rsp + 0x38]
mov r9d, 4
mov dword [rsp + 0x38], 0x4e20
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rax, qword [rbx + 0x8068]
cmp dword [rax + 4], 0
jne 0x1800195e5
mov dword [rax + 4], 1
mov dword [rbx + 0x4c], 8
jmp 0x1800195ef
Function at 0x180019860
Capabilities:
Send data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x2700]
mov rdi, rcx
mov esi, edx
mov rbx, qword [rax + rsi*8]
mov rax, qword [rbx + 0x40]
mov dword [rbx + 0x4c], 6
cmp dword [rax + 4], 1
je 0x1800198fc
cmp qword [rcx + 0x2490], 0
je 0x180019932
mov rcx, qword [rbx + 0x18]
xor esi, esi
mov dword [rsp + 0x38], esi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r8d, dword [rdi + 0x2498]
lea r9, [rsp + 0x38]
mov rdx, qword [rdi + 0x2490]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x1800198db
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x180019932
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
sete sil
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp dword [rbx], 0
jne 0x180019910
mov rax, qword [rbx + 8]
test rax, rax
je 0x180019910
mov qword [rbx + 0x30], rax
jmp 0x180019932
mov r8d, 1
mov dword [rbx + 0x4c], 4
mov edx, esi
call fcn.18001b180
test eax, eax
jne 0x180019932
mov edx, esi
mov rcx, rdi
call fcn.180017670
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180019c60
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x2700]
mov rsi, rcx
mov ebp, edx
mov r15d, 0x8000
mov r8d, r15d
xor edx, edx
mov rdi, qword [rax + rbp*8]
xor eax, eax
lea r14, [rdi + 0x8070]
mov qword [r14], rax
lea rbx, [rdi + 0x68]
mov qword [r14 + 8], rax
mov rcx, rbx
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x20], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x30], rax
mov dword [r14], 0x38
call fcn.18005f7c0
mov rcx, qword [rdi + 0x8068]
mov qword [rdi + 0x8090], rbx
mov dword [rdi + 0x8098], r15d
test rcx, rcx
je 0x180019cf5
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx + 0x18]
sub rax, qword [rcx + 8]
inc rax
jmp 0x180019d09
mov rax, qword [rsi + 0x5d370]
cmp rax, 0xffffffffffffffff
je 0x180019d16
sub rax, qword [rsi + 0x5d380]
cmp rax, r15
cmova rax, r15
mov dword [rdi + 0x8098], eax
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [rdi + 0x40]
mov rcx, qword [rdi + 0x38]
mov dword [rdi + 0x4c], 9
cmp dword [rax + 4], 1
je 0x180019d70
mov r9d, edi
mov r8d, 1
mov rdx, r14
call qword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x180019d5c
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x180019da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180019d9c
mov eax, 1
jmp 0x180019da8
mov r8d, dword [rdi + 0x8098]
lea r9, [rdi + 0x8098]
mov rdx, qword [rdi + 0x8090]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180019d4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x180019d55
mov edx, ebp
mov rcx, rsi
call fcn.180017670
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18001a910
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x18001a928
xor eax, eax
add rsp, 0x30
pop rbx
ret
add rcx, 0x5d7a0
mov qword [rsp + 0x48], rdi
lea rdx, str.MetalinkFile
call fcn.180060f30
xor edi, edi
test rax, rax
je 0x18001a959
lea rcx, [rax + 0x1a]
mov word [rax], di
call fcn.1800685f4
mov dword [rbx + 0x26a8], eax
mov rcx, rbx
call fcn.180018720
test eax, eax
jne 0x18001a970
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x2470], rax
test rax, rax
je 0x18001a9c1
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rcx
lea r8, [0x18001a9e0]
xor ecx, ecx
mov dword [rbx + 0x5d368], 8
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
call fcn.180068798
mov qword [rbx + 0x10], rax
mov eax, 1
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret

Function at 0x18001ac90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [rdx + 0x40]
mov rdi, rdx
mov esi, dword [rdx + 0x8098]
mov rbx, rcx
cmp dword [rax + 4], 1
jne 0x18001acb0
mov esi, dword [rdx]
cmp dword [rcx + 0x2730], 0
mov qword [rsp + 0x60], rbp
je 0x18001ad72
call fcn.1800183b0
mov rbp, qword [rdi + 0x8068]
lea r8, [rsp + 0x58]
xor r9d, r9d
mov rcx, qword [rbp + 8]
add rcx, qword [rbp + 0x18]
mov rax, rcx
mov edx, ecx
mov rcx, qword [rbx + 8]
sar rax, 0x20
mov dword [rsp + 0x58], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18001ad08
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18001adc5
mov rcx, qword [rbx + 8]
lea rdx, [rdi + 0x68]
xor eax, eax
lea r9, [rsp + 0x50]
mov r8d, esi
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001adc5
mov eax, dword [rsp + 0x50]
cmp eax, esi
jne 0x18001adc5
add qword [rbp + 0x18], rax
mov rdx, rdi
mov r8d, dword [rsp + 0x50]
mov rcx, rbx
add qword [rbx + 0x5d380], r8
call fcn.18001aab0
mov rcx, rbx
call fcn.18001b380
mov eax, 1
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
xor eax, eax
add rdx, 0x68
mov r8d, esi
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001adc5
mov r8d, dword [rsp + 0x50]
cmp r8d, esi
jne 0x18001adc5
add qword [rbx + 0x5d380], r8
mov rdx, rdi
mov rcx, rbx
call fcn.18001aab0
mov eax, 1
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001af30
Capabilities:
Send data
Send http request

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
mov eax, 0x10a0
call fcn.1800401b0
sub rsp, rax
mov rax, qword [0x1800bb120]
xor rax, rsp
mov qword [rsp + 0x1090], rax
mov rbx, qword [rcx + 0x2490]
lea rax, [0x180090600]
mov qword [rsp + 0x80], rax
mov rsi, rdx
movzx eax, word [0x18008e0a0]
mov r14, rcx
xor edi, edi
mov word [rsp + 0x90], ax
xor edx, edx
mov qword [rsp + 0x88], rdi
mov r8d, 0xffe
lea rcx, [rsp + 0x92]
call fcn.18005f7c0
mov r9, qword [rsi + 0x40]
lea r8, str._s_s
mov edx, 0x7ff
lea rcx, [rsp + 0x90]
lea rax, [r9 + 0x1048]
add r9, 0x48
mov qword [rsp + 0x20], rax
call fcn.180016880
cmp qword [r14 + 0x62f28], rdi
lea r9, str.HTTP_1.1
mov edx, 0x8408c300
mov r15d, esi
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x90]
mov eax, 0x8400c300
cmove edx, eax
mov rax, qword [rsi + 0x40]
mov ecx, edx
or ecx, 0x803000
cmp dword [rax + 4], 4
lea rax, [0x1800905e8]
cmovne ecx, edx
test rbx, rbx
mov dword [rsp + 0x30], ecx
lea rdx, str.POST
mov rcx, qword [rsi + 0x30]
cmove rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rsi + 0x38], rax
test rax, rax
je 0x18001b15b
lea r9d, [rdi + 4]
mov qword [rsp + 0x10e0], rbp
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x3a98
lea edx, [rdi + 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rcx, qword [rsi + 0x38]
lea r9d, [rdi + 4]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], 1
lea edx, [rdi + 0x41]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor ecx, ecx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x48], rcx
mov ebp, eax
mov qword [rsp + 0x50], rcx
mov eax, 2
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rcx
mov ecx, 0x5168
mul rcx
mov dword [rsp + 0x48], 0x38
cmovo rax, rbx
mov rcx, rax
call fcn.18004010c
mov rdi, rax
test rax, rax
je 0x18001b123
xor edx, edx
mov r8d, 0xa2d0
mov rcx, rax
call fcn.18005f7c0
mov r9d, 0x5167
mov dword [rsp + 0x20], ebp
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call fcn.180017bb0
mov qword [rsp + 0x58], rdi
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x18001b115
mov dword [rsp + 0x60], ebx
mov rcx, qword [rsi + 0x38]
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], r15
xor r8d, r8d
call qword [sym.imp.WININET.dll_HttpSendRequestExW]
mov rbp, qword [rsp + 0x10e0]
mov ebx, eax
test rdi, rdi
je 0x18001b15d
mov rcx, rdi
call fcn.180040084
mov eax, ebx
jmp 0x18001b15d
mov eax, edi
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.18003ff90
add rsp, 0x10a0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret