joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100245c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10087208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 4], 0
call fcn.10022670
mov eax, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0xa0], 1
call fcn.10022740
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
mov byte [esp + 0x98], 2
call eax
mov ecx, dword [esp + 0xa8]
mov edx, dword [eax]
mov esi, dword [esp + 0xa0]
mov edx, dword [edx + 0x30]
push ecx
push esi
mov ecx, eax
call edx
mov dword [esp + 4], 1
mov dword [esp + 8], 0x1008d0a8
cmp dword [esp + 0x28], 0
mov byte [esp + 0x98], 4
je 0x10024660
lea ecx, [esp + 8]
call fcn.100199f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x98], 3
call fcn.100096f0
lea ecx, [esp + 0x2c]
mov dword [esp + 8], 0x10088720
mov byte [esp + 0x98], 0
call fcn.1001fc10
mov ecx, dword [esp + 0x90]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x98
ret

Function at 0x1002d260
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub esp, 0x10
fild qword [0x100b6e38]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebp
fstp dword [esp + 8]
push esi
fld dword [esp + 0xc]
push edi
fld st(0)
or edi, 0xffffffff
fdivr qword [0x1008ea58]
or esi, 0xffffffff
mov ebp, 8
fstp dword [0x100bc524]
fld st(0)
fld1
fdivrp st(1)
fstp dword [0x100bc538]
fld st(0)
fdivr qword [0x1008ea50]
fstp dword [0x100bc52c]
fld st(0)
fdivr qword [0x1008ae00]
fstp dword [0x100bc530]
fdivr qword [0x1008ea48]
fstp dword [0x100bc520]
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call ebx
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sbb eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x1002d2f4
ja 0x1002d2f0
cmp edi, ecx
jbe 0x1002d2f4
mov edi, ecx
mov esi, eax
dec ebp
jne 0x1002d2c8
fild qword [0x100b6e40]
mov dword [0x100bc560], edi
or ebx, 0xffffffff
mov dword [0x100bc564], esi
fstp dword [esp + 0x10]
or edi, 0xffffffff
fld dword [esp + 0x10]
mov ebp, 8
fld st(0)
fdivr qword [0x1008ea58]
fstp dword [0x100bc53c]
fld st(0)
fld1
fdivrp st(1)
fstp dword [0x100bc534]
fld st(0)
fdivr qword [0x1008ea50]
fstp dword [0x100bc51c]
fld st(0)
fdivr qword [0x1008ae00]
fstp dword [0x100bc528]
fdivr qword [0x1008ea48]
fstp dword [0x100bc518]
mov edi, edi
rdtsc
mov esi, edx
mov ecx, eax
rdtsc
sub eax, ecx
sbb edx, esi
cmp edi, edx
jb 0x1002d37a
ja 0x1002d376
cmp ebx, eax
jbe 0x1002d37a
mov ebx, eax
mov edi, edx
dec ebp
jne 0x1002d360
mov dword [0x100bc55c], edi
pop edi
pop esi
pop ebp
mov dword [0x100bc558], ebx
pop ebx
add esp, 0x10
ret
Function at 0x10030ec0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x40
mov eax, 0x100bc548
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10030f28
mov eax, dword [0x100bc544]
test eax, eax
je 0x10030efe
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x10030ef4
mov eax, dword [0x100bc544]
push eax
call fcn.10030d30
add esp, 4
mov dword [0x100bc544], 0
mov byte [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 4]
push 0x1008ea9c
push ecx
call fcn.10030dd0
add esp, 0xc
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
add esp, 0x40
ret

Function at 0x10036d10
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x104
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10036d57
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10036d57
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_vfprintf]
add esp, 0xc
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call dword [sym.imp.MSVCR100.dll__vsnprintf]
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10036dd9
call fcn.10036c00
test eax, eax
jle 0x10036dd9
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x104
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x104
ret
Function at 0x1005a860
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
cmp dword [0x100bb1a4], 0
je 0x1005a8a2
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1005a882
mov dword [0x100bb1a4], eax
jmp 0x1005a8a2
fldz
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0xc]
push 8
push ecx
call fcn.1003d5e0
add esp, 0x10
cmp dword [0x100bb1a4], 0
jne 0x1005a8c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
sub esp, 8
fstp qword [esp]
lea edx, [esp + 8]
push 4
push edx
mov dword [esp + 0x10], eax
call fcn.1003d5e0
add esp, 0x10
add esp, 0xc
ret

Function at 0x10084525
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100bbc68]
jne 0x1008452f
repz ret
jmp fcn.100848a3
Function at 0x40124c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x110]
cmp eax, 5
jne 0x401285
xor eax, eax
cmp dword [ebp - 0x10c], eax
setne al
inc eax
leave
ret
cmp eax, 6
jne 0x4012ad
cmp dword [ebp - 0x10c], 0
jne 0x401298
push 4
pop eax
leave
ret
xor eax, eax
cmp dword [ebp - 0x10c], 1
setne al
lea eax, [eax*8 + 8]
leave
ret
cmp eax, 0xa
jne 0x4012b6
push 0x20
jmp 0x401295
push 0xa
pop ecx
cmp ecx, eax
sbb eax, eax
and eax, 0x40
leave
ret

Function at 0x4012c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call edi
push esi
push esi
push dword [ebp + 8]
mov ebx, eax
push dword [0x406200]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push ebx
push dword [0x406200]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
add eax, 0xfffffffb
push ebx
lea edx, [ebp - 0x58]
mov dword [ebp - 0x10], eax
call fcn.0040361b
pop ecx
cmp eax, esi
jne 0x401377
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add ecx, eax
mov eax, dword [ebp - 0x4c]
mov esi, 0x300
shl esi, cl
lea esi, [esi + esi + 0xe6c]
add eax, esi
push eax
push 0
call edi
mov edi, eax
lea eax, [edi + esi]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
lea esi, [ebp - 0x58]
push eax
push dword [ebp - 0x10]
lea eax, [ebx + 5]
push eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], 0xfffffffe
call fcn.004036a1
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4013c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, eax
test edi, edi
jbe 0x401404
push esi
mov esi, 0x10000
cmp edi, esi
jae 0x4013df
mov esi, edi
push 0
lea eax, [ebp - 4]
push eax
push esi
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add ebx, esi
sub edi, esi
mov esi, dword [ebp + 8]
call fcn.00401386
test edi, edi
ja 0x4013d4
pop esi
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret
Function at 0x4014d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [0x4061cc]
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x71c]
push edi
mov dword [ebp - 4], ebx
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
inc eax
inc eax
cmp dx, bx
jne 0x4014f7
cmp dword [0x4061a8], ebx
je 0x401582
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x414]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x401518
mov eax, dword [0x4061c8]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x40152d
sub eax, edx
lea edi, [ebp - 0x414]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x401541
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x414]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x71c]
and ecx, 3
push 0x20
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403cc6
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x401582
xor eax, eax
mov word [ebx], ax
inc ebx
inc ebx
cmp dword [ebp + 0xc], 0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
je 0x4015e4
push 1
push 0x10
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
lea edx, [ebp - 0x20c]
call fcn.00401463
push str.Create_desktop_shortcut_r_n
call fcn.0040140b
push dword [ebp - 4]
lea eax, [ebp - 0x71c]
push dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040328b
add esp, 0x18
push 0
lea eax, [ebp - 0x20c]
push eax
push 5
push 2
call edi
push 1
push 0x17
lea eax, [ebp - 0x20c]
push eax
push 0
call esi
lea edx, [ebp - 0x20c]
call fcn.00401463
push str.Create_start_menu_shortcut_r_n
call fcn.0040140b
push dword [ebp - 4]
lea eax, [ebp - 0x71c]
push dword [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040328b
add esp, 0x18
push 0
lea eax, [ebp - 0x20c]
push eax
push 5
push 2
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018b9
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 4]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [0x4061d8]
mov ecx, dword [0x4061d4]
cmp eax, ebp
jne 0x4018df
cmp ecx, ebp
je 0x401947
push eax
push ecx
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
cmp ebx, ebp
je 0x401947
push 0x400
push ebp
push 0x10
push ebx
call esi
mov eax, dword [0x4061c0]
cmp word [eax], 0x49
jne 0x40190d
push ebp
push ebp
push 0x8066
push ebx
call esi
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jle 0x4018cc
push dword [0x4061c0]
push 0x16
pop edx
call fcn.00401e3b
push eax
push 0x21
push dword [esp + 0x24]
call fcn.0040341e
add esp, 0x10
cmp eax, 2
jne 0x4018cc
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x4061d0]
cmp eax, ebp
je 0x401992
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push eax
mov edi, 0x100000
jmp 0x40198a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x4061c0]
push 0x16
pop edx
call fcn.00401e3b
push eax
push 0x21
push ebx
call fcn.0040341e
add esp, 0x10
cmp eax, 2
je 0x401940
push dword [0x4061d0]
push ebp
push edi
call esi
cmp eax, ebp
jne 0x40195e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401998
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x208]
sub esp, 0x208
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4019ac
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4019c3
sub eax, edx
sar eax, 1
push esi
lea esi, [ebp + eax*2 - 0x208]
mov eax, str..tmp
mov edx, esi
push edi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x4019e3
add esi, 8
xor eax, eax
push 0x61
mov word [esi + 2], ax
pop edi
lea eax, [ebp - 0x208]
push eax
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a2a
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401a2a
inc edi
cmp di, 0x7a
jbe 0x4019fd
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 4
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
leave
ret
Function at 0x401d08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4061a0]
or eax, 0x20019
push eax
push 0
push 0x40427c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d60
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x208
push 0
push 0
push str.ProgramFilesDir
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x401d64
Capabilities:
Get common file path
Query environment variable

Disassembly:
cmp dword [esp + 4], 0
je 0x401e30
mov eax, dword [0x4061e0]
test eax, eax
je 0x401e30
push 0xe
push str._ProgramFiles_
push eax
call fcn.00403c6d
add esp, 0xc
test eax, eax
jne 0x401dc7
push esi
call fcn.00401d08
mov eax, esi
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x401d9c
mov ecx, dword [0x4061e0]
sub eax, edx
sar eax, 1
add ecx, 0x1c
lea eax, [esi + eax*2]
movzx edx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
inc eax
inc eax
test dx, dx
jne 0x401db6
jmp 0x401e2d
push 0xe
push str._LocalAppData_
push dword [0x4061e0]
call fcn.00403c6d
add esp, 0xc
test eax, eax
jne 0x401e1b
push eax
push 0x1c
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x401df0
mov ecx, dword [0x4061e0]
sub eax, edx
sar eax, 1
add ecx, 0x1c
lea eax, [esi + eax*2]
movzx edx, word [ecx]
inc ecx
mov word [eax], dx
inc ecx
inc eax
inc eax
test dx, dx
jne 0x401e0a
jmp 0x401e2d
push 0x104
push esi
push dword [0x4061e0]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
ret
push esi
call fcn.00401d08
xor eax, eax
pop ecx
inc eax
ret

Function at 0x402154
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
lea edx, [ebp - 0x88]
call fcn.004020f6
lea eax, [ebp - 8]
push eax
mov eax, dword [0x4061a0]
or eax, 0x20019
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x88]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021e7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0x208
push edi
push edi
push str.InstallLocation
push dword [ebp - 8]
call esi
lea eax, [ebp - 4]
push eax
push 0x406140
push edi
push edi
push str.DisplayVersion
push dword [ebp - 8]
mov dword [ebp - 4], 0x40
call esi
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
pop esi
jne 0x4021e7
cmp dword [ebp - 4], edi
jbe 0x4021e7
xor eax, eax
jmp 0x4021ea
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0x40228a
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
push 7
pop ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x11
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x230]
push eax
call fcn.00401d08
mov eax, dword [ebp - 8]
pop ecx
push 0x12
pop edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
call fcn.00401e3b
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x230]
push ebx
mov dword [ebp - 0x18], 0x53
mov dword [ebp - 0x14], 0x402269
mov dword [ebp - 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, eax
test ebx, ebx
je 0x402352
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x402331
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402331
push esi
lea edi, [ebp - 0x230]
call fcn.0040221f
pop ecx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x402352
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop ebx
leave
ret
Function at 0x402526
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
push ebx
push esi
push edi
xor ebx, ebx
push 0x58
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], ebx
call fcn.00403e68
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push ebx
push ebx
push 0x31
push esi
call edi
lea ecx, [ebp - 0x60]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x50], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
call fcn.0040241b
pop ecx
pop ecx
mov ecx, dword [0x406198]
mov dword [0x406218], eax
mov eax, pe_overlay
cmp word [ecx + 6], ax
je 0x40259d
call fcn.0040235c
push ebx
push dword [ebp - 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x30
push 5
push esi
call ebx
push eax
call edi
push 1
push 0xf060
push 0
push esi
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0x15
push esi
call ebx
push 0
push 0x103
mov ebx, eax
push 0xc5
push ebx
call edi
push 1
push ebx
call dword [sym.imp.SHLWAPI.dll_SHAutoComplete]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 4], eax
test eax, eax
je 0x40260e
push eax
push 0
mov ebx, 0x80
push ebx
push esi
call edi
push dword [ebp - 4]
push 1
push ebx
push esi
call edi
lea edi, [ebp - 0x368]
call fcn.004023cc
mov eax, edi
push eax
xor edx, edx
call fcn.00401e3b
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
push 0xa
push esi
call edi
push 7
pop edx
call fcn.00401e3b
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push eax
push 9
push esi
call ebx
push 0xa
pop edx
call fcn.00401e3b
push eax
push 8
push esi
call ebx
push 0x13
pop edx
call fcn.00401e3b
push eax
push 0xa
push esi
call ebx
xor edx, edx
inc edx
call fcn.00401e3b
push eax
push 3
push esi
call ebx
push 4
pop edx
call fcn.00401e3b
push eax
push 2
push esi
call ebx
xor eax, eax
inc eax
call fcn.00401ea8
lea eax, [ebp - 0x268]
push eax
call fcn.00402154
mov esi, eax
pop ecx
mov dword [0x4061a4], eax
push 1
test esi, esi
je 0x4026cd
lea esi, [ebp - 0x268]
call fcn.00401d64
pop ecx
mov esi, eax
jmp 0x4026d4
push 9
push dword [ebp + 8]
call edi
test esi, esi
je 0x4026e9
push dword [ebp + 8]
lea edi, [ebp - 0x268]
call fcn.0040221f
pop ecx
jmp 0x4026f7
lea eax, [ebp - 0x268]
push eax
push 0x15
push dword [ebp + 8]
call ebx
mov edx, dword [0x4061a4]
neg edx
sbb edx, edx
add edx, 3
call fcn.00401e3b
push eax
push 1
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402716
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0xc8
push ebx
call esi
push 0x16
push ebx
mov dword [ebp - 0xc], eax
call esi
push 0xa
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov edi, eax
push 0x104
dec edi
lea eax, [ebp - 0x214]
push eax
neg edi
push 0x15
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
xor ebx, ebx
cmp eax, ebx
jle 0x402775
lea esi, [ebp - 0x214]
call fcn.004021ed
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4028ca
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x214]
push eax
call esi
cmp eax, 0xffffffff
je 0x4027c2
test al, 0x10
je 0x4027c2
cmp dword [0x4061a4], ebx
je 0x4027ed
lea eax, [ebp - 0x214]
push eax
push 0x14
pop edx
call fcn.00401e3b
push eax
push 0x24
push dword [ebp + 8]
call fcn.0040341e
add esp, 0x10
cmp eax, 7
jmp 0x4027e7
push ebx
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x214]
push eax
call esi
cmp eax, 0xffffffff
je 0x4028ca
test al, 0x10
je 0x4028ca
mov edx, dword [ebp - 4]
lea edx, [ebp + edx*2 - 0x214]
mov dword [ebp - 4], edx
cmp dword [0x4061cc], ebx
jne 0x40282b
mov eax, dword [0x4061c8]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, bx
jne 0x402809
lea eax, [ebp - 0x214]
push eax
call fcn.00403cee
pop ecx
mov dword [0x4061cc], eax
jmp 0x402835
mov dword [0x4061a8], 1
push dword [ebp + 8]
call fcn.004018b9
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp], 0x27100000
push ebx
push 0x401
push dword [ebp - 8]
call esi
push ebx
push 0x12c
push 0x404
push dword [ebp - 8]
call esi
push 1
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x404564
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [ebp + 8]
push 3
pop eax
call fcn.00401ea8
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x214]
call fcn.00401a8d
add esp, 0xc
test eax, eax
je 0x4028bd
push 5
jmp 0x4028bf
push 4
pop eax
call fcn.00401ea8
push dword [ebp - 0xc]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028cf
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
push 0xb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x402960
push 0x184
lea eax, [ebp - 0x510]
push eax
push dword [0x4061cc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x15
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
test eax, eax
jle 0x402928
push esi
lea esi, [ebp - 0x208]
call fcn.004021ed
pop esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x510]
push eax
call fcn.00401140
pop ecx
pop ecx
test eax, eax
jge 0x402960
push 1
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x510]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
leave
ret