joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427a20
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x427c8e
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
nop
lea rax, [0x00593450]
mov qword [rsp], rax
call fcn.0040afe0
lea rax, [0x005933c0]
mov qword [rsp], rax
call fcn.00418820
mov rax, qword [rsp + 8]
mov qword [rsp + 0x48], rax
nop
nop
lea rcx, [0x00593450]
mov qword [rsp], rcx
call fcn.0040b240
mov rax, qword [rsp + 0x48]
mov byte [rax + 0xa], 1
lea rdi, [rax + 0x10]
cmp dword [0x005aae30], 0
jne 0x427c7f
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x18], rcx
cmp dword [0x005aae30], 0
nop dword [rax]
jne 0x427c58
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x20], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.00427580
cmp byte [rsp + 0x10], 0
je 0x427bf6
cmp dword [0x005aac30], 0
jne 0x427b14
mov byte [rsp + 0x88], 1
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rax, qword [rsp + 0x60]
mov qword [rsp], rax
xorps xmm0, xmm0
movups xmmword [rsp + 8], xmm0
call fcn.004131e0
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rax + 0x30]
mov rdx, qword [rsp + 0x18]
nop
inc dword [rcx + 0xd8]
mov rcx, qword [rax + 0x30]
mov qword [rsp + 0x30], rcx
mov rbx, qword [rcx + 0xa0]
test byte [rbx], al
test byte [rax], al
mov qword [rsp], rdx
lea rax, [rbx + 0x1698]
mov qword [rsp + 0x38], rax
mov qword [rsp + 8], rax
call fcn.0041f580
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
mov qword [rsp + 8], 8
lea rax, [0x00552160]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], 0
call fcn.0041f3e0
nop
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
mov edx, dword [rcx + 0xd8]
lea ebx, [rdx - 1]
mov dword [rcx + 0xd8], ebx
cmp edx, 1
jne 0x427b02
cmp byte [rax + 0xb1], 0
je 0x427b02
mov qword [rax + 0x10], 0xfffffffffffffade
jmp 0x427b02
nop
nop
lea rax, [0x00593450]
mov qword [rsp], rax
call fcn.0040afe0
nop
mov rax, qword [0x005933f0]
sub rax, qword [0x005933c0]
mov qword [0x005933f0], rax
mov rax, qword [0x005933d8]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov qword [0x005933d8], rcx
nop
nop
lea rax, [0x00593450]
mov qword [rsp], rax
call fcn.0040b240
mov byte [rsp + 0x88], 0
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
lea rcx, [rax + 0x20]
mov rdi, rcx
mov rbx, qword [rsp + 0x78]
call fcn.00466020
lea rdi, [rax + 0x28]
mov rcx, qword [rsp + 0x80]
call fcn.00465fe0
jmp 0x427adb
mov rcx, qword [rsp + 0x68]
call fcn.00465fe0
jmp 0x427aa8
call fcn.004641a0
jmp fcn.00427a20
Function at 0x450d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jbe 0x450eb9
mov rdx, qword [rsp + 0x20]
movzx ebx, byte [rdx]
test ebx, ebx
jne 0x450d36
movzx esi, byte [rsp + 0x48]
test sil, sil
je 0x450e67
bt ebx, 7
nop word [rax + rax]
jae 0x450e59
xor eax, eax
xor ebx, ebx
xor esi, esi
jmp 0x450d60
lea esi, [rcx + 7]
mov rcx, rax
mov eax, r8d
nop word [rax + rax]
cmp rcx, rax
jbe 0x450eb4
movzx edi, byte [rax + rdx]
lea r8d, [rax + 1]
mov r9d, edi
and edi, 0x7f
mov rax, rcx
mov ecx, esi
shl edi, cl
or ebx, edi
test r9b, 0x80
jne 0x450d4e
mov esi, ebx
and ebx, 1
neg ebx
shr esi, 1
xor ebx, esi
mov rsi, qword [rsp + 0x40]
add dword [rsi], ebx
nop dword [rax + rax]
cmp rax, r8
jb 0x450ea9
sub rax, r8
mov rbx, qword [rsp + 0x30]
sub rbx, r8
mov rsi, rbx
neg rbx
sar rbx, 0x3f
and r8, rbx
lea rbx, [rdx + r8]
test rax, rax
jbe 0x450e9f
movzx edx, byte [rdx + r8]
bt edx, 7
jae 0x450e51
xor ecx, ecx
xor edx, edx
xor edi, edi
nop
jmp 0x450de8
lea edi, [rcx + 7]
mov ecx, r9d
cmp rax, rcx
jbe 0x450e92
movzx r8d, byte [rcx + rbx]
lea r9d, [rcx + 1]
mov r10d, r8d
and r8d, 0x7f
mov ecx, edi
shl r8d, cl
or edx, r8d
test r10b, 0x80
jne 0x450de2
cmp rax, r9
jb 0x450e87
mov rcx, qword [rsp + 0x38]
add qword [rcx], rdx
sub rsi, r9
mov rcx, rsi
neg rsi
sar rsi, 0x3f
and rsi, r9
lea rdx, [rbx + rsi]
mov qword [rsp + 0x50], rdx
sub rax, r9
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov r9d, 1
jmp 0x450e0f
mov rax, rcx
mov r8d, 1
jmp 0x450d86
mov qword [rsp + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x68], 0
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rax
mov eax, r9d
call fcn.00466440
mov rdx, rax
mov eax, ecx
mov rcx, rdx
call fcn.00466380
mov rcx, rax
xor eax, eax
call fcn.00466380
mov rcx, rax
mov eax, r8d
call fcn.00466440
call fcn.00466380
xor eax, eax
nop dword [rax + rax]
call fcn.00466380
nop
int3

Function at 0x4580e0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4581c1
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x0045ffa0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00464040
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.004641a0
jmp fcn.004580e0
Function at 0x465d80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4025c0
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
mov rax, qword [rax + 8]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rax
call fcn.00409680
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.004641a0
jmp 0x402560
cmp byte [0x005aabf2], 0
je 0x465d9f
mov rax, qword [rsp + 8]
mov rcx, qword [rax + 8]
mov rax, qword [rax]
lea rdx, [rsp + 0x18]
jmp 0x4631c0
jmp 0x402560

Function at 0x465dc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x005aae60]
nop
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*4]
xor rax, rcx
shl rcx, 0x20
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rcx, rax
movabs rax, 0x83cf8eadf876d2d7
imul rax, rcx
mov rcx, rax
shr rax, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x005aabf2], 0
je 0x465dfc
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ab0e0]
aesenc xmm0, xmmword [0x005ab0f0]
aesenc xmm0, xmmword [0x005ab100]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409900

Function at 0x465e20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x005aae60]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x005aabf2], 0
je 0x465e5d
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ab0e0]
aesenc xmm0, xmmword [0x005ab0f0]
aesenc xmm0, xmmword [0x005ab100]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409980

Function at 0x4676a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005ab060]
mov qword [rsp + 8], rdx
lea r8d, [0x005aac08]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
add rsp, 0x30
ret
Function at 0x46f7e0
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
imul rsi, rsi, 0xffffffffffffffe4
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rdx, 5
sar rsi, 0x3f
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x46f8b9
lea rsi, [rdx + rdx*2]
lea rdi, [0x0055e060]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x46f862
inc rdx
nop
jmp 0x46f838
cmp r9, 0xffffffffffffffe0
jle 0x46f86d
dec rdx
jmp 0x46f838
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.00466380
nop
int3
Function at 0x481f60
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edx, dword [rsp + 8]
xor ebx, ebx
jmp 0x481f81
movzx esi, byte [rax + rbx]
inc rbx
imul edx, edx, 0x1000193
xor edx, esi
cmp rcx, rbx
jg 0x481f72
mov dword [rsp + 0x28], edx
ret
Function at 0x2870c15d5
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0xe
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call rax
nop
add rsp, 0x248
pop rdi
pop rbp
ret

Function at 0x2870c17fb
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.DWriteModuleMonitor]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x2870c1869
mov eax, 0x80004004
jmp 0x2870c18ce
lea rax, str.Aga.Monitor.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2870c188e
mov eax, 0x80004004
jmp 0x2870c18ce
mov rax, qword [rbp - 8]
lea rdx, str.DWriteCreateFactory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x2870c18b7
mov eax, 0x80004004
jmp 0x2870c18ce
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp + 0x10]
mov r9, qword [rbp - 0x10]
mov r8, rcx
mov ecx, eax
call r9
add rsp, 0x50
pop rbp
ret
Function at 0x2870c1fb9
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x10], 0
mov dword [rbp - 4], 0xffffffff
mov dword [rbp - 8], 0
jmp 0x2870c2028
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movsx eax, al
xor dword [rbp - 4], eax
mov dword [rbp - 0xc], 0
jmp 0x2870c201e
mov eax, dword [rbp - 4]
and eax, 1
neg eax
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 4]
shr eax, 1
mov edx, eax
mov eax, dword [rbp - 0x10]
and eax, 0xedb88320
xor eax, edx
mov dword [rbp - 4], eax
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 7
jle 0x2870c1ffb
add dword [rbp - 8], 1
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x2870c1fdc
mov eax, dword [rbp - 4]
not eax
add rsp, 0x10
pop rbp
ret

Function at 0x2870c3573
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov dword [rbp - 4], 0
jmp 0x2870c3622
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
mov r8d, eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
movzx edx, ax
mov eax, dword [rbp + 0x30]
mov ecx, eax
sar edx, cl
mov eax, edx
and ax, 0x1111
xor eax, r8d
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov word [rax + rdx*2], cx
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
movzx eax, ax
and eax, 0x1111
mov edx, eax
mov eax, dword [rbp + 0x28]
mov ecx, eax
shl edx, cl
mov ecx, edx
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
movzx eax, word [rax + rdx*2]
mov edx, eax
mov eax, ecx
or eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
mov word [rax + rdx*2], cx
add dword [rbp - 4], 1
cmp dword [rbp - 4], 7
jle 0x2870c3597
nop
nop
add rsp, 0x10
pop rbp
ret
Function at 0x2870c3da6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
call sym.GenerateRandomInt
and eax, 0xf
mov dword [rbp - 0x10], eax
mov dword [rbp - 4], 0
movzx eax, byte [0x2870cc108]
test al, al
jne 0x2870c3df9
mov ecx, 0xa1cab71e
call sym.GetModuleHandleH
mov rdx, rax
lea rax, [0x2870cc0e0]
mov rcx, rax
call sym.InitDllsConfigStructs
test eax, eax
jne 0x2870c3df9
mov eax, 0
jmp 0x2870c3ef0
mov dword [rbp - 8], 0
jmp 0x2870c3edc
mov rax, qword [0x2870cc100]
mov rdx, qword [0x2870cc0e8]
mov ecx, dword [rbp - 8]
shl rcx, 2
add rdx, rcx
mov edx, dword [rdx]
mov edx, edx
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [0x2870cc100]
mov rdx, qword [0x2870cc0e0]
mov rcx, qword [0x2870cc0f0]
mov r8d, dword [rbp - 8]
add r8, r8
add rcx, r8
movzx ecx, word [rcx]
movzx ecx, cx
shl rcx, 2
add rdx, rcx
mov edx, dword [rdx]
mov edx, edx
add rax, rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 0xc], 0
jmp 0x2870c3ebf
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x20]
add rax, rdx
movzx eax, word [rax]
movzx edx, word [0x2870c7030]
xor edx, 0x25
cmp ax, dx
jne 0x2870c3ebb
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 2
movzx eax, byte [rax]
cmp al, 0xc3
jne 0x2870c3ebb
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x10]
jne 0x2870c3eb7
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
jmp 0x2870c3ec5
add dword [rbp - 4], 1
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 0x1f
jbe 0x2870c3e68
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
test rax, rax
je 0x2870c3ed8
mov eax, 1
jmp 0x2870c3ef0
add dword [rbp - 8], 1
mov eax, dword [0x2870cc0f8]
cmp dword [rbp - 8], eax
jb 0x2870c3e05
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x2870c4ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], rcx
mov qword [rbp + 0x230], 0
mov qword [rbp + 0x228], 0xffffffffffffffff
mov qword [rbp + 0x210], 0
mov qword [rbp + 0x218], 0
pxor xmm0, xmm0
movaps xmmword [rbp + 0x1e0], xmm0
movaps xmmword [rbp + 0x1f0], xmm0
movaps xmmword [rbp + 0x200], xmm0
mov qword [rbp + 0x1d8], 0
mov dword [rbp + 0x23c], 0
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
mov word [rbp - 0x30], 0x5c
mov word [rbp - 0x2e], 0x4b
mov word [rbp - 0x2c], 0x6e
mov word [rbp - 0x2a], 0x6f
mov word [rbp - 0x28], 0x77
mov word [rbp - 0x26], 0x6e
mov word [rbp - 0x24], 0x44
mov word [rbp - 0x22], 0x6c
mov word [rbp - 0x20], 0x6c
mov word [rbp - 0x1e], 0x73
mov word [rbp - 0x1c], 0x5c
mov rdx, qword [rbp + 0x260]
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.Wcscat
lea rax, [rbp - 0x30]
mov qword [rbp + 0x218], rax
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.wcslen
add eax, eax
mov word [rbp + 0x212], ax
movzx eax, word [rbp + 0x212]
mov word [rbp + 0x210], ax
mov dword [rbp + 0x1e0], 0x30
mov qword [rbp + 0x1e8], 0
mov dword [rbp + 0x1f8], 0x40
lea rax, [rbp + 0x210]
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x200], 0
mov qword [rbp + 0x208], 0
mov rax, qword [0x2870c82f0]
mov rdx, qword [rax + 8]
mov rax, qword [0x2870c82f0]
mov eax, dword [rax]
mov ecx, eax
call sym.SetSSn
lea rdx, [rbp + 0x1e0]
lea rax, [rbp + 0x228]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call sym.RunSyscall
mov dword [rbp + 0x23c], eax
cmp dword [rbp + 0x23c], 0
jns 0x2870c506e
mov eax, 0
jmp 0x2870c5104
mov rax, qword [0x2870c82f0]
mov rdx, qword [rax + 0x18]
mov rax, qword [0x2870c82f0]
mov eax, dword [rax + 0x10]
mov ecx, eax
call sym.SetSSn
mov rax, qword [rbp + 0x228]
lea rcx, [rbp + 0x230]
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rdx, [rbp + 0x1d8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rcx
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sym.RunSyscall
mov dword [rbp + 0x23c], eax
cmp dword [rbp + 0x23c], 0
jns 0x2870c50fd
mov eax, 0
jmp 0x2870c5104
mov rax, qword [rbp + 0x230]
add rsp, 0x2c8
pop rdi
pop rbp
ret
Function at 0x2870c5790
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x2870c5800
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2870cc184]
mov rbx, rcx
test esi, esi
jle 0x2870c5930
mov rax, qword [0x2870cc188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2870c584b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2870c58d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2870c5830
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2870c5952
mov rax, qword [0x2870cc188]
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 [0x2870cc188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2870c5937
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2870c58ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2870c58e0
add dword [0x2870cc184], 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 [0x2870cc188]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2870c58ce
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 0x2870c5858
mov rax, qword [0x2870cc188]
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 0x2870c5cd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2870cc1c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2870cc1a0]
test rbx, rbx
je 0x2870c5d2c
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 rsi, rsi
je 0x2870c5d23
test eax, eax
jne 0x2870c5d23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2870c5d08
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 0x2870c5f40
Capabilities:
Parse pe header

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

Function at 0x2870c5f70
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 0x2870c5fbd
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 0x2870c5fb4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2870c5fbf
add rax, 0x28
cmp rax, r9
jne 0x2870c5fa0
xor eax, eax
ret

Function at 0x2870c5fc0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2870c6050
mov rdx, qword [0x2870c8260]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2870c603e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2870c603e
cmp word [rax + 0x18], 0x20b
jne 0x2870c603e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2870c6050
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2870c6029
add rbx, 0x28
cmp rbx, rdi
je 0x2870c6050
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2870c6020
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 0x2870c6060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2870c8260]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2870c6080
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2870c6088
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2870c6080
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2870c60dd
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 0x2870c60d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2870c6080
add rax, 0x28
cmp rax, r9
jne 0x2870c60c0
xor eax, eax
ret

Function at 0x2870c60e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2870c8260]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2870c60ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2870c6108
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2870c60ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret