joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496920
Capabilities:
Create service
Start service

Disassembly:
push 0xffffffffffffffff
push 0x4f8f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x52bd18]
push edi
mov dword [esp + 0x14], eax
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [str.SunwardDisk]
mov ecx, dword [0x50c658]
mov edx, dword [0x50c65c]
mov dword [esp + 0x20], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.0047c210
push eax
lea eax, [esp + 8]
push str._sNetDiskNetDisk.sys
push eax
call fcn.00401c40
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x496a00
push 0x140
push 0x50c608
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_Failed_Code0x_08x.
push 0x20
call fcn.0047dea0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4969f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x496b26
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0
push 0
push 0
push 0
push 0
push ebp
push 1
push 3
push 1
push 0xf01ff
lea eax, [esp + 0x3c]
push eax
mov ecx, eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x496aad
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x431
jne 0x496a58
push 0xf01ff
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x496aad
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x158
push 0x50c608
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call ebx
push eax
push str.CreateService_or_OpenService_Failed_Code0x_08x.
push 0x20
call fcn.0047dea0
lea eax, [ebp - 0x10]
add esp, 0xc
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496aa9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x496b23
mov edi, dword [sym.imp.ADVAPI32.dll_StartServiceA]
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea esp, [esp]
push 0
push 0
push esi
call edi
test eax, eax
jne 0x496ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x496aed
mov eax, ebx
inc ebx
cmp eax, 3
ja 0x496af4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x496ac0
mov edi, 1
jmp 0x496af8
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x496b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x14]
pop edi
call fcn.004ce183
add esp, 0x20
ret
Function at 0x496b80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f8f94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esp + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0x12c
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov word [esi + 0x2c], di
mov word [esi + 0x2e], di
mov word [esi + 0x30], di
mov word [esi + 0x32], di
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 3
mov dword [esi + 0x4c], 0xa
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov eax, dword [esi + 4]
cmp eax, edi
mov byte [esp + 0x14], 4
je 0x496c19
push eax
call fcn.004df1b9
add esp, 4
push 1
mov dword [esi], 1
call fcn.004df1be
mov dword [esi + 4], eax
mov cl, byte [0x4fca4e]
mov byte [eax], cl
mov eax, dword [esi + 0xc]
add esp, 4
cmp eax, edi
je 0x496c44
push eax
call fcn.004df1b9
add esp, 4
push 1
mov dword [esi + 8], 1
call fcn.004df1be
mov dword [esi + 0xc], eax
mov dl, byte [0x4fca4e]
mov byte [eax], dl
mov eax, dword [esi + 0x28]
add esp, 4
cmp eax, edi
je 0x496c70
push eax
call fcn.004df1b9
add esp, 4
push 1
mov dword [esi + 0x24], 1
call fcn.004df1be
mov dword [esi + 0x28], eax
mov cl, byte [0x4fca4e]
add esp, 4
mov byte [eax], cl
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x49dff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f929f
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.00496d40
xor edi, edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], edi
call fcn.00496d40
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00496d40
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
lea ecx, [esi + 0x60]
mov byte [esp + 0x14], 5
call fcn.00496d40
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49e076
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f929f
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.0044e880
mov eax, dword [esi + 0x5c]
test eax, eax
mov byte [esp + 0x14], 4
je 0x49e0b7
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0044e880
push ecx
push 0x18
push eax
call fcn.004cedc1
push edi
call fcn.004df1b9
add esp, 4
mov eax, dword [esi + 0x54]
test eax, eax
mov byte [esp + 0x14], 3
je 0x49e0e0
mov edx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0044e880
push edx
push 0x18
push eax
call fcn.004cedc1
push edi
call fcn.004df1b9
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
mov byte [esp + 0x14], 2
je 0x49e109
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.0044e880
push ecx
push 0x18
push eax
call fcn.004cedc1
push edi
call fcn.004df1b9
add esp, 4
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.0044e880
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 0
call fcn.0044e880
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0044e880
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4bc420
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f9b8f
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 [0x52e9d8], esi
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x18], ebx
mov dword [esi], 0x50d440
call fcn.00401270
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x24], 0x50d3cc
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], 0x50d3d8
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 0x4fca4e
lea ecx, [esi + 0x5c]
mov byte [esp + 0x1c], 3
call fcn.00401fd0
push 0x4fca4e
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 4
call fcn.00401fd0
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], 0xffffffff
mov eax, dword [esi + 0x28]
cmp eax, ebx
mov byte [esp + 0x18], 5
je 0x4bc4db
push eax
call fcn.004df1b9
add esp, 4
mov dword [esi + 0x28], ebx
push 0xc8
call fcn.004df1be
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 0x4bc510
push eax
call fcn.004df1b9
add esp, 4
mov dword [esi + 0x44], ebx
push 0x320
call fcn.004df1be
add esp, 4
mov edi, eax
mov dword [esi + 0x44], edi
xor eax, eax
mov ecx, 0xc8
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
pop edi
mov dword [esi + 0x48], 0xc8
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4f9fae
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], 0x50bb18
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], 0x50bb24
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.004de8c3
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4c0230
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4fa178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea ecx, [esp + 8]
call fcn.00477f70
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.00479bb0
test eax, eax
lea ecx, [esp + 8]
je 0x4c02e3
push esi
call fcn.004e438c
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.004e4432
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00477f90
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.00477f90
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4c0e90
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4fa257
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.004df219
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.004df219
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.004df219
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.004df219
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.004df219
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.004df219
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.004c07e0
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 6
call fcn.00477f70
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 7
call fcn.00477f70
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 8
call fcn.00477f70
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], ecx
mov edx, dword [esp + 0x34]
mov dword [esi + 0xa0], edx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0xac], 0x50e158
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], edi
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], 0x50e164
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], ecx
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 0xb
call fcn.004c0ab0
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0xa0]
cmp eax, 0x100
mov dword [esi + 0x98], edx
jbe 0x4c1050
mov dword [esi + 0xa0], 0x100
jmp 0x4c105e
cmp eax, edi
jne 0x4c105e
mov dword [esi + 0xa0], 4
mov eax, dword [esp + 0x38]
mov dword [esi + 0xa4], eax
cmp eax, edi
mov eax, esi
jne 0x4c1095
mov ecx, dword [esp + 0x3c]
pop edi
mov dword [esi + 0xa4], 0x1f4
mov dword [esi + 0xa8], 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 + 0xa8], edx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24
Function at 0x4c2840
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4fa3e8
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.004e4494
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.004e472c
test eax, eax
je 0x4c28da
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 0x4c28ca
push ebx
push 0x40000000
lea ecx, [esp + 0x14]
call fcn.004e435a
mov ebx, 1
lea ecx, [esp + 0xc]
call fcn.004e4432
mov esi, dword [esi]
push 6
push esi
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004e44d3
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 0x4c5764
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 0x4c57b7
call fcn.004ea64b
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4c57b7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4c57ad
xor eax, eax
jmp 0x4c58d0
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 0x4c57e7
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 0x4c57e7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4c58cd
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4c5814
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004b5c30
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4c58cd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4c585d
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4c585d
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4c5857
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004b5c30
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4c58bd
and dword [ebp + 0xc], 0
jmp 0x4c58bd
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4c58bd
push 0xc
call fcn.004df18e
mov esi, eax
test esi, esi
pop ecx
je 0x4c589f
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 0x4c58a1
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4c58b8
push dword [ebp - 8]
call fcn.004de497
jmp 0x4c58bd
call fcn.004de46e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4c5822
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4d0b80
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.004d0660
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d0c1b
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 [0x5309ec]
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 0x4d0c1b
cmp eax, 1
je 0x4d0c3c
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 0x4d0c1b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4d0be8
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4d0c17
xor eax, eax
inc eax
jmp 0x4d0c5b
cmp edi, eax
jae 0x4d0c1f
xor eax, eax
jmp 0x4d0c5b
cmp eax, esi
jae 0x4d0c26
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 [0x5309ec]
jmp 0x4d0c3f
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 0x4d1678
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x512ba8
call fcn.004d1f08
mov edi, 0x94
mov eax, edi
call fcn.004d0660
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 [0x5309ec], ecx
mov eax, dword [esi + 4]
mov dword [0x5309f8], eax
mov edx, dword [esi + 8]
mov dword [0x5309fc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5309f0], esi
cmp ecx, 2
je 0x4d16d8
or esi, 0x8000
mov dword [0x5309f0], esi
shl eax, 8
add eax, edx
mov dword [0x5309f4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4d1713
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d1713
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4d172b
cmp eax, 0x20b
je 0x4d1718
mov dword [ebp - 0x1c], esi
jmp 0x4d173f
cmp dword [ecx + 0x84], 0xe
jbe 0x4d1713
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4d1739
cmp dword [ecx + 0x74], 0xe
jbe 0x4d1713
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004d5f2c
pop ecx
test eax, eax
jne 0x4d1753
push 0x1c
call fcn.004d1654
pop ecx
call fcn.004d30f4
test eax, eax
jne 0x4d1764
push 0x10
call fcn.004d1654
pop ecx
call fcn.004d8d19
mov dword [ebp - 4], esi
call fcn.004d8b1b
test eax, eax
jge 0x4d177d
push 0x1b
call fcn.004d162f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5322d0], eax
call fcn.004d89f9
mov dword [0x5309dc], eax
call fcn.004d8957
test eax, eax
jge 0x4d17a3
push 8
call fcn.004d162f
pop ecx
call fcn.004d8724
test eax, eax
jge 0x4d17b4
push 9
call fcn.004d162f
pop ecx
push 1
call fcn.004d2246
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4d17ca
push eax
call fcn.004d162f
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004d86c7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4d17eb
movzx eax, word [ebp - 0x40]
jmp 0x4d17ee
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004dcd7e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4d180c
push edi
call fcn.004d2373
call fcn.004d2395
jmp 0x4d183e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004d1f43
ret
Function at 0x4d22b0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x512be0
call fcn.004d1f08
push 8
call fcn.004d4c9b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x530a2c], esi
jne 0x4d22e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x530a28], esi
mov al, byte [ebp + 0x10]
mov byte [0x530a24], al
cmp dword [ebp + 0xc], edi
jne 0x4d232e
cmp dword [0x5322c8], edi
je 0x4d231e
mov eax, dword [0x5322c4]
sub eax, 4
mov dword [0x5322c4], eax
cmp eax, dword [0x5322c8]
jb 0x4d231e
mov eax, dword [eax]
cmp eax, edi
je 0x4d22ff
call eax
jmp 0x4d22ff
push 0x52a23c
mov eax, 0x52a234
call fcn.004d222e
pop ecx
push 0x52a248
mov eax, 0x52a240
call fcn.004d222e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4d235f
cmp dword [ebp + 0x10], edi
jne 0x4d236d
mov dword [0x530a2c], esi
push dword [ebp + 8]
call fcn.004d21ec
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4d236c
push 8
call fcn.004d4be6
pop ecx
ret
call fcn.004d1f43
ret