joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ac00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521bd1
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x595be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x21d], 0
lea ecx, [ebp - 0x21c]
call fcn.0042a230
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x43adc4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x43ac7f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43ae50
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00428d50
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0043b7a0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x43acc4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43ae50
mov eax, dword [ebp - 0x224]
push eax
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0043b7f0
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x22c], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042d650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00428a40
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x43ada3
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0043b7a0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x43ad53
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43ae50
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0043b7f0
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x230]
push edx
lea ecx, [ebp - 0x21c]
call fcn.0042d650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00428a40
push 0x5632b4
lea ecx, [ebp - 0x21c]
call fcn.00432aa0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00432aa0
jmp 0x43add3
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00428d50
lea ecx, [ebp - 0x21c]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x43ae2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 2
je 0x43ae1b
cmp dword [ebp - 0x228], 3
je 0x43ae1b
cmp dword [ebp - 0x228], 0x15
jne 0x43ae2f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43ae50
mov byte [ebp - 0x21d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
xor edx, edx
jne 0x43ac32
mov al, byte [ebp - 0x21d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fdc6a
mov esp, ebp
pop ebp
ret
Function at 0x43b180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x43b1a4
push str.ReadBinaricFile_map_error
mov ecx, dword [ebp + 0x14]
call fcn.00428d50
jmp 0x43b1e4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b1dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadBinaricFile_ReadFile_error__d
mov eax, dword [ebp + 0x14]
push eax
call fcn.0042a490
add esp, 0xc
jmp 0x43b1e4
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x43b18d
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x455e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524938
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x20]
push eax
push 0x5670f4
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
call fcn.0042a230
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x455fe3
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004fe866
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0x5670d8
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x455fd1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0x567154
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x455fd1
cmp dword [ebp - 0x24], 0
je 0x455fd1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x455fd1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 0x56713c
lea eax, [ebp - 0x1c]
push eax
call fcn.0042a490
add esp, 0x18
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.004fe861
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00428920
mov ecx, dword [ebp - 0x2c]
or ecx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00428a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x456750
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524890
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
call fcn.004565c0
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042d620
movzx ecx, al
test ecx, ecx
je 0x4567cb
push 0x567244
mov ecx, dword [ebp + 8]
call fcn.00428940
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov eax, dword [ebp + 8]
jmp 0x45692f
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402a70
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
push 0x567370
lea ecx, [ebp - 0x24]
call fcn.00428940
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4568fc
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004fe866
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402a70
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4568ea
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x56736c
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4568ea
cmp dword [ebp - 0x2c], 0
je 0x4568ea
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x4568ea
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 0x567354
lea eax, [ebp - 0x24]
push eax
call fcn.0042a490
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004fe861
add esp, 4
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.00428920
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x456fc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524890
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00456e20
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0042d620
movzx ecx, al
test ecx, ecx
je 0x45703b
push 0x567668
mov ecx, dword [ebp + 8]
call fcn.00428940
mov edx, dword [ebp - 0x18]
or edx, 1
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov eax, dword [ebp + 8]
jmp 0x45719f
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402a70
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
push 0x567660
lea ecx, [ebp - 0x24]
call fcn.00428940
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x45716c
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004fe866
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402a70
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x45715a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x56756c
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x45715a
cmp dword [ebp - 0x2c], 0
je 0x45715a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x45715a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push str._d._d._d._d
lea eax, [ebp - 0x24]
push eax
call fcn.0042a490
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.004fe861
add esp, 4
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.00428920
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x457300
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524a08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x10], 0x80000000
jae 0x45739c
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x1c], 6
jb 0x4573c2
cmp dword [ebp - 0x18], 2
jb 0x4573c2
mov edx, dword [ebp + 8]
push edx
call fcn.00457680
add esp, 4
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
jmp 0x457415
lea ecx, [ebp - 0x20]
call fcn.0042a230
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push str._d._d___d_
lea ecx, [ebp - 0x20]
push ecx
call fcn.0042a490
add esp, 0x14
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.00428920
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00428a40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4578f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xffff
movzx eax, ax
and eax, 0xff
movzx ecx, al
cmp ecx, 5
jbe 0x457918
mov dword [ebp - 4], 1
jmp 0x45791f
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x457d40
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524af0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x18]
call fcn.0042a230
mov dword [ebp - 4], 0
call fcn.0050224d
push eax
push str.tempo__d
lea eax, [ebp - 0x18]
push eax
call fcn.0042a490
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0x2001f
push 0
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x457dfa
lea ecx, [ebp - 0x18]
call fcn.00429940
push eax
lea ecx, [ebp - 0x18]
call fcn.00402a70
push eax
push 1
lea ecx, [ebp - 0x18]
call fcn.00402a70
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x457df0
lea ecx, [ebp - 0x18]
call fcn.00402a70
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x457f1e
lea ecx, [ebp - 0x14]
call fcn.0042a230
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.ProgramFiles_x86_
call fcn.00428940
mov dword [ebp - 0x2c], eax
call fcn.00437ee0
add esp, 8
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
jne 0x457e5b
lea edx, [ebp - 0x14]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x567a70
call fcn.00428940
mov dword [ebp - 0x34], eax
call fcn.00437ee0
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.0042d620
movzx eax, al
test eax, eax
jne 0x457f12
lea ecx, [ebp - 0x14]
call fcn.00429940
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00439190
movzx ecx, ax
cmp ecx, 0x5c
je 0x457e97
push 0x567a6c
lea ecx, [ebp - 0x14]
call fcn.00432aa0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00432ad0
lea ecx, [ebp - 0x24]
call fcn.0042a230
mov byte [ebp - 4], 2
push 1
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0042f780
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x457ece
mov byte [ebp - 0xd], 0
jmp 0x457f06
lea ecx, [ebp - 0x20]
call fcn.0042a230
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00428920
mov dword [ebp - 0x3c], eax
call fcn.0042f3a0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00428a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00428a40
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xf], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00428a40
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x457f50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524b3c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x595be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x240]
call fcn.0042a230
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.0042a230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.0042a230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.0042a230
mov byte [ebp - 4], 3
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x26c], 0x80004005
mov dword [ebp - 0x258], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x248], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x45805b
mov dword [ebp - 0x264], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.00428a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00428a40
mov eax, dword [ebp - 0x264]
jmp 0x4581de
push 0x22c
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00503b40
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45816a
mov eax, dword [ebp - 0x248]
cmp eax, dword [ebp - 0x234]
jne 0x45814e
mov ecx, dword [ebp - 0x248]
mov dword [ebp - 0x258], ecx
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x240]
call fcn.00428d50
lea ecx, [ebp - 0x240]
call fcn.004394b0
push 0
push str.explorer.exe
lea ecx, [ebp - 0x240]
call fcn.00439430
cmp eax, 0xffffffff
jne 0x45814e
push 0
push str.winlogon.exe
lea ecx, [ebp - 0x240]
call fcn.00439430
cmp eax, 0xffffffff
jne 0x45814e
push 0
push 0x567af4
lea ecx, [ebp - 0x240]
call fcn.00439430
cmp eax, 0xffffffff
jne 0x45814e
push 0
push str.svchost.exe
lea ecx, [ebp - 0x240]
call fcn.00439430
cmp eax, 0xffffffff
jne 0x45814e
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x250], 1
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4580a1
cmp dword [ebp - 0x250], 1
je 0x45807b
cmp dword [ebp - 0x244], 0
je 0x45818d
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x258]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
call fcn.00428a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00428a40
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fdc6a
mov esp, ebp
pop ebp
ret
Function at 0x4662b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x595be0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], 1
mov ecx, 0x59c7f0
call fcn.00401130
mov dword [ebp - 0x22c], eax
push 0xf0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4664d7
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4664d7
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x4664d7
cmp dword [ebp - 0x21c], 0
je 0x4664d7
mov edx, dword [ebp - 0x210]
movzx eax, word [edx]
test eax, eax
je 0x4664d7
mov ecx, dword [ebp - 0x210]
mov dx, word [ecx]
mov word [ebp - 0x218], dx
mov eax, dword [ebp - 0x210]
add eax, 2
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov dx, word [ecx]
mov word [ebp - 0x214], dx
mov eax, dword [ebp - 0x210]
add eax, 2
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x210]
add eax, 4
mov dword [ebp - 0x210], eax
movzx ecx, word [ebp - 0x214]
cmp ecx, 0x403
jne 0x466436
mov edx, dword [ebp - 0x210]
push edx
lea ecx, [ebp - 0x108]
call fcn.00466e00
lea ecx, [ebp - 0x108]
call fcn.00402a70
push eax
push 0
push 0x143
movzx eax, word [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x224]
add ecx, 4
call fcn.0045a590
cmp eax, 0xffffffff
jne 0x466426
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x108]
call fcn.0042a280
jmp 0x4664c0
movzx ecx, word [ebp - 0x214]
cmp ecx, 0x1234
jne 0x4664c0
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], 0xffffffff
mov edx, dword [ebp - 0x210]
push edx
lea ecx, [ebp - 0x20c]
call fcn.00466e00
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
call fcn.00402a70
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x20c]
call fcn.0042a280
lea eax, [ebp - 0x258]
push eax
push 0
push 0x40b
movzx ecx, word [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x224]
add ecx, 4
call fcn.0045a590
cmp eax, 0xffffffff
jne 0x4664c0
mov dword [ebp - 0x21c], 0
mov edx, dword [ebp - 0x210]
add edx, dword [ebp - 0x230]
mov dword [ebp - 0x210], edx
jmp 0x466354
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdc6a
mov esp, ebp
pop ebp
ret 4