joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
push esi
mov eax, 0
push ebx
mov ecx, 0x14
sub esp, 0x140
cmp dword [0x405008], 2
lea edi, [esp + 0x28]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], 0x72666875
mov dword [esp + 0x18], 0x31766775
mov dword [esp + 0x1c], 0x67716c70
lea ebx, [esp + 0x78]
mov dword [esp + 0x20], 0x6f316968
mov dword [esp + 0x24], 0x68796c
rep stosd dword es:[edi], eax
mov eax, esi
jne 0x40186d
jmp 0x4019bd
sub edx, 3
add eax, 1
mov byte [eax - 1], dl
cmp eax, ebx
je 0x401874
movzx edx, byte [eax]
test dl, dl
jne 0x401860
lea edi, [esp + 0x94]
xor eax, eax
mov ecx, 0x12
mov dword [esp + 0x78], 0x6d756e32
mov dword [esp + 0x7c], 0x6d676c6f
lea edx, [esp + 0xdc]
rep stosd dword es:[edi], eax
mov dword [esp + 0x80], 0x366c6f75
mov dword [esp + 0x84], 0x6f6d6e32
mov eax, ebx
mov dword [esp + 0x88], 0x6e6d6e37
mov dword [esp + 0x8c], 0x6f376e6f
mov dword [esp + 0x90], 0x6e
jmp 0x4018ed
sub ecx, 3
add eax, 1
mov byte [eax - 1], cl
cmp eax, edx
je 0x4018f4
movzx ecx, byte [eax]
test cl, cl
jne 0x4018e0
lea edi, [esp + 0x104]
xor eax, eax
mov ecx, 0xf
mov dword [esp + 0xdc], 0x5f5f3d46
mov dword [esp + 0xe0], 0x75687658
rep stosd dword es:[edi], eax
mov dword [esp + 0xe4], 0x535f5f76
mov dword [esp + 0xe8], 0x6c6f6578
mov eax, edx
mov dword [esp + 0xec], 0x535f5f66
mov dword [esp + 0xf0], 0x7877666c
lea edi, [esp + 0x140]
mov dword [esp + 0xf4], 0x5f766875
mov dword [esp + 0xf8], 0x6871725f
mov dword [esp + 0xfc], 0x64653167
mov dword [esp + 0x100], 0x77
jmp 0x40198d
sub ecx, 3
add eax, 1
mov byte [eax - 1], cl
cmp eax, edi
je 0x401994
movzx ecx, byte [eax]
test cl, cl
jne 0x401980
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], edx
call fcn.00401580
add esp, 0x140
pop ebx
pop esi
pop edi
ret
sub edx, 3
add eax, 1
mov byte [eax - 1], dl
cmp eax, ebx
je 0x4019c4
movzx edx, byte [eax]
test dl, dl
jne 0x4019b0
lea edi, [esp + 0x94]
xor eax, eax
mov ecx, 0x12
mov dword [esp + 0x78], 0x6f6d7532
mov dword [esp + 0x7c], 0x36376e6f
lea edx, [esp + 0xdc]
rep stosd dword es:[edi], eax
mov dword [esp + 0x80], 0x326f6e6e
mov dword [esp + 0x84], 0x6d6e366e
mov eax, ebx
mov dword [esp + 0x88], 0x676e366f
mov dword [esp + 0x8c], 0x3b6d6f67
mov dword [esp + 0x90], 0x6d
jmp 0x401a3d
sub ecx, 3
add eax, 1
mov byte [eax - 1], cl
cmp edx, eax
je 0x401a44
movzx ecx, byte [eax]
test cl, cl
jne 0x401a30
lea edi, [esp + 0x100]
xor eax, eax
mov ecx, 0x10
mov dword [esp + 0xdc], 0x5f5f3d46
mov dword [esp + 0xe0], 0x75687658
rep stosd dword es:[edi], eax
mov dword [esp + 0xe4], 0x535f5f76
mov dword [esp + 0xe8], 0x6c6f6578
mov eax, edx
mov dword [esp + 0xec], 0x535f5f66
mov dword [esp + 0xf0], 0x7877666c
lea edi, [esp + 0x140]
mov dword [esp + 0xf4], 0x5f766875
mov dword [esp + 0xf8], 0x6871725f
mov dword [esp + 0xfc], 0x67
jmp 0x401ad3
sub ecx, 3
add eax, 1
mov byte [eax - 1], cl
cmp eax, edi
je 0x401994
movzx ecx, byte [eax]
test cl, cl
jne 0x401ac2
jmp 0x401994
Function at 0x402160
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4021ab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4021a4
test esi, esi
je 0x4021a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402180
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402390
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4023e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4024b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40241e
cmp eax, 4
jne 0x402440
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40242e
cmp edx, 4
je 0x40242e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402390
Function at 0x4025f3
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 0x402613
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x40261f
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402628
cmp byte [ebx], 0
jne 0x40262f
xor eax, eax
jmp 0x4026e9
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402696
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402661
cmp dword [ebp - 4], 0
je 0x402661
cmp dword [ebp - 8], 0
jne 0x402661
cmp dword [ebp + 0x10], 0
je 0x40265c
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402695
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402673
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402680
and eax, 0xff
cmp eax, 0xd
jne 0x40269b
inc ebx
jmp 0x40269b
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402695
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x40269b
inc esi
cmp byte [ebx], 0
jne 0x402638
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4026e7
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4026e7
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.0040d408
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 0x4026f1
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.0040d378
cmp eax, 0x3f6
jae 0x402933
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.0040d2f0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40273e
lea edx, [ebx + 1]
jmp 0x402740
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x402797
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x40276a
jmp 0x402763
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402763
mov byte [ebx + eax], 0x20
jmp 0x40276a
inc eax
cmp byte [ebx + eax], 0
jne 0x402753
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40277f
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402796
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x40278d
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x40279d
inc eax
cmp byte [ebx + eax], 0
jne 0x402747
cmp byte [0x412cca], 0
je 0x4027ad
mov dword [ebp - 0x2c], 0x412cca
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.004063b8
mov esi, eax
test esi, esi
je 0x4027d9
mov edx, str..inf
mov eax, esi
call fcn.0040d474
test eax, eax
jne 0x4027d9
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.004070d0
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402803
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.0040719c
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402842
cmp byte [ebp - 2], 0
jne 0x402842
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0040d3f4
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.0040d4bc
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.004070d0
test al, al
je 0x402933
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402872
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 0x402933
xor ebx, ebx
cmp byte [0x4128c0], 0
jne 0x40288b
cmp byte [ebp - 1], 0
je 0x4028d4
cmp dword [0x41314c], 0
je 0x4028a3
push dword [0x41314c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4028a7
xor eax, eax
jmp 0x4028ac
mov eax, 1
test eax, eax
je 0x4028bf
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.00402939
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028f0
mov edx, str..exe
mov eax, esi
call fcn.0040d474
test eax, eax
je 0x402922
cmp byte [0x4128c0], 0
je 0x40290b
cmp byte [ebp - 1], 0
jne 0x40290b
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402922
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x40291c
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402933
push 1
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402969
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 0x402a05
lea eax, [ebp - 0x400]
call fcn.0040607c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040d498
test eax, eax
jne 0x402a05
push 0x412248
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.0040d378
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.0040d2f0
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 0x402b04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x4128c8], 0
je 0x402b7f
cmp byte [0x414604], 0
je 0x402b7f
lea edx, [ebp - 0x408]
mov eax, 0x414604
call fcn.00402ac9
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 0x402b7f
mov eax, ebx
call fcn.0040d378
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 0x402b84
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 0x402c01
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402ac9
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 0x402c01
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 0x402bf9
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.0040d3f4
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402cc8
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 0x402e3c
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 0x402f3b
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 0x402e9f
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 0x402eb1
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.0040d3f4
lea eax, [ebp - 0x40c]
call fcn.004064c0
cmp byte [ebp - 0x40c], 0
je 0x402ee2
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 0x402f32
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 0x402f29
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 0x402f4c
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 0x4030b0
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 0x40310f
mov eax, dword [0x414a04]
call fcn.0040471c
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 0x403164
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 0x4031b8
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 0x403afc
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, 0x415640
call fcn.0040dca0
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403b31
mov eax, ebx
call fcn.00403cd4
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
call fcn.004057b8
test eax, eax
je 0x403b6d
push 0x400
push 0x413dfc
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x403b76
mov word [0x413dfc], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x415638], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x4145fc], eax
push 0x65
push dword [0x415638]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x414600], eax
lea eax, [ebp - 8]
call fcn.00405a3c
mov edx, 0x4139fc
mov eax, 0x415624
call fcn.00405034
lea eax, [ebp - 0x20]
call fcn.00404588
lea eax, [ebp - 0x38]
call fcn.00404588
push 0
push 0x40118b
lea edx, [ebp - 0x20]
push 0
mov dword [0x414a04], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x414a08], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
xor edx, edx
mov dword [0x41314c], eax
mov dword [0x414a08], edx
mov dword [0x414a04], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.004045ac
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004045ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405ab8
cmp byte [0x4128c0], 0
je 0x403c3a
call fcn.00402969
mov eax, 0x41396c
mov ecx, 0x80
xor edx, edx
call fcn.0040d2f0
cmp dword [0x412054], 0
jle 0x403c5e
mov eax, dword [0x412048]
call fcn.0040d274
push dword [0x4145fc]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x414600], 0
je 0x403c7d
push dword [0x414600]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x415618], 0
jne 0x403c9e
cmp dword [0x413154], 0
je 0x403c9e
mov eax, 0x415618
mov edx, 0xff
call fcn.0040a4ec
mov dword [0x413154], 2
cmp dword [0x41205c], 0
je 0x403cbb
mov eax, dword [0x41205c]
call fcn.00402939
call sub.OLE32.DLL_OleUninitialize
push dword [0x415618]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403ea4
Capabilities:
Hide graphical window

Disassembly:
mov dword [0x41315c], 1
cmp dword [0x41314c], 0
je 0x403ecf
mov eax, 0x7d
call fcn.00402c0c
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 0x403f2d
push 1
push dword [0x41314c]
call sub.USER32.DLL_ShowWindow
cmp dword [0x412054], 0
jne 0x403f24
cmp byte [0x412018], 0
jne 0x403f24
push 0
push 1
push 0x111
push dword [0x41314c]
call sub.USER32.DLL_SendMessageA
jmp 0x403f24
call fcn.00402c88
cmp dword [0x413154], 2
jne 0x403f1f
cmp byte [0x4128c0], 0
je 0x403f3b
call fcn.00402969
ret
Function at 0x4045d4
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 0x4045f9
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.00404734
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 0x404640
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 0x404693
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 0x404711
cmp dword [ebx + 4], 0
je 0x4046ac
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.0040d378
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040d260
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040d3f4
mov edx, edi
mov eax, ebx
call fcn.00404d78
test al, al
jne 0x4046ed
mov edx, edi
mov eax, ebx
call fcn.00404db0
mov edx, edi
mov eax, ebx
call fcn.00404be8
mov ebx, eax
mov eax, edi
call fcn.0040d274
test ebx, ebx
je 0x404711
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040d274
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404930
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 0x404994
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x4049a8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x404994
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 0x404950
cmp dword [ebp - 4], 0
je 0x404950
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x4049ed
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 0x4049ed
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x4049e4
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