joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013c07f
Capabilities:
Encode data using xor

Disassembly:
test rax, rax
mov qword [rsp], 0xffffffff82826f1a
not byte [rsp + 4]
lea rsp, [rsp + 0x10]
je 0x14013817a
mov r10d, 0x5080579e
movzx edx, r10w
lea r10, [0x140169668]
movzx edx, byte [rcx]
push 0xffffffff8ea39093
xor edx, esi
and edx, 0xff
mov edx, dword [r10 + rdx*4]
shr esi, 8
sar word [rsp + 2], 0x85
xor esi, edx
inc rcx
xor esi, 0xa6884983
dec rax
lea rsp, [rsp + 8]
jne 0x140138144
call fcn.14014914e
call fcn.140131d06
mov eax, 0xa9806b95
mov r9, qword [rsi]
or rax, rax
call fcn.140174971
mov rax, qword [rdi + 8]
add rdi, 0xc
xor esi, esi
jmp 0x140138119

Function at 0x140166d3d
Capabilities:
Encode data using xor

Disassembly:
mov bx, word [rbp + 2]
inc rcx
mov cl, byte [rbp + 4]
adc rbp, 4
jmp 0x140166d34
shld di, bx, cl
call fcn.1401323ba
mov rax, qword [r11]
mov ebp, 0x20096911
mov rbp, qword [r11 + rbp*2 - 0x4012d21a]
add r11, 0xc
xor ecx, ecx
push 0x219083af
test rbp, rbp
lea rsp, [rsp + 8]
je 0x140166dd8
push r9
mov edx, 0x698a5e85
movzx r9d, dl
lea rdx, [0x14015bd58]
mov r9d, 0x30937da7
sal r9d, 0x61
xor r9d, 0xc6193e0d
movzx r9d, byte [rax]
push 0x1b2a7bc
xor r9d, ecx
and r9d, 0xff
mov r9d, dword [rdx + r9*4]
shr ecx, 8
or word [rsp], 0xe698
xor ecx, r9d
inc rax
xor dword [rsp + 3], 0x9104ac0f
xor ecx, 0x8a08123d
dec rbp
mov qword [rsp], 0x4584570f
lea rsp, [rsp + 8]
jne 0x140166d7b
pop r9
push 0xffffffff8c2baa3f
push 0x7323af0d
not ecx
mov dword [r11], ecx
call fcn.14015d00c
Function at 0x1400013f4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15d, r9d
mov esi, r8d
mov r12, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14, qword [rsp + 0x70]
xor edi, edi
mov ebp, eax
shr ebp, 4
add ebp, r15d
and dword [r14], 0
mov ecx, dword [rbx + 0x68]
cmp ecx, 1
jne 0x14000143f
mov ecx, 2
mov dword [rbx + 0x68], ecx
cmp ecx, 2
jne 0x140001499
mov rcx, qword [rbx + 0x20]
lea rdx, [rbx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [0x1400084d8]
cmp eax, 0x80041700
je 0x14000148b
test eax, eax
je 0x14000146d
or dword [rbx + 0x68], 0xffffffff
or ecx, 0xffffffff
jmp 0x14000143f
mov ecx, dword [rbx + 0x30]
sub ecx, 1
je 0x140001481
cmp ecx, 1
jne 0x140001464
mov ecx, 5
jmp 0x140001486
mov ecx, 3
mov dword [rbx + 0x68], ecx
jmp 0x14000143f
mov dword [rbx + 0x68], 6
mov ecx, 6
jmp 0x14000143f
cmp ecx, 3
jne 0x140001541
and dword [rsp + 0x60], 0
test edi, edi
je 0x1400014c0
cmp dword [rbx + 0x2c], 0
je 0x1400014c0
test esi, esi
je 0x1400014c0
mov word [r12 + rdi*2], 0x20
inc edi
dec esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
shr eax, 4
test r15d, r15d
je 0x1400014d2
cmp eax, ebp
ja 0x140001530
cmp esi, 0x200
jb 0x140001530
mov rcx, qword [rbx + 0x20]
lea r8, [r12 + rdi*2]
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x1400084d8]
test eax, eax
jne 0x140001506
add edi, dword [rsp + 0x60]
sub esi, dword [rsp + 0x60]
jmp 0x1400014c0
cmp eax, 0x80041701
je 0x140001437
cmp eax, 0x8007007a
je 0x140001530
cmp eax, 0x41709
jne 0x140001464
add edi, dword [rsp + 0x60]
sub esi, dword [rsp + 0x60]
jmp 0x140001437
mov dword [rbx + 0x68], 4
mov ecx, 4
jmp 0x14000143f
cmp ecx, 5
je 0x140001437
cmp ecx, 0xffffffff
je 0x140001567
cmp ecx, 4
je 0x14000155e
cmp ecx, 6
je 0x140001569
jmp 0x14000143f
mov dword [rbx + 0x68], 3
jmp 0x140001569
xor edi, edi
mov rbp, qword [rsp + 0x58]
mov dword [r14], edi
cmp dword [rbx + 0x68], 0xffffffff
mov rbx, qword [rsp + 0x50]
setne al
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000556c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rax, [r11 + 0x18]
mov ebx, 0x20019
mov qword [r11 - 0x18], rax
mov r9d, ebx
lea rdx, str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDowncDefaultFindAttachmentPerms
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov edi, 0x80004005
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400055db
lea rax, [rsp + 0x50]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDowncDefaultFindAttachmentPerms
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000568f
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
and dword [rsp + 0x48], 0
lea rdx, str.tSearchAttachmentsWhiteList
mov qword [rsp + 0x28], rax
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
je 0x140005613
test eax, eax
jne 0x140005684
mov eax, dword [rsp + 0x48]
inc eax
mov ecx, eax
mov dword [rsp + 0x48], eax
call fcn.140006e10
mov rbx, rax
test rax, rax
je 0x140005684
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.tSearchAttachmentsWhiteList
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000567c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslwr]
mov rdx, rbx
mov rcx, rsi
call fcn.14000514c
mov edi, eax
mov rcx, rbx
call fcn.1400069b4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140005868
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [0x14000c010], rbx
jne 0x140005897
lea eax, [rbx + 1]
jmp 0x140005978
test rdi, rdi
je 0x140005976
cmp word [rcx], bx
je 0x140005976
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140005976
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140005976
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140005990
nop
cmp qword [rsp + 0x30], rbx
je 0x140005968
lea rcx, [rsp + 0x20]
call fcn.140005c54
test al, al
jne 0x140005968
mov r8, qword [0x14000c010]
cmp qword [rsp + 0x30], r8
jbe 0x140005968
lea rdx, [section..data]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 7
cmova rdx, qword [section..data]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140005968
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x140005968
lea rdx, str..lnk
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
movzx ebx, bl
mov edx, 1
test eax, eax
cmovne ebx, edx
lea rcx, [rsp + 0x20]
call fcn.1400017a0
mov al, bl
jmp 0x140005978
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006df0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140005aa0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
mov rax, qword [0x14000c080]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r13d, r13d
mov dil, r13b
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r14, rax
test rax, rax
je 0x140005c1f
mov dil, 1
lea rcx, str.__alloweddir
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov r12, rax
mov r15d, r13d
cmp dword [rsp + 0x20], r13d
jle 0x140005c16
mov rsi, r14
mov rcx, qword [rsi]
test rcx, rcx
je 0x140005c04
mov r8, r12
lea rdx, str.__alloweddir
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140005c04
mov dil, r13b
mov rax, qword [rsi]
lea rbx, [rax + r12*2]
cmp word [rbx], r13w
je 0x140005c04
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
cmp rax, 0x104
jae 0x140005c04
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140005c04
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140005c04
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140005990
nop
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140005bfa
cmp rax, 0x104
jae 0x140005bfa
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova r8, qword [rsp + 0x28]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x140005bfa
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test rax, rax
je 0x140005bfa
lea rdx, [rsp + 0x50]
lea rcx, [section..data]
call fcn.140005ddc
mov dil, 1
lea rcx, [rsp + 0x28]
call fcn.1400017a0
inc r15d
add rsi, 8
cmp r15d, dword [rsp + 0x20]
jl 0x140005b26
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, dil
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140006df0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140005e5c
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdi
mov qword [r11 + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp - 0x10]
mov edi, 0x20019
mov r14d, 1
mov qword [r11 - 0x38], rax
mov r9d, edi
lea rdx, str.SoftwareAdobeAdobe_AcrobatDCSecurity
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005efd
and dword [rbp - 0x18], eax
lea r9, [rbp - 0x18]
and dword [rbp - 0x20], eax
lea rdx, [0x1400088c4]
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x20]
mov dword [rbp - 0x1c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140005eeb
mov eax, dword [rbp - 0x20]
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000600e
lea rax, [rbp - 0x10]
xor ebx, ebx
and qword [rbp - 0x10], rbx
lea rdx, str.SoftwarePoliciesAdobeAdobe_AcrobatDCFeatureLockDown
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005f7d
mov rcx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
and dword [rbp - 0x20], ebx
lea r9, [rbp - 0x20]
and dword [rbp - 0x1c], ebx
lea rdx, str.bEnableATL7Compat
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x1c]
mov dword [rbp - 0x18], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140005f73
cmp dword [rbp - 0x20], 4
jne 0x140005f73
cmp dword [rbp - 0x1c], r14d
cmove ebx, r14d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140005fba
lea rdx, str.SetProcessDEPPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005fba
mov ecx, ebx
xor ecx, r14d
lea ecx, [rcx*2 + 1]
call qword [0x1400084d8]
test eax, eax
jne 0x14000600e
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000600e
lea rdx, str.NtSetInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000600e
lea ecx, [rbx*4 + 9]
mov dword [rbp - 0x18], ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
lea r8, [rbp - 0x18]
mov rcx, rax
mov rax, rdi
lea edx, [r9 + 0x1e]
call qword [0x1400084d8]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
call fcn.140005aa0
test al, al
jne 0x140006038
mov eax, r14d
jmp 0x140006048
mov rcx, rbx
call fcn.140005d9c
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
Function at 0x1400075c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000760e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000760e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000760e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000760e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000760e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007610
xor al, al
add rsp, 0x28
ret
Function at 0x401ae3
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
xor ebx, ebx
lea r12, [rsp + 0x20]
mov rbp, rcx
mov rsi, rdx
cmp rbx, rsi
jl 0x401b38
mov rbx, qword [fcn.00410900]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x0041313c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
jmp 0x401ba6
jb 0x401b48
lea rdx, [rsi - 1]
mov rcx, rbx
call fcn.00403ff6
jmp 0x401ba6
mov rdi, rbx
mov ecx, 1
call qword [fcn.00410900]
shl rdi, 4
xor r8d, r8d
mov rdx, r12
add rdi, rbp
mov rcx, rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x20], xmm0
call fcn.004019d1
mov rax, qword [0x00415730]
cmp byte [rax], 0
jne 0x401ba6
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rbx
call fcn.00401930
test al, al
je 0x401b9c
call fcn.00402d34
jmp 0x401ba6
mov rbx, qword [rsp + 0x38]
jmp 0x401afa
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x401cd8
Capabilities:
Write file on windows

Disassembly:
push rdi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov r10, rdx
je 0x401d01
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea r8, [rdx - 1]
mov rcx, r10
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
jmp sub.msvcrt.dll_fflush
Function at 0x40d728
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x00411060], 0
je 0x40d747
mov eax, 1
jmp 0x40d888
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax + 0x10]
mov r11, qword [rcx + 0x30]
test r11, r11
je 0x40d7ab
movsxd rax, dword [r11 + 0x3c]
mov eax, dword [r11 + rax + 0x88]
test eax, eax
je 0x40d7a3
mov edx, eax
add rdx, r11
mov eax, dword [rdx + 0xc]
add rax, r11
mov r8d, dword [rax]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x40d7a3
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x40d7b9
mov rcx, qword [rcx]
mov r8, r11
jmp 0x40d75d
xor eax, eax
test rdx, rdx
je 0x40d888
mov r11, r8
mov eax, dword [rdx + 0x18]
lea r13, [0x00411064]
xor r10d, r10d
mov esi, dword [rdx + 0x24]
mov ebp, dword [rdx + 0x1c]
lea ebx, [rax - 1]
mov eax, dword [rdx + 0x20]
add rsi, r11
add rbp, r11
add rax, r11
lea rdi, [rax + rbx*4]
add rbx, rbx
add rbx, rsi
mov ecx, dword [rdi]
add rcx, r11
cmp word [rcx], 0x775a
jne 0x40d81a
mov eax, r10d
lea r12, [r13 + rax*8]
call fcn.0040d700
mov dword [r12], eax
movzx eax, word [rbx]
inc r10d
cmp r10d, 0x1f4
mov eax, dword [rbp + rax*4]
mov dword [r12 + 4], eax
je 0x40d82c
lea rax, [rbx - 2]
sub rdi, 4
cmp rsi, rbx
je 0x40d82c
mov rbx, rax
jmp 0x40d7e5
mov dword [0x00411060], r10d
lea r11, [0x00411064]
dec r10d
test r10d, r10d
je 0x40d73d
lea rax, [0x00411060]
xor edx, edx
cmp edx, r10d
jae 0x40d883
lea ecx, [rdx + 1]
mov r8d, dword [rax + 8]
mov rdx, rcx
lea rcx, [r11 + rcx*8]
mov r9d, dword [rcx + 4]
cmp r8d, r9d
jbe 0x40d87d
mov ebx, dword [rax + 4]
mov esi, dword [rcx]
mov dword [rax + 8], r9d
mov dword [rax + 4], esi
mov dword [rcx], ebx
mov dword [rcx + 4], r8d
add rax, 8
jmp 0x40d84f
dec r10d
jmp 0x40d83d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x40da80
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x48
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
xor edx, edx
mov r8d, 0x1000002
mov qword [rsp + 0x28], 0
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
add rsp, 0x48
ret
Function at 0x40daf8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov dword [rsp + 0x3c], r8d
lea r13, [rsp + 0x4c]
mov rbp, rcx
mov r12d, edx
mov ecx, 0x40
mov edx, 0xb
mov rdi, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x28], 0
lea rdx, [0x004142b0]
mov rbx, rax
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rsi, rbx
movsx r9d, r8b
movzx r8d, r12b
call sub.msvcrt.dll_sprintf
mov r9, r13
mov rcx, rbp
mov edx, 0xb
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 0x40
call r12
mov ecx, 0xb
mov r9, r13
mov edx, 0xb
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x20
mov rcx, rbp
call r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor ebx, ebx
movzx eax, byte [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
mov rsi, rcx
mov r13, rdx
add rdi, rcx
mov r12d, dword [rdi + 0x20]
mov eax, dword [rdi + 0x14]
add r12, rcx
lea ebp, [rax - 1]
cmp ebp, ebx
jbe 0x40dc43
mov ecx, dword [r12 + rbx*4]
mov rdx, r13
mov qword [rsp + 0x28], r8
add rcx, rsi
call sub.msvcrt.dll_strcmp
lea rdx, [rbx + 1]
mov r8, qword [rsp + 0x28]
test eax, eax
jne 0x40dc3e
mov eax, dword [rdi + 0x24]
add rbx, rbx
mov rcx, r8
add rbx, rsi
movzx edx, word [rbx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx + rax]
mov rdx, r13
mov ebx, dword [rsi + rax + 4]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
movzx edi, bh
movzx edx, bl
mov r8d, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x40daf8
mov rbx, rdx
jmp 0x40dbd5
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x40dba6
Capabilities:
Execute shellcode via indirect call
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov dword [rsp + 0x3c], r8d
lea r13, [rsp + 0x4c]
mov rbp, rcx
mov r12d, edx
mov ecx, 0x40
mov edx, 0xb
mov rdi, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r8d, dword [rsp + 0x3c]
mov dword [rsp + 0x28], 0
lea rdx, [0x004142b0]
mov rbx, rax
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rsi, rbx
movsx r9d, r8b
movzx r8d, r12b
call sub.msvcrt.dll_sprintf
mov r9, r13
mov rcx, rbp
mov edx, 0xb
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 0x40
call r12
mov ecx, 0xb
mov r9, r13
mov edx, 0xb
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x20
mov rcx, rbp
call r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor ebx, ebx
movzx eax, byte [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
mov rsi, rcx
mov r13, rdx
add rdi, rcx
mov r12d, dword [rdi + 0x20]
mov eax, dword [rdi + 0x14]
add r12, rcx
lea ebp, [rax - 1]
cmp ebp, ebx
jbe 0x40dc43
mov ecx, dword [r12 + rbx*4]
mov rdx, r13
mov qword [rsp + 0x28], r8
add rcx, rsi
call sub.msvcrt.dll_strcmp
lea rdx, [rbx + 1]
mov r8, qword [rsp + 0x28]
test eax, eax
jne 0x40dc3e
mov eax, dword [rdi + 0x24]
add rbx, rbx
mov rcx, r8
add rbx, rsi
movzx edx, word [rbx + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx + rax]
mov rdx, r13
mov ebx, dword [rsi + rax + 4]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
movzx edi, bh
movzx edx, bl
mov r8d, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp 0x40daf8
mov rbx, rdx
jmp 0x40dbd5
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x40e788
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x00414860]
mov edx, 1
call fcn.00401ae3
call fcn.0040e611
mov rbx, qword [0x00415730]
cmp byte [rbx], 0
jne 0x40e7f7
lea rcx, [0x004147b0]
test al, al
mov edx, 1
je 0x40e7ea
call fcn.0040e746
cmp byte [rbx], 0
jne 0x40e7f7
lea rcx, [0x00414740]
test al, al
mov edx, 1
jne 0x40e7ea
lea rcx, [0x00414700]
add rsp, 0x20
pop rbx
jmp fcn.00401ae3
call fcn.00401ae3
xor ecx, ecx
call sub.msvcrt.dll_exit
nop
add rsp, 0x20
pop rbx
ret

Function at 0x40e86b
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x00414a80]
mov edx, 1
call fcn.00401ae3
call fcn.0040e800
mov rbx, qword [0x00415730]
cmp byte [rbx], 0
jne 0x40e8da
lea rcx, [0x004149d0]
test al, al
mov edx, 1
je 0x40e8cd
call fcn.0040e82d
cmp byte [rbx], 0
jne 0x40e8da
lea rcx, [0x00414960]
test al, al
mov edx, 1
je 0x40e8cd
lea rcx, [0x00414930]
add rsp, 0x20
pop rbx
jmp fcn.00401ae3
call fcn.00401ae3
xor ecx, ecx
call sub.msvcrt.dll_exit
nop
add rsp, 0x20
pop rbx
ret