joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005320
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000537e
cmp dword [0x140016640], 2
je 0x140005360
call fcn.140009170
mov ecx, 0x12
call fcn.140008f30
mov ecx, 0xff
call fcn.140004e50
mov eax, 0xff
jmp 0x140005586
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1400053af
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x140005586
mov r13d, dword [rbx + 0x10]
mov esi, dword [rbx + 4]
mov r12d, dword [rbx + 8]
mov edi, dword [rbx + 0xc]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r13d, 2
je 0x1400053e1
bts edi, 0xf
mov eax, esi
shl eax, 8
add eax, r12d
mov dword [0x1400165cc], r13d
mov dword [0x1400165d4], eax
mov dword [0x1400165d8], esi
mov dword [0x1400165dc], r12d
mov dword [0x1400165d0], edi
cmp word [0x140000000], 0x5a4d
jne 0x140005467
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140005435
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
cmp word [rax + 0x18], 0x20b
je 0x140005445
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
cmp dword [rax + 0x84], 0xe
ja 0x140005456
xor ebx, ebx
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x50], ebx
jmp 0x14000546d
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, 1
call fcn.140006f30
test eax, eax
jne 0x14000549d
cmp dword [0x140016640], 2
je 0x140005489
call fcn.140009170
mov ecx, 0x1c
call fcn.140008f30
mov ecx, 0xff
call fcn.140004e50
call fcn.140008660
test eax, eax
jne 0x1400054c8
cmp dword [0x140016640], 2
je 0x1400054b4
call fcn.140009170
mov ecx, 0x10
call fcn.140008f30
mov ecx, 0xff
call fcn.140004e50
call fcn.1400096c0
nop
call fcn.14000a610
test eax, eax
jns 0x1400054e1
mov ecx, 0x1b
call fcn.140004e20
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x1400187d0], rax
call fcn.14000a440
mov qword [0x140016630], rax
call fcn.14000a330
test eax, eax
jns 0x14000550d
mov ecx, 8
call fcn.140004e20
call fcn.140009fa0
test eax, eax
jns 0x140005520
mov ecx, 9
call fcn.140004e20
mov ecx, 1
call fcn.140004f90
test eax, eax
je 0x140005535
mov ecx, eax
call fcn.140004e20
mov r8, qword [0x1400165f8]
mov qword [0x140016600], r8
mov rdx, qword [0x1400165e8]
mov ecx, dword [0x1400165e0]
call fcn.140002cb0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140005566
mov ecx, eax
call fcn.1400051a0
call fcn.1400051c0
jmp 0x140005584
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
sub rsp, 0x28
call fcn.14000a940
add rsp, 0x28
jmp 0x140005320
Function at 0x1400069a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x140016648]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140008160
test rax, rax
je 0x1400069f4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140006a89
mov ecx, 2
call fcn.14000bc20
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140006ff0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140006a75
test ebx, ebx
jne 0x140006a75
lea ecx, [rax + 2]
call fcn.14000bc20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140006e37
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140015028]
jne 0x14000470a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004706
repz ret
ror rcx, 0x10
jmp 0x140006d90
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400166f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400167e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140006e15
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400166f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140006e37
mov rax, qword [rsp + 0x88]
mov qword [0x1400167e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016788], rax
mov rax, qword [0x1400167e8]
mov qword [0x140016660], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016770], rax
mov dword [0x140016650], 0xc0000409
mov dword [0x140016654], 1
mov rax, qword [0x140015028]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140015030]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400166e8], eax
mov ecx, 1
call fcn.14000bc20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400104d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400166e8], 0
jne 0x140006ebe
mov ecx, 1
call fcn.14000bc20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140008f30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140015c80]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140008f6e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140008f50
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140009155
mov ecx, 3
call fcn.14000e880
cmp eax, 1
je 0x14000910c
mov ecx, 3
call fcn.14000e880
test eax, eax
jne 0x140008fa5
cmp dword [0x140015020], 1
je 0x14000910c
cmp edi, 0xfc
je 0x140009155
mov qword [rsp + 0x50], rbp
lea rbp, [0x140016c50]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140004710
test eax, eax
je 0x140008fe9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140006900
lea rdx, [0x140016c69]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140016d6d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140009039
lea r8, str._program_name_unknown_
lea rcx, [0x140016c69]
mov edx, 0x2fb
call fcn.140004710
test eax, eax
je 0x140009039
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140006900
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140016c69]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140009088
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x140016f64]
lea r9d, [rax + 3]
lea r8, [0x140010b44]
sub rdx, rcx
call fcn.14000dd50
test eax, eax
je 0x140009088
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140006900
lea r8, [0x140010b40]
mov edx, 0x314
mov rcx, rbp
call fcn.1400047c0
test eax, eax
je 0x1400090b4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140006900
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1400047c0
test eax, eax
je 0x1400090e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140006900
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14000e620
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140009155
cmp rax, 0xffffffffffffffff
je 0x140009155
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14000a440
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1400172f8]
test eax, eax
jne 0x14000a493
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000a473
mov dword [0x1400172f8], 1
jmp 0x14000a4ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14000a48d
mov dword [0x1400172f8], 2
jmp 0x14000a589
mov eax, dword [0x1400172f8]
cmp eax, 1
jne 0x14000a580
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000a5d3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x14000a4d5
add rbx, 2
cmp word [rbx], 0
jne 0x14000a4c1
add rbx, 2
cmp word [rbx], 0
jne 0x14000a4c1
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x14000a573
mov rcx, rbp
call fcn.14000b600
test rax, rax
mov rsi, rax
je 0x14000a573
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000a54d
mov rcx, rsi
call fcn.140004a40
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14000a559
cmp eax, 2
je 0x14000a589
test eax, eax
jne 0x14000a5d3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x14000a5d3
cmp byte [rax], 0
je 0x14000a5b2
nop
add rax, 1
cmp byte [rax], 0
jne 0x14000a5a0
add rax, 1
cmp byte [rax], 0
jne 0x14000a5a0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14000b600
test rax, rax
mov rdi, rax
jne 0x14000a5e5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d730
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x14000e620
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140008070
xor ebx, ebx
cmp qword [0x140017378], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000e74c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000e85f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000e85f
mov rcx, rax
call fcn.140007fa0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140017378], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007fa0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140017380], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007fa0
lea rcx, [rsp + 0x98]
mov qword [0x140017388], rax
call fcn.140004ef0
test eax, eax
je 0x14000e6ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140006900
cmp dword [rsp + 0x98], 2
jne 0x14000e74c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007fa0
test rax, rax
mov qword [0x140017398], rax
je 0x14000e74c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140007fa0
mov qword [0x140017390], rax
mov rcx, qword [0x140017390]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000e7f8
cmp qword [0x140017398], rbp
je 0x14000e7f8
call fcn.140008160
mov rcx, qword [0x140017398]
mov rsi, rax
call fcn.140008160
test rsi, rsi
mov r12, rax
je 0x14000e7f8
test rax, rax
je 0x14000e7f8
call rsi
test rax, rax
je 0x14000e7c3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000e7c3
test byte [rsp + 0x40], 1
jne 0x14000e7f8
lea rcx, [rsp + 0x30]
call fcn.140004f40
test eax, eax
je 0x14000e7e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140006900
cmp dword [rsp + 0x30], 4
jb 0x14000e7f2
bts edi, 0x15
jmp 0x14000e836
bts edi, 0x12
jmp 0x14000e836
mov rcx, qword [0x140017380]
cmp rcx, rbp
je 0x14000e836
call fcn.140008160
test rax, rax
je 0x14000e836
call rax
test rax, rax
mov rbx, rax
je 0x14000e836
mov rcx, qword [0x140017388]
cmp rcx, rbp
je 0x14000e836
call fcn.140008160
test rax, rax
je 0x14000e836
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140017378]
call fcn.140008160
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000e85f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000e861
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f450
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140015028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14000f497
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400046f0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000f440
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400046f0
add rsp, 0x38
ret
Function at 0x140f52294
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5229e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f522c7
pop rbp
sub rbp, 0x33
sub rbp, 0xf52294
sub rsp, 0x20
jmp 0x140f522e6
mov rax, 0xf52294
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x6be88ea3
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f52305
jmp 0x140f5231c
jmp 0x140f52348
movabs dword [0x831bebf3f34ba2eb], eax
push rcx
test dword [rbx - 0x5c5c5c5d], esp
jmp 0x140f52374
mov bpl, 0xa3
movabs dword [0x22ebb292a14b62a3], eax
invalid

Function at 0x1406d0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406d01df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406d0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d006f
add dl, dl
jne 0x1406d0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d00f6
xor eax, eax
add dl, dl
jne 0x1406d00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d01ad
add dl, dl
jne 0x1406d00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406d00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406d007e
mov eax, 1
add dl, dl
jne 0x1406d0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d00fb
sub eax, ebx
mov ebx, 1
jne 0x1406d014c
mov ecx, 1
add dl, dl
jne 0x1406d012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406d0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d015d
cmp eax, 0x7d00
jae 0x1406d019b
cmp eax, 0x500
jb 0x1406d0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d007e
cmp eax, 0x7f
ja 0x1406d019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406d01d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406d007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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, [0x0044b980]
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, [0x0044b980]
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 [0x004484b0]
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, [0x0044b980]
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]