joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ecf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
xor ebx, ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a24
mov eax, dword [ebp - 8]
call fcn.00404a24
mov eax, dword [ebp - 0xc]
call fcn.00404a24
xor eax, eax
push ebp
push 0x51eec9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov ecx, 0x51eee0
mov edx, dword [ebp - 4]
call fcn.00404880
lea edx, [ebp - 0x10]
mov eax, dword [0x524b34]
call fcn.0051de3c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x51eef4
call fcn.004063f8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x51ef04
call fcn.004063f8
lea eax, [ebp - 0x1c]
push eax
push 0x19
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x129]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x129]
mov ecx, 0x105
call fcn.00404de4
push dword [ebp - 0x130]
push 0x51ef18
lea eax, [ebp - 0x134]
mov edx, dword [ebp - 8]
call fcn.00404dfc
push dword [ebp - 0x134]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404e88
lea eax, [ebp - 0x138]
mov edx, dword [ebp - 0x24]
call fcn.004047fc
mov eax, dword [ebp - 0x138]
call fcn.004095bc
test al, al
jne 0x51ee66
mov eax, dword [ebp - 0xc]
call fcn.00404a34
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.00404a34
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 0x20]
call fcn.00409760
mov eax, dword [ebp - 0x13c]
call fcn.00404a34
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push 0
mov eax, dword [ebp - 0x24]
call fcn.00404e0c
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51eed0
lea eax, [ebp - 0x13c]
mov edx, 2
call fcn.00404598
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.00404c98
lea eax, [ebp - 0x24]
call fcn.00404c80
lea eax, [ebp - 0x20]
call fcn.00404574
lea eax, [ebp - 0x18]
call fcn.004063b4
lea eax, [ebp - 0x14]
call fcn.004063b4
lea eax, [ebp - 0x10]
call fcn.004063b4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404598
ret
Function at 0x51f9b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51fa42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404574
mov eax, 0x104
call fcn.00409b60
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push esi
mov eax, dword [0x524f38]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x51fa1b
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040476c
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
mov eax, dword [ebp - 8]
call fcn.00409bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51fa49
lea eax, [ebp - 0xc]
call fcn.004063b4
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x414dd5
Capabilities:
Encode data using xor

Disassembly:
xor dword [eax], edi
add edx, 0x5b2c5d13
add eax, 4
add edx, esi
push edx
mov edx, dword [esp]
add esp, 4
add esi, edx
cmp eax, ebx
jne fcn.00414dd5
inc edx
ret
Function at 0x4012a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403df4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403df0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403df0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403df8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40136d
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401354
mov eax, dword [0x403df4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp dword [0x59b6dc], 0
push ebx
mov ebx, dword [0x59ae68]
jne 0x401e2d
push esi
push 0xa
push 0x11
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401e2c
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e2b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.0043ced0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401e24
push eax
call fcn.004017c0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404f50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x80]
sub esp, 0x1c
push ebp
push esi
add eax, ebx
cmp dword [eax + 0xc], 0
push edi
lea edi, [eax + 0xc]
je 0x404fa8
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ecx, dword [edi]
add ecx, ebx
push ecx
push 0x456528
call ebp
test eax, eax
jne 0x404fa0
mov esi, dword [edi + 4]
add esi, ebx
cmp dword [esi], eax
je 0x404fa0
lea ebx, [ebx]
mov edx, dword [esp + 0x2c]
cmp dword [esi], edx
je 0x404fb1
add esi, 4
cmp dword [esi], 0
jne 0x404f90
add edi, 0x14
cmp dword [edi], 0
jne 0x404f71
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
push 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x20]
push ecx
push 0x40
push edx
push eax
call edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x404feb
mov dword [esi], 0x405150
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call edi
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x407380
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push 1
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [edi]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [edi]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 4], 0
lea edx, [esi + 4]
mov dword [esi + 8], esi
je 0x4073dd
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4073d9
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp]
push eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 4
mov dword [esp + 4], 7
call edx
add esp, 0x10
ret
cmp dword [ebx + 0x24], 4
jne 0x4073d9
mov ecx, dword [ebx + 0x20]
add esp, 0x10
jmp fcn.00405b50

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

Disassembly:
push 0xffffffffffffffff
push 0x44d257
mov eax, dword fs:[0]
push eax
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.autodlg::dialog_base.0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0xc], 1
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov byte [esp + 0xc], 2
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov byte [esp + 0xc], 3
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov byte [esp + 0xc], 4
mov dword [eax + 0x60], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x407e20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x34
push ebx
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00407a10
lea ebx, [esi + 0xc]
call fcn.00406030
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x40]
push 0
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], edx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov edx, dword [esi + 0x60]
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 1
call edx
mov eax, dword [esi + 0x60]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x60]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x60], 0
pop ebx
setne al
add esp, 0x34
ret 4
Function at 0x4088c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x46a070]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x14]
push eax
push esi
push 0x135
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x408927
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [edi + 0x10]
test bl, 1
mov dword [esp + 0x1c], ebx
push 0xf
je 0x40893e
push 0xa
lea edx, [esp + 0x14]
push edx
jmp 0x408945
push 5
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawEdge]
mov edx, dword [edi + 0x14]
push 0x100
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test bl, 4
je 0x4089e6
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf0f0f0
push esi
call ebx
lea eax, [esp + 0x20]
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408980
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
mov edi, dword [sym.imp.USER32.dll_DrawTextA]
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov eax, 1
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
push 0x787878
push esi
call ebx
lea eax, [esp + 0x20]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4089c5
push 0x25
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call edi
mov ebx, dword [esp + 0x1c]
jmp 0x408a0f
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4089f0
push 0x25
lea ecx, [esp + 0x10]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.USER32.dll_DrawTextA]
test bl, 0x10
je 0x408a35
mov eax, 3
add dword [esp + 0x10], eax
add dword [esp + 0xc], eax
sub dword [esp + 0x14], eax
sub dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00439d86
mov esp, ebp
pop ebp
ret
Function at 0x40d610
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 0x40d627
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d658
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40d654
cmp esi, eax
jae 0x40d658
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40d644
cmp esi, eax
jb 0x40d65e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40d8d0
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x104
mov eax, dword [0x46a070]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [0x59ae68]
push ebx
mov ebx, dword [0x59b6b4]
push 0xa
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40d917
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00439d86
add esp, 0x104
ret
mov ecx, dword [0x59ae68]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d8ff
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xff
push 0
push 0x59ad68
mov esi, eax
call fcn.0043cda0
mov edx, dword [0x59ae68]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 0xc
push 0xfe
push 0x59ad68
push 0x90
push edx
call edi
mov dword [0x597948], 0x59ad68
cmp word [esi + 6], 0
je 0x40d97c
call fcn.00401d80
test ebx, ebx
jne 0x40d9de
movzx ecx, word [esi + 2]
mov ax, word [esi]
mov word [0x595e34], cx
movsx ecx, cx
mov word [0x595e32], ax
movsx eax, ax
lea edx, [ecx - 0x28]
add ecx, 0xffffffe2
mov dword [0x59783c], eax
mov dword [0x597850], eax
mov dword [0x597864], eax
mov dword [0x597840], edx
mov dword [0x5978ec], ecx
movzx eax, word [esi + 4]
imul eax, eax, 0x3e8
push eax
push ebx
push 0x401ef0
mov dword [0x59b6a4], 1
call fcn.00439c41
add esp, 0xc
push 0xff
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0043cda0
mov eax, dword [0x59ae68]
add esp, 0xc
push 0xfe
lea edx, [esp + 0x10]
push edx
push 0x70
push eax
call edi
test ebx, ebx
pop edi
pop esi
je 0x40da1b
lea ecx, [esp + 4]
push ecx
call fcn.0043a1a9
add esp, 4
jmp 0x40da24
lea ebx, [esp + 4]
call fcn.00401ff0
mov ecx, dword [esp + 0x104]
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00439d86
add esp, 0x104
ret
Function at 0x40e180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x46a070]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
mov esi, ecx
cmp word [esi], 0x5c
je 0x40e1c2
cmp word [esi + 2], 0x3a
je 0x40e1c2
push 0x59ab68
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x40e1ce
push esi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
push 7
push 1
push 0
push 1
push 0x40000000
lea eax, [esp + 0x20]
push eax
call fcn.0044b430
mov esi, eax
cmp esi, 0xffffffff
je 0x40e22a
mov edx, dword [esp + 0x410]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x59a92c
push 0x59a924
push 0x59a91c
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x408]
pop esi
xor ecx, esp
call fcn.00439d86
add esp, 0x408
ret
Function at 0x40e960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d448
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ecx, 0x599aa4
lea esi, [esp + 0xc]
call fcn.0040ee80
mov edi, 1
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x10]
call fcn.00402dd0
mov byte [esp + 0x30], 2
cmp dword [ebp + 8], 0
je 0x40ea1b
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], edi
mov esi, dword [eax - 0xc]
jle 0x40e9d3
mov eax, esi
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040b3d0
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push ecx
push esi
push eax
call fcn.0043a01b
mov edx, dword [esp + 0x1c]
add esp, 0x10
test edx, edx
jne 0x40e9f1
xor eax, eax
jmp 0x40ea07
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e9f6
sub eax, esi
js 0x40ea98
cmp eax, dword [edx - 8]
jg 0x40ea98
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0xc]
mov byte [eax + edx], 0
push 0x456a04
push 0x456a04
lea eax, [esp + 0x14]
push eax
call fcn.0040a300
test ebx, ebx
je 0x40eafd
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp dword [ecx - 0xc], eax
mov esi, vtable._com_error.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
je 0x40eaa2
mov byte [esp + 0x30], 3
lea edi, [esp + 0x14]
call fcn.0040e550
mov edx, dword [esp + 0xc]
push eax
push ebx
push edx
push str._s_n0x_x__s_n
lea edi, [esp + 0x20]
call fcn.0040eef0
add esp, 0x10
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], esi
je 0x40eadc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40eadc
push 0x80070057
call fcn.00402920
mov byte [esp + 0x30], 4
lea edi, [esp + 0x14]
call fcn.0040e550
push eax
push ebx
push str.0x_x__s_n
lea edi, [esp + 0x1c]
call fcn.0040eef0
add esp, 0xc
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x14], esi
je 0x40eadc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x20], 0
je 0x40eb19
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40eb19
mov ecx, dword [esp + 0x20]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40eb19
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
je 0x40eb19
push eax
push 0x456a20
lea edi, [esp + 0x18]
call fcn.0040eef0
add esp, 8
cmp dword [0x59b6b4], 0
je 0x40eb31
mov edx, dword [esp + 0x10]
push edx
call fcn.0043a1a9
add esp, 4
jmp 0x40eb45
mov eax, dword [esp + 0x10]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [esp + 0x30], 1
lea ecx, [esp + 0x10]
call fcn.00402e30
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402e30
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44eebf
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x46a070]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
xor ebp, ebp
mov dword [edi], vtable.CHVMEEHlpr.0
mov dword [edi + 0x58], ebp
mov dword [edi + 0x5c], ebp
mov dword [edi + 0x60], ebp
mov dword [esp + 0x34], ebp
mov dword [edi + 0x84], ebp
mov dword [edi + 0x88], ebp
mov dword [edi + 0x8c], ebp
mov byte [esp + 0x34], 1
lea ecx, [edi + 0x9c]
call fcn.00402dd0
mov byte [esp + 0x34], 2
lea eax, [edi + 0xa0]
push eax
call fcn.00417d50
mov byte [esp + 0x34], 3
lea ecx, [edi + 0xac]
push ecx
call fcn.004342c0
mov byte [esp + 0x34], 4
lea edx, [edi + 0x1bc]
push edx
call fcn.00417d50
mov byte [esp + 0x34], 5
mov eax, 5
mov esi, 1
push 0x88
mov dword [edi + 0x48], ebp
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x20], ebp
mov dword [edi + 4], ebp
mov dword [edi + 0x50], ebp
mov dword [edi + 0x44], ebp
mov dword [edi + 0x1b8], ebp
mov dword [edi + 0x1b4], ebp
mov dword [edi + 0x1cc], ebp
mov dword [edi + 0x1d0], ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c8], ebp
mov dword [edi + 0x40], ebp
mov dword [edi + 0x1d4], ebx
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x28], 0x13
mov dword [esp + 0x2c], 0x16
mov dword [edi + 0x134], 0x3000000
mov dword [edi + 0x138], 0x5000000
mov dword [edi + 0x13c], 0x7000000
mov dword [edi + 0x140], 0x13000000
mov dword [edi + 0x144], 0x16000000
mov dword [edi + 0x148], eax
mov dword [edi + 0x14c], esi
mov dword [edi + 0x150], esi
mov dword [edi + 0x160], ebp
mov dword [edi + 0x1a8], ebp
mov dword [edi + 0x164], ebp
mov dword [edi + 0x154], ebp
mov dword [edi + 0x1a0], ebp
mov dword [edi + 0x6c], ebp
mov dword [edi + 0x78], ebp
mov dword [edi + 0x70], ebp
mov dword [edi + 0x68], ebp
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
call fcn.0043a28c
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x34], 6
cmp eax, ebp
je 0x4157d2
mov esi, eax
call fcn.004152e0
mov edx, eax
lea esi, [ebp + 1]
jmp 0x4157d4
xor edx, edx
mov byte [esp + 0x34], 5
mov eax, ebx
mov dword [edi + 0xc], edx
call fcn.00415370
mov eax, dword [edi + 0xc]
mov dword [edi + 0x14], eax
mov dword [edi + 0x7c], esi
mov dword [edi + 0x64], ebp
mov dword [edi + 0x1ac], ebp
mov dword [edi + 0x1b0], ebp
mov dword [edi + 0x98], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x59b6d4]
lea ecx, [esp + 0x18]
xor eax, ecx
mov ecx, eax
shl ecx, 6
sub ecx, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x38], ecx
mov eax, dword [edx + 0x10]
xor eax, ecx
mov dword [edi + 0x38], eax
mov dword [esp + 0x34], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4