joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6193e2e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
cmp byte [ebp + 0x10], 0
push ebx
jne 0x6193e304
mov ebx, dword [ebp + 8]
push eax
call fcn.6193d800
test al, al
jne 0x6193e304
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0xc]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6193e310
push esi
sub eax, edx
mov esi, eax
push edi
push esi
mov dword [ebp + 0xc], esi
call fcn.61944544
lea ecx, [ebp + 0xc]
push ecx
mov edi, eax
push edi
push esi
push ebx
call fcn.6193a5d0
add esp, 0x14
test al, al
jne 0x6193e34f
push edi
call fcn.61944c34
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
xor eax, eax
push edx
push edi
lea esi, [ebp - 0x78]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x28], 0x67452301
mov dword [ebp - 0x24], 0xefcdab89
mov dword [ebp - 0x20], 0x98badcfe
mov dword [ebp - 0x1c], 0x10325476
mov dword [ebp - 0x18], 0xc3d2e1f0
mov byte [ebp - 0x78], al
call fcn.6193a6e0
cmp byte [ebp - 0x78], 0
jne 0x6193e398
call fcn.6193ac80
mov eax, dword [ebp - 0x28]
movzx edx, word [ebp - 0x28]
shr eax, 0x10
rol ax, 8
rol dx, 8
movzx ecx, ax
movzx eax, dx
shl eax, 0x10
or ecx, eax
movzx eax, word [ebp - 0x24]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x24]
shr ecx, 0x10
rol cx, 8
rol ax, 8
movzx edx, cx
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
mov cx, word [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x20]
shr edx, 0x10
rol dx, 8
rol cx, 8
movzx eax, dx
movzx edx, cx
shl edx, 0x10
or eax, edx
movzx edx, word [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
rol ax, 8
rol dx, 8
movzx ecx, ax
movzx eax, dx
shl eax, 0x10
or ecx, eax
movzx eax, word [ebp - 0x18]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
rol cx, 8
movzx edx, cx
rol ax, 8
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
push edi
mov dword [ebp - 4], edx
call fcn.61944c34
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x14]
push 0x14
push ecx
mov dword [ebp + 0xc], 0x40
call fcn.6193a4b0
mov bl, byte [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add esp, 0x14
mov byte [ebp + edx - 0xb8], 0
mov eax, 0x61955438
test bl, bl
jne 0x6193e47a
mov eax, 0x61955450
mov edi, dword [ebp + 8]
push 0
push eax
call fcn.6193dd10
push 1
lea eax, [ebp - 0xb8]
push eax
call fcn.6193dd10
test bl, bl
je 0x6193e49c
call fcn.6193ddf0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4025e9
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 0x402609
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x402615
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x40261e
cmp byte [ebx], 0
jne 0x402625
xor eax, eax
jmp 0x4026df
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x40268c
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402657
cmp dword [ebp - 4], 0
je 0x402657
cmp dword [ebp - 8], 0
jne 0x402657
cmp dword [ebp + 0x10], 0
je 0x402652
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x40268b
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402669
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402676
and eax, 0xff
cmp eax, 0xd
jne 0x402691
inc ebx
jmp 0x402691
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x40268b
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x402691
inc esi
cmp byte [ebx], 0
jne 0x40262e
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4026dd
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4026dd
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.0040d3d4
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 0x4026e7
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.0040d344
cmp eax, 0x3f6
jae 0x402929
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.0040d2bc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402734
lea edx, [ebx + 1]
jmp 0x402736
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x40278d
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x402760
jmp 0x402759
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402759
mov byte [ebx + eax], 0x20
jmp 0x402760
inc eax
cmp byte [ebx + eax], 0
jne 0x402749
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x402775
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x40278c
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x402783
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x402793
inc eax
cmp byte [ebx + eax], 0
jne 0x40273d
cmp byte [0x412cca], 0
je 0x4027a3
mov dword [ebp - 0x2c], 0x412cca
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00406358
mov esi, eax
test esi, esi
je 0x4027cf
mov edx, str..inf
mov eax, esi
call fcn.0040d440
test eax, eax
jne 0x4027cf
mov dword [ebp - 0x34], 0x41223b
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00407070
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4027f9
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.0040713c
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402838
cmp byte [ebp - 2], 0
jne 0x402838
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0040d3c0
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.0040d488
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00407070
test al, al
je 0x402929
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402868
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 0x402929
xor ebx, ebx
cmp byte [0x4128c0], 0
jne 0x402881
cmp byte [ebp - 1], 0
je 0x4028ca
cmp dword [0x41314c], 0
je 0x402899
push dword [0x41314c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40289d
xor eax, eax
jmp 0x4028a2
mov eax, 1
test eax, eax
je 0x4028b5
push 0
push dword [0x41314c]
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.0040292f
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028e6
mov edx, str..exe
mov eax, esi
call fcn.0040d440
test eax, eax
je 0x402918
cmp byte [0x4128c0], 0
je 0x402901
cmp byte [ebp - 1], 0
jne 0x402901
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402918
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x402912
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402929
push 1
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40295f
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 0x4029fb
lea eax, [ebp - 0x400]
call fcn.0040601c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040d464
test eax, eax
jne 0x4029fb
push 0x412248
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.0040d344
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.0040d2bc
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 0x402afa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x4128c8], 0
je 0x402b75
cmp byte [0x413e04], 0
je 0x402b75
lea edx, [ebp - 0x408]
mov eax, 0x413e04
call fcn.00402abf
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 0x402b75
mov eax, ebx
call fcn.0040d344
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 0x402b7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x4128c8], 0
je 0x402bf7
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402abf
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 0x402bf7
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 0x402bef
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.0040d3c0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402cbc
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 0x402e30
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 0x412810
push 1
push 0
push 0x412820
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402f2f
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 0x402e93
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 0x402ea5
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.0040d3c0
lea eax, [ebp - 0x40c]
call fcn.00406460
cmp byte [ebp - 0x40c], 0
je 0x402ed6
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 0x412840
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402f26
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 0x402f1d
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 0x402f40
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 0x4030a4
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 [0x41314c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412018], 0
jne 0x403103
mov eax, dword [0x414204]
call fcn.004046bc
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412099
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 0x403158
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 0x4031ac
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 0x4120c0
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 0x403ae8
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push 0
call sub.OLE32.DLL_OleInitialize
mov eax, 0x414e40
call fcn.0040dc6c
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403b1d
mov eax, ebx
call fcn.00403c9c
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x4139fc
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x4139fc
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x414e38], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x413dfc], eax
push 0x65
push dword [0x414e38]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x413e00], eax
lea eax, [ebp - 8]
call fcn.004059dc
mov edx, 0x4139fc
mov eax, 0x414e24
call fcn.00404fd4
lea eax, [ebp - 0x20]
call fcn.00404528
lea eax, [ebp - 0x38]
call fcn.00404528
push 0
push 0x40118b
lea edx, [ebp - 0x20]
push 0
mov dword [0x414204], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x414208], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
xor edx, edx
mov dword [0x41314c], eax
mov dword [0x414208], edx
mov dword [0x414204], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.0040454c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040454c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405a58
cmp byte [0x4128c0], 0
je 0x403c01
call fcn.0040295f
mov eax, 0x41396c
mov ecx, 0x80
xor edx, edx
call fcn.0040d2bc
cmp dword [0x412054], 0
jle 0x403c25
mov eax, dword [0x412048]
call fcn.0040d240
push dword [0x413dfc]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x413e00], 0
je 0x403c44
push dword [0x413e00]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x414e18], 0
jne 0x403c65
cmp dword [0x413154], 0
je 0x403c65
mov eax, 0x414e18
mov edx, 0xff
call fcn.0040a4b0
mov dword [0x413154], 2
cmp dword [0x41205c], 0
je 0x403c82
mov eax, dword [0x41205c]
call fcn.0040292f
call sub.OLE32.DLL_OleUninitialize
push dword [0x414e18]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403e44
Capabilities:
Hide graphical window

Disassembly:
mov dword [0x41315c], 1
cmp dword [0x41314c], 0
je 0x403e6f
mov eax, 0x7d
call fcn.00402c00
push eax
push 1
push dword [0x41314c]
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x413160], edx
mov dword [0x413164], 1
cmp dword [0x41314c], 0
je 0x403ecd
push 1
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
cmp dword [0x412054], 0
jne 0x403ec4
cmp byte [0x412018], 0
jne 0x403ec4
push 0
push 1
push 0x111
push dword [0x41314c]
call sub.USER32.DLL_SendMessageA
jmp 0x403ec4
call fcn.00402c7c
cmp dword [0x413154], 2
jne 0x403ebf
cmp byte [0x4128c0], 0
je 0x403edb
call fcn.0040295f
ret
Function at 0x404574
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 0x404599
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.004046d4
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 0x4045e0
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 0x404633
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 0x4046b1
cmp dword [ebx + 4], 0
je 0x40464c
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.0040d344
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040d22c
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040d3c0
mov edx, edi
mov eax, ebx
call fcn.00404d18
test al, al
jne 0x40468d
mov edx, edi
mov eax, ebx
call fcn.00404d50
mov edx, edi
mov eax, ebx
call fcn.00404b88
mov ebx, eax
mov eax, edi
call fcn.0040d240
test ebx, ebx
je 0x4046b1
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040d240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4048d0
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 0x404934
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x404948
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x404934
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 0x4048f0
cmp dword [ebp - 4], 0
je 0x4048f0
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x40498d
lea eax, [ebp - 8]
push eax
push 0x412850
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x40498d
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x404984
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 0x4054b8
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.004056b4
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 0x40554f
cmp byte [ebp + 8], 0
jne 0x40554f
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 0x40558d
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.0040533c
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 0x40569b
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x4055ec
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.0040533c
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x40568b
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 0x405614
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 0x4056ab
inc esi
test edi, edi
je 0x4056ab
cmp esi, 0x200
jl 0x4055ab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4