joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402586
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x4025a6
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x4025b2
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x4025bb
cmp byte [ebx], 0
jne 0x4025c2
xor eax, eax
jmp 0x40267c
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402629
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x4025f4
cmp dword [ebp - 4], 0
je 0x4025f4
cmp dword [ebp - 8], 0
jne 0x4025f4
cmp dword [ebp + 0x10], 0
je 0x4025ef
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402628
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402606
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402613
and eax, 0xff
cmp eax, 0xd
jne 0x40262e
inc ebx
jmp 0x40262e
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402628
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x40262e
inc esi
cmp byte [ebx], 0
jne 0x4025cb
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x40267a
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x40267a
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.0040cec0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402684
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.0040ce30
cmp eax, 0x3f6
jae 0x4028c6
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.0040cda8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4026d1
lea edx, [ebx + 1]
jmp 0x4026d3
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x40272a
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x4026fd
jmp 0x4026f6
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4026f6
mov byte [ebx + eax], 0x20
jmp 0x4026fd
inc eax
cmp byte [ebx + eax], 0
jne 0x4026e6
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x402712
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402729
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x402720
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x402730
inc eax
cmp byte [ebx + eax], 0
jne 0x4026da
cmp byte [0x412cbe], 0
je 0x402740
mov dword [ebp - 0x2c], 0x412cbe
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.004062d0
mov esi, eax
test esi, esi
je 0x40276c
mov edx, str..inf
mov eax, esi
call fcn.0040cf2c
test eax, eax
jne 0x40276c
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00406d0c
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402796
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.00406dd8
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x4027d5
cmp byte [ebp - 2], 0
jne 0x4027d5
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0040ceac
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.0040cf74
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00406d0c
test al, al
je 0x4028c6
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402805
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4028c6
xor ebx, ebx
cmp byte [0x4128b4], 0
jne 0x40281e
cmp byte [ebp - 1], 0
je 0x402867
cmp dword [0x413140], 0
je 0x402836
push dword [0x413140]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40283a
xor eax, eax
jmp 0x40283f
mov eax, 1
test eax, eax
je 0x402852
push 0
push dword [0x413140]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.004028cc
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x402883
mov edx, str..exe
mov eax, esi
call fcn.0040cf2c
test eax, eax
je 0x4028b5
cmp byte [0x4128b4], 0
je 0x40289e
cmp byte [ebp - 1], 0
jne 0x40289e
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4028b5
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x4028af
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x4028c6
push 1
push dword [0x413140]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028fc
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x412044], 0
jne 0x402998
lea eax, [ebp - 0x400]
call fcn.00405f94
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040cf50
test eax, eax
jne 0x402998
push 0x41223d
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.0040ce30
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.0040cda8
mov dword [ebp - 0x41c], 3
mov word [ebp - 0x410], 0x14
lea eax, [ebp - 0x400]
mov dword [ebp - 0x418], eax
lea edx, [ebp - 0x420]
push edx
call sub.SHELL32.DLL_SHFileOperationA
mov esp, ebp
pop ebp
ret

Function at 0x402a97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x4128bc], 0
je 0x402b12
cmp byte [0x413dfc], 0
je 0x402b12
lea edx, [ebp - 0x408]
mov eax, 0x413dfc
call fcn.00402a5c
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
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 0x402b12
mov eax, ebx
call fcn.0040ce30
inc eax
lea edx, [ebp - 0x408]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x4128bc], 0
je 0x402b94
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402a5c
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402b94
mov dword [ebp - 8], 0x400
lea eax, [ebp - 8]
lea edx, [ebp - 0x80c]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x40c]
push ecx
push 0
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402b8c
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.0040ceac
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402c5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x402dd0
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 0x412804
push 1
push 0
push 0x412814
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402ecf
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 0x402e33
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 0x402e45
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.0040ceac
lea eax, [ebp - 0x40c]
call fcn.004063d8
cmp byte [ebp - 0x40c], 0
je 0x402e76
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 0x412834
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402ec6
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 0x402ebd
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 0x402ee0
Capabilities:
Get common file path

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x413140]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412018], 0
jne 0x4030a3
mov eax, dword [0x4141fc]
call fcn.00404648
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412095
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x412018], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x3c], 0x3c
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x38], 1
test bl, bl
je 0x4030f8
and dword [ebp - 0x34], 0xbfffffff
or dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0xa0
or dword [ebp - 0x38], 0x40000000
lea ecx, [ebp - 0x3c]
push ecx
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
test bl, bl
je 0x40314c
or dword [ebp - 0x34], 0x40000000
and dword [ebp - 0x34], 0xfffffffe
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4120bc
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a80
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x414e38
push ebx
call fcn.0040d758
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403aae
mov eax, ebx
call fcn.00403c28
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x4139f4
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x4139f4
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x414e30], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x413df4], eax
push 0x65
push dword [0x414e30]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x413df8], eax
lea eax, [ebp - 8]
call fcn.00405964
mov edx, 0x4139f4
mov eax, 0x414e1c
call fcn.00404f60
lea eax, [ebp - 0x20]
call fcn.004044b4
lea eax, [ebp - 0x38]
call fcn.004044b4
push 0
push 0x40118b
lea edx, [ebp - 0x20]
push 0
mov dword [0x4141fc], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x414200], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
xor edx, edx
mov dword [0x413140], eax
mov dword [0x414200], edx
mov dword [0x4141fc], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.004044d8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004044d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004059e0
cmp byte [0x4128b4], 0
je 0x403b92
call fcn.004028fc
mov eax, 0x413964
mov ecx, 0x80
xor edx, edx
call fcn.0040cda8
cmp dword [0x412054], 0
jle 0x403bb6
mov eax, dword [0x412048]
call fcn.0040cd2c
push dword [0x413df4]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x413df8], 0
je 0x403bd5
push dword [0x413df8]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x414e10], 0
jne 0x403bf6
cmp dword [0x413148], 0
je 0x403bf6
mov eax, 0x414e10
mov edx, 0xff
call fcn.0040a11c
mov dword [0x413148], 2
cmp dword [0x41205c], 0
je 0x403c13
mov eax, dword [0x41205c]
call fcn.004028cc
push dword [0x414e10]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403dd0
Capabilities:
Hide graphical window

Disassembly:
mov dword [0x413158], 1
cmp dword [0x413140], 0
je 0x403dfb
mov eax, 0x7d
call fcn.00402ba0
push eax
push 1
push dword [0x413140]
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x41315c], edx
mov dword [0x413160], 1
cmp dword [0x413140], 0
je 0x403e59
push 1
push dword [0x413140]
call sub.USER32.DLL_ShowWindow
cmp dword [0x412054], 0
jne 0x403e50
cmp byte [0x412018], 0
jne 0x403e50
push 0
push 1
push 0x111
push dword [0x413140]
call sub.USER32.DLL_SendMessageA
jmp 0x403e50
call fcn.00402c1c
cmp dword [0x413148], 2
jne 0x403e4b
cmp byte [0x4128b4], 0
je 0x403e67
call fcn.004028fc
ret
Function at 0x404500
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 0x404525
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.00404660
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
cmp dword [ebx + 4], 0
je 0x40456c
push dword [ebx + 4]
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc edx
push edx
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0
je 0x4045bf
push 5
push dword [ebx + 4]
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x40463d
cmp dword [ebx + 4], 0
je 0x4045d8
push dword [ebx + 4]
call sub.USER32.DLL_DestroyWindow
xor ecx, ecx
mov dword [ebx + 4], ecx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040ce30
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040cd18
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040ceac
mov edx, edi
mov eax, ebx
call fcn.00404ca4
test al, al
jne 0x404619
mov edx, edi
mov eax, ebx
call fcn.00404cdc
mov edx, edi
mov eax, ebx
call fcn.00404b14
mov ebx, eax
mov eax, edi
call fcn.0040cd2c
test ebx, ebx
je 0x40463d
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040cd2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40485c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x4048c0
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4048d4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x4048c0
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [ebp - 0x24]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_DispatchMessageA
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x48]
test eax, eax
jl 0x40487c
cmp dword [ebp - 4], 0
je 0x40487c
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x404919
lea eax, [ebp - 8]
push eax
push 0x412844
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404919
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x404910
push edi
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405440
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.0040563c
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 0x4054d7
cmp byte [ebp + 8], 0
jne 0x4054d7
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 0x405515
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.004052c8
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 0x405623
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x405574
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.004052c8
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x405613
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 0x40559c
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 0x405633
inc esi
test edi, edi
je 0x405633
cmp esi, 0x200
jl 0x405533
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40581c
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 + 0xc]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x405863
mov edx, edi
mov eax, ebx
call fcn.0040ceac
mov eax, ebx
call fcn.0040ce30
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040ceac
mov eax, ebx
call fcn.0040ce30
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402ba0
mov edx, eax
mov eax, ebx
call fcn.0040ceac
mov eax, ebx
call fcn.0040ce30
inc eax
add ebx, eax
mov edx, 0x4125a4
mov eax, ebx
call fcn.0040ceac
mov eax, ebx
call fcn.0040ce30
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040cda8
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x414e30]
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.00405f94
cmp esi, eax
jne 0x4058fc
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
cmp byte [ebp + 8], 0
je 0x405916
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405921
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405952
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405952
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x405947
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405952
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 8