joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4997e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d5251
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [edi], eax
fild dword [esp + 0x44]
lea eax, [esp + 0x14]
mov dword [esp + 0x38], ebx
mov esi, 1
fstp qword [esp + 0x24]
push eax
mov ecx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_:.__1234567890
mov dword [esp + 0x20], esi
call fcn.00460540
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
jle 0x49992f
jmp 0x499870
fld qword [esp + 0x24]
call fcn.004d1a80
imul eax, eax, 0xd3
add eax, 0x754f
and eax, 0x8000ffff
jns 0x499892
dec eax
or eax, 0xffff0000
inc eax
mov ebp, dword [esi - 0xc]
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
mov dword [esp + 0x44], ebp
fst qword [esp + 0x24]
fmul qword [0x4faec8]
fimul dword [esp + 0x44]
call fcn.004d1a80
mov ebx, eax
test ebx, ebx
jl 0x499968
cmp ebx, ebp
jg 0x499968
mov cl, byte [ebx + esi]
mov eax, dword [edi]
mov ebp, dword [eax - 0xc]
mov byte [esp + 0x44], cl
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebp + 1]
sub eax, esi
or eax, ecx
jge 0x4998ef
mov ecx, esi
mov eax, edi
call fcn.00461ec0
mov eax, dword [edi]
mov dl, byte [esp + 0x44]
mov byte [eax + ebp], dl
test esi, esi
jl 0x499968
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x499968
mov dword [eax - 0xc], esi
mov eax, dword [edi]
lea ecx, [esp + 0x14]
mov byte [esi + eax], 0
push ecx
mov eax, ebx
call fcn.0049bd90
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jl 0x499870
lea eax, [esi - 0x10]
mov byte [esp + 0x38], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
push 0x80070057
call fcn.00405ef0
int3
Function at 0x49af30
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da120
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x20]
add ebx, 4
mov eax, ebx
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], str.SetCleanTitle
call fcn.00471a00
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edi, str.VIDNAME
mov dword [esp + 0x30], 0
call fcn.0042b600
mov eax, dword [eax]
sub eax, 0x10
call fcn.00408230
add eax, 0x10
mov dword [esp + 0x14], eax
push eax
push str.Initial_title_s
lea edx, [esp + 0x24]
push edx
push ebx
mov byte [esp + 0x40], 1
call fcn.004719c0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0047b580
add esp, 0x18
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.004082a0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b003
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0047bee0
add esp, 8
lea edi, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.004082a0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b048
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00477b90
mov edi, dword [ebp + 8]
add edi, 0xf4
lea eax, [esp + 0x14]
call fcn.004082a0
mov esi, dword [esp + 0x14]
push esi
push str.Set_sanitized_title_s
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.004719c0
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b09c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49b350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4de7b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea esi, [esp + 0x30]
mov eax, ebp
mov dword [esp + 0x24], 0
call fcn.0041b8f0
mov bl, 1
mov byte [esp + 0x24], bl
mov esi, dword [esp + 0x30]
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x49b411
push 0x4fa78c
push esi
call fcn.004a59da
add esp, 8
test eax, eax
je 0x49b411
sub eax, esi
sar eax, 1
test eax, eax
jle 0x49b411
lea ecx, [esp + 0x30]
push ecx
xor ecx, ecx
lea edx, [esp + 0x1c]
call fcn.0040b870
lea edi, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.004082a0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x14]
call fcn.00460650
mov eax, dword [esp + 0x14]
mov ecx, str.rtmp
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49b449
test dx, dx
je 0x49b445
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49b449
add eax, 4
add ecx, 4
test dx, dx
jne 0x49b423
xor eax, eax
jmp 0x49b44e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x49b526
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.rtmpe
call fcn.004606b0
add esp, 4
test al, al
je 0x49b526
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov edx, ebp
lea ecx, [esp + 0x40]
call fcn.0049a460
lea edi, [ebp + 0xf8]
mov byte [esp + 0x24], 3
call fcn.004082a0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b4c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b4e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49b510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
lea ecx, [esp + 0x34]
push ecx
mov ecx, 0x4f4ee8
call fcn.00405a00
lea edi, [ebp + 0xf8]
lea eax, [esp + 0x34]
mov byte [esp + 0x24], 4
call fcn.004082a0
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b4c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49b4c7
Function at 0x49b580
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d80f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push str.____________________Entrance____________________
lea ecx, [esp + 0x20]
add ebx, 4
mov eax, ebx
push ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], str.PreparePlaylist
call fcn.00471a00
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov edi, str.PLAYLISTIDS
mov dword [esp + 0x30], 0
call fcn.0042b600
mov eax, dword [eax]
sub eax, 0x10
call fcn.00408230
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x30], 1
mov eax, dword [esi - 0xc]
test eax, eax
je 0x49b66b
mov edi, dword [ebp + 8]
cmp byte [edi + 0x106], 0
jne 0x49b619
cmp byte [edi + 0x161], 0
je 0x49b66b
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4f6044
call fcn.00405a00
add edi, 0x118
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x3c], 2
call fcn.00478a80
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b66b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push str.PLAYLISTIDS___s
lea ecx, [esp + 0x24]
push ecx
push ebx
call fcn.004719c0
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x30], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49b6a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.______________________Exit______________________
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.00471a00
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49db90
Capabilities:
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x19c
mov eax, dword [0x513330]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
push 0x519634
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 0
push 0
push 0x519518
call edi
test eax, eax
je 0x49dbed
push 0x519634
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004a52a5
add esp, 0x19c
ret
xor eax, eax
push 0x18e
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004ab3f0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x49dc3f
push 0x519634
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004a52a5
add esp, 0x19c
ret
push str.librtmp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x51951c], eax
test eax, eax
je 0x49dc1b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RTMP_Init
push eax
call esi
mov dword [0x519520], eax
mov eax, dword [0x51951c]
push str.RTMP_Close
push eax
call esi
mov ecx, dword [0x51951c]
push str.RTMP_IsTimedout
push ecx
mov dword [0x519548], eax
call esi
mov edx, dword [0x51951c]
push str.RTMP_IsConnected
push edx
mov dword [0x51953c], eax
call esi
mov dword [0x519540], eax
mov eax, dword [0x51951c]
push str.RTMP_UpdateBufferMS
push eax
call esi
mov ecx, dword [0x51951c]
push str.RTMP_HashSWF
push ecx
mov dword [0x519530], eax
call esi
mov edx, dword [0x51951c]
push str.RTMP_ParseURL
push edx
mov dword [0x519550], eax
call esi
mov dword [0x519524], eax
mov eax, dword [0x51951c]
push str.RTMP_SetupStream
push eax
call esi
mov ecx, dword [0x51951c]
push str.RTMP_SetBufferMS
push ecx
mov dword [0x519528], eax
call esi
mov edx, dword [0x51951c]
push str.RTMP_Connect
push edx
mov dword [0x51952c], eax
call esi
mov dword [0x519534], eax
mov eax, dword [0x51951c]
push str.RTMP_ConnectStream
push eax
call esi
mov ecx, dword [0x51951c]
push str.RTMP_Read
push ecx
mov dword [0x519538], eax
call esi
mov edx, dword [0x51951c]
push str.RTMP_GetDuration
push edx
mov dword [0x519544], eax
call esi
push 0
push 1
push 0x519518
mov dword [0x51954c], eax
call edi
mov esi, eax
neg esi
sbb esi, esi
push 0x519634
inc esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x19c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004a52a5
add esp, 0x19c
ret
Function at 0x4a311c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x5185c0], 0
push esi
jne 0x4a308f
call fcn.004a2fb5
test eax, eax
je 0x4a30d2
mov eax, dword [0x5185c0]
cmp eax, 1
jne 0x4a30b0
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a30d2
pop esi
ret
push eax
call dword [0x5185c8]
test eax, eax
jne 0x4a311a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a30d6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x5185c0]
call dword [0x5185c8]
mov edi, eax
test edi, edi
je 0x4a30fb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4a3117
mov edi, esi
add esi, 0xff0
push edi
push dword [0x5185c0]
call dword [0x5185c4]
add edi, 0x10
cmp edi, esi
jb 0x4a3103
mov eax, edi
pop edi
pop esi
ret
jmp 0x4a307c

Function at 0x4a52a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x513330]
jne 0x4a52af
repz ret
jmp fcn.004b163c

Function at 0x4c959a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b1fe4
and dword [ebp - 4], 0
cmp dword [0x51940c], 0
mov ebx, eax
jne 0x4c964b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4c96fc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4c96fc
push eax
call fcn.004b1f72
mov dword [esp], 0x4e6fe8
push edi
mov dword [0x51940c], eax
call esi
push eax
call fcn.004b1f72
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x519410], eax
call esi
push eax
call fcn.004b1f72
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x519414], eax
call esi
push eax
call fcn.004b1f72
pop ecx
mov dword [0x51941c], eax
test eax, eax
je 0x4c964b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b1f72
pop ecx
mov dword [0x519418], eax
mov eax, dword [0x519418]
cmp eax, ebx
je 0x4c96a3
cmp dword [0x51941c], ebx
je 0x4c96a3
push eax
call fcn.004b1fed
push dword [0x51941c]
mov esi, eax
call fcn.004b1fed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4c96a3
test edi, edi
je 0x4c96a3
call esi
test eax, eax
je 0x4c969a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4c969a
test byte [ebp - 0xc], 1
jne 0x4c96a3
or dword [ebp + 0x10], 0x200000
jmp 0x4c96dc
mov eax, dword [0x519410]
cmp eax, ebx
je 0x4c96dc
push eax
call fcn.004b1fed
pop ecx
test eax, eax
je 0x4c96dc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c96dc
mov eax, dword [0x519414]
cmp eax, ebx
je 0x4c96dc
push eax
call fcn.004b1fed
pop ecx
test eax, eax
je 0x4c96dc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51940c]
call fcn.004b1fed
pop ecx
test eax, eax
je 0x4c96fc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4c96fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407cf7
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x407d20
mov eax, 0xfffffffd
jmp 0x407ec1
mov ebx, dword [0x12f6c84]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x407e8f
mov ebx, dword [0x12f6c84]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x407d6f
mov ebx, dword [0x12f6c84]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x407d6f
mov eax, 1
jmp 0x407d74
mov eax, 0
test eax, eax
je 0x407da4
call fcn.00407ec7
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x407d91
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12f6c84]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x407ddb
mov ebx, dword [0x12f6c84]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x407ddb
mov eax, 1
jmp 0x407de0
mov eax, 0
test eax, eax
jne 0x407e30
mov ebx, dword [0x12f6c84]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x407e1f
mov ebx, dword [0x12f6c84]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x407e1f
mov eax, 1
jmp 0x407e24
mov eax, 0
test eax, eax
jne 0x407e30
xor eax, eax
jmp 0x407e35
mov eax, 1
test eax, eax
je 0x407e61
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x407e4a
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12f6c84]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x407eb7
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x407ec1
mov esp, ebp
pop ebp
ret 4

Function at 0x408c9e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00408d00
test eax, eax
je 0x408ce1
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x408ce1
cmp word [eax], 0x5a4d
jne 0x408ce1
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x408ce1
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00408dd2
mov eax, dword [ebp + 8]
jmp 0x408cfa
mov esp, ebp
pop ebp
ret 4

Function at 0x408d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x408db3
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x417482
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4174ba
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4174a8
mov al, 1
jmp 0x417504
cmp dword [ebx + 0x54], ecx
jne 0x4174b1
mov al, 2
jmp 0x417504
cmp dword [ebx + 0x7c], ecx
jne 0x417504
mov al, 3
jmp 0x417504
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4174cf
mov al, 4
jmp 0x417504
cmp ecx, 5
jne 0x4174ef
cmp ebx, 0
jne 0x4174dd
mov al, 5
jmp 0x417504
cmp ebx, 1
jne 0x4174e6
mov al, 6
jmp 0x417504
cmp ebx, 2
jne 0x4174ef
mov al, 7
jmp 0x417504
cmp ecx, 6
jne 0x4174fb
cmp ebx, 0
jne 0x4174fd
mov al, 8
jmp 0x417504
cmp ebx, 1
jne 0x417504
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ed1a3
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 4]
mov eax, dword [ebp - 4]
jmp 0x4ed1da
mov esp, ebp
pop ebp
ret

Function at 0x50d9c6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x50da79
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x512764
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0050d9c6
test eax, eax
je 0x5127a7
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x5127a7
cmp word [eax], 0x5a4d
jne 0x5127a7
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x5127a7
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.005127c6
mov eax, dword [ebp + 8]
jmp 0x5127c0
mov esp, ebp
pop ebp
ret 4

Function at 0x51297c
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jge 0x5129a5
mov eax, 0xfffffffd
jmp 0x512b46
mov ebx, dword [0x12f7128]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
je 0x512b14
mov ebx, dword [0x12f7128]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0xa
jne 0x5129f4
mov ebx, dword [0x12f7128]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x5129f4
mov eax, 1
jmp 0x5129f9
mov eax, 0
test eax, eax
je 0x512a29
call fcn.00512b4c
mov dword [ebp - 4], eax
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x512a16
mov eax, dword [ebp + 8]
call dword [ebp - 4]
nop
nop
leave
ret 4
mov ebx, dword [0x12f7128]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 6
jne 0x512a60
mov ebx, dword [0x12f7128]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
jne 0x512a60
mov eax, 1
jmp 0x512a65
mov eax, 0
test eax, eax
jne 0x512ab5
mov ebx, dword [0x12f7128]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 6
jne 0x512aa4
mov ebx, dword [0x12f7128]
add ebx, 8
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
cmp dword [ebx], 3
jne 0x512aa4
mov eax, 1
jmp 0x512aa9
mov eax, 0
test eax, eax
jne 0x512ab5
xor eax, eax
jmp 0x512aba
mov eax, 1
test eax, eax
je 0x512ae6
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x512acf
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x12f7128]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x512b3c
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x512b46
mov esp, ebp
pop ebp
ret 4