joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417619
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439654]
jne 0x417623
repz ret
jmp fcn.0041d8ba

Function at 0x426f9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041d19e
and dword [ebp - 0x14], 0
cmp dword [0x43bba0], 0
mov dword [ebp - 0x18], eax
jne 0x427050
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4270f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4270f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43bba0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43bba4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43bba8], eax
call edi
push eax
call esi
mov dword [0x43bbb0], eax
test eax, eax
je 0x427050
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43bbac], eax
mov eax, dword [0x43bbac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4270a9
cmp dword [0x43bbb0], ecx
je 0x4270a9
push eax
call esi
push dword [0x43bbb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4270a9
test ebx, ebx
je 0x4270a9
call edi
test eax, eax
je 0x4270a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4270a0
test byte [ebp - 8], 1
jne 0x4270a9
or dword [ebp + 0x10], 0x200000
jmp 0x4270dc
mov eax, dword [0x43bba4]
cmp eax, dword [ebp - 0x18]
je 0x4270dc
push eax
call esi
test eax, eax
je 0x4270dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4270dc
mov eax, dword [0x43bba8]
cmp eax, dword [ebp - 0x18]
je 0x4270dc
push eax
call esi
test eax, eax
je 0x4270dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43bba0]
call esi
test eax, eax
je 0x4270f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4270fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417619
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41bd20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41bea0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp edi, 0x182
jne 0x41becd
lea eax, [ebp - 0x820]
push eax
push str.wosevir
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
xor esi, esi
test edi, edi
jle 0x41bf14
cmp edi, 0x2d
jne 0x41bee1
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call fcn.0041bde0
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x41bf0f
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, edi
jl 0x41bed4
pop esi
cmp edi, 0x2d
jne 0x41bf2e
mov dword [0x1ef5170], 0xa62e7790
mov dword [0x1ef5174], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41bf40
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041be50
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41bf9d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041bea0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023be
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x40d968]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4023fa
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4023ee
mov edx, 0x40c116
mov eax, ebx
call fcn.00406c28
mov edx, 0x40d968
mov eax, ebx
call fcn.00406c28
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.00406a78
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402423
lea edx, [ebx + 1]
jmp 0x402425
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402476
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40244e
jmp 0x402447
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402447
mov byte [ebx + eax], 0x20
jmp 0x40244e
inc eax
cmp byte [ebx + eax], 0
jne 0x402437
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x402463
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402475
cmp edx, 0x20
jne 0x40246c
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40247d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40242c
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004057d0
mov edi, eax
test edi, edi
je 0x4024a9
mov edx, str..inf
mov eax, edi
call fcn.00406bdc
test eax, eax
jne 0x4024a9
mov dword [esi + 0xc], 0x40c1e7
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00405cd0
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4024d1
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00405d64
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x402514
cmp byte [esp + 1], 0
jne 0x402514
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.00406b54
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.00406c28
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00405cd0
test al, al
je 0x4025fc
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40253e
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 0x4025fc
cmp byte [0x40c044], 0
jne 0x402555
cmp byte [esp], 0
je 0x4025ad
mov ebx, dword [0x40cc90]
test ebx, ebx
je 0x402569
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40256d
xor eax, eax
jmp 0x402572
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x402585
push 0
push dword [0x40cc90]
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 0x4025ad
push 1
push dword [0x40cc90]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4025c9
mov edx, str..exe
mov eax, edi
call fcn.00406bdc
test eax, eax
je 0x4025fc
cmp byte [0x40c044], 0
je 0x4025e4
cmp byte [esp], 0
jne 0x4025e4
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4025fc
cmp byte [esp], 0
je 0x4025f1
mov edx, 0xc8
jmp 0x4025f6
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x402606
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x40c045], 0
jne 0x40268f
mov eax, esp
call fcn.004056f8
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.00406c00
test eax, eax
jne 0x40268f
push 0x40c1f4
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.00406ad4
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.00406a78
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x40274a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x40c05d], 0
je 0x4027c1
cmp byte [0x40dd70], 0
je 0x4027c1
lea edx, [esp + 8]
mov eax, 0x40dd70
call fcn.00402719
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 0x4027c1
mov eax, ebx
call fcn.00406ad4
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 0x4027c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x40c05d], 0
je 0x402842
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.00402719
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402842
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 0x40283a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.00406b54
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x40292c
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 0x402a94
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 0x40cbe0
push 1
push 0
push 0x40cbf0
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402b93
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 0x402af7
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 0x402b09
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.00406b54
lea eax, [ebp - 0x40c]
call fcn.00405870
cmp byte [ebp - 0x40c], 0
je 0x402b3a
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 0x40cc10
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402b8a
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 0x402b81
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 0x402ba4
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 0x402d08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x40cc90]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x40c019], 0
jne 0x402d64
mov eax, dword [0x40e170]
call fcn.00403f94
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x40c099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x40c019], 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 0x402dbe
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
test bl, bl
je 0x402e12
or dword [esp + 8], 0x40000000
and dword [esp + 8], 0xfffffffe
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x40c0c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x4034bc
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x40e984
push ebx
mov ebx, 0x40d968
push esi
call fcn.004067c4
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x4034f6
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x4034f6
lea eax, [esi + 1]
mov edx, 0x22
call fcn.00406ae4
mov esi, eax
test esi, esi
je 0x4035a6
mov edx, 0x40c0f9
mov eax, esi
call fcn.00406b28
mov esi, eax
test eax, eax
je 0x403519
mov eax, ebx
mov edx, esi
call fcn.00406b54
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x403596
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x403530
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x403536
inc esi
test esi, 1
jne 0x403595
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x403557
test eax, eax
je 0x403561
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x403561
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403595
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x403571
cmp edx, 0x53
jne 0x403595
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403582
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403595
mov dword [0x40c058], 1
mov byte [0x40c05c], 1
jmp 0x40359d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x403523
cmp byte [ebp - 1], 0
jne 0x4035a6
mov byte [ebx], 0
push 0x400
push 0x40d568
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x40d568
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x40ccc0], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x40dd68], eax
push 0x65
push dword [0x40ccc0]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x40dd6c], eax
lea eax, [ebp - 0xc]
call fcn.00405138
mov edx, 0x40d568
mov eax, 0x40ccc8
call fcn.0040489c
lea eax, [ebp - 0x24]
call fcn.00403e04
lea eax, [ebp - 0x3c]
call fcn.00403e04
push 0
push 0x4010a3
lea edx, [ebp - 0x24]
push 0
mov dword [0x40e170], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x40e174], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
mov dword [0x40cc90], eax
xor edx, edx
mov dword [0x40e174], edx
mov dword [0x40e170], edx
cmp dword [0x40cc98], 0
jne 0x403679
cmp dword [0x40cca4], 0
jne 0x403679
mov ecx, 4
mov edx, dword [0x40c048]
xor eax, eax
call fcn.004017f1
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00403e28
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403e28
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004051ac
cmp byte [0x40c044], 0
je 0x4036ae
call fcn.00402606
mov eax, 0x40d4dc
mov ecx, 0x80
xor edx, edx
call fcn.00406a78
cmp dword [0x40c054], 0
jle 0x4036d2
mov eax, dword [0x40c048]
call fcn.0040688c
push dword [0x40dd68]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x40dd6c]
test eax, eax
je 0x4036ec
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x40ccb4], 0
jne 0x40370d
cmp dword [0x40cc98], 0
je 0x40370d
mov eax, 0x40ccb4
mov edx, 0xff
call fcn.0040666c
mov dword [0x40cc98], 2
push dword [0x40ccb4]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40372c
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov dword [0x40cca8], 1
mov ebx, dword [0x40cc90]
test ebx, ebx
je 0x403754
mov eax, 0x7d
call fcn.00402874
push eax
push 1
push ebx
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x40ccac], edx
mov dword [0x40ccb0], 1
mov eax, dword [0x40cc90]
test eax, eax
je 0x4037ad
push 1
push eax
call sub.USER32.DLL_ShowWindow
cmp dword [0x40c054], 0
jne 0x4037a4
cmp byte [0x40c019], 0
jne 0x4037a4
push 0
push 1
push 0x111
push dword [0x40cc90]
call sub.USER32.DLL_SendMessageA
jmp 0x4037a4
call fcn.004028f0
cmp dword [0x40cc98], 2
jne 0x40379f
cmp byte [0x40c044], 0
je 0x4037bb
call fcn.00402606
pop ebx
ret

Function at 0x403e50
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 0x403e75
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.00403fac
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 0x403ebb
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 0x403f0c
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x403f89
mov eax, dword [ebx + 4]
test eax, eax
je 0x403f24
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.00406ad4
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.00406878
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.00406b54
mov edx, edi
mov eax, ebx
call fcn.004045e8
test al, al
jne 0x403f65
mov edx, edi
mov eax, ebx
call fcn.00404620
mov edx, edi
mov eax, ebx
call fcn.00404460
mov ebx, eax
mov eax, edi
call fcn.0040688c
test ebx, ebx
je 0x403f89
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040688c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4041a0
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 0x404206
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x404217
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x404206
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 0x4041be
cmp dword [esp], 0
je 0x4041be
xor ebx, ebx
cmp dword [esp], 0
je 0x404261
lea eax, [esp + 4]
push eax
push 0x40cc20
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404261
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x404257
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