joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1e4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406e9b
mov dword [ebp - 0x14], eax
cmp dword [0x4309dc], esi
jne 0x40d2d7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d3b7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d3b7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d3b7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4309dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4309e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4309e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4309ec], eax
test eax, eax
je 0x40d2d4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4309e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d2fc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d2ef
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d311
push 4
pop eax
jmp 0x40d3b9
cmp dword [ebp - 0x14], esi
je 0x40d311
push dword [0x4309dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d2f6
mov eax, dword [0x4309e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d36f
cmp dword [0x4309ec], edi
je 0x40d36f
push eax
call ebx
push dword [0x4309ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d36f
test eax, eax
je 0x40d36f
call ecx
test eax, eax
je 0x40d364
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d364
test byte [ebp - 8], 1
jne 0x40d36f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d39f
mov eax, dword [0x4309e0]
cmp eax, edi
je 0x40d39c
push eax
call ebx
test eax, eax
je 0x40d39c
call eax
mov esi, eax
test esi, esi
je 0x40d39c
mov eax, dword [0x4309e4]
cmp eax, edi
je 0x40d39c
push eax
call ebx
test eax, eax
je 0x40d39c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4309dc]
call ebx
test eax, eax
je 0x40d3b7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d3b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d80
mov esp, ebp
pop ebp
ret
Function at 0x40ef64
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x412726
call fcn.004105ff
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40f07f
cmp byte [ebx + 0x46], 0
je 0x40f07f
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x41624c]
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
jne 0x40efac
xor al, al
jmp 0x40f081
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.0040f1d6
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x40efdc
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x48]
mov ecx, dword [esi + 0x20]
push eax
call dword [0x41624c]
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x40f012
sub eax, 1
je 0x40f016
dec eax
sub eax, 1
je 0x40f06d
xor bl, bl
jmp 0x40f06f
mov byte [ebx + 0x46], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x40f026
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x40f04f
cmp eax, 0x10
jae 0x40f035
lea ecx, [ebp - 0x28]
push dword [ebx + 0x50]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40f00e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x46], 0
je 0x40f06d
test esi, esi
jne 0x40efd0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040f177
jmp 0x40efca
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040a0c3
mov al, bl
jmp 0x40f081
mov al, 1
call fcn.004105ae
ret

Function at 0x410804
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x414a58
call fcn.00410ab8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x410864
cmp eax, 0xffffffff
je 0x410864
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41085d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41085d
cmp edx, 0x10000000
jae 0x41085d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41085a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4108c0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4108fe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4108f6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x410900
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4108e6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x401818
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov al, byte [ebp + 8]
cmp al, 7
jb 0x40186d
sub al, 7
je 0x4018e1
dec al
je 0x40183b
sub al, 2
je 0x401865
sub al, 3
je 0x401857
jmp 0x40186d
mov eax, dword [0x407220]
cmp eax, dword [0x4071a0]
jle 0x4018e1
dec dword [0x407220]
jmp 0x4018e1
mov edi, dword [0x4071a0]
mov dword [0x407220], edi
jmp 0x4018e1
inc dword [0x407210]
jmp 0x4018e1
mov word [ebp - 8], 1
mov word [ebp - 6], 1
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
movzx ax, byte [ebp + 8]
mov word [ebp - 4], ax
movzx ax, byte [0x407160]
mov word [ebp - 2], ax
mov eax, dword [0x407220]
dec eax
mov word [ebp - 0x14], ax
mov eax, dword [0x407210]
dec eax
mov word [ebp - 0x12], ax
mov eax, dword [0x407220]
dec eax
mov word [ebp - 0x10], ax
mov eax, dword [0x407210]
dec eax
mov word [ebp - 0xe], ax
lea edi, [ebp - 0x14]
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [0x4070d0]
call sub.kernel32.dll_WriteConsoleOutputA
inc dword [0x407220]
mov eax, dword [0x407220]
cmp eax, dword [0x4071c0]
jle 0x40190f
mov edi, dword [0x4071a0]
mov dword [0x407220], edi
inc dword [0x407210]
jmp 0x40190f
push 1
call fcn.00401a08
dec dword [0x407210]
mov eax, dword [0x407210]
cmp eax, dword [0x4071d0]
jg 0x401902
leave
ret 4
Function at 0x401060
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x108]
push ecx
push 0x402118
push eax
mov dword [ebp - 0x108], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
add esp, 0xc
test eax, eax
jne 0x4010bd
push 0x10002
push eax
push str.CriticalBatteryAlarm
call dword [sym.imp.WINMM.dll_PlaySoundA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040119c
mov esp, ebp
pop ebp
ret 0x10
mov cl, byte [eax]
mov byte [0x40337c], cl
mov al, cl
cmp cl, 0x41
jl 0x4010d9
cmp cl, 0x5a
jg 0x4010d9
lea eax, [ecx + 0x20]
mov byte [0x40337c], al
cmp al, 0x73
je 0x4010e5
cmp al, 0x68
jne 0x401187
lea eax, [ebp - 0x108]
push eax
push 0x402118
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
add esp, 0xc
test eax, eax
je 0x401187
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov dword [0x403378], eax
test eax, eax
js 0x401187
push 0x10003
push 0
push str.CriticalBatteryAlarm
call dword [sym.imp.WINMM.dll_PlaySoundA]
imul eax, dword [0x403378], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x40337c], 0x73
mov ecx, 0x40213c
mov eax, str._s__t_0
cmovne eax, ecx
push eax
push str.shutdown__s
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call fcn.00401040
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040119c
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0040119c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4042ad
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00587a70
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00587a70
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40434f
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40434f
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret
Function at 0x407e1b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x634460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x78], eax
test ebx, ebx
jne 0x407e6a
push str.pszMsg_is_invalid_string._n
push str.AbbreviationInControl
push 5
call fcn.00423f75
add esp, 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x407fb6
push esi
push eax
push ebx
call fcn.0058b10d
push 0x1abe
lea eax, [eax*4 + 2]
push str.CommonFunctions.cpp
push eax
call fcn.0045976f
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x407eae
push str.pszMsg_is_invalid_string._n
push str.AbbreviationInControl
push 5
call fcn.00423f75
add esp, 0xc
or eax, 0xffffffff
jmp 0x407fb5
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x70]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebp - 0x7c]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x10
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00587a70
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0x78]
push ebx
call fcn.0058b10d
push ebx
lea eax, [eax*2 + 1]
push eax
push esi
call fcn.0058b0b1
mov ebx, dword [ebp - 0x74]
add esp, 0x14
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov eax, ecx
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x78], 0xfffffff6
cdq
idiv dword [ebp - 0x78]
add ecx, eax
cmp dword [ebp + 0x18], 0xffffffff
mov dword [ebp - 0xc], ecx
je 0x407f7a
cmp dword [ebp + 0x18], 0
lea eax, [ebp - 0x14]
je 0x407f6a
push 0x18120
jmp 0x407f6f
push 0x14120
push eax
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x80]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x407fa3
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.00459786
xor eax, eax
pop ecx
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00588a1c
leave
ret
Function at 0x408da5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
call fcn.00473832
mov ebx, dword [eax + 0xc]
movzx eax, word [ebp + 0xc]
push 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408f5f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408f5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x408f5f
mov ecx, 0x100
cmp dword [ebx + 0x20], esi
je 0x408dff
movzx esi, word [ebx + 0x20]
jmp 0x408e24
movzx eax, word [ebx + 0xe]
dec eax
je 0x408e21
sub eax, 3
je 0x408e1d
sub eax, 4
je 0x408e19
sub eax, 0x10
jne 0x408e24
xor esi, esi
jmp 0x408e24
mov esi, ecx
jmp 0x408e24
push 0x10
jmp 0x408e23
push 2
pop esi
movzx eax, si
mov dword [ebp + 0xc], eax
lea eax, [eax*4 + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x408e85
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x408e85
mov eax, 0x300
mov word [edi], ax
mov eax, dword [ebp + 0xc]
mov word [edi + 2], si
test eax, eax
jle 0x408e85
lea ecx, [edi + 5]
lea edx, [ebx + 0x29]
mov esi, eax
mov al, byte [edx + 1]
mov byte [ecx - 1], al
mov al, byte [edx]
mov byte [ecx], al
mov al, byte [edx - 1]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0
lea edx, [edx + 4]
lea ecx, [ecx + 4]
dec esi
jne 0x408e68
push 8
call fcn.00471e6b
mov esi, eax
pop ecx
test esi, esi
je 0x408e9f
and dword [esi + 4], 0
mov dword [esi], vtable.CPalette.0
jmp 0x408ea1
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
test edi, edi
je 0x408ebc
push edi
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
mov ecx, esi
call fcn.004742b5
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 1
push dword [eax]
mov ecx, esi
call fcn.00474992
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_RealizePalette]
test edi, edi
je 0x408ede
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
test eax, eax
je 0x408eec
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
push 4
push dword [esi + 4]
lea edi, [eax + ecx*4]
add edi, ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
xor eax, eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
test eax, eax
je 0x408f27
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, dword [eax]
sub edx, dword [eax + 4]
push 0xcc0020
xor eax, eax
push eax
push ebx
push edi
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push eax
push edx
push ecx
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_StretchDIBits]
push 0x5bf970
push str.CopyDIB
push 5
call fcn.00423f75
xor eax, eax
add esp, 0xc
inc eax
jmp 0x408f75
push 0x5bf98c
push str.CopyDIB
push 5
call fcn.00423f75
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4096af
Capabilities:
Delete directory

Disassembly:
push 0x2c
mov eax, 0x5a7964
call fcn.00588ab8
lea ecx, [ebp - 0x38]
call fcn.00472e6b
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00405c1a
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041e001
push 0x5bfe70
lea ecx, [ebp - 0x14]
call fcn.00408133
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00472f87
test eax, eax
je 0x4097e5
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00405c1a
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0047312d
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.004734e3
test eax, eax
je 0x409732
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
jmp 0x4097c1
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041e001
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.004731f7
push eax
lea eax, [ebp - 0x18]
push 0x5bef0c
push eax
mov byte [ebp - 4], 3
call fcn.00407a5b
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
mov byte [ebp - 4], 4
push eax
call fcn.0040815c
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0041c730
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.0041c730
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
test eax, eax
je 0x4097a4
push dword [ebp - 0x10]
call fcn.004096af
pop ecx
jmp 0x4097bb
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 1
call fcn.0041c730
test esi, esi
jne 0x409702
lea ecx, [ebp - 0x38]
call fcn.00472f3b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0041c730
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00472e9b
mov eax, esi
call fcn.00588a86
ret
Function at 0x40a456
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
or ecx, 0xffffffff
cmp eax, ecx
jne 0x40a479
push 0xfffffffffffffffe
pop eax
jmp 0x40a513
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call esi
cmp eax, 0xffffffff
jne 0x40a48d
push 2
pop eax
jmp 0x40a512
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.0046ee75
push dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0046ee75
add esp, 0x20
test esi, esi
je 0x40a52e
test eax, eax
je 0x40a517
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
ja 0x40a59e
jb 0x40a547
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
ja 0x40a59e
jb 0x40a547
xor eax, eax
push eax
push eax
push 3
push eax
inc eax
push eax
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x40a510
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
test eax, eax
jne 0x40a54c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
push edi
push str._s_is_newer._Has_resource__n
push str.FileCompare
push 4
call fcn.00423f75
add esp, 0x10
jmp 0x40a59e
test eax, eax
je 0x40a4d8
push ebx
push str._s_is_newer._Has_resource__n
push str.FileCompare
push 4
call fcn.00423f75
add esp, 0x10
or eax, 0xffffffff
jmp 0x40a512
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebx, 0xffffffff
cmp esi, ebx
je 0x40a510
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
test eax, eax
jne 0x40a58a
call edi
jmp 0x40a510
call edi
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
ja 0x40a59e
jb 0x40a5ac
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x18], ecx
jbe 0x40a5a6
xor eax, eax
inc eax
jmp 0x40a512
jae 0x40a510
mov ax, bx
jmp 0x40a512
Function at 0x411652
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x350
mov eax, 0x5a8038
call fcn.00588aeb
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
and dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x35c]
call sym.SETUP.exe_public:_void___thiscall_CDeviceInfSection::constructor_void_
mov byte [ebp - 4], 1
test esi, esi
je 0x411790
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411790
movzx eax, word [ebp + 0x18]
push eax
lea eax, [ebp - 0x1c]
push 0x5bfe20
push eax
call fcn.0040102b
push str.Source
call fcn.00588144
add esp, 0x10
lea ecx, [ebp - 0x34]
push eax
push str.Source
call fcn.00403cef
push 0x5bfcec
call fcn.00588144
pop ecx
push eax
push 0x5bfcec
lea ecx, [ebp - 0x34]
call fcn.00403b92
cmp word [ebp - 0x1c], 0
jne 0x4116f7
xor eax, eax
jmp 0x411701
lea eax, [ebp - 0x1c]
push eax
call fcn.00588144
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b92
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push ecx
push 0
push dword [ebp + 0xc]
lea ecx, [ebp - 0x35c]
push esi
call sym.SETUP.exe_public:_int___thiscall_CDeviceInfSection::Init_wchar_t_const___unsigned_int__class_CInfStringTable___wchar_t_const___unsigned_int_
test eax, eax
je 0x41174e
lea ecx, [ebp - 0x35c]
call sym.SETUP.exe_public:_int___thiscall_CDeviceInfSection::GetList_void_
lea ecx, [ebp - 0x35c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
jne 0x411767
push str.Source
call fcn.00588144
pop ecx
push eax
push str.Source
lea ecx, [ebp - 0x34]
call fcn.00403cef
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea edx, [ebp - 0x34]
cmovae edx, dword [ebp - 0x34]
push edx
push ebx
push dword [ebp + 0xc]
mov ecx, edi
push esi
call sym.SETUP.exe_public:_int___thiscall_CDeviceInfSection::Init_wchar_t_const___unsigned_int__class_CInfStringTable___wchar_t_const___unsigned_int_
mov ecx, edi
call sym.SETUP.exe_public:_int___thiscall_CDeviceInfSection::GetList_void_
xor esi, esi
inc esi
jmp 0x411792
xor esi, esi
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 0
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00403a7f
mov eax, esi
call fcn.00588a9a
ret