joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082920
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [reloc.WSOCK32.dll_accept], 1
jne 0x140082932
call fcn.1400829cc
mov rax, qword [0x1400f4078]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400f4078], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400dffa8]
add rsp, 0x28
ret

Function at 0x140082984
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400f36b0], ecx
mov ecx, r8d
lea rdx, [0x1400f36b4]
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
cmp ecx, 0x270
jl 0x14008299a
mov dword [reloc.WSOCK32.dll_accept], r8d
mov dword [0x1400f4070], r8d
ret

Function at 0x1400829cc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400f4070], 0
lea rbx, [0x1400f36b0]
jne 0x1400829f1
xor ecx, ecx
call fcn.140034d4c
mov rcx, rax
call fcn.140082984
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov edx, 0xe3
mov qword [0x1400f4078], rbx
mov r11d, 0x7ffffffe
mov eax, dword [rbx + 4]
mov ecx, eax
xor ecx, dword [rbx]
and al, 1
and ecx, r11d
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x634]
mov dword [rbx], ecx
add rbx, 4
sub edx, 1
jne 0x140082a0d
mov eax, dword [rbx]
mov r10d, 0x18c
mov edx, eax
lea r8, [rbx + 4]
mov r9d, dword [r8]
xor edx, r9d
and edx, r11d
xor edx, eax
mov eax, r9d
shr edx, 1
and al, 1
neg al
mov eax, r9d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx - 0x38c]
mov dword [rbx], edx
lea rbx, [r8]
sub r10d, 1
jne 0x140082a41
mov eax, dword [0x1400f36b0]
mov ecx, r9d
xor ecx, eax
and al, 1
and ecx, r11d
xor ecx, r9d
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [r8 - 0x38c]
mov dword [r8], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140082e3c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, dword [rcx + 0x18]
mov rbx, rcx
cmp dword [rcx + 0x458], edi
jae 0x140082f64
mov r14d, 0x1ffff
mov edx, 1
mov rcx, rbx
call fcn.140082b84
mov rcx, rbx
cmp eax, 1
jne 0x140082ea2
lea edx, [rax + 7]
call fcn.140082b84
mov edx, dword [rbx + 0x458]
mov rcx, qword [rbx + 0x450]
and rdx, r14
mov byte [rdx + rcx], al
inc dword [rbx + 0x458]
inc dword [rbx + 0x45c]
jmp 0x140082efd
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.140082c50
mov r8d, dword [rbx + 0x458]
sub r8d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
test r9d, r9d
je 0x140082efd
mov ecx, dword [rbx + 0x458]
mov eax, r8d
mov rdx, qword [rbx + 0x450]
and rax, r14
and rcx, r14
inc r8d
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
inc dword [rbx + 0x458]
inc dword [rbx + 0x45c]
add r9d, 0xffffffff
jne 0x140082ec7
mov dword [rsp + 0x30], r9d
mov rcx, rbx
call fcn.140083080
mov eax, dword [0x1400f4080]
cmp eax, 0x1000
jbe 0x140082f47
and dword [0x1400f4080], 0
mov r9, qword [rbx + 0x470]
test r9, r9
je 0x140082f4f
imul eax, dword [rbx + 0x10], 0x64
xor edx, edx
mov ecx, dword [rbx + 0x14]
div dword [rbx + 0x18]
mov edx, dword [rbx + 0x10]
mov r8d, eax
call r9
test eax, eax
jne 0x140082f4f
mov byte [rbx + 0x464], 1
jmp 0x140082f4f
inc eax
mov dword [0x1400f4080], eax
cmp byte [rbx + 0x464], 0
jne 0x140082fa1
cmp dword [rbx + 0x458], edi
jb 0x140082e64
movsxd rax, dword [rbx + 0x488]
test eax, eax
je 0x140082f8e
mov r9, qword [rbx + 0x30]
mov r8, rax
mov rcx, qword [rbx + 0x478]
mov edx, 1
call fcn.140032f94
and dword [rbx + 0x488], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 4
jmp 0x140082f90

Function at 0x140082fec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov edx, 1
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x14008301d
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140026290
jmp 0x14008302b
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400351ec
movzx ecx, byte [rsp + 0x34]
lea rdx, str.EA06
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
xor ebx, ebx
shl ecx, 8
or ecx, eax
mov byte [rsp + 0x34], bl
movzx eax, byte [rsp + 0x36]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.1400352d0
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140083080
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x460]
mov rbx, rcx
cmp eax, dword [rcx + 0x458]
jae 0x14008314f
cmp dword [rcx + 0x20], 1
jne 0x1400830dc
mov r8d, dword [rbx + 0x460]
mov rax, qword [rbx + 0x450]
and r8d, 0x1ffff
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x460]
inc dword [rbx + 0x10]
mov eax, dword [rbx + 0x460]
cmp eax, dword [rbx + 0x458]
jb 0x1400830a1
jmp 0x14008314f
movsxd rdx, dword [rbx + 0x488]
mov r8d, eax
mov rax, qword [rbx + 0x450]
and r8d, 0x1ffff
mov rcx, qword [rbx + 0x478]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x488]
cmp dword [rbx + 0x488], 0x10000
jne 0x140083136
mov r9, qword [rbx + 0x30]
mov edx, 1
mov rcx, qword [rbx + 0x478]
mov r8d, 0x10000
call fcn.140032f94
and dword [rbx + 0x488], 0
mov eax, dword [rbx + 0x460]
inc dword [rbx + 0x10]
inc eax
mov dword [rbx + 0x460], eax
cmp eax, dword [rbx + 0x458]
jb 0x1400830dc
and dword [rbx + 0x45c], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14008315c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test edx, edx
je 0x14008317a
cmp edx, r8d
jne 0x140083198
mov r9, qword [rcx + 0x28]
mov edx, 1
mov rcx, qword [rcx + 0x480]
call fcn.1400351ec
and dword [rbx + 0x48c], 0
xor edx, edx
mov rax, qword [rbx + 0x480]
movsxd rcx, edx
mov al, byte [rcx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400833c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x20]
mov ebx, r8d
call fcn.1400831b4
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140083210
test esi, esi
je 0x14008340b
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.140083388
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x1400833f6
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140083db4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
lea r14, [rcx + 0x18]
mov rbx, rcx
mov r8, r14
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140083e73
mov rcx, qword [rbx + 0x10]
lea r8, str.SCRIPT
xor r9d, r9d
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
je 0x140083e73
mov rcx, qword [rbx + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140083e73
mov rcx, qword [rbx + 0x10]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140083e73
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140083e73
mov rcx, qword [r14]
xor r9d, r9d
mov r8d, edi
mov rdx, rax
mov r10, qword [rcx]
call qword [r10 + reloc.OLEAUT32.dll_RegisterActiveObject]
mov rcx, qword [r14]
xor r9d, r9d
and dword [rsp + 0x30], 0
xor r8d, r8d
and dword [rsp + 0x34], 0
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + SafeArrayCreateEx]
mov byte [rbx + 0x20], 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140084fb8
Capabilities:
Create directory
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x4ff68]
mov eax, 0x50050
call fcn.140049520
sub rsp, rax
mov sil, r9b
mov rdi, r8
mov rcx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xff50]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r14d, r14d
test eax, eax
je 0x140085094
lea r8, [rbp + 0xff50]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.140024d90
lea rcx, [rsp + 0x50]
call fcn.1400292e8
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140085045
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x140085045
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140085059
test sil, sil
je 0x140085094
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400850ae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
lea r11, [rsp + 0x50050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor edx, edx
lea rcx, [rbp + 0x1ff50]
mov r8d, 0x2fffa
call fcn.1400267d0
add bx, bx
mov dword [rbp + 0x1ff50], 0xa0000003
mov word [rbp + 0x1ff5a], bx
lea rdx, [rsp + 0x50]
add bx, 2
lea rcx, [rbp + 0x1ff60]
mov r8d, 0x7fff
mov word [rbp + 0x1ff5c], bx
call fcn.1400325b4
movzx eax, word [rbp + 0x1ff5a]
lea r8, [rbp + 0x1ff50]
add ax, 0xc
mov qword [rsp + 0x38], r14
movzx r9d, ax
mov edx, 0x900a4
lea rax, [rbp + 0x4ff70]
mov word [rbp + 0x1ff54], r9w
mov qword [rsp + 0x30], rax
add r9d, 8
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x140085155
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14008508b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140085096
Function at 0x14008b4e8
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov r13, rdx
xor ebx, ebx
mov rcx, r13
lea rdx, [rsp + 0x30]
mov r15d, r9d
mov r12d, r8d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008b59c
lea rdx, [0x1400b74b0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b58a
lea rdx, [0x1400de7e0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b58a
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
lea rcx, [rsp + 0x5c]
mov eax, r15d
or edx, r12d
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14008b5b9
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008b537
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14b, byte [rbp + 0x1d0]
test r14b, r14b
jne 0x14008b5c9
mov al, sil
jmp 0x14008b66d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14008b66d
lea rdx, [rsp + 0x30]
lea rcx, [0x1400de7d8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008b660
mov rsi, qword [rbp + 0x1b0]
test byte [rsp + 0x30], 0x10
je 0x14008b64e
lea rdx, [0x1400b74b0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b64e
lea rdx, [0x1400de7e0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b64e
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, r15d
mov byte [rsp + 0x20], r14b
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
call fcn.14008b4e8
test al, al
je 0x14008b662
lea rcx, [0x1400de7e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008b5eb
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14008b690
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov r12, rdx
mov r13, rcx
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, r12
mov r14d, r9d
mov r15, r8
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008b72a
lea rdx, [0x1400b74b0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b718
lea rdx, [0x1400de7e0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b718
mov r8d, r14d
lea rcx, [rsp + 0x5c]
mov rdx, r15
call fcn.14007d420
test al, al
je 0x14008b748
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008b6d7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14008b758
mov al, sil
jmp 0x14008b7f5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14008b7f5
lea rdx, [rsp + 0x30]
lea rcx, [0x1400de7d8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008b7e8
test byte [rsp + 0x30], 0x10
je 0x14008b7d6
lea rdx, [0x1400b74b0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b7d6
lea rdx, [0x1400de7e0]
lea rcx, [rsp + 0x5c]
call fcn.140029b4c
test eax, eax
je 0x14008b7d6
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, r14d
mov byte [rsp + 0x20], bpl
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.14008b690
test al, al
je 0x14008b7ea
lea rcx, [0x1400de7e0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008b773
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14008ba0c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
lea rcx, [rsp + 0x40]
mov r14, r9
mov r12, r8
call fcn.14000c6d0
mov rax, qword [rsp + 0x40]
lea rdx, [0x1400de7d8]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
inc dword [rax]
call fcn.140003f78
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov bl, 1
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14008bbaa
mov r15b, byte [rbp + 0x230]
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.1400848f8
cmp eax, 1
je 0x14008bba8
cmp eax, 0xb
jne 0x14008bad9
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14008bab4
lea rdx, [0x1400b74b0]
lea rcx, [rbp - 0x54]
call fcn.140029b4c
test eax, eax
je 0x14008bb91
lea rdx, [0x1400de7e0]
lea rcx, [rbp - 0x54]
call fcn.140029b4c
test eax, eax
je 0x14008bb91
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000449c
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x40]
call fcn.140003f78
test byte [rbp - 0x80], 0x10
je 0x14008bb78
test sil, sil
je 0x14008bb34
inc qword [rdi]
test r15b, r15b
je 0x14008bb91
lea rdx, [0x1400b74d8]
lea rcx, [rsp + 0x40]
call fcn.140003f78
mov rdx, qword [rsp + 0x40]
mov r9, r14
mov rcx, qword [rbp + 0x200]
mov r8, r12
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rdi
call fcn.14008ba0c
mov bl, al
test al, al
je 0x14008bbaa
jmp 0x14008bb91
mov ecx, dword [rbp - 0x64]
mov eax, dword [rbp - 0x60]
shl rcx, 0x20
or rcx, rax
add qword [r12], rcx
test sil, sil
je 0x14008bb91
inc qword [r14]
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008bab4
jmp 0x14008bbaa
xor bl, bl
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x60]
call fcn.1400054ac
lea rcx, [rsp + 0x40]
call fcn.1400054ac
lea r11, [rsp + 0x2d0]
mov al, bl
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14008e974
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov sil, r9b
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x14008e9a3
mov r8b, r9b
call fcn.14008eaac
jmp 0x14008ea97
mov ebp, dword [rcx + 0x90]
mov rcx, qword [rdx + 0x60]
and qword [rsp + 0x38], 0
mov eax, dword [rdx + 0xe0]
and dword [rsp + 0x30], 0
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
mov rdx, qword [rdx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x14008ea02
xor r9d, r9d
lea edx, [rax + 0x15]
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14008fc50
jmp 0x14008ea97
mov rdx, qword [rdi + 0xc0]
mov r9d, ebp
and qword [rsp + 0x20], 0
mov r8d, 0x80000000
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov rdi, rax
test rax, rax
jne 0x14008ea37
xor r9d, r9d
lea edx, [rax + 0x16]
mov r8d, 0xdeadbeef
jmp 0x14008ea7d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [rsp + 0x60]
shl rcx, 0x20
mov eax, eax
or rcx, rax
mov qword [rbx + 0x18], rcx
test sil, sil
je 0x14008ea75
cmp byte [rbx + 0x48], 0
mov rdx, rdi
mov rcx, rbx
je 0x14008ea6e
call fcn.14008fb00
jmp 0x14008ea85
call fcn.14008fa14
jmp 0x14008ea85
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14008fc50
mov bl, al
test rdi, rdi
je 0x14008ea95
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14008ed88
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov eax, dword [rcx + 0x90]
mov r15b, r8b
mov r8, qword [rdx + 0x60]
mov r14d, eax
bts r14d, 0x17
mov r12b, r9b
cmp dword [rdx + 0xe4], 4
mov rsi, rdx
mov r9, qword [rdx + 0x40]
mov rdi, rcx
mov rcx, qword [rcx + 8]
cmovne r14d, eax
mov eax, dword [rdx + 0xe0]
xor r13d, r13d
mov qword [r11 - 0x60], r13
mov dword [r11 - 0x68], r13d
mov dword [rsp + 0x28], eax
mov qword [r11 - 0x78], r8
movzx r8d, word [rdx + 0xe8]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rdi], rax
test rax, rax
jne 0x14008ee1e
xor r9d, r9d
lea edx, [rax + 0xb]
mov r8d, 0xdeadbeef
mov rcx, rdi
call fcn.14008fc50
jmp 0x14008ef61
mov r8, qword [rsi + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor edx, edx
mov dword [rsp + 0x30], r14d
mov rcx, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
test rax, rax
jne 0x14008ee57
lea edx, [rax + 0xc]
jmp 0x14008ef3c
test r15b, r15b
je 0x14008ee6a
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call fcn.14008fc98
bt r14d, 0xc
jae 0x14008eea9
mov r14d, 4
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x40]
mov dword [rbp + 0x48], r14d
mov rcx, rbx
lea esi, [r14 + 0x1b]
mov edx, esi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
bts dword [rbp + 0x40], 8
lea r8, [rbp + 0x40]
mov r9d, r14d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x14008ef37
mov rdx, rbx
call fcn.14008ed38
cmp eax, 0xc8
jne 0x14008ef37
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], r13d
lea r9, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x20]
mov dword [rbp + 0x48], reloc.OLEAUT32.dll_RegisterActiveObject
mov edx, 5
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x20]
mov word [rbp - 2], r13w
call fcn.14002adc8
mov qword [rdi + 0x18], rax
mov rcx, rdi
test r12b, r12b
je 0x14008ef2d
mov rdx, rbx
cmp byte [rdi + 0x48], r13b
je 0x14008ef26
call fcn.14008fb00
jmp 0x14008ef4d
call fcn.14008fa14
jmp 0x14008ef4d
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14008ef48
mov edx, reloc.WSOCK32.dll_listen
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rdi
call fcn.14008fc50
mov dil, al
test rbx, rbx
je 0x14008ef5e
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, dil
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008f8a0
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, 1
mov rbx, rcx
cmp edx, edi
jne 0x14008f8bf
movzx eax, word [rcx + 0x100]
jmp 0x14008f8c6
movzx eax, word [rcx + 0x98]
mov rcx, qword [rcx + 0x168]
cmp ax, di
jne 0x14008f8d6
mov edx, edi
jmp 0x14008f8ff
cmp ax, 2
jne 0x14008f8fd
mov eax, 0x148
lea r9, str._local_
cmp edx, edi
mov edx, 3
lea r8d, [rax - 0x68]
cmovne eax, r8d
mov r8, qword [rax + rbx]
jmp 0x14008f905
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14008f945
cmp byte [rbx + 0x19c], 0
je 0x14008f942
and dword [rsp + 0x44], 0
lea r8, [rsp + 0x40]
mov r9d, 8
mov dword [rsp + 0x40], edi
xor ecx, ecx
lea edx, [r9 + 0x2a]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, dil
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14008fa14
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x420
mov rbp, rdx
mov rdi, rcx
mov rcx, qword [rcx + 0x50]
lea rdx, [0x1400de6e8]
call fcn.140034e70
mov rsi, rax
test rax, rax
jne 0x14008fa4e
lea edx, [rax + 0x1f]
jmp 0x14008fac0
mov ebx, 1
mov dword [rsp + 0x430], ebx
lea r9, [rsp + 0x430]
mov r8d, 0x400
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14008fabb
mov eax, dword [rsp + 0x430]
test eax, eax
je 0x14008faa6
mov edx, eax
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8, rbx
call fcn.140032f94
mov ecx, dword [rsp + 0x430]
add qword [rdi + 0x10], rcx
test ecx, ecx
jne 0x14008fa5a
cmp qword [rdi + 0x10], 0
jne 0x14008fab4
mov edx, SafeArrayDestroyDescriptor
jmp 0x14008fac0
xor edx, edx
xor r8d, r8d
jmp 0x14008fac8
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor bl, bl
mov r8d, 0xdeadbeef
mov r9b, bl
mov rcx, rdi
call fcn.14008fc50
mov bl, al
test rsi, rsi
je 0x14008fae2
mov rcx, rsi
call fcn.140034f00
lea r11, [rsp + 0x420]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret