joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043a5
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004110c6
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4043e3
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00403a1b
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov dword [edi + 4], esi
and word [eax + esi*2], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x4045af
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004110c6
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00403a1b
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00403a1b
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00402637
pop ecx
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404a2b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x41e718], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418370
call fcn.00402f57
push 3
call fcn.00402fad
push 0x28
mov dword [0x41e740], eax
call fcn.00402fad
push 2
mov dword [0x41e73c], eax
call fcn.00402fad
push 5
mov dword [0x41e738], eax
call fcn.00402fad
push 0x15
mov dword [0x41e734], eax
call fcn.00402fad
push 0x16
mov dword [0x41e730], eax
call fcn.00402fad
push 0x17
mov dword [0x41e72c], eax
call fcn.00402fad
xor ebx, ebx
add esp, 0x1c
mov dword [0x41e728], eax
mov dword [0x41e720], ebx
mov dword [0x41e724], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404b1f
push edi
lea eax, [ebp - 0x5c]
push 0x41b6a8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00404663
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41e3bc], edi
jne 0x404b17
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41e3c0]
call fcn.00404663
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x404af9
inc edi
cmp edi, 0x40
jl 0x404abe
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053f1
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x4055a7
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x40541a
cmp cx, 0x2f
jne 0x4055a7
mov ax, word [eax]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x40544a
push dword [ebp + 8]
jmp 0x4055a8
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403ac2
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40556f
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004110c6
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004114e2
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411169
mov esi, 0x41ba70
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0041153a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411169
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0041153a
push edi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00411169
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041153a
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403bb9
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x405582
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405582
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4055ad
push dword [ebp - 0x28]
call fcn.0040355d
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4055ae
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x4055d4
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41e7f4], esi
jle 0x405628
mov eax, dword [0x41e7f0]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004110e9
lea eax, [ebp - 0xc]
push eax
call fcn.00404b5e
mov eax, dword [0x41e7f0]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41e7f4]
pop ecx
jl 0x4055e5
pop esi
leave
ret
Function at 0x4088bd
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004072db
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004072f8
push 1
inc edi
push edi
mov ecx, esi
call fcn.004072f8
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407941
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.0040858c
mov ecx, esi
mov edi, eax
call fcn.00407f5c
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a8c0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x40abe0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x28], 0x80
add edi, 1
xor ebx, ebx
cmp edi, 0x38
je 0x40ac1a
lea esp, [esp]
and edi, 0x3f
jne 0x40ac0e
push esi
call fcn.0040a910
add esp, 4
mov byte [esi + edi + 0x28], bl
add edi, 1
cmp edi, 0x38
jne 0x40ac00
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.0040a910
mov edx, dword [esp + 0x18]
add esp, 4
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
mov edi, dword [esi + eax*4]
bswap edi
bswap ecx
mov dword [edx], edi
mov dword [edx + 4], ecx
add eax, 2
add edx, 8
cmp eax, 8
jb 0x40ac43
pop edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
pop ebx
ret
Function at 0x41098b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4109b1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4109b1
xor al, al
jmp 0x4109d1
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004188f0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x4c8ac4
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x4e8704], 0
jne 0x4c8b83
mov dword [ebp - 0x10], 0x80000000
push 0x400
call fcn.004cf02a
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4e8704], eax
mov dword [ebp - 0xc], 0
jmp 0x4c8b08
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jge 0x4c8b83
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.004c8a6e
add esp, 8
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x4c8b37
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x4c8b64
mov ecx, dword [ebp - 0x18]
and ecx, 0x80000000
test ecx, ecx
je 0x4c8b5a
mov edx, dword [ebp - 0x18]
shl edx, 1
xor edx, 0x4c11db7
mov dword [ebp - 0x18], edx
jmp 0x4c8b62
mov eax, dword [ebp - 0x18]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4c8b2e
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004c8a6e
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4e8704]
mov dword [ecx + edx*4], eax
jmp 0x4c8aff
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x4c8b9d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x4c8bc9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
mov eax, dword [0x4e8704]
mov ecx, dword [eax + ecx*4]
xor ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x4c8b94
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4c97dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x4c9848
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x4c9891
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004d4f70
add esp, 8
test eax, eax
jne 0x4c988f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4c9893
jmp 0x4c983f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4cea4c
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004cb639
add esp, 4
and eax, 0xff
test eax, eax
je 0x4cead5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.004cf770
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4cead3
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x4cead3
jmp 0x4cead5
jmp 0x4cea55
mov esp, ebp
pop ebp
ret

Function at 0x4d1770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4e5b28
cmp edx, dword [eax]
je 0x4d1792
add eax, 8
inc ecx
cmp eax, 0x4e5bb8
jl 0x4d1783
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4e5b28]
jne 0x4d18c0
mov eax, dword [0x4e8c80]
cmp eax, 1
je 0x4d189a
test eax, eax
jne 0x4d17c3
cmp dword [0x4e5864], 1
je 0x4d189a
cmp edx, 0xfc
je 0x4d18c0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d17fa
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004cfbe0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cf960
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4d183d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cf960
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e85ec
push edi
call fcn.004cfd90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004cfbe0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004cfbf0
lea eax, [ebp - 0xa0]
push 0x4e85cc
push eax
call fcn.004cfbf0
push dword [esi + 0x4e5b2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004cfbf0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004d3d38
add esp, 0x2c
pop edi
jmp 0x4d18c0
lea eax, [ebp + 8]
lea esi, [esi + 0x4e5b2c]
push 0
push eax
push dword [esi]
call fcn.004cf960
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4010a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push str.d3d9.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4010c0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop ebp
ret
mov eax, dword [0x41cd90]
mov ecx, dword [ebp + 8]
push 0
push section..text
push eax
push 0x75
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x401103
push 1
push str.DirectXDXSETUP.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x401103
push 0x30
push 0x417bec
push str.DXSETUP.exe
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
ret

Function at 0x401210
Capabilities:
Create process on windows
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41cd88]
test eax, eax
je 0x40123d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41cd88], 0
push esi
push edi
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x417c64
push str.InstallFold
push str.INSTALL
call esi
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
lea edx, [ebp - 0x310]
push edx
push 0x417c64
push str.ExeName
push str.INSTALL
call esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4012d7
mov cx, word [0x417c84]
push 0x41d740
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40131a
mov eax, 0x41d740
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401300
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401310
jmp 0x40133a
lea eax, [ebp - 0x310]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401322
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401332
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 1
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
cmp eax, 0x1f
ja 0x401384
push 0x30
push 0x417bec
push 0x417c88
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x402660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x69
push esi
mov dword [0x41cd8c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], 0x41d844
mov dword [ebp - 0x38], 0x4021b0
mov dword [ebp - 0x3c], 3
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
xor ebx, ebx
push ebx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4026f9
push 0x30
push 0x417bec
push 0x417d04
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [0x41cd98]
mov ecx, dword [ebp - 8]
mov edx, dword [0x41cd94]
mov eax, dword [ebp - 0xc]
push ebx
push esi
push ebx
push ebx
push edi
push edx
sub ecx, edi
sub eax, edx
sar ecx, 1
push ecx
sar eax, 1
push eax
push 0x80000000
push 0x417d2b
push 0x41d844
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp dword [0x41d108], 1
mov dword [0x41cd90], eax
je 0x40282c
call fcn.00407880
mov ebx, dword [0x41cd90]
mov ecx, dword [0x41cd8c]
mov esi, 0x423298
test eax, eax
je 0x40278d
push 0x6e
call fcn.0040a490
mov ebx, dword [0x41cd90]
mov ecx, dword [0x41cd8c]
add esp, 4
push 0x6c
mov esi, 0x4232b8
jmp 0x40278f
push 0x70
call fcn.0040a490
mov ebx, dword [0x41cd90]
mov ecx, dword [0x41cd8c]
add esp, 4
push 0x6d
mov esi, 0x4232d8
call fcn.0040a490
add esp, 4
mov edi, 0x41cde4
mov esi, 0x4232b4
xor ebx, ebx
mov edi, edi
mov ecx, dword [ebx + 0x41cdb8]
mov edx, dword [edi + 4]
mov eax, dword [ebx + 0x41cdb4]
add edx, ecx
push edx
mov edx, dword [edi]
add edx, eax
push edx
push ecx
push eax
mov dword [esi - 4], eax
lea eax, [ebx + 0x423358]
push eax
mov dword [esi], ecx
call dword [sym.imp.USER32.dll_SetRect]
add esi, 0x20
add edi, 8
add ebx, 0x10
cmp esi, 0x423314
jl 0x4027c0
call fcn.00407880
test eax, eax
jne 0x402816
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x423368
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [0x41cd90]
push 0
push 0
push 0x200
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x41cd90]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x41cd90]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x41d004
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402860
mov edi, 0x41d004
call fcn.00407750
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x403650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41d110], 0
push esi
je 0x4037c1
push 0x41d63c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
mov cl, 0x2e
cmp byte [eax + 0x41d63c], cl
je 0x403690
dec eax
cmp byte [eax + 0x41d63c], cl
jne 0x403687
lea esi, [eax + 0x41d63c]
mov ecx, str..txt
mov eax, esi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4036c0
test dl, dl
je 0x4036bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4036c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4036a0
xor eax, eax
jmp 0x4036c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403744
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x424], 0x100
push 0x41d63c
push 0x41d434
lea ecx, [ebp - 0x408]
push str.notepad__s_s
push ecx
mov dword [ebp - 0x42c], 0x30
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x460]
push edx
lea eax, [ebp - 0x450]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov ecx, str..html
mov eax, esi
jmp 0x403750
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403770
test dl, dl
je 0x40376c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403770
add eax, 2
add ecx, 2
test dl, dl
jne 0x403750
xor eax, eax
jmp 0x403775
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4037a9
mov ecx, str..htm
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4037a0
test dl, dl
je 0x40379c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4037a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403780
xor eax, eax
jmp 0x4037a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4037c1
push 1
push 0
push 0
push 0x41d63c
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret