joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400498e0
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 0x14004990a
lea rcx, [0x1400c0e50]
call fcn.140037fc0
mov dword [0x1400c0f08], eax
jmp 0x140049910
mov eax, dword [0x1400c0f08]
cmp eax, 0xffffffff
je 0x140049a71
movsxd rcx, eax
mov rax, qword [0x1400c0ef0]
mov rcx, qword [rax + rcx*8]
mov rdi, qword [rcx]
cmp byte [rdi + 0x6a], 0
mov rbp, qword [rdi]
je 0x140049966
cmp dword [rdi + 0x2b8], 0
mov byte [rdi + 0x6a], 0
jl 0x140049966
cmp byte [rdi + 0x2c4], 0
je 0x140049966
mov r8d, dword [rdi + 0x2c0]
lea rcx, [0x1400c0e50]
mov rdx, rdi
call fcn.140048f10
mov byte [rdi + 0x2c4], 0
cmp ebx, 8
jg 0x1400499f9
je 0x1400499cc
test ebx, ebx
je 0x1400499b3
cmp ebx, 1
je 0x1400499cc
mov edx, 6
cmp ebx, 2
je 0x14004999a
cmp ebx, 3
je 0x140049a53
jle 0x1400499c2
cmp ebx, 5
jle 0x1400499cc
cmp ebx, edx
je 0x14004999e
jmp 0x1400499c2
mov byte [rdi + 0x68], 1
cmp byte [rdi + 0x68], 0
je 0x140049a71
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1400499c2
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [rdi + 0x68], 0
mov eax, 1
jmp 0x140049a73
cmp byte [rdi + 0x68], 0
jne 0x140049a71
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
cmp ebx, 8
je 0x1400499f3
cmp ebx, 4
je 0x1400499f3
mov rcx, rbp
call fcn.14003bf80
mov byte [rdi + 0x68], 1
jmp 0x1400499c2
mov edx, ebx
sub edx, 9
je 0x140049a53
sub edx, 0x37
je 0x140049a4c
dec edx
je 0x140049a3c
dec edx
je 0x140049a2d
dec edx
jne 0x1400499c2
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 0x1400499c2
mov rcx, rbp
mov byte [rdi + 0x69], 1
call qword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x1400499c2
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x1400499c2
mov edx, 1
jmp 0x140049a3e
cmp byte [rdi + 0x68], 0
je 0x140049a71
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14003bf80
jmp 0x1400499c2
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004a520
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 0x14004a67e
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 0x14004a698
mov rcx, qword [rbp + 0x198]
mov edx, ebx
call fcn.14004a520
mov rcx, qword [rbp + 0x198]
mov bl, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14004a698
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140038090
test al, al
je 0x14004a615
lea rcx, [rsp + 0x40]
call fcn.14004a4f0
mov ebx, dword [rbp + 0x188]
lea rdx, [rsp + 0x60]
mov r8d, ebx
xor r9d, r9d
mov rcx, rsi
call rax
jmp 0x14004a629
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 0x14004a693
call fcn.140038740
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 0x14004a58c
mov al, 1
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
call fcn.140038740
xor al, al
jmp 0x14004a680
Function at 0x14004ad60
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 0x14004ae09
call fcn.140038e90
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 0x14004ae17
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004ae01
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038e10
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004ae09
mov rcx, qword [rsp + 0x48]
jmp 0x14004adb5
mov rcx, rdi
call fcn.140014a90
cmp qword [rbx + 0x10], 0
jne 0x14004ae2f
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004ae24
mov rcx, rdi
call fcn.140014a90
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004ae37
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004ad20
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.14001743c]
lea rdx, [0x140098694]
mov qword [rsp + 0x28], rax
call fcn.1400173b4
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004ae96
lea edx, [rax + 0x1f]
jmp 0x14004af10
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 0x14004af0b
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004aef0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016ba4
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004aea1
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004af01
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004af13
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004af1c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004ad20
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038d20
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 0x14004af5b
jmp 0x14004ad60
jmp 0x14004ae50
Function at 0x14004ae50
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 0x14004ae09
call fcn.140038e90
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 0x14004ae17
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004ae01
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038e10
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004ae09
mov rcx, qword [rsp + 0x48]
jmp 0x14004adb5
mov rcx, rdi
call fcn.140014a90
cmp qword [rbx + 0x10], 0
jne 0x14004ae2f
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004ae24
mov rcx, rdi
call fcn.140014a90
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004ae37
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004ad20
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.14001743c]
lea rdx, [0x140098694]
mov qword [rsp + 0x28], rax
call fcn.1400173b4
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004ae96
lea edx, [rax + 0x1f]
jmp 0x14004af10
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 0x14004af0b
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004aef0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016ba4
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004aea1
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004af01
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004af13
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004af1c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004ad20
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038d20
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 0x14004af5b
jmp 0x14004ad60
jmp 0x14004ae50
Function at 0x14004af50
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 0x14004ae09
call fcn.140038e90
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 0x14004ae17
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14004ae01
mov r8d, ecx
lea rcx, [rbx + 0x70]
mov rdx, rdi
call fcn.140038e10
mov ecx, dword [rsp + 0x40]
add qword [rbx + 0x10], rcx
test ecx, ecx
je 0x14004ae09
mov rcx, qword [rsp + 0x48]
jmp 0x14004adb5
mov rcx, rdi
call fcn.140014a90
cmp qword [rbx + 0x10], 0
jne 0x14004ae2f
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004ae24
mov rcx, rdi
call fcn.140014a90
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
xor r9d, r9d
mov r8d, 0xdeadbeef
jmp 0x14004ae37
xor r8d, r8d
mov r9b, 1
xor edx, edx
mov rcx, rbx
call fcn.14004ad20
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.14001743c]
lea rdx, [0x140098694]
mov qword [rsp + 0x28], rax
call fcn.1400173b4
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x14004ae96
lea edx, [rax + 0x1f]
jmp 0x14004af10
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 0x14004af0b
mov eax, dword [rsp + 0x440]
test eax, eax
je 0x14004aef0
lea rcx, [rsp + 0x30]
mov edx, eax
mov r9, rdi
mov r8d, 1
call fcn.140016ba4
mov ecx, dword [rsp + 0x440]
add qword [rbx + 0x10], rcx
test ecx, ecx
jne 0x14004aea1
cmp qword [rbx + 0x10], 0
mov rcx, rbx
jne 0x14004af01
mov edx, SafeArrayDestroyDescriptor
jmp 0x14004af13
xor r8d, r8d
mov r9b, 1
xor edx, edx
jmp 0x14004af1c
mov edx, reloc.OLEAUT32.dll_RegisterActiveObject
mov rcx, rbx
xor r9d, r9d
mov r8d, 0xdeadbeef
call fcn.14004ad20
lea rcx, [rsp + 0x20]
mov bl, al
call fcn.140038d20
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 0x14004af5b
jmp 0x14004ad60
jmp 0x14004ae50
Function at 0x14004afe0
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x14004aff7
movzx eax, word [rcx + 0x100]
jmp 0x14004affe
movzx eax, word [rcx + 0x98]
movsx ecx, ax
lea r8, [rbx + 0x148]
cmp edx, 1
je 0x14004b014
lea r8, [rbx + 0xe0]
mov rax, qword [rbx + 0x168]
cmp ecx, 1
jne 0x14004b024
mov edx, ecx
jmp 0x14004b03a
cmp ecx, 2
jne 0x14004b038
mov r8, qword [r8]
lea r9, str._local_
lea edx, [rcx + 1]
jmp 0x14004b040
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 0x14004b086
cmp byte [rbx + 0x19c], 0
je 0x14004b084
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 0x14004b370
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 0x14004b405
lea rdx, [0x14009811c]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14004b3f3
lea rdx, [0x14009b358]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14004b3f3
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0x5c]
mov r8d, ebp
call fcn.14003b5a0
test al, al
je 0x14004b423
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14004b3ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14004b433
mov al, sil
jmp 0x14004b4ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14004b4ee
lea rdx, [rsp + 0x30]
lea rcx, [0x14009b350]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004b4e1
mov esi, dword [rsp + 0x2c8]
test byte [rsp + 0x30], 0x10
je 0x14004b4cb
lea rdx, [0x14009811c]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14004b4cb
lea rdx, [0x14009b358]
lea rcx, [rsp + 0x5c]
call fcn.140015770
test eax, eax
je 0x14004b4cb
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.14004b370
test al, al
je 0x14004b4e3
lea rcx, [0x14009b358]
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 0x14004b459
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 0x14004ba30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400c0354], 0
lea rbx, [0x1400bf980]
jne 0x14004ba55
xor ecx, ecx
call fcn.140017274
mov rcx, rax
call fcn.1400398e0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov qword [0x1400bf970], 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 0x14004ba78
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 0x14004baa8
mov ecx, dword [0x1400bf980]
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 0x14004bf50
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 0x14004bf96
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004bfd9
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004bfc0
mov rax, qword [rdx]
test rax, rax
jne 0x14004bf90
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004c035
or rax, 0xffffffffffffffff
jmp 0x14004bf90
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004bfec
cmp rax, 0xffffffffffffffff
je 0x14004bfec
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039b90
jmp 0x14004bf8d
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400985d8]
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 0x14004bf89
test rax, rax
je 0x14004bf89
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039b90
mov rcx, rbx
call fcn.140039c00
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004bf8d
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004bf50
Function at 0x14004c060
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 0x14004c0a1
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004c0e7
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test edx, eax
je 0x14004c0d0
mov rax, qword [r9]
test rax, rax
jne 0x14004c09b
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 0x14004c143
or rax, 0xffffffffffffffff
jmp 0x14004c09b
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004c0fa
cmp rax, 0xffffffffffffffff
je 0x14004c0fa
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039b90
jmp 0x14004c098
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400985d8]
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 0x14004c094
test rax, rax
je 0x14004c094
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039b90
mov rcx, rbx
call fcn.140039c00
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004c098

Function at 0x14004c1a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x58], 0
call fcn.140039c30
test al, al
je 0x14004c1e2
test rdx, rdx
je 0x14004c1e2
test r8, r8
je 0x14004c1e2
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 0x14004c1e2
mov rcx, rbx
call fcn.140039c00
mov eax, dword [rsp + 0x58]
add rsp, 0x30
pop rbx
ret
Function at 0x14004c1f0
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 0x14004bf96
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x14004bfd9
and qword [rbx], 0
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
test al, 1
je 0x14004bfc0
mov rax, qword [rdx]
test rax, rax
jne 0x14004bf90
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, r10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14004c035
or rax, 0xffffffffffffffff
jmp 0x14004bf90
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
test rax, rax
je 0x14004bfec
cmp rax, 0xffffffffffffffff
je 0x14004bfec
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.140039b90
jmp 0x14004bf8d
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea rcx, [0x1400985d8]
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 0x14004bf89
test rax, rax
je 0x14004bf89
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.140039b90
mov rcx, rbx
call fcn.140039c00
mov r11, qword [rsp + 0x70]
mov qword [rbx], r11
jmp 0x14004bf8d
lea r8, [rcx + 0x28]
lea rdx, [rcx + 0x30]
jmp 0x14004bf50

Function at 0x14004c740
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp dl, 1
jne 0x14004c772
call fcn.14003abe0
test al, al
jne 0x14004c78f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
jmp 0x14004c785
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov edx, ebx
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x20
pop rbx
ret
Function at 0x14004cab0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, dword [rsp + 0x80]
xor edi, edi
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov byte [0x1400af8ee], dil
test ebx, ebx
je 0x14004cb26
mov byte [0x1400af8ef], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x80]
lea r8, [0x14004c990]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], ebx
call fcn.1400165d4
mov rdi, rax
mov r9d, esi
mov r8, rbp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, eax
test rdi, rdi
je 0x14004cb5b
or edx, 0xffffffff
mov rcx, rdi
mov byte [0x1400af8ef], 0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
or eax, 0xffffffff
cmp byte [0x1400af8ee], 1
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x14004cce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14004ccc0
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x18], rax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret