joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402846
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x40288b
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a3b6
mov eax, esi
push eax
call fcn.0040a2c3
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a3b6
push esi
call fcn.0040a2c3
lea esi, [esi + eax + 1]
push 0x85
call fcn.00409838
push eax
push esi
call fcn.0040a3b6
push esi
call fcn.0040a2c3
lea esi, [esi + eax + 1]
push 0x4122b4
push esi
call fcn.0040a3b6
push esi
call fcn.0040a2c3
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a1c8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.00407331
cmp eax, esi
jne 0x40291a
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402939
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40293b
call ebx
mov edi, eax
test edi, edi
jne 0x402969
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402967
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402963
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402965
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402ccc
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402cda
call fcn.00402ca2
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d07
test cl, 7
je 0x402d07
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402ce8
cmp esi, 8
jb 0x402d8b
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d11
xor edx, edx
test esi, esi
jbe 0x402dab
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d92
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x404b5b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00403562
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0040604c
test al, al
je 0x404cf4
cmp byte [ebp - 0x24c0], bl
je 0x404cf4
cmp byte [ebp - 0x1840], bl
je 0x404cf4
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.00407331
push eax
call fcn.0040d701
test eax, eax
je 0x404cf4
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.00407331
push eax
call fcn.0040d701
test eax, eax
jne 0x404cf4
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040d7ac
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.00407331
push eax
call fcn.0040a54f
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405773
test al, al
je 0x404c33
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404bed
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00405773
test al, al
jne 0x404cf4
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040d7ac
lea eax, [ebp - 0x24c0]
push eax
call fcn.00407331
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00407331
push eax
call fcn.0040a3b6
mov esi, dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404cf4
lea ecx, [ebp - 0x1420]
call fcn.00404ecf
push 0
push edi
xor bl, bl
call fcn.00405773
test al, al
jne 0x404cbb
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.004051e4
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404ce5
lea ecx, [ebp - 0x1420]
call fcn.00404f3a
lea ecx, [ebp - 0x1420]
call fcn.00404fb8
lea ecx, [ebp - 0x1420]
call fcn.00405080
mov al, 1
jmp 0x404cf6
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4050a3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x4050bd
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x4050d0
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x4050e3
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.00406dfb
test eax, eax
je 0x40511c
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40511c
cmp word [eax], bx
je 0x40511c
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x405130
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40514c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x40514c
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4051ae
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x40517a
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040df98
jmp 0x405183
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x405196
push dword [ebp + 8]
push eax
call fcn.0040a3b6
jmp 0x4051a4
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040dd75
push dword [esi + 4]
mov ecx, esi
call fcn.00404f13
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4052de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x405304
cmp dword [ebp + 0xc], esi
jbe 0x4052f9
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x405354
mov ecx, edi
call fcn.0040505d
test al, al
je 0x40533a
cmp dword [ebp + 0xc], esi
jbe 0x40533a
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004052de
jmp 0x405357
cmp dword [edi + 0xc], 1
jne 0x40534f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x40534f
xor eax, eax
jmp 0x405357
or eax, 0xffffffff
jmp 0x405357
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405591
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405691
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4055be
dec eax
je 0x4055b3
dec eax
jne 0x4055be
push 0xfffffffffffffff4
jmp 0x4055b5
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x40560d
cmp dword [ebp + 0xc], edi
jbe 0x405628
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x4055e5
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x405628
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x4055d5
jmp 0x405624
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x40568b
cmp byte [esi + 0x14], 0
je 0x40568b
cmp dword [esi + 0xc], 0
jne 0x40568b
push 0
lea eax, [esi + 0x17]
mov edi, 0x414c7c
push eax
mov ecx, edi
call fcn.00403268
test al, al
je 0x40567e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x4055c6
test eax, eax
jbe 0x4055c6
push 0
mov ecx, esi
call fcn.00404fe8
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.004054f9
jmp 0x4055c6
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.0040347d
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x405773
Capabilities:
Get file attributes

Disassembly:
call fcn.00406dfb
test eax, eax
je 0x405793
mov eax, dword [esp + 8]
test eax, eax
je 0x405793
cmp word [eax], 0
je 0x405793
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x40579d
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x4057c2
Capabilities:
Get file attributes

Disassembly:
call fcn.00406dfb
test eax, eax
je 0x4057e2
mov eax, dword [esp + 8]
test eax, eax
je 0x4057e2
cmp word [eax], 0
je 0x4057e2
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x4057ec
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
ret 8

Function at 0x4057ef
Capabilities:
Set file attributes

Disassembly:
call fcn.00406dfb
test eax, eax
je 0x405813
mov eax, dword [esp + 8]
test eax, eax
je 0x405813
cmp word [eax], 0
je 0x405813
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x405821
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
Function at 0x40589f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00406dfb
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4058c4
test esi, esi
je 0x4058c4
cmp word [esi], 0
je 0x4058c4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x4058cf
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x4058e9
cmp byte [ebp + 0x10], 0
je 0x4058e5
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004057ef
xor eax, eax
jmp 0x405901
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x4058fe
cmp eax, 3
je 0x4058fe
xor eax, eax
inc eax
jmp 0x405901
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x406507
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edi
call dword [eax + 0x48]
test eax, eax
jl 0x406539
cmp dword [ebp - 8], ebx
jne 0x40657a
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40657a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x406526
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x406526
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x4065ba
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x412804
push eax
call dword [ecx]
test eax, eax
jl 0x4065ba
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x4065b1
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
setge bl
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x40ab18
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x419f80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41a814], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40ab7a
mov ecx, dword [0x418ecc]
call fcn.004064a6
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41257a
push 0
push 0xc2
push edi
call esi
mov byte [0x41a814], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x40]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x40], 0x3c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x27], 0
mov dword [ebp - 0x3c], eax
je 0x40abca
mov ecx, dword [ebp - 0x38]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], 0xa0
mov dword [ebp - 0x3c], 0x40000001
lea ecx, [ebp - 0x40]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40ac14
mov eax, dword [ebp - 0x38]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x4125b0
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b4ec
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
lea eax, [ebp - 0x420]
push eax
push 0x400
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
cmp byte [0x41a815], 0
jne 0x40b57b
push 6
push dword [0x41409c]
lea eax, [ebp - 0x420]
push eax
call fcn.00407331
push eax
call fcn.0040a4fc
test eax, eax
jne 0x40b57b
push 0x41231c
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.0040a2c3
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040a1c8
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
leave
ret

Function at 0x40b635
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebx
push esi
xor esi, esi
inc esi
xor ebx, ebx
mov dword [0x419f70], esi
cmp dword [0x419f80], ebx
je 0x40b65f
push 0x7d
call fcn.00409838
push eax
push esi
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x419f80]
mov dword [0x419f6c], ebx
mov dword [0x419f68], esi
cmp eax, ebx
je 0x40b6af
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41a824], ebx
jne 0x40b6a6
cmp byte [0x41a814], bl
jne 0x40b6a6
push ebx
push esi
push 0x111
push dword [0x419f80]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40b6a6
call fcn.0040a76c
cmp dword [0x419f78], 2
jne 0x40b6a1
cmp byte [0x419f88], bl
pop esi
pop ebx
je 0x40b6be
jmp fcn.0040b4ec
ret
Function at 0x40b6ed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x419f90], bl
je 0x40b769
cmp byte [0x418ed0], bl
je 0x40b769
push esi
push 0x418ed0
lea esi, [ebp - 0x408]
call fcn.0040b6bf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
test eax, eax
jne 0x40b769
push dword [ebp + 8]
call fcn.0040a2c3
inc eax
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40b76e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x419f90], 0
je 0x40b7f0
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040b6bf
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x40b7f0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b7e7
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040a3b6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40b855
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x419ede], 0
mov eax, dword [ebp + 0x10]
mov dword [0x419ee0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x419ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x419ed8], eax
je 0x40b885
xor eax, eax
inc eax
jmp 0x40b8ae
cmp byte [0x419edf], 0
je 0x40b893
push 2
pop eax
jmp 0x40b8ae
push dword [ebp + 0xc]
push 0x40ac69
push dword [0x419f80]
push str.REPLACEFILEDLG
push dword [0x414c74]
call esi
dec eax
je 0x40b90f
dec eax
je 0x40b8ee
dec eax
je 0x40b908
dec eax
jne 0x40b8e1
push dword [ebp + 0xc]
push 0x40af65
push dword [0x419f80]
push str.RENAMEDLG
push dword [0x414c74]
call esi
test eax, eax
je 0x40b85f
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40b920
dec eax
je 0x40b8f6
dec eax
jne 0x40b920
mov byte [0x419edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40b920
mov eax, dword [ebp + 8]
mov dword [0x419f78], 1
mov byte [eax], 0x43
jmp 0x40b920
mov byte [0x419ede], 1
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
mov byte [eax], 0x59
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
pop esi
pop ebp
ret 0x18
Function at 0x40ba4b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.0040a2c3
cmp eax, 0x3f6
jae 0x40bc5a
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.0040a1c8
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40ba93
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40ba96
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40badb
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40bab7
jmp 0x40baab
cmp byte [eax + esi], 0x22
je 0x40bab3
inc eax
cmp byte [eax + esi], bl
jne 0x40baa5
jmp 0x40bab7
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40bace
cmp byte [eax + esi + 1], 0x2f
je 0x40bace
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40ba9e
jmp 0x40badb
add eax, esi
cmp byte [eax], 0x20
jne 0x40bad7
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [0x41a392], bl
je 0x40baea
mov dword [ebp - 0x30], 0x41a392
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.004075e6
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40bb16
push str..inf
push eax
call fcn.0040a4d9
test eax, eax
jne 0x40bb16
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.00405773
mov byte [ebp - 1], al
cmp al, bl
je 0x40bb3e
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00405829
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40bb7d
cmp byte [ebp - 1], bl
jne 0x40bb7d
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.0040a3b6
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.0040a521
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00405773
test al, al
je 0x40bc58
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea eax, [ebp - 0x44]
push eax
call edi
test eax, eax
setne al
cmp al, bl
jne 0x40bbaf
and dword [ebp - 0x40], 0xfffffbff
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x34], esi
call edi
test eax, eax
setne al
cmp al, bl
je 0x40bc58
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x419f88], bl
jne 0x40bbc5
cmp byte [ebp + 8], bl
je 0x40bbfc
mov eax, dword [0x419f80]
cmp eax, ebx
je 0x40bbe6
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40bbe6
push ebx
push dword [0x419f80]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0xc]
call fcn.0040b4ad
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40bc1b
push str..exe
push dword [ebp - 8]
call fcn.0040a4d9
test eax, eax
je 0x40bc49
cmp byte [0x419f88], bl
je 0x40bc2f
cmp byte [ebp + 8], bl
jne 0x40bc2f
push 0x1b58
jmp 0x40bc43
xor eax, eax
cmp byte [ebp + 8], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [ebp - 1], bl
je 0x40bc58
push 1
push dword [0x419f80]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40cffd
Capabilities:
Accept command line arguments
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41fdb8
call fcn.0040e088
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40d039
push esi
call fcn.0040b257
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x419ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.00406dfb
test eax, eax
je 0x40d06f
push 0x400
push 0x4192d8
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x40d077
xor eax, eax
mov word [0x4192d8], ax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x414c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x414c78]
mov dword [0x4192d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4192d0], eax
call fcn.004111d7
push esi
mov ecx, 0x414c88
call fcn.00409821
lea ecx, [ebp - 0x38]
call fcn.00406480
lea ecx, [ebp - 0x20]
call fcn.00406480
push ebx
push 0x40c8eb
push ebx
lea eax, [ebp - 0x38]
mov dword [0x418ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x20]
push edi
mov dword [0x418ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x20]
mov dword [0x419f80], ebx
mov dword [0x418ec8], ebx
mov dword [0x418ecc], ebx
call fcn.00406499
lea ecx, [ebp - 0x38]
call fcn.00406499
lea ecx, [ebp - 8]
call fcn.0041124f
cmp byte [0x419f88], bl
je 0x40d124
call fcn.0040b4ec
push 0x80
push ebx
push 0x419ee8
call fcn.0040a1c8
cmp dword [0x41a824], ebx
jbe 0x40d147
push dword [0x41a818]
call fcn.0040a146
push dword [0x4192d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4192d0]
cmp eax, ebx
je 0x40d161
push eax
call esi
cmp dword [0x414c7c], ebx
jne 0x40d180
cmp dword [0x419f78], ebx
je 0x40d180
push 0xff
mov ecx, 0x414c7c
call fcn.004032d1
mov eax, dword [0x41a828]
mov dword [0x419f78], 2
cmp eax, ebx
je 0x40d199
push eax
call fcn.0040b4ad
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x414c7c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]