joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089cc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
call fcn.0040b47c
mov ebx, eax
cmp eax, 1
je 0x4089f9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408a4a
test ebx, ebx
je 0x408a45
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
cmp ebx, 1
setne r8b
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.0040bb48
test al, al
je 0x408a3b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov eax, ebx
jmp 0x408a4a
mov rcx, qword [rsp + 0x28]
call fcn.00402344
mov eax, 0xffffffff
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x4096e4
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbp, rcx
movsxd rbx, dword [rcx + 8]
mov rdi, rbx
test ebx, ebx
je 0x409734
shl rdi, 3
add ebx, 0xffffffff
sub rdi, 8
mov rax, qword [rbp]
mov rsi, qword [rdi + rax]
test rsi, rsi
je 0x409730
mov rcx, qword [rsi]
call fcn.00402344
mov rcx, rsi
call fcn.00402344
test ebx, ebx
jne 0x40970c
mov dword [rbp + 8], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test eax, eax
je 0x409839
mov rcx, rdi
xor ebx, ebx
mov qword [rsp + 0x80], rbx
test eax, eax
je 0x409773
add rcx, rcx
call fcn.0040230c
mov rbx, rax
mov qword [rsp + 0x80], rax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test eax, eax
je 0x40982f
cmp eax, edi
ja 0x40982f
lea rcx, [rsp + 0x28]
call fcn.0040365c
nop
xor r13d, r13d
xor edi, edi
test esi, esi
je 0x409810
mov r12, rbx
cmp word [r12], 0
jne 0x409806
lea rdx, [rbx + r13*2]
lea rcx, [rsp + 0x28]
call fcn.00403840
lea r13d, [rdi + 1]
mov rcx, rbp
call fcn.00446090
mov ecx, 0x10
call fcn.0040230c
mov qword [rsp + 0x88], rax
test rax, rax
je 0x4097f2
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.004037b8
mov r11, rax
jmp 0x4097f5
xor r11d, r11d
mov ecx, dword [rbp + 8]
lea eax, [rcx + 1]
mov dword [rbp + 8], eax
mov rax, qword [rbp]
mov qword [rax + rcx*8], r11
inc edi
add r12, 2
cmp edi, esi
jb 0x4097a7
cmp r13d, esi
sete dil
mov rcx, qword [rsp + 0x28]
call fcn.00402344
nop
mov rcx, rbx
call fcn.00402344
mov al, dil
jmp 0x409839
mov rcx, rbx
call fcn.00402344
xor al, al
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x409908
Capabilities:
Get file size

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp byte [rcx + 9], 0
mov rbx, rdx
je 0x409927
cmp byte [rcx + 0xa], 0
je 0x409927
mov rax, qword [rcx + 0x10]
mov qword [rdx], rax
jmp 0x409963
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
jne 0x409952
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409952
xor al, al
jmp 0x409965
mov ecx, dword [rsp + 0x40]
mov rax, rdi
shl rcx, 0x20
add rcx, rdi
mov qword [rbx], rcx
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x409a88
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret

Function at 0x409ac4
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x400000
cmp r8d, eax
cmova r8d, eax
jmp fcn.00409a88

Function at 0x409b88
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, 0x400000
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x409c9c
Capabilities:
Clear file content

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.004099c8
xor ebx, ebx
cmp al, bl
je 0x409cc4
cmp qword [rsp + 0x50], rdi
je 0x409cc8
xor al, al
jmp 0x409cd6
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, ebx
setne al
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x40bee0
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rsi, r9
mov rbp, r8
mov rdi, rdx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r10, qword [rsp + 0x38]
mov qword [rbp], r10
mov r10, qword [rsp + 0x40]
mov r12d, eax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x90]
mov rcx, rbx
mov qword [rsi], r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x40bf7f
mov ecx, dword [rsp + 0x90]
mov eax, dword [rsp + 0x98]
imul rcx, rax
test r12d, r12d
mov qword [rdi], rcx
jne 0x40bf7d
mov eax, dword [rsp + 0x30]
imul rax, rcx
mov qword [rbp], rax
mov eax, dword [rsp + 0x34]
imul rax, qword [rdi]
mov qword [rsi], rax
mov al, 1
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x40c8a4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0x40
mov rax, qword [r8]
mov dword [r8 + 8], 0
mov rsi, rcx
mov word [rax], 0
mov rcx, qword [rcx]
lea rax, [r11 + 0x30]
mov rbx, r8
mov qword [r11 - 0x18], rax
lea r9, [r11 - 0x10]
xor r8d, r8d
mov qword [r11 - 0x20], 0
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c903
cmp eax, 0xea
jne 0x40c979
mov edx, dword [rsp + 0x70]
cmp edx, dword [rbx + 0xc]
mov dword [rsp + 0x78], edx
jbe 0x40c918
mov rcx, rbx
call fcn.00403330
mov rax, qword [rbx]
lea rcx, [rsp + 0x78]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsi]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rbx]
cmp ecx, dword [rsp + 0x78]
cmova ecx, dword [rsp + 0x78]
mov dword [rsp + 0x70], ecx
shr rcx, 1
mov word [rdx + rcx*2], 0
xor ecx, ecx
cmp word [rdx], cx
je 0x40c976
add rdx, 2
inc ecx
cmp word [rdx], 0
jne 0x40c96a
mov dword [rbx + 8], ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x40c9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov rax, rsp
sub rsp, 0x40
mov dword [r9], 0
mov qword [rax - 0x18], r9
mov r12, rcx
mov rcx, qword [rcx]
mov rsi, r9
mov rbx, r8
lea r9, [rax + 0x48]
xor r8d, r8d
mov rbp, rdx
mov dword [rax + 0x48], 0
mov qword [rax - 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ca2f
cmp eax, 0xea
jne 0x40ca91
mov edi, dword [rsi]
cmp rdi, qword [rbx + 8]
je 0x40ca67
mov rcx, qword [rbx]
test rcx, rcx
je 0x40ca4b
call fcn.00402344
mov qword [rbx], 0
test rdi, rdi
mov qword [rbx + 8], 0
je 0x40ca67
mov rcx, rdi
call fcn.0040230c
mov qword [rbx + 8], rdi
mov qword [rbx], rax
mov rax, qword [rbx]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x40cadc
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x20]
call fcn.0040cab4
xor edx, edx
cmp eax, edx
je 0x40cb11
mov rax, qword [rsp + 0x20]
cmp rax, rdx
je 0x40cb11
lea r8d, [rdx + 0x40]
mov ecx, eax
shr rax, 1
and ecx, 1
add edx, ecx
dec r8
jne 0x40cafe
mov eax, edx
jmp 0x40cb20
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x40cb28
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x60
movabs rax, 0x100000000
mov rbx, rcx
mov dword [rsp + 0x20], 0x40
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x40cb6a
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x48], rax
cmovb rax, qword [rsp + 0x48]
mov qword [rbx], rax
mov al, 1
add rsp, 0x60
pop rbx
ret
Function at 0x40cee4
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rcx
xor ecx, ecx
mov rax, qword [rbx]
mov dword [rbx + 8], ecx
mov byte [rax], cl
mov rax, qword [rdx]
mov dword [rdx + 8], ecx
mov byte [rax], cl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.0040cccc
add rsp, 0x50
pop rbx
ret
Function at 0x41e680
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x41e813
mov eax, edx
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
add ecx, r8d
xor ecx, r8d
dec rax
jne 0x41e68a
mov eax, ecx
ret
Function at 0x41efb4
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, qword [rcx + 8]
mov r13, qword [rcx]
xor r9d, r9d
test rbp, rbp
lea r12d, [r9 + 1]
mov r14d, r8d
mov r15d, edx
mov edi, 0x159a55e5
mov esi, 0x1f123bb5
mov r10, r12
mov r11d, r12d
je 0x41f169
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
shl edx, 0x10
imul ecx, ecx, 0x4650
add esi, ecx
add edx, esi
xor edx, r14d
mov eax, edx
shr edx, 1
and eax, r12d
je 0x41f158
cmp r9, 0x400
jb 0x41f158
mov ecx, edx
shr edx, 2
mov r8d, r12d
and ecx, 3
inc ecx
shl r8d, cl
sub r8d, r12d
and r8d, edx
shr edx, cl
mov eax, edx
inc r8d
shr edx, 3
and eax, 7
je 0x41f121
mov ecx, edx
shr edx, 2
mov eax, r12d
and ecx, 3
inc ecx
shl eax, cl
sub eax, r12d
and eax, edx
shr edx, cl
add r8d, eax
jmp 0x41f075
add r11d, r12d
mov ecx, r11d
mov rax, r12
shl rax, cl
cmp rax, r9
jb 0x41f072
cmp r15d, r11d
mov ecx, 5
mov ebx, r15d
cmova ebx, r11d
lea eax, [rcx - 1]
cmp ebx, 0x15
cmovbe ecx, eax
shl r12d, cl
add r12d, 0xffffffff
movzx ecx, di
shr edi, 0x10
mov r10d, r12d
and r10d, edx
movzx edx, si
shr esi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
add r10d, 6
imul edx, edx, 0x4650
add esi, edx
mov edx, edi
shl edx, 0x10
add edx, esi
xor edx, r14d
cmp r10d, ebx
ja 0x41f0a2
mov ecx, r10d
mov r10d, 1
mov eax, edx
shl r10, cl
dec r10
and r10, rax
cmp r10, r9
jb 0x41f118
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
imul ecx, ecx, 0x4650
add esi, ecx
shl edx, 0x10
add edx, esi
xor edx, r14d
jmp 0x41f0a2
mov r12d, 1
add r10, r12
mov eax, r8d
lea rdx, [r13 + r9]
mov rcx, rbp
sub rcx, r9
cmp rax, rcx
cmova r8d, ecx
mov rcx, rdx
mov ebx, r8d
sub rcx, r10
add r9, rbx
test r8d, r8d
je 0x41f160
mov al, byte [rcx]
add rcx, r12
mov byte [rdx], al
add rdx, r12
sub rbx, r12
jne 0x41f147
jmp 0x41f160
mov byte [r13 + r9], dl
add r9, r12
cmp r9, rbp
jb 0x41efee
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x438fc8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rbp, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x28], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x30], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x20], rax
xor edi, edi
cmp rax, rdi
je 0x439199
mov dword [rsp + 0xb0], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x43906b
lea rcx, [rsp + 0xb0]
call rax
cmp eax, edi
jne 0x439214
mov esi, edi
cmp dword [rsp + 0xb0], edi
jbe 0x439199
mov eax, dword [r12 + 0x20]
dec eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, 3
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.00437adc
cmp eax, edi
jne 0x439214
lea rax, [rsp + 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, 2
mov edx, esi
mov rcx, qword [rbp + 0x20]
call fcn.00437adc
cmp eax, edi
jne 0x439214
mov rax, qword [rbp + 0x20]
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], di
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x5a], dil
mov byte [rsp + 0x5b], dil
lea r8, [rsp + 0x38]
mov edx, 0xa
mov ecx, esi
call rax
mov ebx, eax
cmp eax, edi
je 0x439116
lea rcx, [rsp + 0x38]
call fcn.0040c0ec
jmp 0x439142
cmp word [rsp + 0x38], 0xb
jne 0x43912f
mov byte [rsp + 0x5b], 1
cmp word [rsp + 0x40], di
setne byte [rsp + 0x5a]
jmp 0x439136
cmp word [rsp + 0x38], di
jne 0x439186
lea rcx, [rsp + 0x38]
call fcn.0040c0ec
mov ebx, edi
cmp ebx, edi
jne 0x439195
lea rcx, [r12 + 0x60]
call fcn.004384f4
mov ecx, dword [r12 + 0x68]
lea eax, [rcx + 1]
mov dword [r12 + 0x68], eax
imul rcx, rcx, 0x2c
add rcx, qword [r12 + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
inc esi
cmp esi, dword [rsp + 0xb0]
jae 0x439199
jmp 0x43907a
lea rcx, [rsp + 0x38]
call fcn.0040c0ec
mov ebx, 0x80004005
mov eax, ebx
jmp 0x439214
lea rdx, str.GetHashers
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x439212
lea rcx, [rbp + 0x40]
call rax
cmp eax, edi
jne 0x439214
mov rcx, qword [rbp + 0x40]
cmp rcx, rdi
je 0x439212
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
cmp eax, edi
jbe 0x439212
mov ecx, dword [r12 + 0x20]
dec ecx
mov dword [rsp + 0xb0], ecx
mov dword [rsp + 0xb4], edi
lea rcx, [r12 + 0x70]
call fcn.00446090
mov r11d, dword [r12 + 0x78]
lea eax, [r11 + 1]
mov dword [r12 + 0x78], eax
mov rcx, qword [r12 + 0x70]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + r11*8], rax
inc edi
cmp edi, esi
jb 0x4391ce
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x45e6f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x45e72b
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x45e750
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
mov rsi, r9
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
mov rbx, qword [rsp + 0x58]
mov rdi, rax
je 0x45e7b5
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x45e7d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret
Function at 0x45e8a0
Capabilities:
Encode data using xor

Disassembly:
lea r9, [0x00481dc0]
jmp 0x45f040
push rbx
push rbp
push rsi
push rdi
mov eax, ecx
mov rbp, r9
mov rdi, r8
cmp rdi, 0x1f
jb 0x45f203
test edx, 3
je 0x45f075
movzx esi, byte [rdx]
movzx ebx, al
inc rdx
shr eax, 8
xor esi, ebx
xor eax, dword [rbp + rsi*4]
dec rdi
jmp 0x45f056
xor eax, dword [rdx]
lea rdi, [rdx + rdi - 0x1b]
sub rdx, rdi
nop
mov ecx, dword [rdi + rdx + 0xc]
movzx ebx, word [rdi + rdx + 8]
movzx r9d, word [rdi + rdx + 0xa]
movzx esi, bl
shr ebx, 8
xor ecx, dword [rbp + rsi*4 + 0xc00]
movzx esi, r9b
shr r9d, 8
xor ecx, dword [rbp + rbx*4 + 0x800]
xor ecx, dword [rbp + rsi*4 + 0x400]
xor ecx, dword [rbp + r9*4]
movzx ebx, word [rdi + rdx + 4]
movzx r9d, word [rdi + rdx + 6]
movzx esi, bl
shr ebx, 8
xor ecx, dword [rbp + rsi*4 + 0x1c00]
movzx esi, r9b
shr r9d, 8
xor ecx, dword [rbp + rbx*4 + 0x1800]
xor ecx, dword [rbp + rsi*4 + 0x1400]
xor ecx, dword [rbp + r9*4 + 0x1000]
movzx esi, al
mov ebx, eax
shr ebx, 0x18
xor ecx, dword [rbp + rsi*4 + 0x2c00]
xor ecx, dword [rbp + rbx*4 + 0x2000]
ror eax, 0x10
movzx esi, al
shr eax, 0x18
xor ecx, dword [rbp + rsi*4 + 0x2400]
xor ecx, dword [rbp + rax*4 + 0x2800]
mov eax, dword [rdi + rdx + 0x18]
movzx ebx, word [rdi + rdx + 0x14]
movzx r9d, word [rdi + rdx + 0x16]
movzx esi, bl
shr ebx, 8
xor eax, dword [rbp + rsi*4 + 0xc00]
movzx esi, r9b
shr r9d, 8
xor eax, dword [rbp + rbx*4 + 0x800]
xor eax, dword [rbp + rsi*4 + 0x400]
xor eax, dword [rbp + r9*4]
movzx ebx, word [rdi + rdx + 0x10]
movzx r9d, word [rdi + rdx + 0x12]
movzx esi, bl
shr ebx, 8
xor eax, dword [rbp + rsi*4 + 0x1c00]
movzx esi, r9b
shr r9d, 8
xor eax, dword [rbp + rbx*4 + 0x1800]
xor eax, dword [rbp + rsi*4 + 0x1400]
xor eax, dword [rbp + r9*4 + 0x1000]
movzx esi, cl
mov ebx, ecx
shr ebx, 0x18
xor eax, dword [rbp + rsi*4 + 0x2c00]
xor eax, dword [rbp + rbx*4 + 0x2000]
ror ecx, 0x10
movzx esi, cl
shr ecx, 0x18
xor eax, dword [rbp + rsi*4 + 0x2400]
xor eax, dword [rbp + rcx*4 + 0x2800]
add rdx, 0x18
jae 0x45f080
add rdi, 0x18
sub rdx, 0x18
movzx ebx, al
movzx ecx, ah
shr eax, 0x10
movzx esi, al
shr eax, 8
mov eax, dword [rbp + rax*4]
xor eax, dword [rbp + rbx*4 + 0xc00]
xor eax, dword [rbp + rcx*4 + 0x800]
xor eax, dword [rbp + rsi*4 + 0x400]
add rdx, 4
jb 0x45f1f9
xor eax, dword [rdi + rdx]
jmp 0x45f1c6
add rdx, rdi
add rdi, 3
sub rdi, rdx
test rdi, rdi
je 0x45f21f
movzx esi, byte [rdx]
movzx ebx, al
inc rdx
shr eax, 8
xor esi, ebx
xor eax, dword [rbp + rsi*4]
dec rdi
jne 0x45f208
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x45ea00
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x45ea39
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x45ea39
mov ecx, 0xc00
call rax
add rsp, 0x28
ret
Function at 0x45ed60
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x45ed81
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45edfd
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x45eda2
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45edfd
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x45ede0
cmp ecx, 0x20b
je 0x45edbe
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45edfd
cmp dword [rax + 0x84], 0xe
ja 0x45edcf
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45edfd
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x45edfd
cmp dword [rax + 0x74], 0xe
ja 0x45edee
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x45edfd
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00484dd0], 0xffffffffffffffff
mov qword [0x00484dd8], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00484dcc]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00484dc8]
mov dword [rcx], eax
call fcn.0045ef60
cmp dword [0x004817f0], 0
jne 0x45ee57
lea rcx, [fcn.0045ef60]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004604b0]
lea rcx, [0x004604a8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00484dc4]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00484dc0]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004604a0]
lea rcx, [0x00460450]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0045b91c
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x45eee3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x45ef04
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret