joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408bcd
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408bd1
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x408bd8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408c10
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408c14
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x409687
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x67
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42407c], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x4096e9
mov ecx, dword [0x42272c]
call fcn.00404d05
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40d6ae
push 0
push 0xc2
push edi
call esi
mov byte [0x42407c], 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 0x409739
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 0x409783
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 0x40d6e4
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a08a
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 [0x42407d], 0
jne 0x40a119
push 6
push dword [0x40f014]
lea eax, [ebp - 0x420]
push eax
call fcn.00406f74
push eax
call fcn.00408f44
test eax, eax
jne 0x40a119
push 0x40d2d8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408d0b
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408c61
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 0x40a1d8
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 [0x4237d8], esi
cmp dword [0x4237e8], ebx
je 0x40a202
push 0x7d
call fcn.004089d1
push eax
push esi
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x4237e8]
mov dword [0x4237d4], ebx
mov dword [0x4237d0], esi
cmp eax, ebx
je 0x40a252
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42408c], ebx
jne 0x40a249
cmp byte [0x42407c], bl
jne 0x40a249
push ebx
push esi
push 0x111
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a249
call fcn.0040916e
cmp dword [0x4237e0], 2
jne 0x40a244
cmp byte [0x4237f0], bl
pop esi
pop ebx
je 0x40a261
jmp fcn.0040a08a
ret

Function at 0x40a290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp byte [0x4237f8], bl
je 0x40a30c
cmp byte [0x422730], bl
je 0x40a30c
push esi
push 0x422730
lea esi, [ebp - 0x408]
call fcn.0040a262
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 0x40a30c
push dword [ebp + 8]
call fcn.00408d0b
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 0x40a311
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
cmp byte [0x4237f8], 0
je 0x40a393
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x40c]
call fcn.0040a262
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 0x40a393
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 0x40a38a
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.00408dfe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4

Function at 0x40a4eb
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp byte [0x4237ce], 0
mov eax, dword [ebp + 0x10]
mov dword [0x423740], eax
mov eax, dword [ebp + 0x14]
mov dword [0x423744], eax
mov eax, dword [ebp + 0x18]
mov dword [0x423738], eax
je 0x40a51b
xor eax, eax
inc eax
jmp 0x40a544
cmp byte [0x4237cf], 0
je 0x40a529
push 2
pop eax
jmp 0x40a544
push dword [ebp + 0xc]
push 0x4097d8
push dword [0x4237e8]
push str.REPLACEFILEDLG
push dword [0x42373c]
call esi
dec eax
je 0x40a5a5
dec eax
je 0x40a584
dec eax
je 0x40a59e
dec eax
jne 0x40a577
push dword [ebp + 0xc]
push 0x409ad4
push dword [0x4237e8]
push str.RENAMEDLG
push dword [0x42373c]
call esi
test eax, eax
je 0x40a4f5
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a5b6
dec eax
je 0x40a58c
dec eax
jne 0x40a5b6
mov byte [0x4237cf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a5b6
mov eax, dword [ebp + 8]
mov dword [0x4237e0], 1
mov byte [eax], 0x43
jmp 0x40a5b6
mov byte [0x4237ce], 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 0x40a658
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408d0b
cmp eax, 0x3f6
jae 0x40a86c
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408c61
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a6a0
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a6a3
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a6e8
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a6c4
jmp 0x40a6b8
cmp byte [eax + esi], 0x22
je 0x40a6c0
inc eax
cmp byte [eax + esi], bl
jne 0x40a6b2
jmp 0x40a6c4
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a6db
cmp byte [eax + esi + 1], 0x2f
je 0x40a6db
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a6ab
jmp 0x40a6e8
add eax, esi
cmp byte [eax], 0x20
jne 0x40a6e4
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a6fc
cmp byte [0x423bfa], bl
je 0x40a6fc
mov dword [ebp - 0x30], 0x423bfa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407122
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a728
push str..inf
push eax
call fcn.00408f21
test eax, eax
jne 0x40a728
mov dword [ebp - 0x38], 0x40d754
push ebx
push dword [ebp - 0x34]
call fcn.00403525
mov byte [ebp - 1], al
cmp al, bl
je 0x40a750
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x34]
call fcn.00403611
lea eax, [ebp - 0x844]
mov dword [ebp - 0x34], eax
cmp byte [ebp + 8], bl
je 0x40a78f
cmp byte [ebp - 1], bl
jne 0x40a78f
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408dfe
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408f69
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00403525
test al, al
je 0x40a86a
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 0x40a7c1
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 0x40a86a
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4237f0], bl
jne 0x40a7d7
cmp byte [ebp + 8], bl
je 0x40a80e
mov eax, dword [0x4237e8]
cmp eax, ebx
je 0x40a7f8
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a7f8
push ebx
push dword [0x4237e8]
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.0040a04b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a82d
push str..exe
push dword [ebp - 8]
call fcn.00408f21
test eax, eax
je 0x40a85b
cmp byte [0x4237f0], bl
je 0x40a841
cmp byte [ebp + 8], bl
jne 0x40a841
push 0x1b58
jmp 0x40a855
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 0x40a86a
push 1
push dword [0x4237e8]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40bbe8
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, 0x428bb0
call fcn.0040ca99
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp esi, ebx
je 0x40bc70
push esi
call fcn.00409de6
cmp byte [0x4237f9], bl
je 0x40bc64
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x40bc5b
push 0x10000
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40bc54
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 0x40bc70
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov edi, 0x400
push edi
mov esi, 0x423338
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.004069f0
test eax, eax
je 0x40bca7
push edi
push 0x422b38
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40bcaf
xor eax, eax
mov word [0x422b38], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x64
push edi
mov dword [0x4237c8], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x65
push dword [0x4237c8]
mov dword [0x422b34], eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea ecx, [ebp - 8]
mov dword [0x422b30], eax
call fcn.0040ccdf
push esi
mov ecx, 0x4240a4
call fcn.004089ba
lea ecx, [ebp - 0x40]
call fcn.00404ce2
lea ecx, [ebp - 0x24]
call fcn.00404ce2
push 0x64
call fcn.004095e2
push 0x64
mov dword [ebp - 0x28], eax
call fcn.004095e2
push ebx
push 0x40b46e
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x42272c], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x422728], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
lea ecx, [ebp - 0x24]
mov dword [0x4237e8], ebx
mov dword [0x422728], ebx
mov dword [0x42272c], ebx
call fcn.00404cf8
lea ecx, [ebp - 0x40]
call fcn.00404cf8
lea ecx, [ebp - 8]
call fcn.0040cd57
cmp byte [0x4237f0], bl
je 0x40bd70
call fcn.0040a08a
push 0x80
push ebx
push 0x423748
call fcn.00408c61
cmp dword [0x42408c], ebx
jbe 0x40bd93
push dword [0x424080]
call fcn.00408a63
push dword [0x422b34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x422b30]
cmp eax, ebx
je 0x40bdad
push eax
call esi
cmp dword [0x424098], ebx
jne 0x40bdcc
cmp dword [0x4237e0], ebx
je 0x40bdcc
push 0xff
mov ecx, 0x424098
call fcn.004017e1
mov eax, dword [0x424090]
mov dword [0x4237e0], 2
cmp eax, ebx
je 0x40bde5
push eax
call fcn.0040a04b
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x424098]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403e20
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x403e90
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00402810
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3c9e18d1
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..text
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x573d3324
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4018ad
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018c4
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4018f9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4018f5
cmp edi, eax
jae 0x4018f9
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4018e7
cmp edi, eax
jb 0x4018fd
xor eax, eax
jmp 0x401906
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402abc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x402aca
push 0xd
pop eax
jmp 0x402afd
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402ad1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402f73
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42f0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x21c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
call fcn.00402f35
mov ebx, eax
cmp ebx, edi
je 0x402fd9
cmp dword [ebp - 0x214], edi
je 0x402fd2
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403071
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403001
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402f73
mov dword [ebp - 0x220], eax
cmp eax, edi
jne 0x403082
lea eax, [ebp - 0x228]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x402fe1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], edi
je 0x40304c
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], edi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call fcn.004030ef
mov esi, eax
cmp dword [ebp - 0x214], edi
je 0x40306f
push dword [ebp - 0x214]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411d45
leave
ret 4
cmp dword [ebp - 0x214], edi
je 0x403096
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x403071

Function at 0x4030ef
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x431718], 0
jne 0x40311f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403118
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43171c], eax
mov byte [0x431718], 1
mov eax, dword [0x43171c]
test eax, eax
je 0x403137
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x403143
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x403f8b
Capabilities:
Identify system language via api

Disassembly:
push 0
mov eax, 0x4253ce
call fcn.00420b15
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x28]
mov dword [edi + 0x20], vtable.IArkEvent.0
push eax
mov dword [edi], vtable.CMainDlg.0
mov dword [edi + 0x20], vtable.CMainDlg.1.0
call fcn.0040d4a8
lea eax, [edi + 0x1e0]
call fcn.00409493
lea esi, [edi + 0x260]
call fcn.00401d2a
lea eax, [edi + 0x268]
or dword [eax + 0x14], 0xffffffff
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0x1f4
mov dword [eax + 0x10], ebx
lea eax, [edi + 0x280]
or dword [eax + 4], 0xffffffff
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov byte [ebp - 4], 5
mov dword [edi + 0x240], ebx
mov dword [edi + 0x244], ebx
mov dword [edi + 0x248], ebx
mov dword [edi + 0x25c], ebx
mov dword [edi + 0x28c], ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
xor edx, edx
mov ecx, 0x412
cmp ax, cx
sete dl
push 0x6b
push dword [0x4309ec]
mov dword [0x431618], edx
call esi
push 0x82
mov dword [edi + 0x254], eax
push dword [0x4309ec]
call esi
mov dword [edi + 0x258], eax
cmp dword [0x431618], ebx
jne 0x40407a
call fcn.0040fe12
mov eax, edi
call fcn.00420bb4
ret 4
Function at 0x404786
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4254dc
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x42f0a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x4309cc]
mov ecx, 0x4309cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [ebx + 4]
xor esi, esi
lea ecx, [esp + 0x14]
mov eax, edi
mov dword [esp + 0x80], esi
call fcn.004051c1
push 0x3eb
push dword [edi]
mov dword [ebx + 0x240], 1
mov dword [ebx + 0x248], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov dword [ebx + 0x25c], eax
mov dword [ebx + 0x28c], esi
call fcn.0040470b
push dword [esp + 0x14]
lea edi, [ebx + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
test eax, eax
jne 0x40486d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
cmp eax, 0x17
je 0x404843
cmp eax, 0x59
je 0x404843
cmp eax, esi
jne 0x40484f
cmp dword [ebx + 0x28c], esi
je 0x404938
mov eax, 0x42a724
cmp dword [0x431618], esi
jne 0x404861
mov eax, str.Bandizip_SFX
push esi
push eax
push str.ERR_ERROR_OCCURRED
jmp 0x40491a
mov eax, dword [ebx + 0x260]
cmp dword [eax - 0xc], esi
je 0x4048ea
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x40
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00414a50
mov eax, dword [ebx + 0x260]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4048d0
push dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esp + 0x20]
call edi
jmp 0x4048ea
mov eax, dword [ebx + 0x260]
push 5
push dword [esp + 0x18]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebx + 0x264], esi
je 0x404901
push esi
push esi
push 0x10
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x404938
mov eax, 0x42a724
cmp dword [0x431618], esi
jne 0x404913
mov eax, str.Bandizip_SFX
push esi
push eax
push str.MSG_COMPLETED
call fcn.0040105d
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov edi, eax
call fcn.00401c7d
push dword [ebx + 4]
call fcn.0040fed4
add esp, 0x10
push 1
call fcn.0040470b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [ebx + 0x240], esi
call fcn.00401d08
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret