joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478059
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x478091
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004760e3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004760bb
jmp 0x47809d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x479747
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x479789
call fcn.0047f303
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x479789
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479780
xor eax, eax
jmp 0x479791
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00479797
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f833
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f861
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f87f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047f799
jmp 0x47f87f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f87f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047f799
test edi, edi
mov eax, edi
jne 0x47f869
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40360d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40363a
mov ecx, dword [0x7d13b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x79fcf0], eax
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403738
cmp eax, edi
jl 0x403731
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5d4]
call ebx
test eax, eax
je 0x40372e
cmp dword [ebp - 4], esi
jne 0x40372e
push dword [ebp + 8]
add dword [0x79fcf0], esi
call fcn.00403738
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403731
cmp dword [ebp + 0x10], edi
jne 0x4036fd
cmp dword [ebp + 8], edi
jle 0x403729
mov esi, 0x79bcac
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4036ad
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5d4]
call ebx
test eax, eax
je 0x40372e
cmp edi, dword [ebp - 4]
jne 0x40372e
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036f9
cmp dword [ebp + 0x14], edi
jne 0x4036f9
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x79fcf0], eax
cmp dword [ebp + 8], 0
jg 0x4036a0
jmp 0x403729
push 0xfffffffffffffffe
jmp 0x403730
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403708
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5d4]
call ebx
test eax, eax
je 0x40372e
mov eax, dword [ebp - 4]
add dword [0x79fcf0], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403731
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403738
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x79fcf0]
mov edi, eax
sub esi, dword [0x4153e4]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403908
push dword [0x7a7cfc]
call fcn.0040394a
push ebp
push ebp
push dword [0x4153e4]
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x7a7cf8], esi
mov dword [0x79fcec], ebp
mov eax, dword [0x79fcf4]
mov ebx, 0x4000
sub eax, dword [0x7a7cfc]
cmp eax, ebx
jg 0x4037ab
mov ebx, eax
mov esi, 0x79bcac
push ebx
push esi
call fcn.00403918
test eax, eax
je 0x4038c9
add dword [0x7a7cfc], ebx
mov dword [0x4153e8], esi
mov dword [0x4153ec], ebx
cmp dword [0x7d1368], ebp
je 0x40383c
cmp dword [0x7d1400], ebp
jne 0x40383c
cmp dword [esp + 0x10], ebp
je 0x403809
mov eax, dword [0x7a7cf8]
push ebp
sub eax, dword [0x79fcf0]
sub eax, dword [esp + 0x20]
add eax, dword [0x4153e4]
mov dword [0x79fcec], eax
call fcn.004069c7
jmp 0x40383c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40383c
mov eax, dword [0x7d1364]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x403262
push ebp
push 0x6f
push dword [0x7d1360]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x4153e8
mov dword [0x4153f0], 0x793cac
mov dword [0x4153f4], 0x8000
call fcn.00406a7a
test eax, eax
jl 0x403913
mov esi, dword [0x4153f0]
mov eax, 0x793cac
sub esi, eax
je 0x4038a3
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4038ce
cmp esi, dword [esp + 0x14]
jne 0x4038ce
add dword [0x4153e4], esi
cmp dword [0x4153ec], ebp
jne 0x4037d1
jmp 0x4038af
cmp dword [0x4153ec], ebp
jne 0x403913
cmp ebx, ebp
je 0x403913
mov eax, dword [0x79fcf0]
mov ecx, eax
sub ecx, dword [0x4153e4]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4038d2
jmp 0x403795
or eax, 0xffffffff
jmp 0x40390a
push 0xfffffffffffffffe
jmp 0x403915
push ebp
push ebp
push eax
push dword [0x40a5d4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403908
mov eax, dword [0x7a7cf8]
push ebp
push ebp
push 0x113
push esi
mov dword [0x79fcec], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40390a
Function at 0x405ccf
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x7c0538], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405cf3
test al, 0x10
jne 0x405cf6
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x7c0538
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405d21
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40609c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7bdd38
push esi
call fcn.004064b7
push esi
call fcn.0040604d
mov edi, eax
test edi, edi
jne 0x4060bd
xor eax, eax
jmp 0x40610f
push edi
call fcn.0040672b
test byte [0x7d1370], 0x80
je 0x4060d6
mov al, byte [edi]
test al, al
je 0x4060b9
cmp al, 0x5c
je 0x4060b9
sub edi, esi
push esi
call fcn.004064cd
cmp eax, edi
push esi
jle 0x4060f9
call fcn.0040695f
test eax, eax
je 0x4060f1
test byte [eax], 0x10
je 0x4060b9
push esi
call fcn.00406001
jmp 0x4060d8
call fcn.00405fba
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x406186
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4061b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4061fa
mov eax, edi
dec edi
test eax, eax
jne 0x4061c0
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4061f4
Function at 0x4061fe
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.0040699d
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40622a
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406370
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7c06c0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7c06c0
je 0x40626e
push 1
push 0
push esi
call fcn.00406186
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406376
cmp eax, edi
jg 0x406376
mov esi, 0x7c0138
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406376
cmp eax, edi
jg 0x406376
push esi
push ebp
push str._s_s_r_n
push 0x7bfd38
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call fcn.004064da
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406370
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406369
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406369
cmp edi, dword [esp + 0x18]
jne 0x406369
push str._Rename__r_n
push esi
call fcn.00406114
test eax, eax
jne 0x40637d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004064b7
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7bfd38
push eax
call fcn.00406160
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7d13f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aa18
push eax
call fcn.00406114
test eax, eax
je 0x406334
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x4063a6
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x406399
sub eax, esi
jmp 0x406336
Function at 0x4063aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40640e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4063fd
cmp dword [ebp + 0x14], 1
je 0x4063ff
cmp dword [ebp + 0x14], 2
je 0x4063ff
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4067c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4067e9
mov eax, dword [0x40a914]
cmp eax, 0xffffffff
je 0x4067e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a914], 0xffffffff
jmp 0x40685c
cmp dword [0x7c12c0], ebx
je 0x40685c
cmp byte [0x7c0ec0], bl
je 0x406828
cmp dword [0x40a914], 0xffffffff
jne 0x406831
push 4
push 0x40000000
push 0x7c0ec0
call fcn.00406186
cmp eax, 0xffffffff
mov dword [0x40a914], eax
je 0x40685c
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a914], 0xffffffff
je 0x40685c
push esi
mov esi, 0x7c5300
push 0x40aae8
push esi
call fcn.004064da
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.004064cd
push eax
push esi
push dword [0x40a914]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x406a04
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x7c0ac4], esi
push edi
jne 0x406a3e
mov ecx, 0x7c0ac0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406a1a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7c0ec0
jl 0x406a15
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406a73
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7c0ac0]
xor eax, esi
inc ecx
dec edx
jne 0x406a56
pop edi
pop esi
not eax
ret 0xc
Function at 0x4021ef
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x40220f
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x402218
cmp byte [ebx], 0
jne 0x40221f
xor eax, eax
jmp 0x40229f
xor esi, esi
jmp 0x402262
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402249
cmp dword [ebp - 4], 0
je 0x402249
test esi, esi
jne 0x402249
cmp dword [ebp + 8], 0
je 0x402245
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402262
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402257
cmp ecx, 0xa
jne 0x40225f
cmp ecx, 0xd
jne 0x402267
inc ebx
jmp 0x402267
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x402223
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x40229d
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x40229d
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040dc04
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4024dd
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.0040db84
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040dc58
test eax, eax
jne 0x402574
push 0x4121ec
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040db84
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040db04
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 0x40262f
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x412054], 0
je 0x4026a6
cmp byte [0x41390c], 0
je 0x4026a6
lea edx, [esp + 8]
mov eax, 0x41390c
call fcn.004025fe
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 0x4026a6
mov eax, ebx
call fcn.0040db84
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 0x402818
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 0x402980
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 0x4127a4
push 1
push 0
push 0x4127b4
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402a7f
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 0x4029e3
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 0x4029f5
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.0040dc04
lea eax, [ebp - 0x40c]
call fcn.00405af0
cmp byte [ebp - 0x40c], 0
je 0x402a26
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 0x4127d4
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402a76
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 0x402a6d
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 0x402bf4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x412854]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412019], 0
jne 0x402c50
mov eax, dword [0x413d0c]
call fcn.004040ac
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412091
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x412019], 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
and dword [esp + 8], 0xbfffffff
mov byte [esp + 0x19], 0
test bl, bl
je 0x402c9c
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402ca7
and dword [esp + 8], 0xfffffffe
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x40000001
mov eax, esp
push eax
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 0x4120b8
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret
Function at 0x403650
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x413504
mov eax, 0x418088
call fcn.0040e3a4
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x403687
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x403687
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040db94
mov esi, eax
test esi, esi
je 0x4036f3
mov edx, 0x4120ee
mov eax, esi
call fcn.0040dbd8
mov esi, eax
test eax, eax
je 0x4036a6
mov eax, ebx
mov edx, esi
call fcn.0040dc04
xor ecx, ecx
xor eax, eax
jmp 0x4036e5
and edx, 0xff
cmp edx, 0x20
je 0x4036b9
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x4036c8
cmp edx, 0x2f
jne 0x4036e4
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4036d8
cmp edx, 0x53
jne 0x4036e4
mov dword [0x412050], 1
jmp 0x4036ec
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4036ac
test cl, cl
jne 0x4036f3
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x418070], ebx
mov dword [0x41806c], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x413904], eax
push 0x65
push dword [0x41806c]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x413908], eax
mov eax, esp
call fcn.00405140
push 0x400
push 0x413104
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x413104
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x413104
mov eax, 0x418074
call fcn.00404928
lea eax, [esp + 8]
call fcn.00403f1c
lea eax, [esp + 0x20]
call fcn.00403f1c
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push 0
push 0x40100c
mov dword [0x413d0c], edx
push 0
mov dword [0x413d10], ecx
push str.STARTDLG
push dword [0x418070]
call sub.USER32.DLL_DialogBoxParamA
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00403f40
lea eax, [esp + 8]
mov edx, 2
call fcn.00403f40
mov eax, esp
mov edx, 2
call fcn.004051b4
xor ecx, ecx
mov dword [0x413d10], ecx
mov dword [0x413d0c], ecx
cmp dword [0x41285c], 0
jne 0x4037f6
cmp dword [0x412868], 0
jne 0x4037f6
mov ecx, 4
mov edx, dword [0x412040]
xor eax, eax
call fcn.00401790
cmp byte [0x41203d], 0
je 0x403804
call fcn.004024dd
mov eax, 0x413078
mov ecx, 0x80
xor edx, edx
call fcn.0040db04
cmp dword [0x41204c], 0
jle 0x403828
mov eax, dword [0x412040]
call fcn.0040da88
push dword [0x413904]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x413908]
test eax, eax
je 0x403842
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x418060], 0
jne 0x403863
cmp dword [0x41285c], 0
je 0x403863
mov eax, 0x418060
mov edx, 0xff
call fcn.0040b6bc
mov dword [0x41285c], 2
push dword [0x418060]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x403f68
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 0x403f8d
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.004040c4
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 0x403fd3
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 0x404024
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x4040a1
mov eax, dword [ebx + 4]
test eax, eax
je 0x40403c
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.0040db84
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040da74
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040dc04
mov edx, edi
mov eax, ebx
call fcn.00404674
test al, al
jne 0x40407d
mov edx, edi
mov eax, ebx
call fcn.004046ac
mov edx, edi
mov eax, ebx
call fcn.004044ec
mov ebx, eax
mov eax, edi
call fcn.0040da88
test ebx, ebx
je 0x4040a1
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040da88
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4