joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055de0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400de290], ecx
lea rdx, [0x1400de294]
mov ecx, r8d
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 0x140055df6
mov dword [reloc.WSOCK32.dll_accept], r8d
mov dword [0x1400de270], r8d
ret

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

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400de270], 0
lea rbx, [0x1400de290]
jne 0x140055e4d
xor ecx, ecx
call fcn.1400291a4
mov rcx, rax
call fcn.140055de0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400de288], rbx
mov r9d, 0xe3
mov r10d, 0x9908b0df
mov r11d, 0x7ffffffe
mov edx, dword [rbx + 4]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx + 0x634]
xor edx, ecx
mov dword [rbx], edx
add rbx, 4
dec r9d
jne 0x140055e70
mov r9d, 0x18c
lea r8, [rbx + 4]
mov edx, dword [r8]
mov al, dl
and al, 1
neg al
sbb ecx, ecx
xor edx, dword [rbx]
and edx, r11d
and ecx, r10d
xor edx, dword [rbx]
shr edx, 1
xor edx, dword [rbx - 0x38c]
xor edx, ecx
mov dword [rbx], edx
lea rbx, [r8]
dec r9d
jne 0x140055ea0
mov ecx, dword [0x1400de290]
mov al, cl
and al, 1
neg al
mov eax, dword [r8]
sbb edx, edx
xor eax, ecx
and eax, r11d
and edx, r10d
xor eax, dword [r8]
shr eax, 1
xor eax, dword [r8 - 0x38c]
xor eax, edx
mov dword [r8], eax
add rsp, 0x20
pop rbx
ret

Function at 0x140056454
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140056485
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140025590
jmp 0x140056493
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400295f4
movzx ecx, byte [rsp + 0x34]
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, str.EA06
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x36]
mov byte [rsp + 0x34], bl
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.1400296d0
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14005658c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
test dword [rcx + 0x48c], 0xfffeffff
mov rbx, rcx
jne 0x1400565c3
mov r9, qword [rcx + 0x28]
mov rcx, qword [rcx + 0x480]
mov edx, 1
mov r8d, 0x10000
call fcn.1400295f4
and dword [rbx + 0x48c], 0
movsxd rdx, dword [rbx + 0x48c]
mov rax, qword [rbx + 0x480]
mov al, byte [rdx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1400565e4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x488]
mov rax, qword [rcx + 0x478]
mov rbx, rcx
mov byte [r8 + rax], dl
mov edx, 1
mov r8d, 0x10000
add dword [rcx + 0x488], edx
cmp dword [rcx + 0x488], r8d
jne 0x140056630
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
call fcn.140027e50
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140056638
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x488]
mov rbx, rcx
test eax, eax
je 0x14005666b
mov r9, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x478]
mov r8, rax
mov edx, 1
call fcn.140027e50
and dword [rbx + 0x488], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140056878
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
lea rcx, [rsp + 0x20]
mov ebx, r9d
mov esi, r8d
mov rdi, rdx
call fcn.140056674
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1400566d0
test esi, esi
je 0x1400568c3
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.140056840
xor byte [rdi], al
inc rdi
dec rbx
jne 0x1400568af
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140057264
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, [0x1400c71e8]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add rsp, 0x230
pop rbx
ret

Function at 0x140057f88
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 - 0x9a8]
sub rsp, 0xa90
mov sil, r9b
mov rdi, r8
mov rcx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x780]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r14d, r14d
test eax, eax
jne 0x140057fd7
xor eax, eax
jmp 0x140058117
lea r8, [rbp + 0x780]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.140026864
lea rcx, [rsp + 0x50]
call fcn.140025c38
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140058012
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x140058012
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140058026
test sil, sil
je 0x140057fd0
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140058066
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140057fd0
lea rcx, [rbp + 0x160]
xor edx, edx
mov r8d, 0x618
call fcn.140025cb0
add bx, bx
lea rdx, [rsp + 0x50]
mov word [rbp + 0x16a], bx
lea rcx, [rbp + 0x170]
add bx, 2
mov r8d, 0x104
mov dword [rbp + 0x160], 0xa0000003
mov word [rbp + 0x16c], bx
call fcn.1400271d8
movzx eax, word [rbp + 0x16a]
mov qword [rsp + 0x38], r14
add ax, 0xc
lea r8, [rbp + 0x160]
mov edx, 0x900a4
movzx r9d, ax
mov word [rbp + 0x164], ax
lea rax, [rbp + 0x9b0]
mov qword [rsp + 0x30], rax
add r9d, 8
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x14005810c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140058058
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14005d168
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rax - 0x1a8]
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005d214
lea rdx, [0x1400b0978]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d202
lea rdx, [0x1400c72e8]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d202
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x5c]
mov edx, eax
mov eax, dword [rbp + 0x1c8]
or edx, dword [rbp + 0x1c0]
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14005d22d
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005d1a9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rbp + 0x1d0], bl
jne 0x14005d23d
mov al, sil
jmp 0x14005d2fa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14005d2fa
lea rdx, [rsp + 0x30]
lea rcx, [0x1400c72e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005d2ed
mov rsi, qword [rbp + 0x1b8]
test byte [rsp + 0x30], 0x10
je 0x14005d2d7
lea rdx, [0x1400b0978]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d2d7
lea rdx, [0x1400c72e8]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d2d7
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, byte [rbp + 0x1d0]
mov r9d, dword [rbp + 0x1c8]
mov r8d, dword [rbp + 0x1c0]
mov rcx, qword [rbp + 0x1b0]
mov rdx, rsi
mov byte [rsp + 0x20], al
call fcn.14005d168
test al, al
je 0x14005d2ef
lea rcx, [0x1400c72e8]
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 0x14005d263
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14005d308
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rcx, rdx
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov ebp, r9d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005d39d
lea rdx, [0x1400b0978]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d38b
lea rdx, [0x1400c72e8]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d38b
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.1400502c8
test al, al
je 0x14005d3bb
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005d345
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14005d3cb
mov al, sil
jmp 0x14005d486
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14005d486
lea rdx, [rsp + 0x30]
lea rcx, [0x1400c72e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14005d479
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14005d463
lea rdx, [0x1400b0978]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d463
lea rdx, [0x1400c72e8]
lea rcx, [rsp + 0x5c]
call fcn.140026718
test eax, eax
je 0x14005d463
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r8, qword [rsp + 0x2c0]
mov rdx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x2b0]
mov r9d, esi
mov byte [rsp + 0x20], bpl
call fcn.14005d308
test al, al
je 0x14005d47b
lea rcx, [0x1400c72e8]
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 0x14005d3f1
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14005d6bc
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
lea rcx, [rsp + 0x48]
call fcn.140006d50
mov rax, qword [rsp + 0x48]
lea rdx, [0x1400c72e0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
inc dword [rax]
mov qword [rbp - 0x80], rax
call fcn.140002ed8
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x70]
mov bl, 1
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x14005d86d
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.14000a400
cmp eax, 1
je 0x14005d866
cmp eax, 0xb
jne 0x14005d777
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005d752
lea rdx, [0x1400b0978]
lea rcx, [rbp - 0x44]
call fcn.140026718
test eax, eax
je 0x14005d84d
lea rdx, [0x1400c72e8]
lea rcx, [rbp - 0x44]
call fcn.140026718
test eax, eax
je 0x14005d84d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14000fec0
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x48]
call fcn.140002ed8
test byte [rbp - 0x70], 0x10
je 0x14005d827
test sil, sil
je 0x14005d7d2
inc qword [rdi]
cmp byte [rbp + 0x230], 0
je 0x14005d84d
lea rdx, [0x1400b0b8c]
lea rcx, [rsp + 0x48]
call fcn.140002ed8
mov al, byte [rbp + 0x230]
mov r9, qword [rbp + 0x218]
mov r8, qword [rbp + 0x210]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x200]
mov byte [rsp + 0x30], al
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rdi
call fcn.14005d6bc
mov bl, al
test al, al
je 0x14005d868
jmp 0x14005d84d
mov eax, dword [rbp - 0x50]
mov ecx, dword [rbp - 0x54]
shl rcx, 0x20
or rcx, rax
mov rax, qword [rbp + 0x210]
add qword [rax], rcx
test sil, sil
je 0x14005d84d
mov rax, qword [rbp + 0x218]
inc qword [rax]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14005d752
jmp 0x14005d868
xor bl, bl
mov rax, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x68]
call fcn.14000fef0
lea rcx, [rsp + 0x48]
call fcn.14000fef0
mov al, bl
mov rbx, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140060658
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, 0x50
mov sil, r9b
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x140060687
mov r8b, r9b
call fcn.140060790
jmp 0x14006077b
mov ebp, dword [rcx + 0x90]
mov rcx, qword [rdx + 0x60]
mov eax, dword [rdx + 0xe0]
and qword [rsp + 0x38], 0
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 0x1400606e6
lea edx, [rax + 0x15]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14006175c
jmp 0x14006077b
mov rdx, qword [rdi + 0xc0]
and qword [rsp + 0x20], 0
mov r9d, ebp
mov r8d, 0x80000000
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov rcx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0x48], rcx
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14006072c
xor r9d, r9d
lea edx, [rax + 0x16]
mov r8d, 0xdeadbeef
jmp 0x140060765
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WININET.dll_FtpGetFileSize]
mov ecx, dword [rsp + 0x70]
shl rcx, 0x20
mov eax, eax
or rcx, rax
mov qword [rbx + 0x18], rcx
test sil, sil
je 0x14006075d
mov rdx, rdi
mov rcx, rbx
call fcn.140061544
jmp 0x14006076d
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14006175c
lea rcx, [rsp + 0x40]
mov bl, al
call fcn.1400605f8
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140060a28
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
cmp dword [rdx + 0xe4], 4
mov r14d, dword [rcx + 0x90]
mov r12b, r9b
mov r15b, r8b
mov rsi, rdx
mov rbx, rcx
jne 0x140060a60
bts r14d, 0x17
mov eax, dword [rdx + 0xe0]
mov r10, qword [rdx + 0x60]
mov r9, qword [rdx + 0x40]
movzx r8d, word [rdx + 0xe8]
mov rcx, qword [rcx + 8]
mov rdx, qword [rdx + 0x20]
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx], rax
test rax, rax
jne 0x140060abb
lea edx, [rax + 0xb]
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14006175c
jmp 0x140060bf9
mov r8, qword [rsi + 0xc0]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r14d
xor r9d, r9d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rcx, qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rcx
test rax, rax
jne 0x140060b03
lea edx, [rax + 0xc]
jmp 0x140060bdb
test r15b, r15b
je 0x140060b16
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call fcn.1400617d8
bt r14d, 0xc
jae 0x140060b55
mov r14d, 4
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x40]
lea esi, [r14 + 0x1b]
mov rcx, rdi
mov dword [rbp + 0x48], r14d
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, rdi
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x140060bd6
mov rdx, rdi
call fcn.1400609d8
cmp eax, 0xc8
jne 0x140060bd6
lea rax, [rbp + 0x40]
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x20]
mov edx, 5
mov rcx, rdi
mov dword [rbp + 0x40], r13d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x48], reloc.OLEAUT32.dll_RegisterActiveObject
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
lea rcx, [rbp - 0x20]
mov word [rbp - 2], r13w
call fcn.140026760
mov rcx, rbx
mov qword [rbx + 0x18], rax
test r12b, r12b
je 0x140060bcc
mov rdx, rdi
call fcn.140061544
jmp 0x140060bec
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x140060be7
mov edx, reloc.WSOCK32.dll_listen
xor r9d, r9d
mov r8d, 0xdeadbeef
mov rcx, rbx
call fcn.14006175c
lea rcx, [rbp - 0x30]
mov bl, al
call fcn.1400605f8
mov al, bl
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400613dc
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1400613f3
movzx eax, word [rcx + 0x100]
jmp 0x1400613fa
movzx eax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x140061410
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x140061420
mov edx, ecx
jmp 0x140061436
cmp ecx, 2
jne 0x140061434
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x14006143c
xor edx, edx
xor r9d, r9d
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
je 0x140061482
cmp byte [rbx + 0x19c], 0
je 0x140061480
and dword [rsp + 0x44], 0
mov r9d, 8
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x2a]
xor ecx, ecx
mov dword [rsp + 0x40], 1
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140061544
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:
cmp byte [rcx + 0x48], 0
jne 0x140061648
jmp 0x140061554
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.14002936c]
lea rdx, [0x1400c71f4]
mov qword [rsp + 0x28], rax
call fcn.140029204
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14006159a
lea edx, [rax + 0x1f]
jmp 0x140061614
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14006160f
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x1400615f4
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140027e50
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x1400615a5
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x140061605
mov edx, SafeArrayDestroyDescriptor
jmp 0x140061617
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x140061620
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14006175c
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.1400605f8
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x1400616f1
call fcn.140060554
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400616ff
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400616e9
lea rcx, [rbx + 0x70]
mov r8d, eax
mov rdx, rdi
call fcn.140061b20
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x1400616f1
mov rcx, qword [rsp + 0x48]
jmp 0x14006169d
mov rcx, rdi
call fcn.140025b50
cmp qword [rbx + 0x10], 0
jne 0x140061717
mov edx, SafeArrayDestroyDescriptor
jmp 0x14006170c
mov rcx, rdi
call fcn.140025b50
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14006171f
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14006175c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140061554
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:
cmp byte [rcx + 0x48], 0
jne 0x140061648
jmp 0x140061554
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x430
mov rbx, rcx
mov rcx, qword [rcx + 0x50]
mov rsi, rdx
lea rax, [fcn.14002936c]
lea rdx, [0x1400c71f4]
mov qword [rsp + 0x28], rax
call fcn.140029204
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14006159a
lea edx, [rax + 0x1f]
jmp 0x140061614
mov dword [rsp + 0x440], 1
lea r9, [rsp + 0x440]
lea rdx, [rsp + 0x30]
mov r8d, 0x400
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14006160f
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x1400615f4
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140027e50
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x1400615a5
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x140061605
mov edx, SafeArrayDestroyDescriptor
jmp 0x140061617
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x140061620
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14006175c
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.1400605f8
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [rax + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x20], 1
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov rcx, qword [rsp + 0x48]
mov eax, 0x400
test rcx, rcx
cmove rcx, rax
cmp dword [rsp + 0x40], 0
mov qword [rsp + 0x48], rcx
je 0x1400616f1
call fcn.140060554
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400616ff
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400616e9
lea rcx, [rbx + 0x70]
mov r8d, eax
mov rdx, rdi
call fcn.140061b20
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x1400616f1
mov rcx, qword [rsp + 0x48]
jmp 0x14006169d
mov rcx, rdi
call fcn.140025b50
cmp qword [rbx + 0x10], 0
jne 0x140061717
mov edx, SafeArrayDestroyDescriptor
jmp 0x14006170c
mov rcx, rdi
call fcn.140025b50
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14006171f
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14006175c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret