joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1666
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ff4ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x60]
mov dword [esp + 0x14], 5
call fcn.00450210
mov eax, dword [esi + 0x5c]
test eax, eax
mov byte [esp + 0x14], 4
je 0x4a16a7
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00450210
push ecx
push 0x18
push eax
call fcn.004d4d01
push edi
call fcn.004e50f9
add esp, 4
mov eax, dword [esi + 0x54]
test eax, eax
mov byte [esp + 0x14], 3
je 0x4a16d0
mov edx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00450210
push edx
push 0x18
push eax
call fcn.004d4d01
push edi
call fcn.004e50f9
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a16f9
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.00450210
push ecx
push 0x18
push eax
call fcn.004d4d01
push edi
call fcn.004e50f9
add esp, 4
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00450210
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 0
call fcn.00450210
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.00450210
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4aa7e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, dword [ebp]
cmp esi, 0xffffffff
push edi
jne 0x4aa80e
mov edi, dword [ecx + 8]
xor eax, eax
test edi, edi
jbe 0x4aa80e
mov edx, dword [ecx + 4]
jmp 0x4aa800
mov esi, dword [edx]
test esi, esi
jne 0x4aa80e
inc eax
add edx, 4
cmp eax, edi
jb 0x4aa800
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x4aa83f
mov eax, dword [esi + 0x18]
xor edx, edx
push ebx
mov ebx, dword [ecx + 8]
div ebx
inc edx
cmp edx, ebx
jae 0x4aa83e
mov eax, dword [ecx + 4]
lea eax, [eax + edx*4]
jmp 0x4aa830
mov edi, dword [eax]
test edi, edi
jne 0x4aa83e
inc edx
add eax, 4
cmp edx, ebx
jb 0x4aa830
pop ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [ebp], edi
mov cx, word [esi]
mov word [edx], cx
mov cl, byte [esi + 4]
mov byte [eax], cl
mov dx, word [esi + 6]
mov word [eax + 2], dx
mov cl, byte [esi + 8]
mov byte [eax + 4], cl
mov dx, word [esi + 8]
mov word [eax + 4], dx
mov ecx, dword [esi + 8]
pop edi
mov dword [eax + 4], ecx
lea edx, [esi + 0xc]
lea ecx, [eax + 8]
cmp ecx, edx
pop esi
pop ebp
je 0x4aa89a
mov eax, dword [edx]
test eax, eax
jbe 0x4aa891
mov edx, dword [edx + 4]
push eax
push edx
call fcn.00406d50
ret 0xc
xor edx, edx
push eax
push edx
call fcn.00406d50
ret 0xc
Function at 0x4c1e60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x505a2c
lea ecx, [ebp - 0x18]
call fcn.00401fd0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 4], 0
call fcn.00407900
mov ecx, eax
call fcn.00488940
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c1ecc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edx, dword [ebp - 0x14]
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
push 1
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
mov dword [esi + 0x6c], eax
call fcn.00479d20
mov eax, dword [eax]
push 0x502aa8
push eax
call fcn.004d4c0f
mov ebx, eax
mov eax, dword [ebp - 0x24]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c1f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4c1f75
mov eax, dword [ebp - 0x14]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040d4b0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00403fd0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c1f75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 7
push 0x10000000
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 0x70], eax
mov edi, str.Success
mov esi, ecx
test esi, esi
mov dword [ebp - 0x28], esi
jne 0x4c1fb3
mov edi, str.Failed
call fcn.00407270
push 0x972
push str.WorkNbms_bar_trunkCommFilePkgDownMgr.cpp
mov ecx, eax
call fcn.0040a520
push edi
push str.CMappingFileCls::Initialize__s.
push 4
call fcn.0047fc80
add esp, 0xc
jmp 0x4c2002
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c2026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c28b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ffe7f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [0x534a48], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], 0x513468
call fcn.00401270
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x24], 0x513400
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0x51340c
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], eax
push 0x502a56
lea ecx, [esi + 0x5c]
mov byte [esp + 0x1c], 3
call fcn.00401fd0
push 0x502a56
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 4
call fcn.00401fd0
or eax, 0xffffffff
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x28]
cmp eax, ebx
mov byte [esp + 0x18], 5
je 0x4c2970
push eax
call fcn.004e50f9
add esp, 4
mov dword [esi + 0x28], ebx
push 0xc8
call fcn.004e50fe
mov edi, eax
xor eax, eax
mov dword [esi + 0x28], edi
mov ecx, 0x32
rep stosd dword es:[edi], eax
mov dword [esi + 0x2c], 0x32
mov eax, dword [esi + 0x44]
add esp, 4
cmp eax, ebx
je 0x4c29a5
push eax
call fcn.004e50f9
add esp, 4
mov dword [esi + 0x44], ebx
push 0x320
call fcn.004e50fe
mov edi, eax
xor eax, eax
mov dword [esi + 0x44], edi
mov ecx, 0xc8
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, esi
mov dword [esi + 0x48], 0xc8
call fcn.004c1e60
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4c48d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5002fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esp + 4], esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov edx, 0x11
mov ecx, 0xa
mov dword [esp + 0x10], eax
mov dword [esi + 0x20], 0x5119f8
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], 0x511a04
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
push ecx
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 2
call fcn.004e4803
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4c5d60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5004c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea ecx, [esp + 8]
call fcn.00479ef0
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
push 0
push 0x40
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.0047b560
test eax, eax
lea ecx, [esp + 8]
je 0x4c5e13
push esi
call fcn.004ea2fe
mov esi, dword [esp + 0x30]
mov ecx, edx
mov dword [esi + 0x18], eax
mov al, byte [esi]
sar ecx, 0x1f
lea ecx, [esp + 4]
push ecx
shl dl, 4
and al, 0xf
push 0
or al, dl
mov edx, dword [esp + 0x18]
push 0
push edx
mov byte [esi], al
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0xc]
mov dword [esi + 0x10], eax
call fcn.004ea3a4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00479f10
mov eax, 1
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov dword [esp + 0x20], 0xffffffff
call fcn.00479f10
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4c6bb0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5005a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov byte [esp + 0x14], 1
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x14], 2
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x14], 3
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x14], 4
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 5
call fcn.004c63f0
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 6
call fcn.00479ef0
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 7
call fcn.00479ef0
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 8
call fcn.00479ef0
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa8], edx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0xb4], 0x514320
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], ecx
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd0], 0x51432c
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], ecx
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 0xb
mov dword [esi + 0xec], edi
call fcn.004c67d0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xa8]
cmp eax, 0x100
mov dword [esi + 0xa0], edx
jbe 0x4c6d82
mov dword [esi + 0xa8], 0x100
jmp 0x4c6d90
cmp eax, edi
jne 0x4c6d90
mov dword [esi + 0xa8], 4
mov eax, dword [esp + 0x38]
mov dword [esi + 0xac], eax
cmp eax, edi
mov eax, esi
jne 0x4c6dc7
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [esi + 0xac], 0x1f4
mov dword [esi + 0xb0], ecx
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xb0], edx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x4c85c0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x500738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004ea406
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
xor ebx, ebx
push eax
mov dword [esp + 0x2c], ebx
call edi
mov eax, dword [esi]
push ebx
push 0x1002
push eax
lea ecx, [esp + 0x18]
call fcn.004ea69e
test eax, eax
je 0x4c865a
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push 0x900c4
push ecx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4c864a
push ebx
push 0x40000000
lea ecx, [esp + 0x14]
call fcn.004ea2cc
mov ebx, 1
lea ecx, [esp + 0xc]
call fcn.004ea3a4
mov esi, dword [esi]
push 6
push esi
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004ea445
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4cb6a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4cb6f9
call fcn.004f05bd
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4cb6f9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4cb6ef
xor eax, eax
jmp 0x4cb812
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4cb729
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4cb729
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4cb80f
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4cb756
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004bb270
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4cb80f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4cb79f
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4cb79f
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4cb799
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004bb270
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4cb7ff
and dword [ebp + 0xc], 0
jmp 0x4cb7ff
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4cb7ff
push 0xc
call fcn.004e50ce
mov esi, eax
test esi, esi
pop ecx
je 0x4cb7e1
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4cb7e3
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4cb7fa
push dword [ebp - 8]
call fcn.004e43d7
jmp 0x4cb7ff
call fcn.004e43ae
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4cb764
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d6ac0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004d65a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d6b5b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x536a5c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4d6b5b
cmp eax, 1
je 0x4d6b7c
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d6b5b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4d6b28
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4d6b57
xor eax, eax
inc eax
jmp 0x4d6b9b
cmp edi, eax
jae 0x4d6b5f
xor eax, eax
jmp 0x4d6b9b
cmp eax, esi
jae 0x4d6b66
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x536a5c]
jmp 0x4d6b7f
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d75b8
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x518e50
call fcn.004d7e48
mov edi, 0x94
mov eax, edi
call fcn.004d65a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x536a5c], ecx
mov eax, dword [esi + 4]
mov dword [0x536a68], eax
mov edx, dword [esi + 8]
mov dword [0x536a6c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x536a60], esi
cmp ecx, 2
je 0x4d7618
or esi, 0x8000
mov dword [0x536a60], esi
shl eax, 8
add eax, edx
mov dword [0x536a64], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4d7653
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d7653
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4d766b
cmp eax, 0x20b
je 0x4d7658
mov dword [ebp - 0x1c], esi
jmp 0x4d767f
cmp dword [ecx + 0x84], 0xe
jbe 0x4d7653
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4d7679
cmp dword [ecx + 0x74], 0xe
jbe 0x4d7653
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004dbe6c
pop ecx
test eax, eax
jne 0x4d7693
push 0x1c
call fcn.004d7594
pop ecx
call fcn.004d9034
test eax, eax
jne 0x4d76a4
push 0x10
call fcn.004d7594
pop ecx
call fcn.004dec59
mov dword [ebp - 4], esi
call fcn.004dea5b
test eax, eax
jge 0x4d76bd
push 0x1b
call fcn.004d756f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x538330], eax
call fcn.004de939
mov dword [0x536a4c], eax
call fcn.004de897
test eax, eax
jge 0x4d76e3
push 8
call fcn.004d756f
pop ecx
call fcn.004de664
test eax, eax
jge 0x4d76f4
push 9
call fcn.004d756f
pop ecx
push 1
call fcn.004d8186
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4d770a
push eax
call fcn.004d756f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004de607
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4d772b
movzx eax, word [ebp - 0x40]
jmp 0x4d772e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004e2cc4
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4d774c
push edi
call fcn.004d82b3
call fcn.004d82d5
jmp 0x4d777e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004d7e83
ret
Function at 0x4d81f0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x518e88
call fcn.004d7e48
push 8
call fcn.004dabdb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x536a9c], esi
jne 0x4d8224
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x536a98], esi
mov al, byte [ebp + 0x10]
mov byte [0x536a94], al
cmp dword [ebp + 0xc], edi
jne 0x4d826e
cmp dword [0x538328], edi
je 0x4d825e
mov eax, dword [0x538324]
sub eax, 4
mov dword [0x538324], eax
cmp eax, dword [0x538328]
jb 0x4d825e
mov eax, dword [eax]
cmp eax, edi
je 0x4d823f
call eax
jmp 0x4d823f
push 0x530244
mov eax, 0x53023c
call fcn.004d816e
pop ecx
push 0x530250
mov eax, 0x530248
call fcn.004d816e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4d829f
cmp dword [ebp + 0x10], edi
jne 0x4d82ad
mov dword [0x536a9c], esi
push dword [ebp + 8]
call fcn.004d812c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4d82ac
push 8
call fcn.004dab26
pop ecx
ret
call fcn.004d7e83
ret
Function at 0x4d9123
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4d9151
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4d9158
cmp ebx, dword [eax + 4]
jae 0x4d9158
xor eax, eax
jmp 0x4d9348
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4d9169
xor eax, eax
inc eax
jmp 0x4d9347
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4d917f
cmp ecx, edx
jae 0x4d92c4
cmp dword [eax + 4], 0
je 0x4d9188
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4d9170
cmp dword [ebp + 8], 0
je 0x4d91aa
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4d92c4
cmp eax, esi
jae 0x4d92c4
mov eax, dword [0x536ab8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4d91cf
cmp dword [esi*4 + 0x536ac0], edi
je 0x4d92c8
inc esi
cmp esi, eax
jl 0x4d91bd
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d9344
cmp dword [ebp - 8], 0x1000000
jne 0x4d9344
test byte [ebp - 0xc], 0xcc
je 0x4d924d
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4d9344
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4d9344
cmp word [eax + 0x18], 0x10b
jne 0x4d9344
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4d9344
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4d924d
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4d924d
test byte [ecx + 0x27], 0x80
jne 0x4d92c4
push 1
push 0x536b00
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4d9161
mov ecx, dword [0x536ab8]
test ecx, ecx
mov edx, ecx
jle 0x4d9281
lea eax, [ecx*4 + 0x536abc]
cmp dword [eax], edi
je 0x4d9281
dec edx
sub eax, 4
test edx, edx
jg 0x4d9275
test edx, edx
jne 0x4d92b2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4d928e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4d92a6
lea eax, [edx*4 + 0x536ac0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4d9294
cmp ecx, 0x10
jge 0x4d92b2
inc ecx
mov dword [0x536ab8], ecx
push 0
push 0x536b00
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4d9161
xor eax, eax
jmp 0x4d9347
test esi, esi
jle 0x4d9161
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x536b00
call ebx
test eax, eax
jne 0x4d9161
cmp dword [esi*4 + 0x536ac0], edi
je 0x4d931e
mov eax, dword [0x536ab8]
lea esi, [eax - 1]
test esi, esi
jl 0x4d930c
cmp dword [esi*4 + 0x536ac0], edi
je 0x4d9308
dec esi
jns 0x4d92fc
test esi, esi
jge 0x4d931c
cmp eax, 0x10
jge 0x4d9317
inc eax
mov dword [0x536ab8], eax
lea esi, [eax - 1]
jmp 0x4d931e
je 0x4d9336
xor ecx, ecx
test esi, esi
jl 0x4d9336
lea eax, [ecx*4 + 0x536ac0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4d9324
push 0
push 0x536b00
call ebx
jmp 0x4d9161
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret