joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402476
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x414558]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024b2
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024a6
mov edx, 0x413116
mov eax, ebx
call fcn.0040eba8
mov edx, 0x414558
mov eax, ebx
call fcn.0040eba8
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040e9d4
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4024db
lea edx, [ebx + 1]
jmp 0x4024dd
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x40252e
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x402506
jmp 0x4024ff
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x4024ff
mov byte [ebx + eax], 0x20
jmp 0x402506
inc eax
cmp byte [ebx + eax], 0
jne 0x4024ef
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40251b
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x40252d
cmp edx, 0x20
jne 0x402524
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x402535
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4024e4
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405d70
mov edi, eax
test edi, edi
je 0x402561
mov edx, str..inf
mov eax, edi
call fcn.0040eb5c
test eax, eax
jne 0x402561
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040673c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x402589
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406808
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025cc
cmp byte [esp + 1], 0
jne 0x4025cc
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040ead4
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040eba8
lea eax, [esp + 0x440]
xor edx, edx
call fcn.0040673c
test al, al
je 0x4026a2
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x4025f6
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 0x4026a2
cmp byte [0x41303d], 0
jne 0x40260d
cmp byte [esp], 0
je 0x402653
push dword [0x4138a4]
call sub.USER32.DLL_IsWindowVisible
mov ebx, eax
test ebx, ebx
je 0x40262b
push 0
push dword [0x4138a4]
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 0x402653
push 1
push dword [0x4138a4]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x40266f
mov edx, str..exe
mov eax, edi
call fcn.0040eb5c
test eax, eax
je 0x4026a2
cmp byte [0x41303d], 0
je 0x40268a
cmp byte [esp], 0
jne 0x40268a
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4026a2
cmp byte [esp], 0
je 0x402697
mov ecx, 0xc8
jmp 0x40269c
mov ecx, 0x3e8
push ecx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4026ac
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.0040ea54
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040eb28
test eax, eax
jne 0x402743
push 0x4131f8
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040ea54
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040e9d4
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 0x4027fe
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x413054], 0
je 0x402875
cmp byte [0x414960], 0
je 0x402875
lea edx, [esp + 8]
mov eax, 0x414960
call fcn.004027cd
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 0x402875
mov eax, ebx
call fcn.0040ea54
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 0x40287d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x413054], 0
je 0x4028f6
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027cd
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4028f6
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 0x4028ee
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040ead4
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029e0
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 0x402b48
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 0x4137f4
push 1
push 0
push 0x413804
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402c47
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 0x402bab
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 0x402bbd
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.0040ead4
lea eax, [ebp - 0x40c]
call fcn.00405e64
cmp byte [ebp - 0x40c], 0
je 0x402bee
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 0x413824
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402c3e
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 0x402c35
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 0x402c58
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 0x402dbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x4138a4]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x413019], 0
jne 0x402e18
mov eax, dword [0x414d60]
call fcn.004041dc
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
mov byte [esp + 0x19], 0
mov dword [esp + 4], 1
test bl, bl
je 0x402e72
and dword [esp + 8], 0xbfffffff
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
or dword [esp + 4], 0x40000000
mov ecx, esp
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
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 0x403740
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x419120
push ebx
mov ebx, 0x414558
push esi
call fcn.0040f288
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40377a
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40377a
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040ea64
mov esi, eax
test esi, esi
je 0x403823
mov edx, 0x4130f9
mov eax, esi
call fcn.0040eaa8
mov esi, eax
test eax, eax
je 0x40379d
mov eax, ebx
mov edx, esi
call fcn.0040ead4
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x403813
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x4037b4
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x4037ba
inc esi
test esi, 1
jne 0x403812
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x4037db
test eax, eax
je 0x4037e5
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x4037e5
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403812
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4037f5
cmp edx, 0x53
jne 0x403812
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403806
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403812
mov dword [0x413050], 1
jmp 0x40381a
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4037a7
cmp byte [ebp - 1], 0
jne 0x403823
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x419118], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x414958], eax
push 0x65
push dword [0x419118]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x41495c], eax
lea eax, [ebp - 0xc]
call fcn.004054a4
push 0x400
push 0x414158
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x414158
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x414158
mov eax, 0x419104
call fcn.00404ae4
lea eax, [ebp - 0x24]
call fcn.0040404c
lea eax, [ebp - 0x3c]
call fcn.0040404c
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x414d60], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x414d64], ecx
call sub.USER32.DLL_DialogBoxParamA
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404070
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404070
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405518
xor ecx, ecx
mov dword [0x414d64], ecx
mov dword [0x414d60], ecx
cmp dword [0x4138ac], 0
jne 0x403916
cmp dword [0x4138b8], 0
jne 0x403916
mov ecx, 4
mov edx, dword [0x413040]
xor eax, eax
call fcn.004018cb
cmp byte [0x41303d], 0
je 0x403924
call fcn.004026ac
mov eax, 0x4140c8
mov ecx, 0x80
xor edx, edx
call fcn.0040e9d4
cmp dword [0x41304c], 0
jle 0x403948
mov eax, dword [0x413040]
call fcn.0040e958
push dword [0x414958]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x41495c]
test eax, eax
je 0x403962
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x4190f8], 0
jne 0x403983
cmp dword [0x4138ac], 0
je 0x403983
mov eax, 0x4190f8
mov edx, 0xff
call fcn.0040c1a0
mov dword [0x4138ac], 2
push dword [0x4190f8]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404098
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 0x4040bd
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.004041f4
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 0x404103
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 0x404154
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x4041d1
mov eax, dword [ebx + 4]
test eax, eax
je 0x40416c
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.0040ea54
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040e944
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040ead4
mov edx, edi
mov eax, ebx
call fcn.00404830
test al, al
jne 0x4041ad
mov edx, edi
mov eax, ebx
call fcn.00404868
mov edx, edi
mov eax, ebx
call fcn.004046a8
mov ebx, eax
mov eax, edi
call fcn.0040e958
test ebx, ebx
je 0x4041d1
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040e958
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4043e8
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 0x40444e
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x40445f
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x40444e
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 0x404406
cmp dword [esp], 0
je 0x404406
xor ebx, ebx
cmp dword [esp], 0
je 0x4044a9
lea eax, [esp + 4]
push eax
push 0x413834
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x4044a9
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40449f
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 0x404fb4
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.004051b0
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 0x40504b
cmp byte [ebp + 8], 0
jne 0x40504b
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 0x405089
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.00404e38
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 0x405197
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x4050e8
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404e38
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x405187
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 0x405110
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 0x4051a7
inc esi
test edi, edi
je 0x4051a7
cmp esi, 0x200
jl 0x4050a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405380
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 0x4053c7
mov edx, edi
mov eax, ebx
call fcn.0040ead4
mov eax, ebx
call fcn.0040ea54
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040ead4
mov eax, ebx
call fcn.0040ea54
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402904
mov edx, eax
mov eax, ebx
call fcn.0040ead4
mov eax, ebx
call fcn.0040ea54
inc eax
add ebx, eax
mov edx, 0x413560
mov eax, ebx
call fcn.0040ead4
mov eax, ebx
call fcn.0040ea54
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040e9d4
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x419118]
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.00405a98
cmp esi, eax
jne 0x405460
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 0x405490
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405490
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
Function at 0x4064cc
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405254
test eax, eax
je 0x4064f2
test ebx, ebx
je 0x4064f2
cmp word [ebx], 0
je 0x4064f2
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x4064fa
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x40650d
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004067c8
xor eax, eax
jmp 0x406528
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x40651c
cmp eax, 3
jne 0x406523
mov eax, 2
jmp 0x406528
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405254
test eax, eax
je 0x406767
test ebx, ebx
je 0x406767
cmp word [ebx], 0
je 0x406767
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x40679c
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405254
test eax, eax
je 0x4067be
test ebx, ebx
je 0x4067be
cmp word [ebx], 0
je 0x4067be
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x4067c8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00405254
test eax, eax
je 0x4067f5
test ebx, ebx
je 0x4067f5
cmp word [ebx], 0
je 0x4067f5
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x406804
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret