joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180049ae0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180196010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180049b2f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801a8750]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180049b6d
cmp rsi, r14
jb 0x180049b65
cmp rsi, r15
jae 0x180049b65
cmp qword [rsi + 8], 0
jne 0x180049d37
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180049b50
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180049c02
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180049bf9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049bf9
cmp dword [rsp + 0x40], 0x10000
je 0x180049c7b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180049bf9
sub rbx, rbp
cmp rbx, r14
jae 0x180049bc0
test rsi, rsi
jne 0x180049ce0
cmp rdi, r15
ja 0x180049d1f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180049d1f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180049d1f
cmp dword [rsp + 0x40], 0x10000
je 0x180049cb1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180049c32
jmp 0x180049d1f
test rbx, rbx
je 0x180049bf9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049ce0
cmp rbx, r14
jae 0x180049ba0
jmp 0x180049c02
test rdi, rdi
je 0x180049d1f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049ce0
cmp rdi, r15
jbe 0x180049c10
jmp 0x180049d1f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180049cf0
mov rax, qword [0x1801a8750]
mov qword [rsi], rax
mov qword [0x1801a8750], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18005feb0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18004a6b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180196010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004a7db
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18004a7d2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18004a7b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18004a7b4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18004a7b4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18004a772
mov rcx, qword [0x1801a7fe0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18004a7d2
jmp 0x18004a7a7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18004a7a7
mov rcx, qword [0x1801a7fe0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18004a7d2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18004a720
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18004a833
cmp dword [rbx + 0xc], esi
jbe 0x18004a833
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004a82c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18004a500
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18004a7f0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18005feb0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18004a860
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180196010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801a8740]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004a8d3
mov eax, 0xa
jmp 0x18004a962
test esi, esi
je 0x18004a8f5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18004a918
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004a918
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18004a911
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004a918
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18005feb0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18004a990
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1801a874c]
mov ebx, edi
test ecx, ecx
je 0x18004aacb
mov rax, qword [0x1801a8740]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18004a9e8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004a9c0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18004aacb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18004a6b0
mov r8d, dword [0x1801a874c]
cmp ebx, r8d
jae 0x18004aa58
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801a8740]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18004aa51
mov edx, esi
mov ecx, ebx
call fcn.18004a860
mov edi, eax
test eax, eax
jne 0x18004aa58
mov r8d, dword [0x1801a874c]
inc ebx
cmp ebx, r8d
jb 0x18004aa20
cmp qword [rsp + 0x20], 0
je 0x18004aacb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004aab7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004aaa8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18004aa80
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801a7fe0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18004aec0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1801a7fcc], ebp
je 0x18004af17
cmp rbx, 0x20
jae 0x18004af00
xor ecx, ecx
jmp 0x18004af02
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801a7fcc], ebp
jne 0x18004aef6
cmp qword [0x1801a7fe0], r15
je 0x18004b011
test rdi, rdi
jne 0x18004af37
mov ecx, esi
call fcn.18004a990
mov ebp, eax
jmp 0x18004b016
mov ecx, dword [0x1801a874c]
mov ebx, r15d
test ecx, ecx
je 0x18004af5f
mov r8, qword [0x1801a8740]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18004af69
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004af50
mov ebp, 4
jmp 0x18004b016
cmp ebx, 0xffffffff
je 0x18004af5f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18004b008
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004a6b0
mov edx, esi
mov ecx, ebx
call fcn.18004a860
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18004b016
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004aff2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004afe8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18004afc0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801a7fe0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18004b016
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18004b016
mov ebp, 2
xchg dword [0x1801a7fcc], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x1800568b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x1800568f9
cmp edx, 1
jne 0x180056927
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
mov qword [0x1801a7ff0], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x180055e30]
mov r9, rbx
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x1801a85c0], 0
je 0x180056927
xor edx, edx
xor ecx, ecx
call fcn.18004aec0
mov rcx, qword [0x1801a85b8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x1801a85b8], rax
mov dword [0x1801a85c0], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18005e8e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x18005ea73
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x18005ea73
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x18005e979
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x18005ea97
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x18005e98f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x18005e98f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x18005e9a2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x18005e9ed
mov r9d, eax
cmp eax, 0x800
jae 0x18005e9bc
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x18005e9ed
cmp eax, 0x10000
jae 0x18005e9d6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x18005e9ed
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x18005ea73
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x18005ea11
cmp r10d, 3
jae 0x18005ea1d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x18005ea4e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x18005ea30
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x18005e92e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x18005ea82

Function at 0x180060f00
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180060f84
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180064980]
cmp byte [rcx + rax], 0
je 0x180060f84
dec r8
sub rdx, 1
jne 0x180060f6a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002130
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rbx, rcx
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jae 0x14000216c
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xf
cmp eax, 1
jbe 0x140002174
cmp eax, 0xb
je 0x140002174
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140002eb0
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rbx, r9
mov rdi, r8
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
test r9, r9
jne 0x140002f1c
lea r9d, [rbx + 0x10]
lea r8, [0x1400c65a8]
lea rdx, str.Callback_pointer_is_null
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1400030ad
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x140002f70
lea rax, str.Failed_to_create_file
mov qword [rsp + 0x50], rax
lea rdx, [0x14010b3f0]
lea rcx, [rsp + 0x50]
call fcn.140054290
mov ecx, 0x2488
call fcn.14002661c
test rax, rax
je 0x140002f97
mov r8, qword [rsp + 0xe0]
mov rdx, rbx
mov rcx, rax
call fcn.140002e10
mov rbx, rax
jmp 0x140002f9a
mov rbx, r12
mov qword [rsp + 0xd8], rbx
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x28], rsi
lea rcx, [rbx + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.14005fb8c
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.UniKey_Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x48], rax
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140003003
lea rax, str.InternetOpen_returned_NULL
mov qword [rsp + 0x58], rax
lea rdx, [0x14010b3f0]
lea rcx, [rsp + 0x58]
call fcn.140054290
lea rdx, [0x140002e80]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp rax, 0xffffffffffffffff
jne 0x140003036
lea rax, str.Failed_to_setup_callback
mov qword [rsp + 0x60], rax
lea rdx, [0x14010b3f0]
lea rcx, [rsp + 0x60]
call fcn.140054290
lea rcx, [rbx + 0x2278]
lea r8, str.InternetOpenUrl
mov edx, 0x100
call fcn.14005fb8c
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400030a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1400030a0
lea rax, str.Failed_to_connect
mov qword [rsp + 0x68], rax
lea rdx, [0x14010b3f0]
lea rcx, [rsp + 0x68]
call fcn.140054290
nop
jmp 0x1400030aa
mov rax, rbx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400030e0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x18]
mov rbx, rdx
test rcx, rcx
je 0x1400030fa
xor edx, edx
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000310b
xor edx, edx
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14000311a
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140003129
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x140003139
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x238], 1
jne 0x140003176
mov rcx, qword [rbx + 0x2480]
test rcx, rcx
jne 0x140003152
xor eax, eax
jmp 0x14000315f
imul rax, qword [rbx + 0x2478], 0x64
xor edx, edx
div rcx
mov r9, qword [rbx + 8]
lea rcx, str.Success
mov r8d, eax
mov edx, 1
call qword [rbx]
jmp 0x140003180
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 0x2488
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140026658

Function at 0x140003650
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx + 0x268], 0
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
jne 0x14000368d
mov dword [rdx + 0x238], 1
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.140003a30
test al, al
jne 0x1400036a6
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140003840
Function at 0x1400036d0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [r8 + 8], 0
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
je 0x14000373c
mov rcx, qword [rdx + 0x2480]
mov dword [rdx + 0x238], 2
test rcx, rcx
je 0x140003715
imul rax, qword [rdx + 0x2478], 0x64
xor edx, edx
div rcx
mov rcx, rax
mov r9, qword [rbx + 8]
mov r8d, ecx
lea rcx, str.Request_failed
mov edx, 2
call qword [rbx]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.InternetOpenUrl
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx*2 + 0x2278]
cmp ax, word [rdx + rcx*2]
jne 0x1400037d3
movzx eax, word [rbx + rcx*2 + 0x227a]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x1400037d3
add rcx, 2
cmp rcx, 0x10
jne 0x140003750
mov rdx, rbx
mov rcx, rdi
call fcn.140003980
test al, al
je 0x1400037a3
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140003840
mov r9, qword [rbx + 8]
lea rcx, str.URL_not_found
xor r8d, r8d
mov dword [rbx + 0x238], 2
lea edx, [r8 + 2]
call qword [rbx]
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.InternetReadFileEx
or rcx, 0xffffffffffffffff
nop
movzx eax, word [rbx + rcx*2 + 0x227a]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140003807
add rcx, 2
cmp rcx, 0x13
je 0x140003819
movzx eax, word [rbx + rcx*2 + 0x2278]
cmp ax, word [rdx + rcx*2]
je 0x1400037e0
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x10]
Function at 0x140003840
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea r8, str.InternetReadFileEx
lea rcx, [rdx + 0x2278]
mov rbx, rdx
mov edx, 0x100
call fcn.14005fb8c
xor eax, eax
lea rdi, [rbx + 0x240]
mov qword [rdi], rax
mov r9, rbx
mov qword [rdi + 8], rax
mov r8d, 1
mov qword [rdi + 0x10], rax
mov rdx, rdi
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
lea rax, [rbx + 0x278]
mov rcx, qword [rbx + 0x20]
mov qword [rbx + 0x260], rax
mov dword [rdi], 0x38
mov dword [rbx + 0x268], 0x2000
call qword [sym.imp.WININET.dll_InternetReadFileExW]
test eax, eax
je 0x140003902
nop dword [rax]
cmp dword [rbx + 0x268], 0
je 0x140003929
mov rdx, rbx
mov rcx, rsi
call fcn.140003a30
test al, al
je 0x140003967
mov rcx, qword [rbx + 0x20]
mov r9, rbx
mov r8d, 1
mov rdx, rdi
call qword [sym.imp.WININET.dll_InternetReadFileExW]
test eax, eax
jne 0x1400038d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140003933
mov rcx, qword [rbx + 0x2480]
mov dword [rbx + 0x238], 2
test rcx, rcx
jne 0x140003945
xor eax, eax
jmp 0x140003952
mov dword [rbx + 0x238], 1
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
imul rax, qword [rbx + 0x2478], 0x64
xor edx, edx
div rcx
mov r9, qword [rbx + 8]
lea rcx, str.Download_failed
mov r8d, eax
mov edx, 2
call qword [rbx]
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140003980
Capabilities:
Check http status code
Get http content length

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
mov edx, 0x20000013
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1400039c8
xor al, al
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x68], 0xc8
jne 0x1400039c0
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x30], 4
mov edx, 0x20000005
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140003a13
mov eax, dword [rsp + 0x34]
mov qword [rbx + 0x2480], rax
mov al, 1
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x2480], 0
mov al, 1
add rsp, 0x40
pop rbx
ret
Function at 0x140003a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
lea r9, [rsp + 0x48]
xor edi, edi
add rdx, 0x278
mov qword [rsp + 0x20], rdi
mov r8d, dword [rbx + 0x268]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x2480]
test eax, eax
jne 0x140003aad
mov dword [rbx + 0x238], 2
test rcx, rcx
je 0x140003a8b
imul rax, qword [rbx + 0x2478], 0x64
xor edx, edx
div rcx
mov rdi, rax
mov r9, qword [rbx + 8]
lea rcx, str.Failed_writing_to_file
mov r8d, edi
mov edx, 2
call qword [rbx]
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x48]
add qword [rbx + 0x2478], rax
test rcx, rcx
je 0x140003acd
imul rax, qword [rbx + 0x2478], 0x64
xor edx, edx
div rcx
mov rdi, rax
mov r9, qword [rbx + 8]
lea rcx, str.RECEIVING...
mov edx, dword [rbx + 0x238]
mov r8d, edi
call qword [rbx]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret