joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405f04
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422254], 0
push esi
jne 0x405f3b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f15
mov dword [ecx*4 + 0x422250], eax
inc ecx
cmp ecx, 0x100
jl 0x405f10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422250]
xor eax, esi
inc ecx
dec edx
jne 0x405f4e
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403005
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 0x40301f
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x403032
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x403045
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.004069f0
test eax, eax
je 0x40307e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40307e
cmp word [eax], bx
je 0x40307e
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 0x403092
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 0x4030ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4030ae
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 0x403110
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4030dc
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040c91a
jmp 0x4030e5
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4030f8
push dword [ebp + 8]
push eax
call fcn.00408e06
jmp 0x403106
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040c767
push dword [esi + 4]
mov ecx, esi
call fcn.00402e88
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4031db
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 0x403201
cmp dword [ebp + 0xc], esi
jbe 0x4031f6
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 0x403251
mov ecx, edi
call fcn.00402fbf
test al, al
je 0x403237
cmp dword [ebp + 0xc], esi
jbe 0x403237
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.004031db
jmp 0x403254
cmp dword [edi + 0xc], 1
jne 0x40324c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40324c
xor eax, eax
jmp 0x403254
or eax, 0xffffffff
jmp 0x403254
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x403525
Capabilities:
Get file attributes

Disassembly:
call fcn.004069f0
test eax, eax
je 0x403545
mov eax, dword [esp + 8]
test eax, eax
je 0x403545
cmp word [eax], 0
je 0x403545
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x40354f
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 0x4055bd
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 0x4055e0
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.00405556
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 0x405636
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 0x405681
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x405696
cmp dword [esi + 0x18], 0x64
jbe 0x405707
mov ecx, esi
call fcn.00404f1c
jmp 0x405707
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4056a7
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.00408d13
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.00408a52
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00408e06
push ebx
mov ecx, esi
call fcn.00404e22
test al, al
jne 0x4056e3
push ebx
mov ecx, esi
call fcn.00404e52
push ebx
mov ecx, esi
call fcn.00405282
push ebx
mov esi, eax
call fcn.00408a6b
cmp esi, edi
je 0x405707
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00408a6b
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4087f0
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.00408719
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 0x40887d
cmp byte [ebp + 0x10], 0
jne 0x4088bd
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 0x4088bd
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.00408635
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 0x4089b3
cmp dword [ebp + 8], 0x200
jge 0x4089bb
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 0x408931
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.00408635
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebp - 1], 0
je 0x40899d
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 0x4089bb
inc dword [ebp + 8]
test eax, eax
jne 0x4088e1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x408b9d
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 0x408bd5
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408bd9
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x408be0
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 0x408c18
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x408c1c
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

Function at 0x40968c
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 0x4096ee
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 0x40d69e
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 0x40973e
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 0x409788
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 0x40d6d4
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a080
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 0x40a10f
push 6
push dword [0x40f014]
lea eax, [ebp - 0x420]
push eax
call fcn.00406f83
push eax
call fcn.00408f4c
test eax, eax
jne 0x40a10f
push 0x40d2c8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408d13
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00408c69
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 0x40a1ce
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 0x40a1f8
push 0x7d
call fcn.004089d9
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 0x40a248
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42408c], ebx
jne 0x40a23f
cmp byte [0x42407c], bl
jne 0x40a23f
push ebx
push esi
push 0x111
push dword [0x4237e8]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a23f
call fcn.00409176
cmp dword [0x4237e0], 2
jne 0x40a23a
cmp byte [0x4237f0], bl
pop esi
pop ebx
je 0x40a257
jmp fcn.0040a080
ret

Function at 0x40a286
Capabilities:
Set registry value

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

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

Function at 0x40a4e1
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 0x40a511
xor eax, eax
inc eax
jmp 0x40a53a
cmp byte [0x4237cf], 0
je 0x40a51f
push 2
pop eax
jmp 0x40a53a
push dword [ebp + 0xc]
push 0x4097dd
push dword [0x4237e8]
push str.REPLACEFILEDLG
push dword [0x42373c]
call esi
dec eax
je 0x40a59b
dec eax
je 0x40a57a
dec eax
je 0x40a594
dec eax
jne 0x40a56d
push dword [ebp + 0xc]
push 0x409ad9
push dword [0x4237e8]
push str.RENAMEDLG
push dword [0x42373c]
call esi
test eax, eax
je 0x40a4eb
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a5ac
dec eax
je 0x40a582
dec eax
jne 0x40a5ac
mov byte [0x4237cf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a5ac
mov eax, dword [ebp + 8]
mov dword [0x4237e0], 1
mov byte [eax], 0x43
jmp 0x40a5ac
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 0x40a64e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
mov esi, eax
push esi
call fcn.00408d13
cmp eax, 0x3f6
jae 0x40a862
push ebx
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.00408c69
mov cl, byte [esi]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x5c0
cmp cl, 0x22
jne 0x40a696
lea eax, [esi + 1]
mov dword [ebp - 0x34], eax
jmp 0x40a699
mov dword [ebp - 0x34], esi
xor eax, eax
cmp cl, bl
je 0x40a6de
mov ecx, esi
cmp byte [ecx], 0x22
jne 0x40a6ba
jmp 0x40a6ae
cmp byte [eax + esi], 0x22
je 0x40a6b6
inc eax
cmp byte [eax + esi], bl
jne 0x40a6a8
jmp 0x40a6ba
mov byte [eax + esi], 0x20
cmp byte [eax + esi], 0x20
je 0x40a6d1
cmp byte [eax + esi + 1], 0x2f
je 0x40a6d1
inc eax
lea ecx, [eax + esi]
cmp byte [ecx], bl
jne 0x40a6a1
jmp 0x40a6de
add eax, esi
cmp byte [eax], 0x20
jne 0x40a6da
mov byte [eax], bl
inc eax
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], bl
jne 0x40a6f2
cmp byte [0x423bfa], bl
je 0x40a6f2
mov dword [ebp - 0x30], 0x423bfa
push dword [ebp - 0x34]
mov dword [ebp - 0x28], 1
call fcn.00407131
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40a71e
push str..inf
push eax
call fcn.00408f29
test eax, eax
jne 0x40a71e
mov dword [ebp - 0x38], str.Install
push ebx
push dword [ebp - 0x34]
call fcn.00403525
mov byte [ebp - 1], al
cmp al, bl
je 0x40a746
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 0x40a785
cmp byte [ebp - 1], bl
jne 0x40a785
push dword [ebp - 0x34]
lea eax, [ebp - 0x444]
push eax
call fcn.00408e06
push str..exe
lea eax, [ebp - 0x444]
push eax
call fcn.00408f71
push ebx
lea eax, [ebp - 0x444]
push eax
call fcn.00403525
test al, al
je 0x40a860
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 0x40a7b7
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 0x40a860
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
cmp byte [0x4237f0], bl
jne 0x40a7cd
cmp byte [ebp + 8], bl
je 0x40a804
mov eax, dword [0x4237e8]
cmp eax, ebx
je 0x40a7ee
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40a7ee
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.0040a041
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x40a823
push str..exe
push dword [ebp - 8]
call fcn.00408f29
test eax, eax
je 0x40a851
cmp byte [0x4237f0], bl
je 0x40a837
cmp byte [ebp + 8], bl
jne 0x40a837
push 0x1b58
jmp 0x40a84b
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 0x40a860
push 1
push dword [0x4237e8]
call esi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40bb74
Capabilities:
Accept command line arguments
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.0040c9a7
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
je 0x40bbb0
push esi
call fcn.00409deb
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x423338
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push str.sfxname
call edi
call fcn.004069f0
test eax, eax
je 0x40bbe6
push 0x400
push 0x422b38
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
jmp 0x40bbee
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.0040cbed
push esi
mov ecx, 0x4240a4
call fcn.004089c2
lea ecx, [ebp - 0x40]
call fcn.00404ce2
lea ecx, [ebp - 0x24]
call fcn.00404ce2
push 0x64
call fcn.004095e7
push 0x64
mov dword [ebp - 0x28], eax
call fcn.004095e7
push ebx
push 0x40b45c
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.0040cc65
cmp byte [0x4237f0], bl
je 0x40bcaf
call fcn.0040a080
push 0x80
push ebx
push 0x423748
call fcn.00408c69
cmp dword [0x42408c], ebx
jbe 0x40bcd2
push dword [0x424080]
call fcn.00408a6b
push dword [0x422b34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x422b30]
cmp eax, ebx
je 0x40bcec
push eax
call esi
cmp dword [0x424098], ebx
jne 0x40bd0b
cmp dword [0x4237e0], ebx
je 0x40bd0b
push 0xff
mov ecx, 0x424098
call fcn.004017e1
mov eax, dword [0x424090]
mov dword [0x4237e0], 2
cmp eax, ebx
je 0x40bd24
push eax
call fcn.0040a041
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x424098]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40c40a
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x421688]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x40f0d0]
mov ecx, dword [0x421690]
mov dword [0x421688], eax
movzx eax, al
add eax, dword [0x42168c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x42168c], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x40f0d0]
mov eax, dword [esp + 4]
mov dword [0x421690], ecx
ret 4