joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003eb20
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call fcn.14003e920
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, rax
mov r9, r12
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov dword [rsp + 0x30], 2
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [r12 + 0x10]
mov rcx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r11, qword [rbp]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14003ead0]
mov r9, r12
xor edx, edx
xor ecx, ecx
mov qword [r12 + 8], r11
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x14003ec00
Capabilities:
Impersonate user

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
movsx r9d, r9b
xor ebx, ebx
and r9d, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
or r9d, 4
shr r9d, 1
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret
Function at 0x14003ed00
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x70
xor r10d, r10d
mov rbp, r8
mov r12, rdx
lea ebx, [r10 + 1]
mov r13, rcx
mov qword [rax - 0x20], r10
test bl, r9b
je 0x14003ed35
mov edi, ebx
jmp 0x14003ed43
mov eax, 2
mov edi, r10d
test al, r9b
cmovne edi, eax
xor sil, sil
test r9b, 4
je 0x14003ed93
and qword [rsp + 0x60], r10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0xa
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, ebx
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14003edf9
mov r10, qword [rsp + 0x68]
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0xb8]
mov r9d, edi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
bts ecx, 0xa
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov r8, rbp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r10
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rdx, r12
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
setne sil
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003ee09
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea r11, [rsp + 0x70]
mov al, sil
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14004a4e0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov ebx, ecx
test rdx, rdx
je 0x14004a50a
lea rcx, [0x1400c3e20]
call fcn.1400381d0
mov dword [0x1400c3ed8], eax
jmp 0x14004a510
mov eax, dword [0x1400c3ed8]
cmp eax, 0xffffffff
je 0x14004a671
movsxd rcx, eax
mov rax, qword [0x1400c3ec0]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x6a], 0
mov rbp, qword [rdi]
je 0x14004a566
cmp dword [rdi + 0x2b8], 0
mov byte [rdi + 0x6a], 0
jl 0x14004a566
cmp byte [rdi + 0x2c4], 0
je 0x14004a566
mov r8d, dword [rdi + 0x2c0]
lea rcx, [0x1400c3e20]
mov rdx, rdi
call fcn.140049b10
mov byte [rdi + 0x2c4], 0
cmp ebx, 8
jg 0x14004a5f9
je 0x14004a5cc
test ebx, ebx
je 0x14004a5b3
cmp ebx, 1
je 0x14004a5cc
mov edx, 6
cmp ebx, 2
je 0x14004a59a
cmp ebx, 3
je 0x14004a653
jle 0x14004a5c2
cmp ebx, 5
jle 0x14004a5cc
cmp ebx, edx
je 0x14004a59e
jmp 0x14004a5c2
mov byte [rdi + 0x68], 1
cmp byte [rdi + 0x68], 0
je 0x14004a671
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x14004a5c2
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x68], 0
mov eax, 1
jmp 0x14004a673
cmp byte [rdi + 0x68], 0
jne 0x14004a671
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x14004a5f3
cmp ebx, 4
je 0x14004a5f3
mov rcx, rbp
call fcn.14003be70
mov byte [rdi + 0x68], 1
jmp 0x14004a5c2
mov edx, ebx
sub edx, 9
je 0x14004a653
sub edx, 0x37
je 0x14004a64c
dec edx
je 0x14004a63c
dec edx
je 0x14004a62d
dec edx
jne 0x14004a5c2
xor ecx, ecx
mov byte [rdi + 0x69], dl
call qword [sym.imp.USER32.dll_LockWindowUpdate]
mov rcx, qword [rdi]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x14004a5c2
mov rcx, rbp
mov byte [rdi + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x14004a5c2
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14004a5c2
mov edx, 1
jmp 0x14004a63e
cmp byte [rdi + 0x68], 0
je 0x14004a671
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14003be70
jmp 0x14004a5c2
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004b120
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
lea rax, [rsp + 0x58]
mov ebx, edx
lea r9, [rbp + 0x190]
mov qword [rsp + 0x38], rax
xor eax, eax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
mov dword [rbp + 0x190], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14004b27e
mov edi, ebx
or edi, 0x20019
lea rax, [rbp + 0x198]
lea rdx, [rsp + 0x60]
mov r9d, edi
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004b298
mov rcx, qword [rbp + 0x198]
mov edx, ebx
call fcn.14004b120
mov rcx, qword [rbp + 0x198]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004b298
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.1400382a0
test al, al
je 0x14004b215
lea rcx, [rsp + 0x40]
call fcn.14004b0f0
mov ebx, dword [rbp + 0x188]
lea rdx, [rsp + 0x60]
mov r8d, ebx
xor r9d, r9d
mov rcx, rsi
call rax
jmp 0x14004b229
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [rbp + 0x188]
lea rcx, [rsp + 0x40]
test eax, eax
jne 0x14004b293
call fcn.1400386f0
lea rax, [rsp + 0x58]
lea r9, [rbp + 0x190]
mov qword [rsp + 0x38], rax
xor eax, eax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x190], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14004b18c
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
call fcn.1400386f0
xor al, al
jmp 0x14004b280
Function at 0x14004b830
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
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 0x14004b8d9
call fcn.140038e50
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 0x14004b8e7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004b8d1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038dd0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004b8d9
mov rcx, qword [rsp + 0x48]
jmp 0x14004b885
mov rcx, rdi
call fcn.14001460c
cmp qword [rbx + 0x10], 0
jne 0x14004b8ff
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004b8f4
mov rcx, rdi
call fcn.14001460c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004b907
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004b7f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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.14001732c]
lea rdx, [0x14009b784]
mov qword [rsp + 0x28], rax
call fcn.1400172a4
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004b966
lea edx, [rax + 0x1f]
jmp 0x14004b9e0
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 0x14004b9db
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004b9c0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016a94
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004b971
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004b9d1
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004b9e3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004b9ec
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004b7f0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038ce0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004ba2b
jmp 0x14004b830
jmp 0x14004b920
Function at 0x14004b920
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 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 0x14004b8d9
call fcn.140038e50
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 0x14004b8e7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004b8d1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038dd0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004b8d9
mov rcx, qword [rsp + 0x48]
jmp 0x14004b885
mov rcx, rdi
call fcn.14001460c
cmp qword [rbx + 0x10], 0
jne 0x14004b8ff
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004b8f4
mov rcx, rdi
call fcn.14001460c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004b907
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004b7f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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.14001732c]
lea rdx, [0x14009b784]
mov qword [rsp + 0x28], rax
call fcn.1400172a4
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004b966
lea edx, [rax + 0x1f]
jmp 0x14004b9e0
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 0x14004b9db
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004b9c0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016a94
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004b971
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004b9d1
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004b9e3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004b9ec
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004b7f0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038ce0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004ba2b
jmp 0x14004b830
jmp 0x14004b920
Function at 0x14004ba20
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 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 0x14004b8d9
call fcn.140038e50
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 0x14004b8e7
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004b8d1
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038dd0
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004b8d9
mov rcx, qword [rsp + 0x48]
jmp 0x14004b885
mov rcx, rdi
call fcn.14001460c
cmp qword [rbx + 0x10], 0
jne 0x14004b8ff
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004b8f4
mov rcx, rdi
call fcn.14001460c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004b907
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004b7f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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.14001732c]
lea rdx, [0x14009b784]
mov qword [rsp + 0x28], rax
call fcn.1400172a4
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004b966
lea edx, [rax + 0x1f]
jmp 0x14004b9e0
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 0x14004b9db
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004b9c0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016a94
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004b971
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004b9d1
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004b9e3
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004b9ec
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004b7f0
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038ce0
lea r11, [rsp + 0x430]
mov rsi, qword [r11 + 0x20]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
cmp byte [rcx + 0x48], 0
je 0x14004ba2b
jmp 0x14004b830
jmp 0x14004b920
Function at 0x14004bab0
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x14004bac7
movzx eax, word [rcx + 0x100]
jmp 0x14004bace
movzx eax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x14004bae4
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x14004baf4
mov edx, ecx
jmp 0x14004bb0a
cmp ecx, 2
jne 0x14004bb08
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x14004bb10
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 0x14004bb56
cmp byte [rbx + 0x19c], 0
je 0x14004bb54
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 0x14004be40
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 0x14004bed5
lea rdx, [0x140097db4]
lea rcx, [rsp + 0x5c]
call fcn.14001565c
test eax, eax
je 0x14004bec3
lea rdx, [0x14009e448]
lea rcx, [rsp + 0x5c]
call fcn.14001565c
test eax, eax
je 0x14004bec3
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.14003b4b0
test al, al
je 0x14004bef3
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004be7d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14004bf03
mov al, sil
jmp 0x14004bfbe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004bfbe
lea rdx, [rsp + 0x30]
lea rcx, [0x14009e440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004bfb1
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14004bf9b
lea rdx, [0x140097db4]
lea rcx, [rsp + 0x5c]
call fcn.14001565c
test eax, eax
je 0x14004bf9b
lea rdx, [0x14009e448]
lea rcx, [rsp + 0x5c]
call fcn.14001565c
test eax, eax
je 0x14004bf9b
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.14004be40
test al, al
je 0x14004bfb3
lea rcx, [0x14009e448]
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 0x14004bf29
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 0x14004c4c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400c3354], 0
lea rbx, [0x1400c2980]
jne 0x14004c4e5
xor ecx, ecx
call fcn.140017164
mov rcx, rax
call fcn.1400398b0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400c2970], 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 0x14004c508
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
dec r9d
mov dword [rbx], edx
mov rbx, r8
jne 0x14004c538
mov ecx, dword [0x1400c2980]
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 0x14004ca00
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov r10, r8
mov rbx, rdx
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004ca46
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004ca89
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004ca70
mov rax, qword [rdx]
test rax, rax
jne 0x14004ca40
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004cae5
or rax, 0xffffffffffffffff
jmp 0x14004ca40
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004ca9c
cmp rax, 0xffffffffffffffff
je 0x14004ca9c
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039b60
jmp 0x14004ca3d
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009b6c8]
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004ca39
test rax, rax
je 0x14004ca39
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039b60
mov rcx, rbx
call fcn.140039bd0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004ca3d
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004ca00
Function at 0x14004cb10
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
mov eax, dword [rcx]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov rbx, r9
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14004cb51
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004cb97
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004cb80
mov rax, qword [r9]
test rax, rax
jne 0x14004cb4b
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004cbf3
or rax, 0xffffffffffffffff
jmp 0x14004cb4b
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004cbaa
cmp rax, 0xffffffffffffffff
je 0x14004cbaa
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039b60
jmp 0x14004cb48
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x14009b6c8]
mov edx, 0x40000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14004cb44
test rax, rax
je 0x14004cb44
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039b60
mov rcx, rbx
call fcn.140039bd0
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004cb48

Function at 0x14004cc50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.140039c00
test al, al
je 0x14004cc92
test rdx, rdx
je 0x14004cc92
test r8, r8
je 0x14004cc92
and qword [rsp + 0x20], 0
lea rbx, [rcx + 0x28]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004cc92
mov rcx, rbx
call fcn.140039bd0
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret