joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fc50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046a9a0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f5f0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046a8ce
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00467192
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00467192
push 1
push 0
push 0
mov ecx, esi
call fcn.0046713a
push 1
push 0
push 1
mov ecx, esi
call fcn.0046713a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046aa12
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43fdd0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046a9a0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f5f0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046a8ce
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43fe94
cmp dword [esp + 0x40], 1
jne 0x43fe92
cmp ecx, eax
jge 0x43fe94
mov eax, ecx
cmp eax, 0xc8
jge 0x43fea0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043fc50
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046aa12
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440610
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471ca3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004655b2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046ac48
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c164
test eax, eax
je 0x44072c
mov ecx, dword [esp + 0x3c]
call fcn.0046ac75
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4406f0
push edi
mov ecx, esi
call fcn.004682dc
mov ecx, esi
call fcn.00440890
cmp dword [esp + 0x38], 1
jne 0x440725
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468417
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x443150
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443183
push esi
call fcn.00446250
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44317c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443209
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4431f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4431a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4431ee
cmp eax, 2
je 0x4431f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44319a
cmp eax, 3
je 0x4431cd
cmp eax, 1
jne 0x44319a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44319a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44319a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00443230
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443218
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00443230
add esp, 4
pop esi
ret
Function at 0x44fbf0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44fc3a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44fc69
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44fcab
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4663a8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4663e0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046445c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464434
jmp 0x4663ec
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467a96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467ad8
call fcn.0046d554
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467ad8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467acf
xor eax, eax
jmp 0x467ae0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467ae6
pop edi
pop esi
pop ebx
ret 4

Function at 0x46da84
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dab2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dad0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d9ea
jmp 0x46dad0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dad0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d9ea
test edi, edi
mov eax, edi
jne 0x46daba
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401486
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0040178d
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401628
push 0x5c
mov ecx, edi
call fcn.0040171c
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push esi
push 0x401593
push edi
push edi
mov dword [0x41a398], esi
mov dword [0x41a3a0], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41a444], 2
mov dword [0x41a39c], eax
je 0x4014e3
call fcn.00408821
push 0xffffffffffffffff
push dword [0x41a39c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41a3a0]
mov dword [0x41a458], edi
cmp eax, edi
je 0x401533
cmp eax, 1
je 0x401527
cmp eax, 2
je 0x401523
cmp eax, 3
je 0x40151f
cmp eax, 0x67
jle 0x401519
cmp eax, 0x6a
jle 0x401588
push eax
push 0x14
push edi
jmp 0x401580
push 0x12
jmp 0x401529
push 0x13
jmp 0x401529
push 0x11
push edi
call fcn.004086c7
pop ecx
pop ecx
jmp 0x401588
cmp dword [0x41a45c], edi
jne 0x401588
lea eax, [ebp + 8]
push eax
push dword [0x41a39c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x40155a
cmp ecx, edi
jne 0x40155a
xor eax, eax
jmp 0x40158d
mov edx, ecx
mov eax, 0x80070000
and edx, eax
cmp edx, eax
je 0x40156c
push ecx
push 0x21
jmp 0x40151c
and ecx, 0xffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004086c7
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8

Function at 0x401a43
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401a60
xor eax, eax
jmp 0x401ab9
test al, 0x10
je 0x401a71
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x401ab9
mov eax, dword [0x41a448]
test eax, eax
je 0x401aad
cmp eax, 2
jne 0x401ab6
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x401aad
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x401ab6
push esi
call fcn.00401a16
pop ecx
jmp 0x401ab9
push 1
pop eax
pop esi
leave
ret

Function at 0x401abc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401afd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401adf
push eax
jmp 0x401af3
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401afd
test al, 0x10
jne 0x401afd
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push 1
pop eax
pop esi
ret
Function at 0x401b02
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x413850
call fcn.00413410
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004017b4
cmp dword [ebp - 0x10], 1
mov dword [ebp - 4], ebx
jg 0x401b3a
push 1
lea ecx, [ebp - 0x18]
call fcn.004017b4
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
push dword [ebp - 0x18]
mov eax, dword [edi]
push eax
call esi
cmp eax, ebx
je 0x401b93
lea ebx, [eax + 1]
cmp ebx, dword [ebp - 0x10]
jl 0x401b62
push ebx
lea ecx, [ebp - 0x18]
call fcn.004017b4
mov eax, dword [edi]
push ebx
push dword [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0x18]
xor esi, esi
xor eax, eax
cmp word [ecx], si
je 0x401b81
mov edx, ecx
inc eax
inc edx
inc edx
cmp word [edx], si
jne 0x401b79
mov word [ecx + eax*2], si
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004016d1
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40254b
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x413970
call fcn.00413410
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], esi
call fcn.0040372d
xor eax, eax
cmp dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
jg 0x402586
push eax
lea ecx, [ebp - 0x24]
call fcn.004017b4
mov ax, word [edi + esi*2 - 2]
mov ebx, dword [ebp - 0x24]
cmp ax, 0x5c
je 0x40259a
cmp ax, 0x2f
jne 0x4025a4
and word [ebx + esi*2 - 2], 0
dec esi
mov dword [ebp - 0x10], esi
push ebx
call fcn.00401abc
test eax, eax
pop ecx
jne 0x4025fc
test esi, esi
jle 0x4025ce
lea eax, [ebx + esi*2]
mov cx, word [eax]
cmp cx, 0x2f
je 0x4025cc
cmp cx, 0x5c
je 0x4025cc
dec esi
dec eax
dec eax
test esi, esi
jg 0x4025b6
test esi, esi
je 0x4025d7
and word [ebx + esi*2], 0
jmp 0x4025a4
cmp dword [ebp - 0x10], 2
jne 0x4025f9
mov ax, word [edi]
or al, 0x20
cmp ax, 0x61
jb 0x4025f9
cmp ax, 0x7a
ja 0x4025f9
cmp word [edi + 2], 0x3a
je 0x402686
push edi
jmp 0x402678
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40266c
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00401a43
pop ecx
test eax, eax
pop ecx
je 0x40266c
xor esi, esi
jmp 0x402689
cmp esi, dword [ebp - 0x10]
jge 0x402686
mov eax, dword [ebp - 0x10]
lea edi, [ebx + esi*2]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp word [edi], 0
je 0x40264b
inc esi
lea ecx, [ebx + esi*2]
mov ax, word [ecx]
test ax, ax
je 0x402667
cmp ax, 0x5c
je 0x402667
cmp word [ecx], 0x2f
je 0x402667
inc esi
inc ecx
inc ecx
jmp 0x40264e
and word [ebx + esi*2], 0
push ebx
call fcn.00401abc
test eax, eax
pop ecx
jne 0x402625
push ebx
push 0xc
push 1
call fcn.004086c7
add esp, 0xc
jmp 0x402621
push 1
pop esi
push dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4026a7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x413984
call fcn.00413410
sub esp, 0x25c
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.0040372d
and dword [ebp - 4], 0
push 0x419098
lea ecx, [ebp - 0x18]
call fcn.0040378e
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40278e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00401628
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0040171c
lea eax, [ebp - 0x23c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040378e
test byte [ebp - 0x268], 0x10
je 0x402759
lea eax, [ebp - 0x23c]
push 0x419094
push eax
call ebx
test eax, eax
je 0x402771
lea eax, [ebp - 0x23c]
push 0x41908c
push eax
call ebx
test eax, eax
je 0x402771
push dword [ebp - 0x18]
call fcn.004026a7
pop ecx
jmp 0x40276d
push 0
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4027ab
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4027ab
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4026fd
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x4027ab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4027ab
push 1
pop esi
jmp 0x4027ad
xor esi, esi
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4027cb
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41a470], 0
push esi
jne 0x4027e5
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4027ea
push 1
pop eax
pop esi
ret
test al, 0x10
jne 0x402808
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402804
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.004026a7
pop ecx
pop esi
ret
Function at 0x403108
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x413a87
call fcn.00413410
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push 3
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004017b4
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
cmp esi, ebx
jle 0x40316f
push edi
lea edi, [esi + 1]
cmp edi, dword [ebp - 0x14]
jl 0x403157
push edi
lea ecx, [ebp - 0x1c]
call fcn.004017b4
push edi
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 0x1c]
pop edi
mov word [eax + esi*2], bx
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.004015ee
mov dword [ebp - 0x10], 1
push dword [ebp - 0x1c]
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4034d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea eax, [ebp - 0x68]
push 0x40
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x403654
lea eax, [ebp - 0x68]
push str.STATIC
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403654
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0xe
je 0x403654
push str.IMAGES
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
movzx eax, ax
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, esi
je 0x403654
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x403654
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x403654
push ebx
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, 0x10
jb 0x403654
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
mov edi, eax
push dword [ebp - 0x10]
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
push eax
push esi
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40364d
cmp dword [ebp - 8], esi
je 0x40364d
lea eax, [ebp - 0xc]
push eax
push 0x415a20
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x403654
lea edx, [ebp - 4]
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
cmp dword [ebp - 4], esi
je 0x40363f
push dword [ebp - 4]
call fcn.004033a9
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 6
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 4]
push esi
push 0x172
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
jmp 0x403656
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret