joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
push 0x1418
call fcn.0043b150
mov esi, eax
add esp, 4
test esi, esi
je 0x403b3e
mov eax, dword [ebp + 8]
push 0x1000
lea edi, [esi + 4]
push 0
push edi
mov dword [esi], eax
mov dword [esi + 0x1414], 1
call fcn.0044e220
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403b26
push 0x800
push eax
push edi
call fcn.0044f1bb
add esp, 0xc
push 0x410
lea ecx, [esi + 0x1004]
push 0
push ecx
call fcn.0044e220
add esp, 0xc
jmp 0x403b40
xor esi, esi
xor eax, eax
mov edx, 0x403bb0
mov edi, vtable.CSimpleThread.0
mov dword [esp + 8], edi
mov dword [esp + 0x20], 0x403bb0
mov dword [esp + 0x24], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
test edx, edx
je 0x403b95
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x403bb0
push 0
push 0
call fcn.004506de
add esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
test eax, eax
je 0x403ba4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x403c20
Capabilities:
Delete file
Download url
Receive data

Disassembly:
sub esp, 0x414
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x403cd6
test eax, eax
je 0x403c7c
cmp word [eax], 0
je 0x403c7c
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x403cd6
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044e20c
add esp, 0x414
ret 4
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0044e220
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [esp + 0xc]
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x403cd6
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044e20c
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0044e20c
add esp, 0x414
ret 4
Function at 0x403e00
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46bb51
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x830]
mov dword fs:[0], eax
mov edi, dword [esp + 0x840]
mov eax, dword [esp + 0x844]
mov ecx, dword [esp + 0x848]
mov edx, dword [esp + 0x84c]
mov dword [esp + 0x20], vtable.CResourceUnpack.0
lea esi, [esp + 0x18]
push esi
push edx
push ecx
xor ebx, ebx
mov dword [esp + 0x844], ebx
push eax
mov eax, dword [0x4891e8]
mov ecx, dword [eax + 0x28]
push 0x4891e8
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call ecx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
cmp eax, ebx
je 0x403ef5
mov edx, dword [0x487cf8]
mov eax, dword [edx + 0xc]
mov ecx, 0x487cf8
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x844], 1
call fcn.0040d860
test eax, eax
jne 0x403efc
mov byte [esp + 0x838], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403ef5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403fdd
push 0x800
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0044e220
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x477744
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x83c], 2
call fcn.004032d0
mov ebp, dword [esp + 0x1c]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
call fcn.0040dda0
add edi, 0x2a4
lea eax, [esp + 0x18]
call fcn.00402b40
mov eax, dword [edi]
push eax
call fcn.0043b360
mov edi, dword [edi]
add esp, 4
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x10]
mov byte [esp + 0x838], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403fb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x838], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x830]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0044e20c
add esp, 0x828
ret 0x10
Function at 0x4046a0
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.00404550
test eax, eax
jne 0x4046e1
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4046dc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4046e1
push esi
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x4046e1
push 1
call fcn.0044dda0
push eax
push esi
call fcn.0044dfb0
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4046f0
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
call fcn.00404550
mov esi, dword [esp + 0xc]
test eax, eax
jne 0x404733
test esi, esi
je 0x40472c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404733
push esi
call fcn.004045d0
add esp, 4
test eax, eax
jne 0x404733
push 1
call fcn.0044dda0
push eax
push esi
call fcn.0044dfb0
add esp, 0xc
xor eax, eax
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ecx
ret 4

Function at 0x404b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
cmp dword [eax + 8], 5
jne 0x404be3
cmp dword [eax + 0xc], 1
jb 0x404be3
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0044e220
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404be3
lea edx, [esp + 8]
push str.Service_Pack_2
push edx
call fcn.0044f048
add esp, 8
test eax, eax
jl 0x404be3
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044e20c
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.0044e20c
add esp, 0x214
ret 4

Function at 0x404c00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push esi
lea ecx, [esp + 0xc]
push ecx
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x404c4a
mov edx, dword [esp]
push edx
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404c86
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c50
sub eax, edx
sar eax, 1
mov dword [esp], eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x404c7d
mov ecx, 0x5c
mov word [esi + eax*2], cx
mov eax, dword [esp]
xor edx, edx
mov word [esi + eax*2 + 2], dx
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x404c90
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0044f150
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x200c], eax
push 0x1fff
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.0044e220
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x404d29
cmp eax, 0x1fff
ja 0x404d29
lea edx, [esp + 0xc]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404d29
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x477998
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404d29
mov eax, dword [esp]
movzx ecx, word [eax + 0xa]
mov dword [edi], ecx
mov eax, 1
mov ecx, dword [esp + 0x200c]
xor ecx, esp
call fcn.0044e20c
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.0044e20c
add esp, 0x2010
ret

Function at 0x404ea0
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x487540]
test eax, eax
jl 0x404edd
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044e20c
add esp, 0x144
ret 4
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x487540], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.0044e220
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x404f4d
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x404fa1
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404fa1
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x404f7f
cmp ax, 6
jne 0x404fa1
mov eax, 1
mov dword [0x487540], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044e20c
add esp, 0x144
ret 4
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044e20c
add esp, 0x144
ret 4
Function at 0x407420
Capabilities:
Access peb ldr_data
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46b8ab
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.0044f150
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x13c]
push 0x477680
xor ebx, ebx
mov eax, ebp
call fcn.00402ba0
lea eax, [esi + 0x138]
push 0x477680
mov dword [esp + 0x24], eax
call fcn.00402ba0
mov eax, dword [0x487cf8]
mov edx, dword [eax + 0xc]
mov ecx, 0x487cf8
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.0044e220
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0xfc]
push ecx
mov ebx, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x407526
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40751f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407611
cmp dword [esp + 0x18], ebx
jne 0x4074f8
cmp word [esp + 0x24], 0
je 0x4074f8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
jne 0x407562
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x407513
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00402ae0
mov ecx, dword [esi + 0x11c]
mov edi, dword [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x4075bc
mov ecx, dword [esi + 0x118]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x4075bc
lea ecx, [esp + 0x14]
call fcn.00402ac0
xor eax, eax
jmp 0x407611
push 0x800
lea ecx, [esp + 0x828]
push 0
push ecx
call fcn.0044e220
add esp, 0xc
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040dca0
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
call fcn.00402b40
lea edx, [esp + 0x824]
mov edi, ebp
call fcn.00402ae0
lea ecx, [esp + 0x14]
call fcn.00402ac0
mov eax, 1
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0044e20c
add esp, 0x1020
ret
Function at 0x407ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46bafb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100c
call fcn.0044f150
mov eax, dword [0x485d30]
xor eax, esp
mov dword [esp + 0x1008], eax
push esi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x1018]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0044e220
mov esi, dword [esi + 0x138]
add esp, 0xc
push str.i18ni18n.ini
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x800
lea edx, [esp + 0x810]
push 0
push edx
call fcn.0044e220
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0x814]
push ecx
push 0x477c74
push str.Language
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x810]
call fcn.00408120
lea eax, [esp + 8]
push eax
mov dword [esp + 0x1024], 0
call fcn.00405340
mov esi, eax
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1018]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0044e20c
mov esp, ebp
pop ebp
ret 4

Function at 0x408b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x408b27
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408b58
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408b54
cmp esi, eax
jae 0x408b58
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x408b44
cmp esi, eax
jb 0x408b5e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40a120
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46b798
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485d30]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x44]
mov eax, dword [0x489470]
mov ecx, dword [eax + 8]
push 0x489470
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x40a16f
mov eax, 0x80004005
jmp 0x40a28a
mov eax, dword [esi]
test eax, eax
je 0x40a17d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi], 0
mov ecx, dword [edi]
mov edx, dword [ecx + 0x78]
push esi
push edi
call edx
mov dword [esp + 0x44], eax
test eax, eax
jge 0x40a199
jmp 0x40a28a
lea edi, [ebp + 8]
call fcn.0040a030
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x40a1b6
push 0x80004003
call fcn.0043dab0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x40a1d0
push 0x80004003
call fcn.0043dab0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x40a1e7
mov eax, dword [eax]
jmp 0x40a1e9
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a256
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.00404830
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x40a217
push 0x80004003
call fcn.0043dab0
mov ebx, dword [eax]
mov edi, dword [edx]
lea ecx, [esp + 0x18]
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov ecx, dword [edi + 0x30]
push edx
call ecx
lea edx, [esp + 0x1c]
push edx
mov edi, eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40a25a
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x40a270
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x40a274
test edi, edi
jge 0x40a288
mov eax, dword [esi]
test eax, eax
je 0x40a288
mov dword [esi], 0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x40a760
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x480800
push 0x450240
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2008
call fcn.0044f150
mov eax, dword [0x485d30]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0xa14]
mov esi, dword [ebp + 0xa18]
mov dword [ebp - 0x1c], esi
xor ebx, ebx
cmp esi, ebx
je 0x40a914
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a7d0
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x40a914
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push edi
mov ecx, dword [eax + 8]
call ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x40a813
push 0x800
push ebx
lea edx, [ebp]
push edx
call fcn.0044e220
mov dword [ebp - 0x20], ebx
push 0x2000
push ebx
lea eax, [ebp - 0x2020]
push eax
call fcn.0044e220
add esp, 0x18
lea ecx, [ebp - 0x20]
push ecx
push 0x800
lea edx, [ebp - 0x2020]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40a914
push 0x104
push esi
lea eax, [ebp + 0x800]
push eax
call fcn.0044f1bb
lea ecx, [ebp + 0x800]
push ecx
call fcn.00450f40
add esp, 0x10
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x40a914
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [ebp - 0x1c]
lea esi, [ebp + esi*4 - 0x2020]
mov edx, dword [esi]
push edx
lea ebx, [ebp]
call fcn.0040abd0
test eax, eax
je 0x40a904
mov eax, ebx
push eax
call fcn.00450f40
add esp, 4
mov ecx, ebx
lea eax, [ebp + 0x800]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a8dc
test dx, dx
je 0x40a8d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a8dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a8b6
xor eax, eax
jmp 0x40a8e1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a904
mov eax, dword [esi]
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x40a904
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x20]
jb 0x40a88a
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.0044e20c
add ebp, 0xa0c
mov esp, ebp
pop ebp
ret 8
Function at 0x40a940
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x480e08
push 0x450240
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2018
call fcn.0044f150
mov eax, dword [0x485d30]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0xa08], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 0xa14]
mov edi, dword [ebp + 0xa18]
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0xa1c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0xa20]
mov dword [ebp - 0x30], ecx
test edi, edi
je 0x40ab17
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a9c0
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
cmp eax, 4
jl 0x40ab17
cmp eax, 0x104
jg 0x40ab17
mov dword [ebp - 4], 0
mov edx, dword [ebx]
push ebx
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x40aa11
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.0044e220
mov dword [ebp - 0x1c], 0
push 0x2000
push 0
lea edx, [ebp - 0x2030]
push edx
call fcn.0044e220
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea ecx, [ebp - 0x2030]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40ab17
push 0x104
push edi
lea edx, [ebp + 0x800]
push edx
call fcn.0044f1bb
lea eax, [ebp + 0x800]
push eax
call fcn.00450f40
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x28], esi
push esi
call fcn.0040c8c0
mov dword [ebp - 0x20], eax
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x40ab17
mov eax, dword [ebp + edi*4 - 0x2030]
cmp esi, eax
je 0x40ab11
cmp dword [ebp - 0x20], eax
je 0x40ab11
push eax
lea ebx, [ebp]
call fcn.0040abd0
test eax, eax
je 0x40ab11
mov ecx, ebx
push ecx
call fcn.00450f40
mov edx, dword [ebp - 0x2c]
push edx
mov eax, ebx
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.00450d0d
add esp, 0x10
test eax, eax
jne 0x40ab11
mov eax, dword [ebp + edi*4 - 0x2030]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40aafa
mov esi, eax
call fcn.0040abb0
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40ab11
mov edx, dword [ebp - 0x30]
push edx
push edi
mov edx, dword [ebp - 0x1c]
push edx
push eax
lea eax, [ebp]
push eax
call ecx
inc edi
cmp edi, dword [ebp - 0x1c]
jb 0x40aa9b
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa08]
xor ecx, ebp
call fcn.0044e20c
add ebp, 0xa0c
mov esp, ebp
pop ebp
ret 0x10