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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ca398
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x490c59
inc eax
mov dword [esi + 0x10], eax
jmp 0x490d6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x490c6d
mov eax, 0xffffffc7
jmp 0x490d6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x490c7e
cmp dword [esi + 8], eax
jne 0x490c6d
cmp dword [esi + 8], eax
jne 0x490c97
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x490c97
mov eax, 0xffffffc7
jmp 0x490d6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x490cab
push eax
mov ecx, ebx
call fcn.00490450
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00461010
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x490cdc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00461030
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0048fbc0
test eax, eax
mov dword [esp + 0x38], eax
je 0x490d0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ffeb0
call fcn.00461210
mov eax, dword [esp + 0x38]
jmp 0x490d6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00490a80
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x490d53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00490aa0
mov esi, eax
test esi, esi
jne 0x490d83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00490a80
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x490d25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ffeb0
call fcn.00461210
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4ffeb0
call fcn.00461210
mov eax, esi
jmp 0x490d6e

Function at 0x493eb0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x493f10
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x493f10
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x493f10
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x493f10
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x493f50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x49a0a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ca9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004c377b
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00499a40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004c36a9
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004bff6a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004bff6a
push 1
push 0
push 0
mov ecx, esi
call fcn.004bff12
push 1
push 0
push 1
mov ecx, esi
call fcn.004bff12
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c37ed
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x49a220
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ca9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004c377b
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00499a40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004c36a9
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x49a2e4
cmp dword [esp + 0x40], 1
jne 0x49a2e2
cmp ecx, eax
jge 0x49a2e4
mov eax, ecx
cmp eax, 0xc8
jge 0x49a2f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0049a0a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c37ed
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49aa70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4caa53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004be38a
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004c3a23
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c4f3f
test eax, eax
je 0x49ab8c
mov ecx, dword [esp + 0x3c]
call fcn.004c3a50
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x49ab50
push edi
mov ecx, esi
call fcn.004c10b1
mov ecx, esi
call fcn.0049acf0
cmp dword [esp + 0x38], 1
jne 0x49ab85
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004c11ec
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x49d5c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x49d5f3
push esi
call fcn.004a06b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x49d5ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x49d679
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49d662
mov eax, dword [esi + 8]
test eax, eax
je 0x49d617
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49d65e
cmp eax, 2
je 0x49d662
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49d60a
cmp eax, 3
je 0x49d63d
cmp eax, 1
jne 0x49d60a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49d60a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49d60a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0049d6a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49d688
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0049d6a0
add esp, 4
pop esi
ret

Function at 0x4a94a0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4a9543
test eax, eax
jbe 0x4a9543
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4a9543
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4a94ee
xor esi, esi
jmp 0x4a94f4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4a951f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00461aa0
add esi, eax
push esi
mov ebx, esi
call fcn.00461aa0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4a9500
pop ebp
test edi, edi
pop edi
jne 0x4a9543
test ebx, ebx
je 0x4a9543
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004adda0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4a9685
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a979d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a979d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004be7dc
mov esi, eax
test esi, esi
je 0x4a979d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4a979d
mov ecx, esi
call fcn.004a95f0
cmp edi, eax
jge 0x4a979d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4a9723
mov dword [esp + 0x34], 1
jmp 0x4a977e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4a979d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004a8ba0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4bf180
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bf1b8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004bd237
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004bd20f
jmp 0x4bf1c4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c086e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c08b0
call fcn.004c632a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c08b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c08a7
xor eax, eax
jmp 0x4c08b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c08be
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c685a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c6888
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c68a6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c67c0
jmp 0x4c68a6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c68a6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c67c0
test edi, edi
mov eax, edi
jne 0x4c6890
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x85667f5
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x446630], eax
sub eax, eax
je 0x4068c1
call 0xa8cf50d0
invalid
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x406250
Capabilities:
Parse pe header
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x4062a6
jmp 0x406397
push 0
lea ecx, [ebp - 0x154]
push ecx
push 0x40
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x4062dd
cmp dword [ebp - 0x154], 0x40
jne 0x4062dd
movzx ecx, word [ebp - 0x48]
cmp ecx, 0x5a4d
je 0x4062e2
jmp 0x406397
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x154]
push ecx
push 0xf8
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x406334
cmp dword [ebp - 0x154], 0xf8
jne 0x406334
cmp dword [ebp - 0x150], 0x4550
je 0x406336
jmp 0x406397
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x406355
jmp 0x406397
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406372
jmp 0x406397
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004063e0
test eax, eax
jne 0x406389
jmp 0x406397
mov dword [ebp - 0x58], 1
jmp 0x406397
cmp dword [ebp - 4], 0
je 0x4063a7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x4c], 0
je 0x4063b7
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], 0xffffffff
je 0x4063c7
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4063e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x4063ff
jmp 0x40649f
cmp dword [ebp + 0x10], 0x320
je 0x40640d
jmp 0x40649f
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x40642a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x40642c
jmp 0x40649f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x406445
jmp 0x40649f
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0xa
mov eax, dword [ebp + 8]
push eax
call fcn.00406d40
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40646d
cmp dword [ebp - 8], 0
je 0x40646d
cmp dword [ebp - 0xc], 0
jne 0x40646f
jmp 0x40649f
cmp dword [ebp - 0xc], 0x320
je 0x40647a
jmp 0x40649f
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040f7d0
add esp, 0xc
mov dword [ebp - 0x14], 1
jmp 0x40649f
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4072e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
mov eax, dword [0x41a178]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xb8], 0x41b13a
mov dword [ebp - 0xb4], 0x40e310
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x101
push 0x4205c0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x320
lea edx, [ebp - 0x3e0]
push edx
push 0x4205c0
call fcn.00406250
mov dword [ebp - 0x3e4], eax
cmp dword [ebp - 0x3e4], 0
je 0x4073bf
lea eax, [ebp - 0x3e0]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
movsx edx, byte [ecx]
mov dword [0x41b190], edx
mov eax, dword [ebp - 0xbc]
movsx ecx, byte [eax + 1]
mov dword [0x41b194], ecx
mov edx, dword [ebp - 0xbc]
movsx eax, byte [edx + 2]
mov dword [0x41b198], eax
push 0x100
mov ecx, dword [ebp - 0xbc]
add ecx, 0x20
push ecx
push 0x41b1a0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp - 0x98], 2
jne 0x407478
cmp dword [ebp - 0xa4], 5
jb 0x407421
mov dword [0x41b15c], 1
cmp dword [ebp - 0xa4], 5
ja 0x4073f1
cmp dword [ebp - 0xa0], 1
jb 0x4073fb
mov dword [0x41b160], 1
cmp dword [ebp - 0xa4], 6
jb 0x40740e
mov dword [0x41b164], 1
cmp dword [ebp - 0xa4], 6
jbe 0x407421
mov dword [0x41b168], 1
push 0x2e
push 0x4205c0
call fcn.0040c6b0
mov dword [ebp - 8], eax
push str..EXS
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40744d
mov dword [0x41b180], 1
cmp dword [0x41b164], 0
jne 0x407478
mov dword [ebp - 0x3e8], 2
push 4
lea eax, [ebp - 0x3e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov byte [0x4201a0], 0
cmp dword [0x41b180], 0
je 0x40756a
mov ecx, dword [ebp + 8]
mov dword [0x42084c], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x42018c], edx
mov eax, dword [ebp + 0x14]
mov dword [0x42098c], eax
mov dword [0x41bfa0], 0x110
mov dword [0x41bfa4], 1
mov dword [0x41bfa8], 1
mov dword [0x41bfac], 0
mov dword [0x41bfb0], 0
mov dword [0x41bfb4], 0
mov dword [0x41bfb8], 0
mov dword [ebp - 4], 0
jmp 0x4074fe
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jg 0x407514
mov edx, dword [ebp - 4]
mov dword [edx*4 + 0x420800], 0
jmp 0x4074f5
mov dword [0x420848], 0
mov dword [0x420990], 0
mov dword [0x420acc], 1
mov dword [0x420190], 0
mov dword [0x420844], 0
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407563
mov eax, 0xff
jmp 0x40757f
mov eax, dword [0x41b188]
jmp 0x40757f
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00407590
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f735
mov esp, ebp
pop ebp
ret 0x10