joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d8f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0040639c
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x404db4
test esi, esi
je 0x404db4
cmp word [esi], 0
je 0x404db4
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x404dbf
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x404dd9
cmp byte [ebp + 0x10], 0
je 0x404dd5
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00404cdf
xor eax, eax
jmp 0x404df1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x404dee
cmp eax, 3
je 0x404dee
xor eax, eax
inc eax
jmp 0x404df1
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x4059f4
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 0x405a26
cmp dword [ebp - 8], ebx
jne 0x405a67
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x405a67
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 0x405a13
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 0x405a13
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x405aa7
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x4107f4
push eax
call dword [ecx]
test eax, eax
jl 0x405aa7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x405a9e
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 0x40624b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
push edi
jne 0x40626e
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [esi + 0x14], 1
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 0xc]
mov byte [esi + 0x15], 0
call ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.004061e4
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x4062c4
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
push dword [esi]
push 0
push dword [ebp + 0xc]
call edi
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor edi, edi
push eax
mov eax, dword [ebp - 0x10]
sub ecx, eax
dec ecx
dec ecx
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x40630f
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x406324
cmp dword [esi + 0x18], 0x64
jbe 0x406395
mov ecx, esi
call fcn.00405baa
jmp 0x406395
mov eax, dword [esi + 4]
cmp eax, edi
je 0x406335
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], edi
push 5
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0x10]
call fcn.00408830
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.004086e9
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00408923
push ebx
mov ecx, esi
call fcn.00405ab0
test al, al
jne 0x406371
push ebx
mov ecx, esi
call fcn.00405ae0
push ebx
mov ecx, esi
call fcn.00405f10
push ebx
mov esi, eax
call fcn.00408702
cmp esi, edi
je 0x406395
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00408702
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408487
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
call fcn.004083b0
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x1c]
sub edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
sub edi, dword [ebp - 0x24]
sub esi, eax
sub esi, dword [ebp - 0x20]
inc edi
inc esi
cmp byte [ebp - 1], 0
je 0x408514
cmp byte [ebp + 0x10], 0
jne 0x408554
imul eax, dword [ebp - 8]
push 0x206
cdq
push 0x64
pop ecx
idiv ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x3c]
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [ebp + 0x10], 0
jne 0x408554
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.004082cc
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push dword [ebp + 8]
sub esi, eax
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp + 8], 0
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x14], eax
jmp 0x40864a
cmp dword [ebp + 8], 0x200
jge 0x408652
push 0x400
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x444], 0
je 0x4085c8
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.004082cc
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebp - 1], 0
je 0x408634
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x10]
call ebx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0x204
inc eax
imul eax, dword [ebp - 8]
cdq
push 0x64
pop ecx
idiv ecx
push eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
inc eax
imul eax, dword [ebp - 0xc]
cdq
idiv ecx
push eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x20]
sub eax, esi
imul eax, dword [ebp - 8]
cdq
idiv ecx
push eax
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x34]
sar ecx, 1
sub eax, ecx
sub eax, dword [ebp - 0x24]
push 0x64
imul eax, dword [ebp - 0xc]
pop ecx
cdq
idiv ecx
push eax
push 0
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp - 0x14]
je 0x408652
inc dword [ebp + 8]
test eax, eax
jne 0x408578
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4091f2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x417f80]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x418814], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x409254
mov ecx, dword [0x416ecc]
call fcn.00405993
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x410552
push 0
push 0xc2
push edi
call esi
mov byte [0x418814], 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 0x4092a4
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 0x4092ee
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 0x410588
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x409b2a
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 [0x418815], 0
jne 0x409bb9
push 6
push dword [0x41209c]
lea eax, [ebp - 0x420]
push eax
call fcn.004068e9
push eax
call fcn.00408a69
test eax, eax
jne 0x409bb9
push 0x4102f4
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408830
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408786
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 0x409c78
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 [0x417f70], esi
cmp dword [0x417f80], ebx
je 0x409ca2
push 0x7d
call fcn.00408670
push eax
push esi
push dword [0x417f80]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x417f80]
mov dword [0x417f6c], ebx
mov dword [0x417f68], esi
cmp eax, ebx
je 0x409cf2
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x418824], ebx
jne 0x409ce9
cmp byte [0x418814], bl
jne 0x409ce9
push ebx
push esi
push 0x111
push dword [0x417f80]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x409ce9
call fcn.00408cd9
cmp dword [0x417f78], 2
jne 0x409ce4
cmp byte [0x417f88], bl
pop esi
pop ebx
je 0x409d01
jmp fcn.00409b2a
ret
Function at 0x409d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x417f90], bl
je 0x409dac
cmp byte [0x416ed0], bl
je 0x409dac
push esi
push 0x416ed0
lea esi, [ebp - 0x408]
call fcn.00409d02
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 0x409dac
push dword [ebp + 8]
call fcn.00408830
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 0x409db1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x417f90], 0
je 0x409e33
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.00409d02
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 0x409e33
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 0x409e2a
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.00408923
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x409f8b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x417ede], 0
mov eax, dword [ebp + 0x10]
mov dword [0x417ee0], eax
mov eax, dword [ebp + 0x14]
mov dword [0x417ee4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x417ed8], eax
je 0x409fbb
xor eax, eax
inc eax
jmp 0x409fe4
cmp byte [0x417edf], 0
je 0x409fc9
push 2
pop eax
jmp 0x409fe4
push dword [ebp + 0xc]
push 0x409343
push dword [0x417f80]
push str.REPLACEFILEDLG
push dword [0x412c74]
call esi
dec eax
je 0x40a045
dec eax
je 0x40a024
dec eax
je 0x40a03e
dec eax
jne 0x40a017
push dword [ebp + 0xc]
push 0x40963f
push dword [0x417f80]
push str.RENAMEDLG
push dword [0x412c74]
call esi
test eax, eax
je 0x409f95
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a056
dec eax
je 0x40a02c
dec eax
jne 0x40a056
mov byte [0x417edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a056
mov eax, dword [ebp + 8]
mov dword [0x417f78], 1
mov byte [eax], 0x43
jmp 0x40a056
mov byte [0x417ede], 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 0x40a0f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408830
cmp eax, 0x3f6
jae 0x40a30c
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408786
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a140
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a143
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a188
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a164
jmp 0x40a158
cmp byte [eax + esi], 0x22
je 0x40a160
inc eax
cmp byte [eax + esi], bl
jne 0x40a152
jmp 0x40a164
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a17b
cmp byte [eax + esi + 1], 0x2f
je 0x40a17b
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a14b
jmp 0x40a188
add eax, esi
cmp byte [eax], 0x20
jne 0x40a184
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a19c
cmp byte [0x418392], bl
je 0x40a19c
mov dword [ebp - 0x30], 0x418392
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00406b9e
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a1c8
push str..inf
push eax
call fcn.00408a46
test eax, eax
jne 0x40a1c8
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.00404c5e
mov byte [ebp - 1], al
cmp al, bl
je 0x40a1f0
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00404d19
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40a22f
cmp byte [ebp - 1], bl
jne 0x40a22f
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408923
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408a8e
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00404c5e
test al, al
je 0x40a30a
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 0x40a261
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 0x40a30a
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x417f88], bl
jne 0x40a277
cmp byte [ebp + 8], bl
je 0x40a2ae
mov eax, dword [0x417f80]
cmp eax, ebx
je 0x40a298
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a298
push ebx
push dword [0x417f80]
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.00409aeb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a2cd
push str..exe
push dword [ebp - 8]
call fcn.00408a46
test eax, eax
je 0x40a2fb
cmp byte [0x417f88], bl
je 0x40a2e1
cmp byte [ebp + 8], bl
jne 0x40a2e1
push 0x1b58
jmp 0x40a2f5
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 0x40a30a
push 1
push dword [0x417f80]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40b71e
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x41d738
call fcn.0040c34e
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40b7a6
push esi
call fcn.00409886
cmp byte [0x417f91], bl
je 0x40b79a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40b791
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40b78a
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40b7a6
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x417ad8
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
call fcn.0040639c
test eax, eax
je 0x40b7dd
push edi
push 0x4172d8
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
jmp 0x40b7e5
xor eax, eax
mov word [0x4172d8], ax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x412c78], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x412c78]
mov dword [0x4172d4], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x4172d0], eax
call fcn.0040f1a2
push esi
mov ecx, 0x412c88
call fcn.00408659
lea ecx, [ebp - 0x40]
call fcn.00405970
lea ecx, [ebp - 0x24]
call fcn.00405970
push 0x64
call fcn.0040914d
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040914d
push ebx
push 0x40afa4
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x416ecc], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x416ec8], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x417f80], ebx
mov dword [0x416ec8], ebx
mov dword [0x416ecc], ebx
call fcn.00405986
lea ecx, [ebp - 0x40]
call fcn.00405986
lea ecx, [ebp - 8]
call fcn.0040f21a
cmp byte [0x417f88], bl
je 0x40b8a6
call fcn.00409b2a
push 0x80
push ebx
push 0x417ee8
call fcn.00408786
cmp dword [0x418824], ebx
jbe 0x40b8c9
push dword [0x418818]
call fcn.00408702
push dword [0x4172d4]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x4172d0]
cmp eax, ebx
je 0x40b8e3
push eax
call esi
cmp dword [0x412c7c], ebx
jne 0x40b902
cmp dword [0x417f78], ebx
je 0x40b902
push 0xff
mov ecx, 0x412c7c
call fcn.00402c1c
mov eax, dword [0x418828]
mov dword [0x417f78], 2
cmp eax, ebx
je 0x40b91b
push eax
call fcn.00409aeb
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x412c7c]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x402be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x422070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edx + 0x10], 0
jne 0x402c17
xor al, al
jmp 0x402ce6
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
cmp eax, edx
je 0x402c4a
push 0xffffffffffffffff
push 0
push edx
mov ecx, eax
call fcn.00401820
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x402c4d
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x402c67
push 1
push 0x41f3d4
lea ecx, [ebp - 0x28]
call fcn.004026f0
push 0xffffffffffffffff
push 0
push 0x423970
lea ecx, [ebp - 0x28]
call fcn.00402820
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402ccd
test al, 0x10
jne 0x402ccd
xor bl, bl
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x402ccf
push str.RunReWirePanel
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402cc4
call eax
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402ccf
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x402ce4
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00401c70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404b43
mov esp, ebp
pop ebp
ret
Function at 0x402f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414b90
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x422070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x402fa2
mov eax, dword [esi]
jmp 0x402fa4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403043
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x402fc6
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401820
push 0
push 0x41f3e0
lea ecx, [ebp - 0x40]
call fcn.00401720
sub esp, 8
mov dword [ebp - 0x44], 0x2e
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x28]
push eax
call fcn.00403fb0
mov edi, eax
cmp edi, 0xffffffff
je 0x403024
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401820
cmp dword [ebp - 0x18], edi
jae 0x403010
push str.invalid_string_position
call fcn.004045c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edi*2], cx
push 5
push str._Copy
lea ecx, [ebp - 0x28]
call fcn.004026f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402820
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40305e
test al, 0x10
je 0x403071
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x403071
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00401820
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40309a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401c70
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x4030c3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404b43
mov esp, ebp
pop ebp
ret
Function at 0x41147f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041113f