joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce4a0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x2c0
mov rbp, rsp
mov qword [rbp + 0x58], rcx
mov ebx, edx
xor rsi, rsi
xor rdi, rdi
xor r13, r13
test ebx, ebx
je 0x4ce55e
mov dword [rbp + 0x88], 1
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x90], rax
mov eax, dword [0x00b2db88]
mov dword [rbp + 0x80], eax
mov dword [rbp + 0x84], 0
xor rcx, rcx
lea rdx, [rbp + 0x88]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
call sub.wsock32.dll_select
test eax, eax
jle 0x4ce72d
mov rax, qword [rbp + 0x58]
mov rcx, qword [rax + 0x80]
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0xb8]
mov edx, edi
lea rdx, [rax + rdx]
mov rax, qword [rbp + 0x58]
mov r8d, dword [rax + 0xb0]
sub r8d, edi
xor r9, r9
call sub.wsock32.dll_recv
test eax, eax
jle 0x4ce72d
add edi, eax
test edi, edi
sete al
test al, al
setne al
movzx rax, al
neg eax
mov ebx, eax
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0xb8]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], 0
mov dword [rbp + 0x68], edi
mov dword [rbp + 0x6c], 0
mov dword [rbp + 0x60], 2
mov dword [rbp + 0x64], 0
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp + 0x2b0]
lea r8, [rbp + 0x290]
mov r9d, 1
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea rax, [rbp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 1
call fcn.004ce270
mov rax, qword [rbp + 0x58]
mov rcx, rax
lea rdx, [rax + 0x88]
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], r13d
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x28], rax
call fcn.004ce2e0
add eax, 0x7ff6fce8
test eax, eax
je 0x4ce725
sub eax, 0x7ff6fce8
test eax, eax
je 0x4ce650
sub eax, 0x90312
test eax, eax
je 0x4ce6c5
sub eax, 0xe
test eax, eax
jne 0x4ce72d
jmp 0x4ce716
cmp dword [rbp + 0x2a4], 5
jne 0x4ce6c0
mov ecx, 0x40
mov edx, dword [rbp + 0x2a0]
call sub.kernel32.dll_LocalAlloc
mov rcx, qword [rbp + 0x58]
mov qword [rcx + 0xc8], rax
mov rax, qword [rcx + 0xb8]
mov edi, edi
lea rax, [rax + rdi]
mov ecx, dword [rbp + 0x2a0]
neg rcx
lea rcx, [rax + rcx]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0xc8]
mov r8d, dword [rbp + 0x2a0]
call fcn.00408cc0
mov eax, dword [rbp + 0x2a0]
mov rcx, qword [rbp + 0x58]
mov dword [rcx + 0xc0], eax
mov dword [rcx + 0xc4], 2
mov sil, 1
jmp 0x4ce72d
cmp dword [rbp + 0x2a4], 5
jne 0x4ce70e
mov rax, qword [rbp + 0x58]
mov rax, qword [rax + 0xb8]
mov edi, edi
lea rax, [rax + rdi]
mov ecx, dword [rbp + 0x2a0]
neg rcx
lea rcx, [rax + rcx]
mov rax, qword [rbp + 0x58]
mov rdx, qword [rax + 0xb8]
mov r8d, dword [rbp + 0x2a0]
call fcn.00408cc0
mov edi, dword [rbp + 0x2a0]
jmp 0x4ce4bf
xor rdi, rdi
jmp 0x4ce4bf
or r13d, 0x80
xor rbx, rbx
jmp 0x4ce4bf
or ebx, 0xffffffff
jmp 0x4ce4bf
nop
mov eax, esi
lea rsp, [rbp + 0x2c0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4ce740
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0xf0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov rbx, rdx
mov sil, 1
mov rcx, rbx
call fcn.00411320
mov qword [rbp + 0x58], rax
mov rcx, rbx
call fcn.004108b0
mov ebx, eax
mov edi, 0x400
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x10], 0
je 0x4ce96d
mov rax, qword [rbp + 0x50]
cmp edi, dword [rax + 0xa4]
jbe 0x4ce96d
mov rax, qword [rbp + 0x50]
mov edi, dword [rax + 0xa4]
jmp 0x4ce96d
cmp ebx, edi
jbe 0x4ce7ad
mov r13d, edi
jmp 0x4ce7b0
mov r13d, ebx
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x10], 0
je 0x4ce93c
mov rcx, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
mov rax, qword [rdx + 0xb8]
mov edx, dword [rdx + 0x9c]
lea rdx, [rax + rdx]
mov r8d, r13d
call fcn.00408cc0
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0xb8]
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx + 0xb8]
mov ecx, dword [rcx + 0x9c]
lea rax, [rax + rcx]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x50]
mov rax, qword [rcx + 0xb8]
mov ecx, dword [rcx + 0x9c]
lea rax, [rax + rcx]
mov ecx, r13d
lea rax, [rax + rcx]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x9c]
mov dword [rbp + 0x70], eax
mov dword [rbp + 0x74], r13d
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0xa0]
mov dword [rbp + 0x78], eax
mov dword [rbp + 0x7c], 0
mov dword [rbp + 0x60], 7
mov dword [rbp + 0x64], 1
mov dword [rbp + 0x68], 6
mov dword [rbp + 0x6c], 0
mov rcx, qword [rbp + 0x50]
lea rdx, [rbp + 0xe0]
lea r8, [rbp + 0xa0]
mov r9d, 3
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 3
lea rax, [rbp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 3
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 3
call fcn.004ce270
mov rax, qword [rbp + 0x50]
lea rcx, [rax + 0x88]
xor rdx, rdx
lea r8, [rbp + 0xe0]
xor r9, r9
mov rax, qword [rbp + 0x50]
mov rax, qword [rax + 0x10]
call qword [rax + 0xc8]
test eax, eax
jne 0x4ce932
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x80]
mov rax, qword [rbp + 0x50]
mov rdx, qword [rax + 0xb8]
mov r8d, dword [rbp + 0xa0]
add r8d, dword [rbp + 0xb0]
add r8d, dword [rbp + 0xc0]
xor r9, r9
call sub.wsock32.dll_send
test eax, eax
jg 0x4ce937
xor rsi, rsi
jmp 0x4ce95c
mov sil, 1
jmp 0x4ce95c
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x80]
mov rdx, qword [rbp + 0x58]
mov r8d, r13d
xor r9, r9
call sub.wsock32.dll_send
test eax, eax
setg sil
mov eax, r13d
mov rcx, qword [rbp + 0x58]
add rcx, rax
mov qword [rbp + 0x58], rcx
sub ebx, r13d
test sil, sil
je 0x4ce97a
test ebx, ebx
ja 0x4ce7a4
mov eax, esi
lea rsp, [rbp + 0xf0]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4d53e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rdx
mov dword [rbp + 0x40], r8d
mov byte [rbp + 0x46], r9b
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
nop
mov al, 1
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x38]
xor rdx, rdx
xor r8, r8
xor r9, r9
call sub.kernel32.dll_SetFilePointer
mov esi, dword [rbp + 0x40]
movzx rax, byte [rbp + 0x46]
test al, al
je 0x4d5436
mov ebx, 0x600
jmp 0x4d543c
mov ebx, 0x800
lea rcx, [rbp + 0x50]
mov edx, ebx
xor r8, r8
call fcn.00411590
test esi, esi
jbe 0x4d5510
cmp esi, ebx
jae 0x4d5464
lea rcx, [rbp + 0x50]
mov edx, esi
xor r8, r8
call fcn.00411590
mov rcx, qword [rbp + 0x50]
call fcn.004108b0
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x50]
mov r8d, eax
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4d549c
mov rcx, qword [rbp + 0x50]
call fcn.004108b0
cmp dword [rbp + 0x5c], eax
je 0x4d54a4
xor rax, rax
mov byte [rbp + 0x47], al
jmp 0x4d5510
movzx rax, byte [rbp + 0x46]
test al, al
je 0x4d54cc
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x50]
call fcn.004447b0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x48]
call fcn.004d4110
mov byte [rbp + 0x47], al
jmp 0x4d54dc
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x50]
call fcn.004d4110
mov byte [rbp + 0x47], al
movzx rax, byte [rbp + 0x47]
test al, al
je 0x4d5510
sub esi, dword [rbp + 0x5c]
mov rcx, qword [rbp + 0x30]
mov eax, dword [rbp + 0x40]
sub eax, esi
imul eax, eax, 0x3e8
xor edx, edx
mov r8d, dword [rbp + 0x40]
div r8d
mov rdx, rax
call fcn.004d4880
test esi, esi
ja 0x4d5452
nop
nop
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.00410190
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4de520
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.00410210
nop
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x68]
call fcn.004282b0
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
call fcn.00410750
cmp qword [rbp + 0x68], 0
je 0x4de66d
mov rcx, qword [rbp + 0x68]
call fcn.004108a0
mov rcx, qword [rbp + 0x68]
movsxd rax, eax
cmp word [rcx + rax*2 - 2], 0x5c
jne 0x4de5aa
mov rcx, qword [rbp + 0x68]
call fcn.004108a0
lea rcx, [rbp + 0x68]
mov edx, eax
mov r8d, 1
call fcn.004124e0
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4de602
mov rcx, qword [rbp + 0x68]
call fcn.00411e10
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4de5fb
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x68]
call fcn.004de520
test al, al
je 0x4de5f6
mov rcx, qword [rbp + 0x68]
call fcn.00411e10
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4de5fb
xor rax, rax
jmp 0x4de5fd
mov al, 1
mov byte [rbp + 0x37], al
jmp 0x4de673
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x68]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x40]
call fcn.00411320
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4de666
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x68]
call fcn.004de520
test al, al
je 0x4de661
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x68]
xor r8, r8
call fcn.00411660
mov rcx, qword [rbp + 0x38]
call fcn.00411320
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4de666
xor rax, rax
jmp 0x4de668
mov al, 1
mov byte [rbp + 0x37], al
jmp 0x4de673
xor rax, rax
mov byte [rbp + 0x37], al
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0x48]
call fcn.00410080
lea rcx, [rbp + 0x68]
call fcn.00410080
movzx rax, byte [rbp + 0x37]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4e31e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov edx, dword [0x00b2db38]
call sub.kernel32.dll_TerminateProcess
add rsp, 0x28
ret
Function at 0x4f3200
Capabilities:
Create pipe
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, [0x00b32198]
lea rdx, [0x00b321a0]
xor r8, r8
xor r9, r9
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4f327f
xor rcx, rcx
xor rdx, rdx
lea r8, [0x004f3170]
xor r9, r9
mov dword [rsp + 0x20], 0
lea rax, [0x00b32188]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov qword [0x00b32190], rax
cmp qword [0x00b32190], 0
je 0x4f327f
mov ecx, dword [0x00b32188]
lea rdx, [0x004f3290]
call fcn.004abc50
mov rcx, qword [0x00b32190]
mov edx, 2
call sub.kernel32.dll_SetThreadPriority
add rsp, 0x38
ret

Function at 0x4f32e0
Capabilities:
Resume thread
Terminate thread
Write file on windows

Disassembly:
sub rsp, 0x158
cmp dword [0x00b32188], 0xffffffff
je 0x4f33fb
mov rcx, qword [0x00b32190]
call sub.kernel32.dll_ResumeThread
xor rcx, rcx
call fcn.004ac300
test al, al
jne 0x4f3362
lea rcx, [rsp + 0x40]
mov edx, 0x110
call fcn.00421ad0
mov rcx, qword [0x00b321a0]
lea rdx, [rsp + 0x40]
mov r8d, 0x110
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov rcx, qword [0x00b321a0]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [0x00b32190]
mov edx, 0x1f4
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4f336e
mov rcx, qword [0x00b321a0]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [0x00b32198]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [0x00b32190]
mov edx, 0x32
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
je 0x4f33b5
mov rcx, qword [0x00b32190]
xor rdx, rdx
call sub.kernel32.dll_TerminateThread
cmp qword [0x00b321a8], 0
je 0x4f33b5
mov rcx, qword [0x00b321a8]
call sub.kernel32.dll_LocalFree
mov qword [0x00b321a8], 0
mov rcx, qword [0x00b32190]
call sub.kernel32.dll_CloseHandle
mov ecx, dword [0x00b32188]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.004ab870
mov dword [0x00b32188], 0xffffffff
add rsp, 0x158
ret
Function at 0x4f4d00
Capabilities:
Get memory capacity

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
nop
lea rcx, [0x004f4e58]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004f4e72]
call fcn.0041f960
test rax, rax
je 0x4f4d4f
mov dword [rbp + 0x58], 0x40
lea rcx, [rbp + 0x58]
call rax
jmp 0x4f4d7b
mov dword [rbp + 0x98], 0x38
lea rcx, [rbp + 0x98]
call sub.kernel32.dll_GlobalMemoryStatus
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x48]
mov rax, qword [rbp + 0x68]
lea rax, [rax + 0x80000]
mov r8d, 0x100000
cqo
idiv r8
mov rdx, rax
mov r8d, 1
mov r9w, 0x30
call fcn.00425ce0
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0x60]
lea rax, [rax + 0x80000]
mov r8d, 0x100000
cqo
idiv r8
mov rdx, rax
mov r8d, 1
mov r9w, 0x30
call fcn.00425ce0
mov rcx, qword [rbp + 0x38]
mov edx, 4
mov r8, qword [rbp + 0x48]
lea r9, [0x004f4ea8]
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea rax, [0x004f4eb8]
mov qword [rsp + 0x28], rax
call fcn.00412390
nop
lea rcx, [rbp + 0x40]
mov edx, 2
call fcn.00410160
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0xd0]
pop rbp
ret
Function at 0x4f54f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x28], rbp
nop
lea rcx, [0x00bc37d0]
call sub.kernel32.dll_EnterCriticalSection
mov rcx, qword [0x00bc37f8]
call fcn.00413950
xor rcx, rcx
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x4c], ecx
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x4c], eax
jg 0x4f563d
mov eax, dword [rbp + 0x24]
add eax, 1
mov dword [rbp + 0x24], eax
mov rax, qword [0x00bc37f8]
movsxd rcx, dword [rbp + 0x4c]
add rcx, rcx
add rcx, rcx
lea rax, [rax + rcx*8]
mov qword [rbp + 0x30], rax
nop
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x10]
call fcn.004108b0
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
mov edx, eax
call fcn.004304c0
test al, al
jne 0x4f562d
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 0x10]
call fcn.004108b0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x30]
mov rdx, qword [rdx]
mov r8d, eax
xor r9, r9
call fcn.004103f0
mov rcx, qword [rbp + 0x40]
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax + 0x10]
call fcn.004112d0
test eax, eax
jne 0x4f562d
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 8]
call fcn.004108b0
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
movsxd rdx, eax
mov r8d, 0x40
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4f562d
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 8]
call fcn.004108b0
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx + 8]
mov rdx, qword [rbp + 0x30]
mov rdx, qword [rdx]
movsxd r8, eax
call fcn.00408cc0
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax + 8]
call fcn.004108b0
mov rcx, qword [rbp + 0x30]
mov rcx, qword [rcx]
movsxd rdx, eax
mov r8d, dword [rbp + 0x3c]
lea r9, [rbp + 0x3c]
call sub.kernel32.dll_VirtualProtect
jmp 0x4f562d
add dword [rbp + 0x4c], 1
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x4c], eax
jne 0x4f553b
nop
lea rcx, [0x00bc37d0]
call sub.kernel32.dll_LeaveCriticalSection
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
xor rdx, rdx
xor r8, r8
call sub.kernel32.dll_FlushInstructionCache
nop
lea rcx, [rbp + 0x40]
call fcn.004100d0
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x4f5e20
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x38], r8
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
nop
mov rcx, qword [rbp + 0x38]
lea rdx, [0x004f6024]
call fcn.004112d0
test eax, eax
je 0x4f5f9d
mov rax, qword [rbp + 0x40]
lea rax, [rax + rbp + 0x750]
mov rcx, rbp
neg rcx
cmp qword [rax + rcx], 0
je 0x4f5ede
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x38]
lea r8, [0x004f6034]
call fcn.00410f60
mov rcx, qword [rbp + 0x68]
call fcn.00411320
mov rcx, rax
lea rdx, [rbp + 0x88]
lea r8, [rbp + 0x90]
lea r9, [rbp + 0x98]
mov rax, qword [rbp + 0x40]
lea rax, [rax + rbp + 0x750]
mov rbx, rbp
neg rbx
call qword [rax + rbx]
jmp 0x4f5f40
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x38]
lea r8, [0x004f6034]
call fcn.00410f60
mov rcx, qword [rbp + 0x60]
call fcn.00411320
mov rcx, rax
lea rdx, [rbp + 0x84]
lea r8, [rbp + 0x80]
lea r9, [rbp + 0x7c]
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4f5f40
mov eax, dword [rbp + 0x84]
mov ecx, dword [rbp + 0x80]
imul rax, rcx
mov ecx, dword [rbp + 0x7c]
imul rax, rcx
mov qword [rbp + 0x98], rax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x38]
mov rbx, qword [0x00bb8648]
call qword [rbx]
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
call fcn.00411f60
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x98]
call fcn.00427300
mov rcx, qword [rbp + 0x30]
mov edx, 4
lea r8, [0x004f6044]
mov r9, qword [rbp + 0x50]
lea rax, [0x004f6054]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x28], rax
call fcn.00412390
nop
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.00410160
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00410190
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret
Function at 0x4fb1e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, ecx
mov rsi, rdx
xor rdi, rdi
call sub.kernel32.dll_GetCurrentThreadId
cmp ebx, eax
je 0x4fb215
mov rcx, rsi
call sub.kernel32.dll_SuspendThread
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4fb215
mov rcx, rsi
call sub.kernel32.dll_ResumeThread
test ebx, ebx
setg dil
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x4ff4a0
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], 0
lea rcx, [0x004ff390]
lea rdx, [rsp + 0x28]
call sub.user32.dll_EnumWindows
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x501040
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp + 0x48], 0
nop
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x50118f
mov rcx, qword [rbp + 0x40]
call fcn.00411320
mov rcx, rax
call sub.kernel32.dll_GetModuleHandleA
mov rcx, rax
mov rdx, qword [rbp + 0x30]
xor r8, r8
call fcn.0042ee00
mov rcx, qword [rbp + 0x28]
mov qword [rcx], rax
mov rax, qword [rbp + 0x20]
test rax, rax
je 0x5010ba
mov rax, qword [rbp + 0x20]
cmp word [rax], 0x25ff
jne 0x5010ba
mov rcx, qword [rbp + 0x20]
movsxd rax, dword [rcx + 2]
mov rbx, qword [rcx + rax + 6]
jmp 0x5010bd
xor rbx, rbx
cmp byte [rbp + 0xa8], 0
jne 0x5010e0
xor rcx, rcx
call sub.kernel32.dll_GetModuleHandleW
cmp qword [0x00b2dcb0], rax
je 0x5010e0
cmp byte [0x00b2dcc8], 0
je 0x501102
lea rcx, [rbp + 0x48]
call fcn.004aaeb0
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
mov r8, qword [rbp + 0xa0]
call fcn.004ab430
jmp 0x50111c
mov rcx, qword [0x00b2dcb0]
mov rax, qword [rbp + 0x28]
mov rdx, qword [rax]
mov r8, qword [rbp + 0xa0]
call fcn.004ab340
test rbx, rbx
je 0x501130
mov rcx, qword [rbp + 0x20]
movsxd rax, dword [rcx + 2]
cmp rbx, qword [rcx + rax + 6]
je 0x501135
xor rax, rax
jmp 0x501137
mov al, 1
mov byte [rbp + 0x3f], al
movzx rax, byte [rbp + 0x3f]
test al, al
je 0x501195
mov rcx, qword [rbp + 0x20]
movsxd rax, dword [rcx + 2]
lea rbx, [rcx + rax + 6]
mov rcx, rbx
mov edx, 8
mov r8d, 0x40
lea r9, [rbp + 0x5c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x501195
mov rax, qword [rbp + 0xa0]
mov qword [rbx], rax
mov rcx, rbx
mov edx, 8
mov r8d, dword [rbp + 0x5c]
lea r9, [rbp + 0x5c]
call sub.kernel32.dll_VirtualProtect
jmp 0x501195
xor rax, rax
mov byte [rbp + 0x3f], al
nop
lea rcx, [rbp + 0x48]
mov rdx, qword [0x004aae68]
call fcn.00413ec0
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x5023c0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov byte [0x00b33aa0], 0
cmp qword [0x00b33aa8], 0
je 0x502428
mov rcx, qword [0x00b33aa8]
mov edx, 4
mov r8d, 0x40
lea r9, [rsp + 0x2c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5024a0
mov rax, qword [0x00b33aa8]
mov ecx, dword [0x00b33ab0]
mov dword [rax], ecx
mov rcx, qword [0x00b33aa8]
mov edx, 4
mov r8d, dword [rsp + 0x2c]
lea r9, [rsp + 0x2c]
call sub.kernel32.dll_VirtualProtect
jmp 0x5024a0
cmp qword [0x00b33ab8], 0
je 0x502483
mov rcx, qword [0x00b33ab8]
mov edx, 8
mov r8d, 0x40
lea r9, [rsp + 0x2c]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x5024a0
mov rax, qword [0x00b33ab8]
mov rcx, qword [0x00b33ac0]
mov qword [rax], rcx
mov rcx, qword [0x00b33ab8]
mov edx, 8
mov r8d, dword [rsp + 0x2c]
lea r9, [rsp + 0x2c]
call sub.kernel32.dll_VirtualProtect
jmp 0x5024a0
lea rcx, [sub.kernel32.dll_CreateThread]
mov rdx, qword [0x00b33918]
lea r8, [0x005019b0]
xor r9, r9
call fcn.005011f0
xor rcx, rcx
mov rdx, qword [0x00b33a10]
lea r8, [0x00501e10]
xor r9, r9
call fcn.005011f0
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
xor rdx, rdx
xor r8, r8
call sub.kernel32.dll_FlushInstructionCache
add rsp, 0x38
ret

Function at 0x502e70
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
lea rcx, [rbp + 0x40]
mov rdx, qword [0x00502c98]
call fcn.00412bc0
nop
lea rcx, [0x00502fb8]
xor rdx, rdx
call sub.user32.dll_FindWindowA
test rax, rax
je 0x502f46
mov rcx, rax
xor rdx, rdx
call sub.user32.dll_GetWindowThreadProcessId
lea rcx, [rbp + 0x38]
mov edx, eax
mov r8d, 1
mov r9b, 0x30
call fcn.00425ad0
lea rcx, [rbp + 0x40]
lea rdx, [0x00502fd0]
mov r8, qword [rbp + 0x38]
call fcn.00410f60
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
call fcn.00427ef0
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x30]
call fcn.00410860
lea rcx, [rbp + 0x48]
lea rdx, [0x00502ff8]
call fcn.00410e60
mov rcx, qword [rbp + 0x48]
call fcn.004108b0
cmp eax, 0x104
jge 0x502f36
lea rcx, [rbp + 0x48]
mov edx, 0x104
xor r8, r8
call fcn.00411590
lea rcx, [0x00502d30]
lea rdx, [rbp + 0x40]
call sub.user32.dll_EnumWindows
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410190
lea rcx, [rbp + 0x40]
mov rdx, qword [0x00502c98]
call fcn.00412d60
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x503090
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
nop
call sub.kernel32.dll_GetCurrentProcessId
lea rcx, [rbp + 0x30]
mov edx, eax
mov r8d, 1
mov r9b, 0x30
call fcn.00425ad0
lea rcx, [rbp + 0x38]
lea rdx, [0x005031e4]
mov r8, qword [rbp + 0x30]
call fcn.00410f60
mov rcx, qword [rbp + 0x38]
call fcn.00411320
mov ecx, 4
xor rdx, rdx
mov r8, rax
call sub.kernel32.dll_OpenFileMappingA
mov rbx, rax
test rbx, rbx
je 0x503188
mov byte [0x00b2dba8], 1
mov rcx, rbx
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov rsi, rax
test rsi, rsi
je 0x503180
mov rcx, qword [rsi + 8]
call sub.kernel32.dll_CloseHandle
mov ecx, 0x100000
xor rdx, rdx
mov r8d, dword [rsi]
call sub.kernel32.dll_OpenProcess
mov rdi, rax
test rdi, rdi
je 0x503161
mov rcx, rdi
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
lea rcx, [rsi + 0x10]
lea rdx, [0x00b2e350]
mov r8d, 0x50
call fcn.00408cc0
mov rcx, rsi
call sub.kernel32.dll_UnmapViewOfFile
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00410190
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret