joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066e0
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate processes
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x42700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x406898
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push eax
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406768
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop
push str.csgo.exe
lea eax, [ebp - 0x224]
push eax
call edi
test eax, eax
je 0x406756
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406730
jmp 0x406768
push dword [ebp - 0x240]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x406898
mov esi, dword [0x4270a4]
push 0x40
push 0x3000
mov dword [ebp - 0x250], esi
push dword [esi + 0x4270b8]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [esi + 0x4270bc]
mov dword [ebp - 0x24c], eax
push 0x427068
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x42706e]
jae 0x4067fa
lea esi, [esi + 0x427174]
mov eax, dword [esi]
push 0
push dword [esi - 4]
add eax, 0x427068
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x250]
lea esi, [esi + 0x28]
inc edi
movzx eax, word [eax + 0x42706e]
cmp edi, eax
jl 0x4067c7
push 0x20
push 0x3000
push 0x1000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov eax, dword [ebp - 0x24c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlZeroMemory
push str.ntdll
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call esi
push 0
push 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, fcn.004066d0
lea esi, [edi + 0x10]
sub eax, 0x4065a0
push eax
push 0x4065a0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d4ee
mov esp, ebp
pop ebp
ret
Function at 0x408920
Capabilities:
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x42700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebx + 0x10]
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.004098d0
mov ecx, dword [0xaf5448]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [0xaf5448]
jne 0x4089c6
push 0x4c
call fcn.0041d501
add esp, 4
mov esi, eax
push edi
call fcn.004093d0
mov dword [eax], esi
push edi
call fcn.00409360
push dword [eax]
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x54]
push 0
push dword [eax]
mov eax, dword [ebp - 0x5c]
push 7
push 0
push 0
push 1
push dword [eax]
mov eax, dword [ebp - 0x64]
push 0
push dword [eax]
push dword [0xaf53b4]
call dword [sym.imp.d3dx9_43.dll_D3DXCreateFontA]
push edi
call fcn.00409360
lea edx, [ebp - 0x50]
push edx
mov eax, dword [eax]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push edi
call fcn.00409360
mov eax, dword [eax]
cmp dword [eax], 0
je 0x408a29
push edi
call fcn.00409360
mov eax, dword [eax]
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call fcn.00409360
push edi
mov eax, dword [eax]
mov dword [eax], 0
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ebp - 0x78], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x88], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x68], xmm0
call fcn.00409360
movups xmm0, xmmword [ebp - 0x78]
push edi
mov eax, dword [eax]
movups xmmword [eax + 4], xmm0
movups xmm0, xmmword [ebp - 0x88]
movups xmmword [eax + 0x14], xmm0
movups xmm0, xmmword [ebp - 0x98]
movups xmmword [eax + 0x24], xmm0
movq xmm0, qword [ebp - 0x68]
movq qword [eax + 0x34], xmm0
call fcn.00409360
push edi
mov eax, dword [eax]
mov byte [eax + 0x3c], 0
call fcn.00409360
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, dword [eax]
pop esi
call fcn.0041d4ee
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x409360
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.004098d0
mov eax, dword [ebp - 8]
test eax, eax
je 0x4093b6
add eax, 0xc
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const__]
int3

Function at 0x4093d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41eb75
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x18]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.004098d0
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x409540
cmp dword [0xaf544c], 0xfffffff
jne 0x40945a
push 0x421640
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x20], 0xaf5448
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x1c], 0
call fcn.0041d501
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
mov ecx, dword [edi]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov ecx, dword [0xaf544c]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x422e50]
mov eax, dword [0xaf5460]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x422e50]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [0xaf5444]
jbe 0x4094f9
call fcn.00409960
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004098d0
mov ecx, dword [0xaf544c]
mov edx, dword [eax]
jmp 0x4094fc
mov edx, dword [ebp - 0x18]
mov edi, dword [edx + 4]
inc ecx
mov dword [0xaf544c], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0xaf545c]
mov ecx, dword [0xaf5450]
and eax, ebx
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0xaf5448]
jne 0x40952d
mov dword [ecx + eax*8], esi
jmp 0x40953c
cmp ebx, edx
jne 0x409536
mov dword [ecx + eax*8], esi
jmp 0x409540
cmp dword [ecx + eax*8 + 4], edi
jne 0x409540
mov dword [ecx + eax*8 + 4], esi
lea eax, [esi + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4096d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ebb5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00409660
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x409753
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x4098b7
cmp dword [0xaf546c], 0xfffffff
jne 0x40976a
push 0x421640
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x28], 0xaf5468
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.0041d501
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
mov ecx, dword [ebx]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov ecx, dword [0xaf546c]
mov ebx, dword [0xaf5480]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x422e50]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x422e50]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0xaf5464]
comiss xmm1, xmm0
jbe 0x409864
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0041e570
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x409843
cmp ebx, 0x200
jae 0x409841
shl ebx, 3
cmp ebx, ecx
jae 0x409843
mov ebx, ecx
push ebx
call fcn.004099f0
mov edi, dword [ebp - 0x1c]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00409660
mov ecx, dword [0xaf546c]
mov edx, dword [eax]
jmp 0x40986a
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0xaf546c], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0xaf547c]
mov ecx, dword [0xaf5470]
and eax, edi
mov edi, dword [ecx + eax*8]
cmp edi, dword [0xaf5468]
jne 0x40989b
mov dword [ecx + eax*8], esi
jmp 0x4098aa
cmp edi, edx
jne 0x4098a4
mov dword [ecx + eax*8], esi
jmp 0x4098ae
cmp dword [ecx + eax*8 + 4], ebx
jne 0x4098ae
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4099f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x409a1c
push 0x42165c
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0xaf5468]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0xaf5470
lea eax, [edi + edi]
push eax
call fcn.00409560
mov eax, dword [0xaf5468]
lea ebx, [edi - 1]
mov dword [0xaf547c], ebx
mov dword [0xaf5480], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x409b56
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0xaf5470]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x409ab4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x409b21
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x409aee
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x409ae6
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x409b21
cmp ebx, edx
je 0x409afe
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x409b32
cmp ebx, edx
jne 0x409af2
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x409b56
mov ebx, dword [0xaf547c]
jmp 0x409a62
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x409b21
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409b60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x409b8c
push 0x42165c
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0xaf5448]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0xaf5450
lea eax, [edi + edi]
push eax
call fcn.00409560
mov eax, dword [0xaf5448]
lea ebx, [edi - 1]
mov dword [0xaf545c], ebx
mov dword [0xaf5460], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x409cc6
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0xaf5450]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x409c24
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x409c91
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x409c5e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x409c56
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x409c91
cmp ebx, edx
je 0x409c6e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x409ca2
cmp ebx, edx
jne 0x409c62
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x409cc6
mov ebx, dword [0xaf545c]
jmp 0x409bd2
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x409c91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e010
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ee4d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x42700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xcc], edi
push 0x90
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xcc], edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xc8], 0x94
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 0x42178c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00403580
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc4]
cmp ecx, 0xb
je 0x40e15b
mov eax, dword [ebp - 0xc0]
cmp eax, 0xb
je 0x40e15b
cmp ecx, 0xa
je 0x40e123
cmp eax, 0xa
je 0x40e123
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 7
push 0x4217a0
cmp eax, 7
jb 0x40e119
cmp edx, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ecx + 7]
cmovae esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 7], 0
jmp 0x40e1a1
push dword [ebp - 0xcc]
push 7
jmp 0x40e199
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 2
jb 0x40e152
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x1c], eax
mov edx, 0x3031
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x40e1a1
push 2
push 0x42179c
jmp 0x40e191
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
cmp eax, 2
jb 0x40e18a
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x1c], eax
mov edx, 0x3131
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x40e1a1
push 2
push 0x421798
push dword [ebp - 0xcc]
push 2
lea ecx, [ebp - 0x2c]
call fcn.00403670
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
cmovae edx, dword [ebp - 0x2c]
mov ecx, edx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e1c5
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.00403580
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x40e20d
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e203
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e203
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d787
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d4ee
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x412d70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f40c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x42700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
lea esi, [edi + 0x38]
mov dword [edi + 0x30], 0
mov byte [edi + 0x34], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x412e24
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 0xc]
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 5
mov byte [edi + 0x60], al
push 9
mov byte [edi + 0x68], 9
call fcn.004114f0
mov byte [ebp - 4], 6
xor esi, esi
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x10]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edx
test ecx, ecx
jns 0x412e6f
mov eax, ecx
neg eax
cmp esi, eax
jae 0x412e6f
add ecx, esi
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub edx, eax
jmp 0x412e79
add ecx, esi
mov eax, ecx
shr eax, 5
lea edx, [edx + eax*4]
and ecx, 0x1f
lea eax, [ebp - 0xd]
push ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x10]
call fcn.00415320
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x412ea7
mov esi, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x41cf80
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x425190
push 0x41dbc7
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x42700c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
or edi, 0xffffffff
mov dword [ebp - 0x124], edi
xor esi, esi
mov dword [ebp - 0x128], esi
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
call fcn.0041d0c0
mov dword [ebp - 0x130], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41d05c
push ebx
push ebx
push 3
push ebx
push 1
push connect
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x124], edi
cmp edi, 0xffffffff
je 0x41d05c
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x128], esi
test esi, esi
je 0x41d05c
mov eax, dword [ebp - 0x130]
mov ecx, dword [eax + 0x14]
add ecx, dword [eax + 0x10]
push ecx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d096
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041d4ee
mov esp, ebp
pop ebp
ret