joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40391f
pop edi
pop esi
pop ebx
ret 0x14
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40393d
pop ebp
pop edi
pop esi
pop ebx
ret 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx + 4], ebp
pop ebp
pop edi
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
ret 0x14

Function at 0x403960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bd00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x485b90]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.CResourceUnpack.0
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [0x489040]
push edx
mov edx, dword [ecx + 0x28]
push eax
push 0x489040
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp eax, ebx
je 0x403a27
mov eax, dword [0x487b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x487b58
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x34], 1
call fcn.0040d380
test eax, eax
jne 0x403a3d
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403a50
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
Function at 0x403b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
push 0x1418
call fcn.0043a1f0
mov esi, eax
add esp, 4
test esi, esi
je 0x403b6e
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.0044e2b0
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x403b56
push 0x800
push eax
push edi
call fcn.0044f24b
add esp, 0xc
push 0x410
lea ecx, [esi + 0x1004]
push 0
push ecx
call fcn.0044e2b0
add esp, 0xc
jmp 0x403b70
xor esi, esi
xor eax, eax
mov edx, 0x403be0
mov edi, vtable.CSimpleThread.0
mov dword [esp + 8], edi
mov dword [esp + 0x20], 0x403be0
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 0x403bc5
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x403be0
push 0
push 0
call fcn.0045076e
add esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
test eax, eax
je 0x403bd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
sub esp, 0x414
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x410], eax
cmp word [esi], 0
mov eax, dword [esp + 0x418]
je 0x403d06
test eax, eax
je 0x403cac
cmp word [eax], 0
je 0x403cac
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x403d06
mov eax, 1
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0044e29c
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.0044e2b0
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 0x403d06
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.0044e29c
add esp, 0x414
ret 4
mov ecx, dword [esp + 0x410]
xor ecx, esp
xor eax, eax
call fcn.0044e29c
add esp, 0x414
ret 4
Function at 0x403e30
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46bcc1
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485b90]
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 [0x489040]
mov ecx, dword [eax + 0x28]
push 0x489040
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 0x403f25
mov edx, dword [0x487b58]
mov eax, dword [edx + 0xc]
mov ecx, 0x487b58
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.0040d380
test eax, eax
jne 0x403f2c
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 0x403f25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40400d
push 0x800
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.0044e2b0
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0x47753c
push esi
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x487b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x487b58
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x83c], 2
call fcn.00403300
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.0040d8c0
add edi, 0x2a4
lea eax, [esp + 0x18]
call fcn.00402b70
mov eax, dword [edi]
push eax
call fcn.0043a3f0
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 0x403fe5
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 0x404008
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.0044e29c
add esp, 0x828
ret 0x10
Function at 0x404650
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x404681
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404686
push esi
call fcn.00404580
add esp, 4
test eax, eax
jne 0x404686
call fcn.0044e050
push eax
push esi
call fcn.0044e060
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404690
Capabilities:
Check if file exists

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4046c1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4046c8
push esi
call fcn.00404580
add esp, 4
test eax, eax
jne 0x4046c8
call fcn.0044e050
push eax
push esi
call fcn.0044e060
add esp, 8
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 0x404ad0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
cmp dword [eax + 8], 5
jne 0x404b83
cmp dword [eax + 0xc], 1
jb 0x404b83
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0044e2b0
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 0x404b83
lea edx, [esp + 8]
push str.Service_Pack_2
push edx
call fcn.0044f0d8
add esp, 8
test eax, eax
jl 0x404b83
mov eax, 1
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0044e29c
add esp, 0x214
ret 4
mov ecx, dword [esp + 0x210]
xor ecx, esp
xor eax, eax
call fcn.0044e29c
add esp, 0x214
ret 4

Function at 0x404ba0
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 0x404bea
mov edx, dword [esp]
push edx
push esi
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404c26
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404bf0
sub eax, edx
sar eax, 1
mov dword [esp], eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x404c1d
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 0x404c30
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.0044f1e0
mov eax, dword [0x485b90]
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.0044e2b0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x404cc9
cmp eax, 0x1fff
ja 0x404cc9
lea edx, [esp + 0xc]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404cc9
lea eax, [esp + 8]
push eax
lea ecx, [esp + 4]
push ecx
push 0x477760
lea edx, [esp + 0x18]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404cc9
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.0044e29c
add esp, 0x2010
ret
mov ecx, dword [esp + 0x200c]
xor ecx, esp
xor eax, eax
call fcn.0044e29c
add esp, 0x2010
ret

Function at 0x404e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x487388]
test eax, eax
jl 0x404e7d
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044e29c
add esp, 0x144
ret 4
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x487388], 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.0044e2b0
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 0x404eed
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x404f41
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 0x404f41
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x404f1f
cmp ax, 6
jne 0x404f41
mov eax, 1
mov dword [0x487388], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0044e29c
add esp, 0x144
ret 4
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044e29c
add esp, 0x144
ret 4
Function at 0x407250
Capabilities:
Access peb ldr_data
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46b98b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.0044f1e0
mov eax, dword [0x485b90]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485b90]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x13c]
push 0x477478
xor ebx, ebx
mov eax, ebp
call fcn.00402bd0
lea eax, [esi + 0x138]
push 0x477478
mov dword [esp + 0x24], eax
call fcn.00402bd0
mov eax, dword [0x487b58]
mov edx, dword [eax + 0xc]
mov ecx, 0x487b58
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.0044e2b0
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 0x407356
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 0x40734f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407441
cmp dword [esp + 0x18], ebx
jne 0x407328
cmp word [esp + 0x24], 0
je 0x407328
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
jne 0x407392
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 0x407343
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00402b30
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 0x4073ec
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 0x4073ec
lea ecx, [esp + 0x14]
call fcn.00402b10
xor eax, eax
jmp 0x407441
push 0x800
lea ecx, [esp + 0x828]
push 0
push ecx
call fcn.0044e2b0
add esp, 0xc
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040d7c0
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
call fcn.00402b70
lea edx, [esp + 0x824]
mov edi, ebp
call fcn.00402b30
lea ecx, [esp + 0x14]
call fcn.00402b10
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.0044e29c
add esp, 0x1020
ret
Function at 0x409bc0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x46b878
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485b90]
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 [0x4892c8]
mov ecx, dword [eax + 8]
push 0x4892c8
lea esi, [ebp + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x409c0f
mov eax, 0x80004005
jmp 0x409d2a
mov eax, dword [esi]
test eax, eax
je 0x409c1d
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 0x409c39
jmp 0x409d2a
lea edi, [ebp + 8]
call fcn.00409ad0
xor edi, edi
mov dword [ebp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
jne 0x409c56
push 0x80004003
call fcn.0043cb40
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 0xffffffffffffffff
push eax
call edx
mov eax, dword [esi]
cmp eax, edi
jne 0x409c70
push 0x80004003
call fcn.0043cb40
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 0x409c87
mov eax, dword [eax]
jmp 0x409c89
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409cf6
mov ecx, ebx
lea edi, [esp + 0x1c]
call fcn.004047d0
mov dword [esp + 0x3c], 2
mov edx, dword [esi]
test edx, edx
jne 0x409cb7
push 0x80004003
call fcn.0043cb40
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 0x409cfa
mov edi, dword [esp + 0x44]
cmp word [esp + 0x18], 0
jne 0x409d10
mov dword [esp + 0x44], 0x80004005
mov edi, dword [esp + 0x44]
jmp 0x409d14
test edi, edi
jge 0x409d28
mov eax, dword [esi]
test eax, eax
je 0x409d28
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 0x40a200
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x480778
push 0x4502d0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2008
call fcn.0044f1e0
mov eax, dword [0x485b90]
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 0x40a3b4
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40a270
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x40a3b4
mov dword [ebp - 4], ebx
mov eax, dword [edi]
push edi
mov ecx, dword [eax + 8]
call ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x40a2b3
push 0x800
push ebx
lea edx, [ebp]
push edx
call fcn.0044e2b0
mov dword [ebp - 0x20], ebx
push 0x2000
push ebx
lea eax, [ebp - 0x2020]
push eax
call fcn.0044e2b0
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 0x40a3b4
push 0x104
push esi
lea eax, [ebp + 0x800]
push eax
call fcn.0044f24b
lea ecx, [ebp + 0x800]
push ecx
call fcn.00450fd0
add esp, 0x10
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
jbe 0x40a3b4
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.0040a670
test eax, eax
je 0x40a3a4
mov eax, ebx
push eax
call fcn.00450fd0
add esp, 4
mov ecx, ebx
lea eax, [ebp + 0x800]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a37c
test dx, dx
je 0x40a378
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a37c
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a356
xor eax, eax
jmp 0x40a381
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a3a4
mov eax, dword [esi]
push eax
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x40a3a4
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 0x40a32a
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.0044e29c
add ebp, 0xa0c
mov esp, ebp
pop ebp
ret 8
Function at 0x40a3e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0xa0c]
sub esp, 0xa0c
push 0xfffffffffffffffe
push 0x480d30
push 0x4502d0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2018
call fcn.0044f1e0
mov eax, dword [0x485b90]
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 0x40a5b7
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a460
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
cmp eax, 4
jl 0x40a5b7
cmp eax, 0x104
jg 0x40a5b7
mov dword [ebp - 4], 0
mov edx, dword [ebx]
push ebx
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x40a4b1
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.0044e2b0
mov dword [ebp - 0x1c], 0
push 0x2000
push 0
lea edx, [ebp - 0x2030]
push edx
call fcn.0044e2b0
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 0x40a5b7
push 0x104
push edi
lea edx, [ebp + 0x800]
push edx
call fcn.0044f24b
lea eax, [ebp + 0x800]
push eax
call fcn.00450fd0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x28], esi
push esi
call fcn.0040c190
mov dword [ebp - 0x20], eax
xor edi, edi
cmp dword [ebp - 0x1c], edi
jbe 0x40a5b7
mov eax, dword [ebp + edi*4 - 0x2030]
cmp esi, eax
je 0x40a5b1
cmp dword [ebp - 0x20], eax
je 0x40a5b1
push eax
lea ebx, [ebp]
call fcn.0040a670
test eax, eax
je 0x40a5b1
mov ecx, ebx
push ecx
call fcn.00450fd0
mov edx, dword [ebp - 0x2c]
push edx
mov eax, ebx
push eax
lea ecx, [ebp + 0x800]
push ecx
call fcn.00450d9d
add esp, 0x10
test eax, eax
jne 0x40a5b1
mov eax, dword [ebp + edi*4 - 0x2030]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40a59a
mov esi, eax
call fcn.0040a650
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40a5b1
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 0x40a53b
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.0044e29c
add ebp, 0xa0c
mov esp, ebp
pop ebp
ret 0x10