joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006430
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x80], 0
je 0x140006669
cmp byte [rcx + 0x89], 0
je 0x140006669
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000663d
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r12d, r12d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
nop word [rax + rax]
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x28]
cmovae r8, r10
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x140006508
dec eax
jne 0x140006607
jmp 0x14000650f
mov byte [rdi + 0x89], r12b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x14000655d
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x98]
mov r8, rbx
mov edx, 1
call fcn.14000bcbc
cmp rbx, rax
jne 0x14000662d
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
cmp byte [rdi + 0x89], r12b
je 0x14000665b
test rbx, rbx
jne 0x1400064c0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x14000664e
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140006641
cmp r9, rbx
jae 0x1400065b1
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140002070
mov r9, qword [rbp - 0x10]
mov r10, qword [rbp - 0x28]
jmp 0x1400065ce
test rbx, rbx
jne 0x1400065d7
mov qword [rbp - 0x18], r12
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, r10
mov byte [rax], r12b
jmp 0x1400064ab
test rbx, rbx
je 0x1400064c0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rcx + rax], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax + rbx], dl
jmp 0x1400064ab
sub eax, 2
je 0x140006620
cmp qword [rbp - 0x10], 0x10
jb 0x14000663d
mov rcx, qword [rbp - 0x28]
call fcn.14000aa30
xor al, al
jmp 0x14000666b
cmp qword [rbp - 0x10], 0x10
jb 0x140006669
mov rcx, qword [rbp - 0x28]
jmp 0x140006664
cmp qword [rbp - 0x10], 0x10
jb 0x14000663d
mov rcx, qword [rbp - 0x28]
call fcn.14000aa30
xor al, al
jmp 0x14000666b
lea rcx, str.string_too_long
call fcn.140007eb8
int3
lea rcx, str.string_too_long
call fcn.140007eb8
nop
cmp r9, 0x10
jb 0x140006669
mov rcx, r10
call fcn.14000aa30
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140011d90
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140011c00
Function at 0x1400244f8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140036230]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400114c0
xor ebx, ebx
cmp qword [0x140037b58], rbx
mov rdi, rax
jne 0x14002460b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400246e2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400246e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140037b58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140037b60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140037b68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140037b78], rax
test rax, rax
je 0x140024602
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140037b70], rax
jmp 0x140024612
mov rax, qword [0x140037b70]
jmp 0x140024619
mov rax, qword [0x140037b70]
mov r11, qword [0x140037b78]
cmp rax, rdi
je 0x140024680
cmp r11, rdi
je 0x140024680
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140037b78]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140024680
test rax, rax
je 0x140024680
call rsi
test rax, rax
je 0x14002467a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002467a
test byte [rsp + 0x40], 1
jne 0x140024680
bts ebp, 0x15
jmp 0x1400246c0
mov rcx, qword [0x140037b60]
cmp rcx, rdi
je 0x1400246c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400246c0
call rax
mov rbx, rax
test rax, rax
je 0x1400246c0
mov rcx, qword [0x140037b68]
cmp rcx, rdi
je 0x1400246c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400246c0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140037b58]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400246e2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400246e4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400161f0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024b8f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140036230]
jne 0x14001620a
rol rcx, 0x10
test cx, 0xffff
jne 0x140016206
repz ret
ror rcx, 0x10
jmp 0x140024ae8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140037c20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140037d18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140024b6d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140037c20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140024b8f
mov rax, qword [rsp + 0x88]
mov qword [0x140037d18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140037cb8], rax
mov rax, qword [0x140037d18]
mov qword [0x140037b90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140037ca0], rax
mov dword [0x140037b80], 0xc0000409
mov dword [0x140037b84], 1
mov rax, qword [0x140036230]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140036238]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140037c18], eax
mov ecx, 1
call fcn.140021548
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002e288]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140037c18], 0
jne 0x140024c16
mov ecx, 1
call fcn.140021548
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x401606
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, qword [0x00408c30]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x4016a3
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, qword [0x00408c40]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x4016c1
jmp 0x4016aa
mov eax, 1
jmp 0x4016c6
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x4016c6
mov eax, 1
add rsp, 0x40
pop rbp
ret

Function at 0x40180f
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.00405090
lea rax, str.Lithik_RPC
mov qword [rbp - 0x20], rax
lea rax, [0x004016cc]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
lea rcx, str.C:Program_Fileslithik_bin_test.log
call sub.msvcrt.dll_remove
lea rcx, [0x00408038]
call sub.msvcrt.dll_remove
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x40200e
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
sub dword [rbp + 0x18], 1
jmp 0x4020ca
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 1
mov rdx, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
jne 0x402083
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3e5
jne 0x4020da
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
lea rcx, [rbp - 8]
mov r9d, 1
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call rax
test eax, eax
je 0x4020dd
mov eax, dword [rbp - 8]
test eax, eax
je 0x4020dd
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0xa
je 0x4020e0
add dword [rbp - 4], 1
add qword [rbp + 0x10], 1
sub dword [rbp + 0x18], 1
cmp dword [rbp + 0x18], 0
jns 0x402031
jmp 0x4020dd
nop
jmp 0x4020e1
nop
jmp 0x4020e1
nop
mov rax, qword [rbp + 0x10]
mov byte [rax], 0
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x4020f1
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x458
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], rdx
mov qword [rbp + 0x400], r8
mov qword [rbp + 0x408], r9
lea rax, [rbp + 0x400]
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp + 0x3f8]
lea rax, [rbp - 0x40]
mov r9, rcx
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call fcn.00401880
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov rax, qword [rbp + 0x3f0]
lea rbx, [rax + 8]
lea rax, [rbp - 0x40]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
mov rax, qword [rbp + 0x3f0]
mov rax, qword [rax]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rbx
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
jne 0x4021df
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3e5
jne 0x4021df
mov rax, qword [rbp + 0x3f0]
lea rdx, [rax + 8]
mov rax, qword [rbp + 0x3f0]
mov rax, qword [rax]
lea rcx, [rbp + 0x3cc]
mov r9d, 1
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call rax
mov rax, qword [rbp + 0x3f0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call rax
mov eax, dword [rbp + 0x3cc]
add rsp, 0x458
pop rbx
pop rbp
ret
Function at 0x402963
Capabilities:
Get session user name
Impersonate user

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov rax, rsp
mov rbx, rax
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov dword [rbp - 0x50], 0x38
mov dword [rbp - 0x54], 0x100
mov eax, dword [rbp - 0x54]
mov edx, eax
sub rdx, 1
mov qword [rbp - 8], rdx
mov edx, eax
mov r10, rdx
mov r11d, 0
mov edx, eax
mov r8, rdx
mov r9d, 0
mov eax, eax
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.00406490
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x54]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x28]
lea rdx, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.USERENV.dll_LoadUserProfileA]
call rax
mov rsp, rbx
lea rsp, [rbp + 8]
pop rbx
pop rbp
ret
Function at 0x402f03
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x160], ecx
lea rax, [rbp - 0x20]
mov r8d, 0x130
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x20], 0x130
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x130], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x130]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403133
mov dword [rbp + 0x13c], 1
jmp 0x403126
mov eax, dword [rbp]
cmp dword [rbp + 0x160], eax
jne 0x40310d
mov eax, dword [rbp - 0x18]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
je 0x402ff5
mov eax, dword [rbp - 0x18]
mov ecx, eax
call fcn.00402f03
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov rax, qword [rbp + 0x128]
mov edx, 1
mov rcx, rax
call fcn.00402a48
mov rax, qword [rbp + 0x128]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x40310d
lea rdx, [0x00408070]
lea rcx, str.C:Program_Fileslithik_binlithik_rpc.log
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x120], rax
cmp qword [rbp + 0x120], 0
je 0x40310d
mov rax, qword [rbp + 0x120]
mov rcx, rax
call sub.msvcrt.dll_fclose
cmp qword [rbp + 0x120], 0
je 0x40310d
lea rdx, [0x004080a3]
lea rcx, str.C:Program_Fileslithik_binlithik_rpc.log
call sub.msvcrt.dll_fopen
mov qword [rbp + 0x118], rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLocalTime]
call rax
movzx eax, word [rbp - 0x22]
movzx r10d, ax
movzx eax, word [rbp - 0x24]
movzx r9d, ax
movzx eax, word [rbp - 0x26]
movzx r8d, ax
movzx eax, word [rbp - 0x28]
movzx ecx, ax
movzx eax, word [rbp - 0x2a]
movzx edx, ax
movzx eax, word [rbp - 0x2e]
movzx ebx, ax
movzx eax, word [rbp - 0x30]
movzx r11d, ax
mov rax, qword [rbp + 0x118]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, ebx
mov r8d, r11d
lea rdx, str._04d__02d__02d__02d:_02d:_02d._03d
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov edx, dword [rbp - 0x18]
mov rax, qword [rbp + 0x118]
mov dword [rsp + 0x20], ecx
mov r9d, edx
mov r8d, dword [rbp + 0x160]
lea rdx, str.kill_children__lu__unable_to_access_process__lu__0x_08lX__n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sub.msvcrt.dll_fclose
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x130]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
mov dword [rbp + 0x13c], eax
cmp dword [rbp + 0x13c], 0
jne 0x402f78
nop
add rsp, 0x1c8
pop rbx
pop rbp
ret
Function at 0x405550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0040b684]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x405670
mov rax, qword [0x0040b688]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x40559c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x405656
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x405580
mov rcx, rsi
call fcn.00406190
test rax, rax
mov r12, rax
je 0x4056a8
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0040b688]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.004062e0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x0040b688]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40568b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40564f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40564f
add rbx, qword [0x0040b688]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x405677
add dword [0x0040b684], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x4055a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004054e0
mov rax, qword [0x0040b688]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004054e0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.004054e0
nop
nop dword [rax + rax]

Function at 0x405e00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040b960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040b940]
test rbx, rbx
je 0x405e54
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 0x405e4b
test rsi, rsi
je 0x405e4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x405e30
lea rcx, [0x0040b960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x406190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00408ab0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x4061b0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00406070
test eax, eax
je 0x4061a8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40620d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x406204
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4061a8
add rdx, 0x28
cmp rdx, r9
jne 0x4061f0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140008cd0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140008d2d
lea rbx, [0x14004fe70]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140008d14
cmp r10, 2
jb 0x140008d14
cmp byte [r9], r8b
jne 0x140008d14
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140008cf0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140008d6f
lea rbx, [0x14004fe70]
cmp r8b, 0x23
jne 0x140008d53
cmp byte [r9], r8b
jne 0x140008d53
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140008d40
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140008eb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140008eca
mov qword [r8], 0
lea rdx, [0x1400545d4]
call fcn.140008d80
mov rbx, rax
test rax, rax
jne 0x140008eea
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140008fc1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008fc1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140008fc1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008fc1
cmp rdi, 0xffffffffffffffff
je 0x140008fc1
mov rax, qword [0x14005ea58]
test rax, rax
je 0x140008f5e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140008fc1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140008fae
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14005ea58]
test rax, rax
je 0x140008fa3
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140008fca
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140008fbc
mov qword [r14], rdi
mov rax, rsi
jmp 0x140008fcc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret