joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441420
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x441587
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x441432
cmp edx, ecx
jne 0x441575
nop word [rax + rax]
test rsi, rsi
jne 0x441575
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x441494
nop
call sym.runtime.nanotime1.abi0
xorps xmm15, xmm15
mov r14, qword [0x00586548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call sym.runtime.updateTimerPMask
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x441570
mov rdx, qword [0x005334b8]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x441565
mov rcx, qword [0x005334b0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00533fb0]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00533fb0], rax
nop
mov edx, 1
lea rsi, [0x00533fb8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x441553
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x004a720c]
mov ebx, 0x28
nop
call sym.runtime.throw
mov rax, rsi
mov rcx, rdx
call sym.runtime.panicIndex
call sym.runtime.panicshift
lea rax, [0x004a65f3]
mov ebx, 0x23
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.pidleput
Function at 0x453620
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4536cf
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x00586548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

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

Disassembly:
cmp byte [0x00586328], 0
je 0x45cc6e
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

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

Disassembly:
cmp byte [0x00586328], 0
je 0x45cc95
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

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

Disassembly:
cmp byte [0x00586328], 0
je 0x45ccd5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005868c0]
aesenc xmm0, xmmword [0x005868d0]
aesenc xmm0, xmmword [0x005868e0]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

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

Disassembly:
cmp byte [0x00586328], 0
je 0x45cd16
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005868c0]
aesenc xmm0, xmmword [0x005868d0]
aesenc xmm0, xmmword [0x005868e0]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x45e5e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x45e9e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45ea14
mov rcx, 0x28
jmp 0x45ea1f
shl rcx, 3
add rcx, 0x1480
mov qword [0x00586548], rcx
pop rbp
ret
Function at 0x4740a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47416a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x00586548]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47414f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0048da60]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x47413e
mov edi, 1
lea rsi, [0x0048da60]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004c1468]
lea rsi, [0x004c0e88]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x2fc4d0650
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d1052
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d10ea
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d10ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d10c2
cmp qword [rbp - 0x10], 0
je 0x2fc4d10c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1088
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d10eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d11f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1218
mov eax, 0
jmp 0x2fc4d1266
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1241
mov eax, 0
jmp 0x2fc4d1266
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1261
mov eax, 0
jmp 0x2fc4d1266
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d126c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d12ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d12e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d12e1
mov rax, qword [rbp - 8]
jmp 0x2fc4d12ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d12b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x402ab0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rdi
mov rbx, r8
call sub.msvcrt.dll_fread
cmp rbx, rax
mov rsi, rax
je 0x402ae1
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x402aec
mov rax, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rcx, rdi
call fcn.004028a0
nop
nop
nop word cs:[rax + rax]
jmp qword [sym.imp.msvcrt.dll__fileno]

Function at 0x403380
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rcx, rdx
mov edx, 1
mov r9, rsi
call sub.msvcrt.dll_fwrite
mov rcx, rsi
movsxd rbx, eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x4033b2
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rsi
call fcn.004028a0
nop
nop dword [rax + rax]
jmp sub.msvcrt.dll_fflush

Function at 0x403570
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x40358f
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x4037e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.004391f0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret
Function at 0x418570
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
mov r14, rcx
mov r12, rdx
lea r13, [rdx + 3]
cmovns r13, rdx
xor ebx, ebx
xor edi, edi
lea rsi, [rdx - 1]
and r13, 0xfffffffffffffffc
jg 0x4185cb
jmp 0x4185e0
mov ecx, dword [r14 + rbx]
lea rbp, [rbx + 4]
mov rbx, rbp
imul eax, ecx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
cmp r13, rbp
lea edi, [rax + rax*4 - 0x19ab949c]
jle 0x4185e2
cmp r12, rbx
ja 0x4185a0
mov rdx, rsi
mov rcx, rbx
call fcn.0040c4d0
jmp 0x4185a0
xor ebp, ebp
mov rax, r12
sar rax, 0x3f
shr rax, 0x3e
lea rsi, [r12 + rax]
and esi, 3
sub rsi, rax
test rsi, rsi
jle 0x4186c5
lea r13, [rsi - 1]
lea rbx, [rbp + r13]
cmp r12, rbx
jbe 0x4186a1
test r13, r13
movzx ebx, byte [r14 + rbx]
je 0x41864c
sub rsi, 2
lea r13, [rbp + rsi]
cmp r13, r12
jae 0x4186b3
movzx eax, byte [r14 + r13]
shl ebx, 8
or ebx, eax
test rsi, rsi
je 0x41864c
cmp rbp, r12
jae 0x418692
movzx eax, byte [r14 + rbp]
shl ebx, 8
or ebx, eax
imul ebx, ebx, 0xcc9e2d51
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
mov eax, edi
xor eax, r12d
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, [r12 - 1]
mov rcx, rbp
call fcn.0040c4d0
jmp 0x418642
lea rdx, [r12 - 1]
mov rcx, rbx
call fcn.0040c4d0
jmp 0x418612
lea rdx, [r12 - 1]
mov rcx, r13
call fcn.0040c4d0
jmp 0x41862e
xor ebx, ebx
jmp 0x41865b
sub rsp, 0x38
xor edx, edx
test rcx, rcx
je 0x4186e5
mov rdx, qword [rcx]
test rdx, rdx
je 0x4186e5
je 0x4186f2
add rcx, 0x10
add rsp, 0x38
jmp 0x418570
mov qword [rsp + 0x28], rcx
call fcn.0040e3c0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
add rcx, 0x10
add rsp, 0x38
jmp 0x418570
Function at 0x4186d0
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test rdx, rdx
mov r14, rcx
mov r12, rdx
lea r13, [rdx + 3]
cmovns r13, rdx
xor ebx, ebx
xor edi, edi
lea rsi, [rdx - 1]
and r13, 0xfffffffffffffffc
jg 0x4185cb
jmp 0x4185e0
mov ecx, dword [r14 + rbx]
lea rbp, [rbx + 4]
mov rbx, rbp
imul eax, ecx, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edi
rol eax, 0xd
cmp r13, rbp
lea edi, [rax + rax*4 - 0x19ab949c]
jle 0x4185e2
cmp r12, rbx
ja 0x4185a0
mov rdx, rsi
mov rcx, rbx
call fcn.0040c4d0
jmp 0x4185a0
xor ebp, ebp
mov rax, r12
sar rax, 0x3f
shr rax, 0x3e
lea rsi, [r12 + rax]
and esi, 3
sub rsi, rax
test rsi, rsi
jle 0x4186c5
lea r13, [rsi - 1]
lea rbx, [rbp + r13]
cmp r12, rbx
jbe 0x4186a1
test r13, r13
movzx ebx, byte [r14 + rbx]
je 0x41864c
sub rsi, 2
lea r13, [rbp + rsi]
cmp r13, r12
jae 0x4186b3
movzx eax, byte [r14 + r13]
shl ebx, 8
or ebx, eax
test rsi, rsi
je 0x41864c
cmp rbp, r12
jae 0x418692
movzx eax, byte [r14 + rbp]
shl ebx, 8
or ebx, eax
imul ebx, ebx, 0xcc9e2d51
rol ebx, 0xf
imul ebx, ebx, 0x1b873593
mov eax, edi
xor eax, r12d
xor eax, ebx
mov ebx, eax
shr ebx, 0x10
xor ebx, eax
imul ebx, ebx, 0x85ebca6b
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rdx, [r12 - 1]
mov rcx, rbp
call fcn.0040c4d0
jmp 0x418642
lea rdx, [r12 - 1]
mov rcx, rbx
call fcn.0040c4d0
jmp 0x418612
lea rdx, [r12 - 1]
mov rcx, r13
call fcn.0040c4d0
jmp 0x41862e
xor ebx, ebx
jmp 0x41865b
sub rsp, 0x38
xor edx, edx
test rcx, rcx
je 0x4186e5
mov rdx, qword [rcx]
test rdx, rdx
je 0x4186e5
je 0x4186f2
add rcx, 0x10
add rsp, 0x38
jmp 0x418570
mov qword [rsp + 0x28], rcx
call fcn.0040e3c0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx]
add rcx, 0x10
add rsp, 0x38
jmp 0x418570
Function at 0x427660
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
js 0x427680
mov edx, 0
jne 0x427691
mov rax, rdx
add rsp, 0x20
pop rbx
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.0040c330
cmp rbx, 0xffffffffffffffff
mov rcx, qword [0x0045e320]
mov r8, qword [0x0045e328]
je 0x427710
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
not rdx
mov r9, rdx
nop word [rax + rax]
lea rax, [r8 + rcx]
mov rdx, r8
xor rdx, rcx
ror rcx, 9
mov r8, rdx
xor rcx, rdx
ror rdx, 0x1c
shl r8, 0xe
xor rcx, r8
cmp rax, r9
mov r8, rdx
ja 0x4276c0
lea r8, [rbx + 1]
movq xmm1, rdx
xor edx, edx
movq xmm0, rcx
div r8
mov rax, rdx
punpcklqdq xmm0, xmm1
movups xmmword [0x0045e320], xmm0
add rsp, 0x20
pop rbx
ret
mov rax, rcx
mov rdx, rcx
xor rax, r8
ror rdx, 9
mov r9, rax
xor rdx, rax
ror rax, 0x1c
shl r9, 0xe
mov qword [0x0045e328], rax
xor rdx, r9
mov qword [0x0045e320], rdx
lea rdx, [rcx + r8]
mov rax, rdx
add rsp, 0x20
pop rbx
ret
Function at 0x433c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0044aac4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x433de8
mov rax, qword [0x0044aac8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x433cac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x433d35
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x433c90
mov rcx, rbx
call fcn.00434900
test rax, rax
mov r12, rax
je 0x433e1d
mov rax, qword [0x0044aac8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00434a30
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0044aac8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x433e00
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x433d2e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x433d90
add dword [0x0044aac4], 1
cmp edi, 8
jae 0x433d63
test dil, 4
jne 0x433dd4
test edi, edi
je 0x433d58
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x433def
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x433d58
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x433d7c
jmp 0x433d58
add rsi, qword [0x0044aac8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x433d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004393a0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x433d58
xor esi, esi
jmp 0x433cb7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x433d58
mov rax, qword [0x0044aac8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004393a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004393a0
nop
nop dword [rax]

Function at 0x434570
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044ada0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044ad80]
test rbx, rbx
je 0x4345c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4345bb
test rsi, rsi
je 0x4345bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4345a0
lea rcx, [0x0044ada0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x434900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00441710]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x43496d
mov rcx, r8
call fcn.004347e0
test eax, eax
je 0x43496d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x43496d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x434964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x43496f
add rax, 0x28
cmp rax, r9
jne 0x434950
xor eax, eax
add rsp, 0x28
ret

Function at 0x4393a0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004391f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004391f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14002924c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c844
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c844
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002939c
cmp rax, 0xffffffffffffffff
je 0x14002939c
xor edi, edi
test rbp, rbp
jle 0x140029347
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f158
mov rbx, rax
test rax, rax
jne 0x1400292d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002933d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a178
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d520
cmp eax, 0xffffffff
je 0x14002931d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400292e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a178
jmp 0x14002933d
cmp byte [rsi + 0x38], dil
je 0x140029334
cmp dword [rsi + 0x34], 5
jne 0x140029334
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002933d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001af0c
jmp 0x1400293b0
jns 0x1400293b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c844
cmp rax, 0xffffffffffffffff
jne 0x140029368
cmp byte [rsi + 0x30], dil
je 0x1400293b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400293b0
mov ecx, r14d
call fcn.140018630
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400293b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400293b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400293a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400293ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c844
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14079fa7c
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14079faa5
pop rbp
sub rbp, 0x29
sub rbp, 0x79fa7c
jmp 0x14079fb05
sub rsp, 0x20
jmp 0x14079fb15
mov rax, 0x79fa7c
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0xffffffffa1f47e60
xor byte [rax], dl
inc rax
dec rcx
jne 0x14079fb34
jmp 0x14079fb4b
sub cl, ch
mov ebx, ebp
jmp 0x1a0da5bb0