joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001cf0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bf0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d12
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ca0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c18
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400022dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400022d3
test rsi, rsi
je 0x1400022d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400024f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002508
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002510
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002520
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000256d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002564
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000256f
add rax, 0x28
cmp rax, r9
jne 0x140002550
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002600
mov rdx, qword [0x1400047d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025ee
cmp word [rax + 0x18], 0x20b
jne 0x1400025ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002600
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002600
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002610
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400047d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002630
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002638
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002630
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000268d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002684
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002630
add rax, 0x28
cmp rax, r9
jne 0x140002670
xor eax, eax
ret

Function at 0x140002690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400047d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400026af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400026af
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400026d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400047d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002740
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002737
test rcx, rcx
je 0x1400026f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002728
xor eax, eax
ret

Function at 0x140002750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400047d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000276f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002778
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002790
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400047d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002804
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002810
add rdx, 0x28
cmp r9, rdx
jne 0x1400027f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002820
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400047d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002842
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002850
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002842
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002842
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002842
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002890
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028ae
test ecx, ecx
jg 0x1400028c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400091c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
mov ebx, r8d
test r8d, r8d
je 0x140009212
movsxd rbp, ecx
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140009216
je 0x140009212
movsxd rcx, eax
add rdi, rcx
sub ebx, eax
jne 0x1400091f0
sub esi, ebx
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140009450
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
mov ebx, r8d
test r8d, r8d
je 0x1400094a1
movsxd rbp, ecx
nop word [rax + rax]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400094a5
sub ebx, eax
cdqe
add rdi, rax
test ebx, ebx
jne 0x140009480
sub esi, ebx
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a280
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x140018638]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140019c90], 0
lea rax, [0x140009be0]
mov qword [rsp + 0x28], rax
lea rbx, str.getaddrinfo
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x14000a040]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140009b80]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x14000a459
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14000a44f
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000a376
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000a3d8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000a447
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000a3d8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000a447
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
nop word [rax + rax]
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x14000a436
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x14000a3f0
mov rax, qword [rsp + 0x28]
mov qword [0x140018680], rax
mov rax, qword [rsp + 0x38]
mov qword [0x140018690], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1400186a0], rax
jmp 0x14000a43f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140019c90], 1
mov rax, rbp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400066c0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x14000a490
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x140018638]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor r15d, r15d
mov dword [rsp + 0x28], edx
mov r8d, 0x401
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r12d, r15d
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + reloc.mfc140.dll_Ordinal_1104]
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + reloc.mfc140.dll_Ordinal_1104]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea rbp, [r15 - 1]
nop dword [rax + rax]
mov rcx, r14
mov qword [r13], r15
mov rsi, r13
mov byte [rdi], r15b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x14000a691
cmp word [rax + 0x10], 2
jne 0x14000a5b7
cmp word [rax + 0x12], 4
jne 0x14000a5b7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x14000a5b2
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.14000a700
mov qword [rsi], rax
test rax, rax
je 0x14000a689
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x14000a580
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
cmp qword [r13], r15
jne 0x14000a631
mov rax, rbp
inc rax
cmp byte [rdi + rax], r15b
jne 0x14000a5d6
test rax, rax
je 0x14000a6ab
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14000a604
inc rax
test ecx, ecx
jne 0x14000a5f1
test edx, edx
je 0x14000a6ab
inc r12d
cmp r12d, 0x10
je 0x14000a6ab
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x14000a540
cmp dword [rsp + 0x8c0], r15d
je 0x14000a6c1
nop
cmp byte [rdi + rbp + 1], r15b
lea rbp, [rbp + 1]
jne 0x14000a640
lea rdx, [rbp + 1]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x14000a667
mov rbx, r15
jmp 0x14000a677
mov r8, rdi
lea rdx, [rbp + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], r15
jne 0x14000a6c1
mov r15d, 8
jmp 0x14000a6c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x14000a6bb
sub ecx, 1
je 0x14000a6b3
sub ecx, 1
jne 0x14000a6bb
mov r15d, 0x2afb
jmp 0x14000a6c1
mov r15d, 0x2afa
jmp 0x14000a6c1
mov r15d, 0x2af9
mov eax, r15d
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400066c0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400012b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov eax, dword [rsp + 0x50]
mov ebp, edx
mov ecx, eax
mov edx, r9d
xor ebp, 0x1e50
xor edx, 0x2096
xor ecx, 0x2ace
mov rbx, r8
lea edi, [rax - 0x13e2]
lea eax, [r9 - 0x2096]
cmp eax, r9d
jge 0x140001448
lea eax, [rdi + 0xa60]
cmp ecx, eax
jg 0x1400013d3
cmp dword [r8 + 0x88], 0xbb10
ja 0x140001321
mov rcx, qword [section..data]
mov eax, dword [rcx]
sub dword [rcx + 0x9c], eax
jmp 0x140001341
mov rdx, qword [section..data]
mov ecx, dword [r8 + 0x5c]
xor ecx, dword [0x140105038]
mov eax, dword [rdx + 0x94]
imul eax, ecx
mov dword [rdx + 0x94], eax
mov eax, dword [r8 + 0xa0]
mov rcx, qword [section..data]
cmp dword [r8 + 0x118], eax
jae 0x140001366
mov eax, dword [rcx + 0xdc]
mov dword [0x1401050e8], eax
jmp 0x140001385
mov eax, dword [0x140105118]
sub eax, dword [r8 + 0x100]
xor eax, 0x80ee
add dword [rcx + 0x108], eax
mov rcx, qword [section..data]
mov eax, dword [rcx + 8]
add dword [r8 + 0xd8], eax
mov eax, dword [0x14010506c]
cmp dword [0x140105104], eax
ja 0x1400013ba
mov eax, dword [0x140105098]
mov ecx, dword [r8 + 0xc0]
add eax, 0x22e297
add ecx, eax
mov dword [r8 + 0x4c], ecx
jmp 0x140001448
mov rax, qword [section..data]
mov ecx, dword [rax + 0x98]
xor ecx, 0x1905f
sub dword [r8 + 0x5c], ecx
jmp 0x140001448
mov eax, dword [0x14010504c]
sub eax, edx
add eax, 0x23d5
cmp dword [0x1401050d0], eax
jne 0x140001448
and edi, ecx
mov qword [rsp + 0x30], rsi
mov esi, ebp
cmp ebp, edi
jle 0x140001443
mov eax, dword [0x140105048]
add eax, 0xffffdc42
xor dword [rbx + 0x94], eax
mov eax, dword [rbx + 0x6c]
mov rcx, qword [section..data]
or eax, 0x24db
sub eax, 0x23be
xor dword [rcx + 0xc], eax
mov rdx, qword [section..data]
mov ecx, dword [rdx + 0x38]
sub ecx, dword [0x140105048]
mov eax, dword [rdx + 0xf4]
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 2
cmp esi, edi
jg 0x1400013f5
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
lea eax, [rbp + 0x1e50]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d1a0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x40
mov r10d, dword [rsp + 0x70]
lea ebp, [rdx + 0x6a0]
mov r9, rcx
xor edx, 0x8b0
mov ecx, dword [rsp + 0x78]
add r8d, 0x242
mov esi, ecx
lea r14d, [r10 - 0x289]
xor esi, 0x3078
mov eax, r14d
xor eax, 0x597
lea r11d, [rcx - 0x454]
cmp edx, eax
je 0x14000d32f
lea eax, [r8 + 0x919]
cmp esi, eax
jg 0x14000d32f
lea eax, [r10 + 0x902]
xor eax, 0xdab
cmp ecx, eax
je 0x14000d27c
mov rcx, qword [section..data]
cmp dword [rcx + 0x28], 0x1380d
ja 0x14000d23a
mov eax, dword [r9 + 0x98]
add eax, 0x120f3
mov dword [rcx + 0x54], eax
mov rcx, qword [section..data]
mov eax, dword [r9 + 0x40]
cmp dword [0x1401050a0], eax
jbe 0x14000d25c
mov eax, dword [rcx + 0x40]
xor eax, dword [rcx + 0x28]
add eax, 0x4028d12b
mov dword [r9 + 0x58], eax
mov rcx, qword [section..data]
cmp dword [rcx + 0x98], 0x5115
je 0x14000d32f
mov eax, dword [rcx + 0x1c]
add eax, 0x20f7f
xor dword [rcx + 0x38], eax
jmp 0x14000d32f
lea eax, [rsi - 0x217c]
cmp ebp, eax
je 0x14000d32f
mov r10d, dword [r9 + 4]
xor r10d, dword [0x1401050a4]
movsxd rax, r11d
sub r10d, r8d
mov qword [rsp + 0x50], rbx
mov r11d, esi
mov ebx, r8d
mov qword [rsp + 0x58], rdi
movsxd rdi, edx
or r11d, 0x214c
and rdi, rax
mov r8d, ebp
mov rax, qword [section..data]
sub ebx, r14d
sub r8d, dword [0x140105084]
or ebx, r14d
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], ebx
mov r9d, dword [rax + 0x38]
mov edx, dword [rax + 0x94]
xor r9d, 0x2cd7
and edx, dword [0x140105118]
lea eax, [rsi + 0x23d5]
movsxd rcx, eax
movsxd rax, ebp
mov dword [rsp + 0x28], r11d
and rcx, rax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rax, qword [section..data]
mov ecx, dword [rax + 4]
imul ecx, r14d
sub ecx, dword [rax + 0x5c]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
lea eax, [rsi - 0x1028]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000d350
Capabilities:
Encode data using xor
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov esi, r9d
lea r11d, [r8 + 0xb6]
xor esi, 0xd9b
lea ebp, [r8 - 0x2096]
mov r14d, r8d
lea edi, [rcx - 0x2a4a]
xor r14d, 0x2096
add r8d, 0xdf1
add r9d, 0xfffffd04
mov rbx, rdx
lea eax, [rsi - 0x902]
cmp r11d, eax
jg 0x14000d4e1
mov eax, dword [rsp + 0x80]
add eax, 0xffffe6d4
cmp eax, ecx
je 0x14000d466
mov eax, dword [0x140105110]
cmp dword [rdx + 0x60], eax
jb 0x14000d3ea
mov edx, dword [0x140105128]
add edx, dword [0x140105118]
add edx, dword [0x1401050a8]
xor dword [rbx + 0x98], edx
jmp 0x14000d402
mov eax, dword [rdx + 0x108]
mov ecx, dword [rdx + 0xc]
xor ecx, 0x47a79
imul eax, ecx
mov dword [rdx + 0x108], eax
lea eax, [r9 - 0x5f5]
mov edx, esi
mov dword [rsp + 0x30], eax
lea ecx, [r14 + 0x2ace]
mov dword [rsp + 0x28], ecx
lea r10d, [rsi - 0x919]
lea rcx, [0x140105010]
mov dword [rsp + 0x20], r10d
lea r9d, [r14 + 0x185b]
lea r8d, [rdi + 0x24db]
call fcn.1400033d0
cmp dword [rbx + 0x98], 0x32d4
je 0x14000d525
mov rax, qword [section..data]
add dword [rax + 0xe0], 0x3d8
jmp 0x14000d525
mov eax, dword [rdx + 0x84]
mov r10d, dword [0x140105034]
sub eax, ebp
cmp r10d, eax
jb 0x14000d525
mov r8d, dword [0x140105044]
xor r11d, 0x6c
mov r9, qword [section..data]
and r11d, 0x16ec
mov eax, dword [0x1401050d0]
nop dword [rax]
cmp eax, r11d
jg 0x14000d4ce
mov edx, r11d
sub edx, eax
shr edx, 2
inc edx
nop
mov ecx, dword [r9 + 0x10c]
xor ecx, 0x217c
and ecx, r8d
sub eax, ecx
mov dword [0x1401050d0], eax
sub rdx, 1
jne 0x14000d4b0
mov ecx, dword [rbx + 0x84]
add r10d, 2
sub ecx, ebp
cmp r10d, ecx
jae 0x14000d4a0
jmp 0x14000d525
mov eax, dword [0x140105060]
xor eax, r8d
cmp edi, eax
jne 0x14000d525
mov eax, dword [rdx + 0x6c]
imul eax, dword [0x140105044]
cmp edi, eax
jbe 0x14000d525
mov rax, qword [section..data]
mov edx, dword [rdx + 0x34]
imul edx, r9d
mov ecx, dword [rax + 0x98]
sub ecx, dword [rbx + 0xa8]
mov eax, dword [0x1401050d0]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rbx, qword [rsp + 0x50]
lea eax, [r14 + 0x1caf]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret