joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403470
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x419598
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push edi
mov eax, dword [0x421030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
cmp dword [esi + 0x54], 0
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x40354d
mov eax, dword [esi + 0x4c]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x50]
push 5
push ecx
call ebx
mov edx, dword [esi + 0x50]
push 0x41d2ec
push edx
call ebp
mov eax, dword [esi + 0x48]
push 5
push eax
call ebx
mov ecx, dword [esi + 0x48]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x422b74]
mov eax, dword [edx + 0xc]
mov ecx, 0x422b74
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push str.ck_W_vN
lea edi, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00403c40
mov ecx, dword [esi + 4]
add esp, 8
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [esp + 0x10]
push edi
push eax
call ebp
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40354d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x54], 1
jne 0x403598
mov ecx, dword [esi + 0x4c]
push 5
push ecx
call ebx
mov edx, dword [esi + 0x4c]
push 0x41d2f4
push edx
call ebp
mov eax, dword [esi + 0x50]
push 5
push eax
call ebx
mov ecx, dword [esi + 0x50]
push 0x41d300
push ecx
call ebp
mov edx, dword [esi + 0x48]
push 0
push edx
call ebx
mov eax, dword [esi + 4]
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x41d308
push eax
call ebp
cmp dword [esi + 0x54], 2
jne 0x4035e3
mov ecx, dword [esi + 0x4c]
push 5
push ecx
call ebx
mov edx, dword [esi + 0x4c]
push 0x41d314
push edx
call ebp
mov eax, dword [esi + 0x50]
push 5
push eax
call ebx
mov ecx, dword [esi + 0x50]
push 0x41d2ec
push ecx
call ebp
mov edx, dword [esi + 0x48]
push 0
push edx
call ebx
mov eax, dword [esi + 4]
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x41d320
push eax
call ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404120
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push eax
call edi
mov ecx, dword [esi + 4]
push 0x3ef
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x20]
push edx
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x28]
push 0x3f2
push eax
call edi
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x2c]
push 0x3f3
push edx
mov dword [esp + 0x14], ecx
call edi
mov ecx, dword [esp + 0xc]
push ecx
push eax
call ebx
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edx
call ebx
push 0x3f1
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 4]
push edx
call ebx
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x4041cb
lea ecx, [esp + 0x18]
push ecx
push edi
call ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 0
sub edx, eax
push edx
mov edx, dword [esp + 0x20]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4045a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41994f
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x421030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CInstallDlg.0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [esp + 0x14], 1
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x14], 2
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [esp + 0x14], 3
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [esp + 0x14], 4
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x48], eax
mov byte [esp + 0x14], 5
call fcn.00405150
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x404810
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
mov edi, eax
mov eax, dword [edi + 4]
push 0x3f0
push eax
call esi
mov ecx, dword [edi + 4]
push 0x3f1
push ecx
mov dword [edi + 0x28], eax
call esi
mov edx, dword [edi + 4]
push 0x3f2
push edx
mov dword [edi + 0x2c], eax
call esi
mov dword [edi + 0x30], eax
mov eax, dword [edi + 4]
push 0x3ee
push eax
call esi
mov ecx, dword [edi + 4]
push 0x3ef
push ecx
mov dword [edi + 0x20], eax
call esi
mov edx, dword [edi + 0x20]
push edx
mov dword [edi + 0x24], eax
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0
call fcn.00404b70
cmp dword [esp + 0xc], 0
je 0x404901
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push ecx
call ebx
push 0x3f1
push eax
call esi
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 4]
push eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
call ebx
test eax, eax
je 0x4048cf
lea edx, [esp + 0x18]
push edx
push esi
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [edi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x404914
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
call fcn.00404d60
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b70
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp dword [edi + 0x3c], 0
mov eax, dword [esp + 8]
mov dword [eax], 0
je 0x404d55
mov ecx, dword [edi + 0x28]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf1
push ecx
call esi
mov edx, dword [edi + 0x2c]
push 0
push 0
push 0xf1
push edx
call esi
mov eax, dword [edi + 0x30]
push 0
push 0
push 0xf1
push eax
call esi
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + 4]
test ecx, ecx
mov edx, dword [edi + 0x34]
je 0x404bd2
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 8]
call edx
jmp 0x404bd4
xor eax, eax
mov edx, dword [edi + 0x34]
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x404bee
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 8]
call edx
jmp 0x404bf0
xor eax, eax
cmp dword [edi + 0x5c], 0
mov dword [edi + 0x60], eax
je 0x404c04
test eax, eax
je 0x404c04
mov eax, 1
jmp 0x404c06
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
mov eax, dword [edi + 0x28]
push eax
call ebx
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x2c]
push ecx
push edx
call ebx
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x30]
push eax
push ecx
call ebx
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x404c3d
cmp dword [edi + 0x60], 0
je 0x404c3d
mov edx, dword [edi + 0x28]
push 0
push 1
jmp 0x404c54
push 0
push eax
mov eax, dword [edi + 0x2c]
push 0xf1
push eax
call esi
mov ecx, dword [edi + 0x60]
mov edx, dword [edi + 0x30]
push 0
push ecx
push 0xf1
push edx
call esi
xor eax, eax
lea esi, [esp + 0xc]
call fcn.00405c30
mov eax, dword [eax]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
mov eax, dword [esp + 0xc]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
lea esi, [esp + 0xc]
call fcn.00405c30
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov ebp, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ccb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x28]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x41d3c0
push ecx
call esi
test ebx, ebx
je 0x404d2a
test ebp, ebp
je 0x404d2a
cmp dword [edi + 0x5c], 0
jne 0x404cf5
mov edx, dword [edi + 0x2c]
push 0x41d3dc
push edx
jmp 0x404cfe
mov eax, dword [edi + 0x2c]
push 0x41d40c
push eax
call esi
cmp dword [edi + 0x60], 0
jne 0x404d18
mov ecx, dword [edi + 0x30]
push 0x41d41c
push ecx
call esi
mov eax, 1
jmp 0x404d2c
mov edx, dword [edi + 0x30]
push 0x41d44c
push edx
call esi
mov eax, 1
jmp 0x404d2c
xor eax, eax
test ebx, ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
je 0x404d52
test ebp, ebp
je 0x404d52
cmp dword [edi + 0x5c], 0
jne 0x404d52
cmp dword [edi + 0x60], 0
jne 0x404d52
mov edx, dword [edi + 0x20]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4051d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x421030]
xor eax, esp
mov dword [esp + 0x210], eax
test esi, esi
mov eax, dword [esp + 0x218]
jne 0x405206
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a953
add esp, 0x214
ret
push ebx
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4052b5
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x4052b5
push 0x206
push eax
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], ax
call fcn.0040bb20
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
push ebx
mov dword [esp + 0x20], 0x207
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4052aa
push 0x103
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0040b623
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a953
add esp, 0x214
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040a953
add esp, 0x214
ret
Function at 0x4063b0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x419b43
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x421030]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call fcn.00401a60
mov eax, dword [esp + 0x44]
mov dword [0x4237d4], eax
call fcn.00402880
test eax, eax
jne 0x40640b
push 0x20
push 0x41d61c
push 0x41d624
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x40654e
call fcn.00405150
xor ebx, ebx
cmp eax, ebx
jne 0x406431
push 0x20
push 0x41d61c
push 0x41d64c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebx + 2]
jmp 0x40654e
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00401fd0
lea edi, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call fcn.00402960
push 0x48
call fcn.0040b5b9
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov byte [esp + 0x3c], 1
je 0x406477
push eax
call fcn.00406c70
mov edi, eax
jmp 0x406479
xor edi, edi
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
call fcn.00401e40
add eax, 0x10
push edi
mov dword [esi], eax
call fcn.00407390
call fcn.00406570
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x4064f3
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageW]
lea ebx, [ebx]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
call ebp
test eax, eax
jne 0x4064e5
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4064c0
cmp edi, ebx
je 0x406502
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
mov eax, dword [0x4237c8]
cmp eax, ebx
mov dword [0x4237cc], ebx
mov dword [0x4237d0], ebx
je 0x406524
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4237c8], ebx
mov dword [esp + 0x3c], 0xffffffff
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 0x40654c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
Function at 0x406c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x419b0a
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x421030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CMainFrame.0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov byte [esp + 0x14], 2
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x14], 3
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x14], 4
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x40], eax
mov byte [esp + 0x14], 5
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
mov byte [esp + 0x14], 6
call fcn.00405150
push edi
push 0x10
push 0x10
push 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [0x422b08]
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esi + 0x24], eax
mov ecx, dword [0x422b08]
push 0x65
push ecx
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x406f30
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
push eax
push 1
push 0x80
push ecx
call edi
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 4]
push edx
push 0
push 0x80
push eax
call edi
mov ecx, dword [esi + 4]
push 0x41d6a8
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x2c]
cmp dword [eax - 0xc], 0
jne 0x406f92
call fcn.00407040
xor eax, eax
mov dword [ebx], 1
pop edi
pop esi
pop ecx
ret
push ecx
add eax, 0xfffffff0
mov dword [esp + 0xc], esp
mov edi, esp
call fcn.00401e40
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00407460
pop edi
xor eax, eax
mov dword [ebx], 1
pop esi
pop ecx
ret
Function at 0x407040
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x421030]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esi + 0x44]
cmp dword [eax - 0xc], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
je 0x40708b
lea ecx, [esp + 8]
push ecx
push eax
call edi
cmp eax, 0xffffffff
je 0x40708b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi + 0x44]
push edx
call ebx
mov eax, dword [esi + 0x40]
cmp dword [eax - 0xc], 0
je 0x4070ae
lea ecx, [esp + 8]
push ecx
push eax
call edi
cmp eax, 0xffffffff
je 0x4070ae
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esi + 0x40]
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4070c6
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x25c]
pop edi
pop ebx
xor ecx, esp
call fcn.0040a953
mov esp, ebp
pop ebp
ret

Function at 0x4070e0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x419a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x421030]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
push edi
mov eax, dword [0x421030]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x34]
add eax, 4
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [ebx + 0x34]
lea esi, [esp + 0xc]
call fcn.004033e0
mov dword [esp + 0x270], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40718d
lea edx, [esp + 0x14]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40718d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edi, [ebx + 0x40]
mov eax, esi
call fcn.00401b10
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov esi, esp
call fcn.00401e40
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00408310
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0040a953
add esp, 0x268
ret
Function at 0x4071e0
Capabilities:
Access peb ldr_data
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4197e8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x421030]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
mov ebx, dword [edi + 0x38]
push ecx
call fcn.004050b0
mov eax, dword [edi + 0x38]
mov edx, dword [eax + 4]
add eax, 4
xor ebx, ebx
push ebx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
call fcn.0040b5b9
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4072bb
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi], vtable.CFinishDlg.0
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x422b74]
mov edx, dword [eax + 0xc]
mov ecx, 0x422b74
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
jmp 0x4072bd
xor esi, esi
cmp esi, ebx
mov ebp, dword [esp + 0x18]
mov dword [edi + 0x3c], esi
je 0x407329
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.00401e40
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
call fcn.00401e40
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 0x3c]
push eax
mov byte [esp + 0x38], 1
call fcn.00404290
mov ecx, dword [edi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [edi + 4]
mov edi, dword [edi + 0x3c]
push eax
call fcn.00408cd0
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407349
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
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 0x407371
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret