joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022a70
Capabilities:
Enumerate files on windows
Enumerate processes
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x410
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x400], rax
xor edx, edx
mov rbp, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140022c31
mov qword [rsp + 0x428], rbx
mov qword [rsp + 0x430], rdi
nop
mov rdx, rbp
lea rcx, [rsp + 0x8c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140022c0b
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140022c0b
lea rax, [rsp + 0x40]
mov rcx, rdi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x140022c02
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov r8d, 0x104
lea rdx, [rsp + 0x2f0]
lea rcx, str._appdata_.minecraftmods.jar
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x140022c02
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140022c02
test byte [rsp + 0x1b0], 0x10
jne 0x140022be4
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x1c4]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x1c4]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x140022be4
lea rdx, [rsp + 0x1dc]
lea rcx, str.____Suspicious_mod_found:__s._Analyze_it_with_Bintext._n
call fcn.140022a10
lea rdx, [rsp + 0x1b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140022b86
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140022ad0
mov rdi, qword [rsp + 0x430]
mov rbx, qword [rsp + 0x428]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140030a60
mov rbp, qword [rsp + 0x438]
add rsp, 0x410
pop rsi
ret
Function at 0x140023940
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140030a60
add rsp, 0x58
ret
Function at 0x1400281e0
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x468
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, r8
mov r14, rdx
mov rbp, rcx
xor r15d, r15d
mov dword [r8], r15d
mov edx, 0x400
mov r8, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400283c8
mov qword [rsp + 0x4a8], rbx
mov qword [rsp + 0x460], rdi
nop dword [rax + rax]
lea rdx, str.Rename:
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x14002839c
movsxd rdx, dword [rsi]
mov rcx, qword [r14]
lea rdx, [rdx*8 + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400283e6
mov ecx, 0x800
mov qword [r14], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword [r14]
movsxd rdx, dword [rsi]
mov qword [rcx + rdx*8], rax
movsxd rcx, dword [rsi]
mov rax, qword [r14]
cmp qword [rax + rcx*8], r15
je 0x1400283e6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x30], r15
mov edi, 1
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
nop dword [rax]
mov rcx, qword [rbx - 8]
mov edx, 0x2c
inc rcx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov qword [rbx], rax
test rax, rax
je 0x1400282f5
inc edi
add rbx, 8
cmp edi, 6
jl 0x1400282d0
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14002839c
movsxd rax, dword [rsi]
lea r8, [rdi + 2]
mov rcx, qword [r14]
mov r9, rdi
sub r9, qword [rsp + 0x40]
mov edx, 0x400
inc r9
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
movsxd rcx, dword [rsi]
mov rax, qword [r14]
mov rdx, qword [rax + rcx*8]
sub rdx, qword [rsp + 0x40]
mov byte [rdx + rdi], r15b
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14002839c
mov rbx, qword [rsp + 0x28]
mov rax, rdi
sub rax, rbx
mov r9, r15
dec rax
test rbx, rbx
lea r8, [rbx + 1]
cmovne r9, rax
jne 0x140028369
lea r8, [0x14003ae38]
movsxd rcx, dword [rsi]
mov edx, 0x400
mov rax, qword [r14]
mov rcx, qword [rax + rcx*8]
add rcx, 0x400
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
movsxd rcx, dword [rsi]
mov rax, qword [r14]
mov rdx, qword [rax + rcx*8]
sub rdx, rbx
mov byte [rdx + rdi + 0x3ff], r15b
inc dword [rsi]
mov r8, rbp
lea rcx, [rsp + 0x50]
mov edx, 0x400
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140028240
mov rbx, qword [rsp + 0x4a8]
mov rdi, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140030a60
add rsp, 0x468
pop r15
pop r14
pop rsi
pop rbp
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140029340
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, ebp
nop
bt esi, edi
jae 0x1400294c9
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
xor r8d, r8d
lea rdx, [0x140038a00]
lea rcx, [rsp + 0x40]
call fcn.1400040c0
nop
lea r9d, [rdi + 0x41]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jae 0x1400293f7
lea rax, [rcx + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 7
cmova rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], bp
jmp 0x140029401
lea rcx, [rsp + 0x40]
call fcn.14001a620
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x14002943d
lea rax, [rcx + 2]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 7
cmova rax, qword [rsp + 0x40]
mov dword [rax + rcx*2], 0x5c003a
mov word [rax + rcx*2 + 4], bp
jmp 0x14002945c
mov qword [rsp + 0x20], 2
lea r9, [0x1400356b4]
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140006420
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x14002947a
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140003490
add qword [rbx + 8], 0x20
jmp 0x14002948b
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, rbx
call fcn.140009ed0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x1400294c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400294c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400294fa
call fcn.140030a80
inc edi
cmp edi, 0x1a
jl 0x140029390
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14002c0f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x130
xor sil, sil
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002c14c
xor al, al
jmp 0x14002c1ab
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14002c19e
nop
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14002c183
inc rax
test ecx, ecx
jne 0x14002c170
test edx, edx
je 0x14002c19b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14002c160
jmp 0x14002c19e
mov sil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140030a60
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14002f570
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x14002f730
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov esi, 0xffffffff
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
js 0x14002f724
mov qword [rsp + 0x20], rdi
lea r9, [0x140034d68]
xor edx, edx
lea r8d, [r12 + 1]
lea rcx, [0x140034d78]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14002f724
mov r15, qword [rdi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
lea ecx, [rsi + 0x19]
call fcn.140030ba8
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14002f651
mov qword [rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14002f754
jmp 0x14002f654
mov rbx, r12
mov qword [rsp + 0x90], rbx
test rbx, rbx
je 0x14002f749
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
call rbp
mov ebp, eax
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x14002f6c8
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002f6a9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002f6bb
call fcn.140030a80
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.140030a80
test ebp, ebp
jns 0x14002f6df
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
jmp 0x14002f730
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x14002f72e
mov rcx, qword [r14]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14002f730
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.140030720
nop
mov ecx, 0x8007000e
call fcn.140030720
int3
Function at 0x14002fbd4
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 0x14002fc0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002fc13
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 0x14002fc5c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140034c20]
cmp byte [rcx + rax], 0
je 0x14002fc5c
dec r8
sub rdx, 1
jne 0x14002fc42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003180c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031856
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140031856
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140031856
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140031856
cmp dword [rcx + 0x84], 0xe
jbe 0x140031856
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140031858
xor al, al
add rsp, 0x28
ret
Function at 0x1408f80b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408f8237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408f80e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f80c7
add dl, dl
jne 0x1408f80ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f814e
xor eax, eax
add dl, dl
jne 0x1408f80fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408f8205
add dl, dl
jne 0x1408f810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f8128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f8135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408f8142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408f80d6
mov eax, 1
add dl, dl
jne 0x1408f815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408f816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f8153
sub eax, ebx
mov ebx, 1
jne 0x1408f81a4
mov ecx, 1
add dl, dl
jne 0x1408f8186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408f8193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f80d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408f81c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408f81cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408f81b5
cmp eax, 0x7d00
jae 0x1408f81f3
cmp eax, 0x500
jb 0x1408f81ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f80d6
cmp eax, 0x7f
ja 0x1408f81f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408f80d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408f822a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408f80d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400032fc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x140003356
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1400bdaf0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x140003340
cmp rdx, 2
jb 0x140003340
cmp byte [r10], r11b
jne 0x140003340
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x14000331e
jmp 0x140003397
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x140003397
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1400bdaf0]
cmp dl, r11b
jne 0x14000337b
cmp byte [r10], r11b
jne 0x14000337b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x140003369
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1400034cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x1400034ec
and qword [r8], 0
lea rdx, [0x1400bd67c]
call fcn.1400033a8
mov rbx, rax
test rax, rax
je 0x1400035dd
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400035d4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400035d4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400035d4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400035d4
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x1400035d4
mov rax, qword [0x140461620]
test rax, rax
je 0x140003571
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400035d4
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1400035c1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140461620]
test rax, rax
je 0x1400035b6
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400035dd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400035cf
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1400035df
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1404600c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd r8, dword [rcx + 0xe8]
mov r10d, 4
mov rax, qword [rcx + 0xf0]
mov r9d, r10d
mov dword [rsp + 0x20], edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x20]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1400bdaf0]
xor ebx, dword [rax + rcx*4]
sub r9, 1
jne 0x140005bbc
mov rcx, qword [0x140461620]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140005bfa
movsxd r8, edx
mov ecx, ebx
mov edx, r10d
call fcn.140015cf8
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a97e0
add rsp, 0x30
pop rbx
ret

Function at 0x140014978
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c40], 0
lea rbx, [rcx + 0x5c48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140014a11
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x1400149c9
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140016c30
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140003bdc
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c40]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140461618]
movsxd r8, eax
mov rax, qword [rdi + 0x5c50]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140014a19
mov rcx, rbx
call fcn.140003bdc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400151f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140461620]
mov rbx, rcx
and dword [rax + 0x5ba4], 0
test rcx, rcx
je 0x140015261
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14001526c
lea rdx, [0x1400bd680]
mov rcx, rbx
mov rdi, rax
call fcn.1400033a8
mov rbx, rax
test rax, rax
je 0x140015261
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140035410
Capabilities:
Download url
Encode data using xor
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1404600c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xor edi, edi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x140035448
lea rcx, [rbp - 0x28]
call fcn.140046c9c
nop
lea rax, [rbp - 0x28]
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
cmova rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x18]
mov r9d, 0x5c
cmp word [rax + rcx*2 - 2], r9w
je 0x1400354a8
cmp rcx, rdx
jae 0x14003549f
lea rax, [rcx + 1]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 7
cmova rax, qword [rbp - 0x28]
mov dword [rax + rcx*2], r9d
jmp 0x1400354a8
lea rcx, [rbp - 0x28]
call fcn.14004688c
movups xmm0, xmmword [str.DRLXH_]
movups xmmword [rbp - 0x40], xmm0
mov eax, dword [0x140450a28]
mov dword [rbp - 0x30], eax
movzx eax, word [0x140450a2c]
mov word [rbp - 0x2c], ax
mov r8d, edi
lea r9, [rbp - 0x40]
mov eax, 0x8d3dcb09
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
sub ax, cx
add ax, 0x36
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xb
jl 0x1400354ce
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.1400447b8
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova r8, qword [rbp - 0x28]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
nop
lea rcx, [rbp - 0x28]
call fcn.14004531c
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a97e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret