joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10627058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.106271a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1062707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062706a
add dl, dl
jne 0x10627089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106270dc
xor eax, eax
add dl, dl
jne 0x10627096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062717d
add dl, dl
jne 0x106270a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106270b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106270bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106270c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106270d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10627075
mov eax, 1
add dl, dl
jne 0x106270ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106270f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106270e1
sub eax, ebx
mov ebx, 1
jne 0x10627128
mov ecx, 1
add dl, dl
jne 0x1062710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10627119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10627105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10627075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1062713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1062714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10627136
cmp eax, 0x7d00
jae 0x1062716d
cmp eax, 0x500
jb 0x10627168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10627075
cmp eax, 0x7f
ja 0x10627170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10627075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1062719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10627075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402395
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x4023b5
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x4023be
cmp byte [ebx], 0
jne 0x4023c5
xor eax, eax
jmp 0x402445
xor esi, esi
jmp 0x402408
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x4023ef
cmp dword [ebp - 4], 0
je 0x4023ef
test esi, esi
jne 0x4023ef
cmp dword [ebp + 8], 0
je 0x4023eb
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402408
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x4023fd
cmp ecx, 0xa
jne 0x402405
cmp ecx, 0xd
jne 0x40240d
inc ebx
jmp 0x40240d
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x4023c9
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402443
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402443
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040e6f4
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40244d
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x414528]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x402489
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x40247d
mov edx, 0x413116
mov eax, ebx
call fcn.0040e7c8
mov edx, 0x414528
mov eax, ebx
call fcn.0040e7c8
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040e5f4
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4024b2
lea edx, [ebx + 1]
jmp 0x4024b4
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402505
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x4024dd
jmp 0x4024d6
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4024d6
mov byte [ebx + eax], 0x20
jmp 0x4024dd
inc eax
cmp byte [ebx + eax], 0
jne 0x4024c6
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x4024f2
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402504
cmp edx, 0x20
jne 0x4024fb
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40250c
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4024bb
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405d24
mov edi, eax
test edi, edi
je 0x402538
mov edx, str..inf
mov eax, edi
call fcn.0040e77c
test eax, eax
jne 0x402538
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406660
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x402560
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.0040672c
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025a3
cmp byte [esp + 1], 0
jne 0x4025a3
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040e6f4
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040e7c8
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406660
test al, al
je 0x402679
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4025cd
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402679
cmp byte [0x41303d], 0
jne 0x4025e4
cmp byte [esp], 0
je 0x40262a
push dword [0x413874]
call sub.USER32.DLL_IsWindowVisible
mov ebx, eax
test ebx, ebx
je 0x402602
push 0
push dword [0x413874]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x40262a
push 1
push dword [0x413874]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x402646
mov edx, str..exe
mov eax, edi
call fcn.0040e77c
test eax, eax
je 0x402679
cmp byte [0x41303d], 0
je 0x402661
cmp byte [esp], 0
jne 0x402661
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402679
cmp byte [esp], 0
je 0x40266e
mov ecx, 0xc8
jmp 0x402673
mov ecx, 0x3e8
push ecx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x402683
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040e674
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040e748
test eax, eax
jne 0x40271a
push 0x4131f8
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040e674
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040e5f4
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x4027d5
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x413054], 0
je 0x40284c
cmp byte [0x414930], 0
je 0x40284c
lea edx, [esp + 8]
mov eax, 0x414930
call fcn.004027a4
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x40284c
mov eax, ebx
call fcn.0040e674
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x402854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x413054], 0
je 0x4028cd
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027a4
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4028cd
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4028c5
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040e6f4
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029c0
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x402b28
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x4137c4
push 1
push 0
push 0x4137d4
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402c27
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402b8b
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402b9d
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040e6f4
lea eax, [ebp - 0x40c]
call fcn.00405e18
cmp byte [ebp - 0x40c], 0
je 0x402bce
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x4137f4
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402c1e
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402c15
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402c38
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x402d9c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x413874]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x413019], 0
jne 0x402df8
mov eax, dword [0x414d30]
call fcn.00404180
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x413091
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x413019], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
and dword [esp + 8], 0xbfffffff
mov byte [esp + 0x19], 0
test bl, bl
je 0x402e44
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402e4f
and dword [esp + 8], 0xfffffffe
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x40000001
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x4130b8
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403724
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x414528
mov eax, 0x4190b0
call fcn.0040eec0
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40375b
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40375b
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040e684
mov esi, eax
test esi, esi
je 0x4037c7
mov edx, 0x4130f9
mov eax, esi
call fcn.0040e6c8
mov esi, eax
test eax, eax
je 0x40377a
mov eax, ebx
mov edx, esi
call fcn.0040e6f4
xor ecx, ecx
xor eax, eax
jmp 0x4037b9
and edx, 0xff
cmp edx, 0x20
je 0x40378d
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x40379c
cmp edx, 0x2f
jne 0x4037b8
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4037ac
cmp edx, 0x53
jne 0x4037b8
mov dword [0x413050], 1
jmp 0x4037c0
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403780
test cl, cl
jne 0x4037c7
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x419098], ebx
mov dword [0x419094], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x414928], eax
push 0x65
push dword [0x419094]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x41492c], eax
mov eax, esp
call fcn.00405448
push 0x400
push 0x414128
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x414128
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x414128
mov eax, 0x41909c
call fcn.00404a88
lea eax, [esp + 8]
call fcn.00403ff0
lea eax, [esp + 0x20]
call fcn.00403ff0
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push 0
push 0x40117f
mov dword [0x414d30], edx
push 0
mov dword [0x414d34], ecx
push str.STARTDLG
push dword [0x419098]
call sub.USER32.DLL_DialogBoxParamA
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00404014
lea eax, [esp + 8]
mov edx, 2
call fcn.00404014
mov eax, esp
mov edx, 2
call fcn.004054bc
xor ecx, ecx
mov dword [0x414d34], ecx
mov dword [0x414d30], ecx
cmp dword [0x41387c], 0
jne 0x4038ca
cmp dword [0x413888], 0
jne 0x4038ca
mov ecx, 4
mov edx, dword [0x413040]
xor eax, eax
call fcn.004018a2
cmp byte [0x41303d], 0
je 0x4038d8
call fcn.00402683
mov eax, 0x414098
mov ecx, 0x80
xor edx, edx
call fcn.0040e5f4
cmp dword [0x41304c], 0
jle 0x4038fc
mov eax, dword [0x413040]
call fcn.0040e578
push dword [0x414928]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x41492c]
test eax, eax
je 0x403916
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x419088], 0
jne 0x403937
cmp dword [0x41387c], 0
je 0x403937
mov eax, 0x419088
mov edx, 0xff
call fcn.0040bf4c
mov dword [0x41387c], 2
push dword [0x419088]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x40403c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x404061
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.00404198
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x4040a7
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x4040f8
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404175
mov eax, dword [ebx + 4]
test eax, eax
je 0x404110
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040e674
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040e564
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040e6f4
mov edx, edi
mov eax, ebx
call fcn.004047d4
test al, al
jne 0x404151
mov edx, edi
mov eax, ebx
call fcn.0040480c
mov edx, edi
mov eax, ebx
call fcn.0040464c
mov ebx, eax
mov eax, edi
call fcn.0040e578
test ebx, ebx
je 0x404175
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040e578
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40438c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4043f2
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x404403
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4043f2
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4043aa
cmp dword [esp], 0
je 0x4043aa
xor ebx, ebx
cmp dword [esp], 0
je 0x40444d
lea eax, [esp + 4]
push eax
push 0x413804
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x40444d
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x404443
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x404f58
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00405154
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x404fef
cmp byte [ebp + 8], 0
jne 0x404fef
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x40502d
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404ddc
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x40513b
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x40508c
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404ddc
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x40512b
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x4050b4
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x40514b
inc esi
test edi, edi
je 0x40514b
cmp esi, 0x200
jl 0x40504b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405324
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x40536b
mov edx, edi
mov eax, ebx
call fcn.0040e6f4
mov eax, ebx
call fcn.0040e674
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040e6f4
mov eax, ebx
call fcn.0040e674
inc eax
add ebx, eax
mov eax, 0x85
call fcn.004028e4
mov edx, eax
mov eax, ebx
call fcn.0040e6f4
mov eax, ebx
call fcn.0040e674
inc eax
add ebx, eax
mov edx, 0x413560
mov eax, ebx
call fcn.0040e6f4
mov eax, ebx
call fcn.0040e674
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040e5f4
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x419094]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405a5c
cmp esi, eax
jne 0x405404
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405434
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405434
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4