joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405276
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 0x4052a8
cmp dword [ebp - 8], ebx
jne 0x4052e9
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x4052e9
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x405295
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
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_DispatchMessageW]
jmp 0x405295
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x405329
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x40ec1c
push eax
call dword [ecx]
test eax, eax
jl 0x405329
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x405320
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 0x405ad6
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 0x405af9
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.00405a6f
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 0x405b4f
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_CreateWindowExW]
mov dword [esi + 4], eax
cmp eax, edi
je 0x405b9a
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x405baf
cmp dword [esi + 0x18], 0x64
jbe 0x405c20
mov ecx, esi
call fcn.00405466
jmp 0x405c20
mov eax, dword [esi + 4]
cmp eax, edi
je 0x405bc0
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.00409717
imul eax, eax, 0xc
add eax, 0x200
push eax
call fcn.004092e8
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00409741
push ebx
mov ecx, esi
call fcn.00405332
test al, al
jne 0x405bfc
push ebx
mov ecx, esi
call fcn.00405368
push ebx
mov ecx, esi
call fcn.00405767
push ebx
mov esi, eax
call fcn.00409301
cmp esi, edi
je 0x405c20
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00409301
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409078
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
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.00408f95
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 0x409105
cmp byte [ebp + 0x10], 0
jne 0x40914a
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 0x40914a
push 0x400
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00408e50
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
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 0x409246
cmp dword [ebp + 8], 0x200
jge 0x40924e
push 0x400
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x844], 0
je 0x4091c4
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
push 0x400
lea eax, [ebp - 0x844]
push eax
push eax
call fcn.00408e50
lea eax, [ebp - 0x844]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 1], 0
je 0x409230
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 0x40924e
inc dword [ebp + 8]
test eax, eax
jne 0x40916e
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4093b8
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 0x4093f0
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4093f4
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
leave
ret 0x10

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

Function at 0x409b0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x410028], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409b57
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x42b8b8], ax
xor eax, eax
mov word [0x42b8ba], ax
mov dword [0x410028], 0x42b8b8
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040c929
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x410018
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10
Function at 0x409ed6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x425858]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x42696c], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x409f38
mov ecx, dword [0x424724]
call fcn.00405215
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x40e7d8
push 0
push 0xc2
push edi
call esi
mov byte [0x42696c], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x409f88
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
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 0x409fd2
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x40e7fc
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40a8a6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012c0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40a8c1
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a8cb
mov byte [eax], 0
test edi, edi
je 0x40a974
movzx eax, word [edi]
test ax, ax
je 0x40a974
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40a904
cmp dword [ebp + 0xc], 0
je 0x40a910
test esi, esi
jne 0x40a910
test ebx, ebx
je 0x40a900
mov byte [ebx], 1
mov esi, edx
jmp 0x40a91f
cmp ax, 0xd
je 0x40a932
cmp ax, 0xa
je 0x40a934
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40a92a
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40a8e4
jmp 0x40a934
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40a934
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40a96f
mov word [ebx], ax
test esi, esi
je 0x40a96f
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040c8ff
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40a976
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x40a9bb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0040d900
cmp byte [0x42696d], 0
jne 0x40aa49
push 6
push dword [0x410014]
lea eax, [ebp - 0x820]
push eax
call fcn.00407687
push eax
call fcn.0040d530
test eax, eax
jne 0x40aa49
push 0x40e87c
call fcn.0040d8ed
lea eax, [ebp - 0x820]
push eax
call fcn.00409717
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00409484
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40ab10
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x425849], 1
cmp dword [0x425858], ebx
je 0x40ab38
push 0x7d
call fcn.0040926c
push eax
push 2
push dword [0x425858]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x425858]
mov dword [0x42584c], ebx
mov byte [0x425848], 1
cmp eax, ebx
je 0x40ab99
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x42697c], ebx
jne 0x40ab67
cmp byte [0x42696c], bl
je 0x40ab6f
cmp dword [0x425850], ebx
jne 0x40ab91
push ebx
push 1
push 0x111
push dword [0x425858]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ab91
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409acd
cmp dword [0x425858], ebx
jne 0x40ab85
cmp byte [0x425860], bl
pop ebx
je 0x40aba7
jmp fcn.0040a9bb
ret

Function at 0x40abe3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x425868], bl
je 0x40ac63
cmp word [0x424728], bx
je 0x40ac63
push esi
push 0x424728
lea esi, [ebp - 0x808]
call fcn.0040aba8
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_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40ac63
push dword [ebp + 8]
call fcn.00409717
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40ac68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004012c0
cmp byte [0x425868], 0
je 0x40acee
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x80c]
call fcn.0040aba8
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40acee
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x80c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ace5
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.00409741
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 4
Function at 0x40ae16
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x425846], 0
mov eax, dword [ebp + 0xc]
mov dword [0x425738], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42573c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x425730], eax
je 0x40ae46
xor eax, eax
inc eax
jmp 0x40ae6f
cmp byte [0x425847], 0
je 0x40ae54
push 2
pop eax
jmp 0x40ae6f
push dword [ebp + 8]
push 0x40a0a6
push dword [0x425858]
push str.REPLACEFILEDLG
push dword [0x425734]
call esi
dec eax
je 0x40aec1
dec eax
je 0x40aed3
dec eax
je 0x40aeba
dec eax
jne 0x40ae9e
push dword [ebp + 8]
push 0x40a3f2
push dword [0x425858]
push str.RENAMEDLG
push dword [0x425734]
call esi
test eax, eax
je 0x40ae20
mov al, 0x52
jmp 0x40aece
dec eax
je 0x40aeaf
dec eax
mov al, 0x4e
jne 0x40aece
mov byte [0x425847], 1
jmp 0x40aece
mov byte [0x42584a], 1
mov al, 0x43
jmp 0x40aece
mov byte [0x425846], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40aece
Function at 0x40b010
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1040
call fcn.004012c0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x40b247
push esi
call fcn.00409717
cmp eax, 0x3f6
jae 0x40b247
push edi
push 0x3c
pop edi
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.00409484
movzx ecx, word [esi]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x5c0
cmp cx, 0x22
jne 0x40b067
lea eax, [esi + 2]
mov dword [ebp - 0x30], eax
jmp 0x40b06a
mov dword [ebp - 0x30], esi
xor eax, eax
cmp cx, bx
je 0x40b0c0
mov ecx, esi
cmp word [ecx], 0x22
jne 0x40b092
jmp 0x40b082
cmp word [esi + eax*2], 0x22
je 0x40b08b
inc eax
cmp word [esi + eax*2], bx
jne 0x40b07b
jmp 0x40b092
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x40b0ac
cmp word [esi + eax*2 + 2], 0x2f
je 0x40b0ac
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x40b073
jmp 0x40b0c0
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x40b0ba
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x2c], eax
cmp byte [ebp + 8], bl
jne 0x40b0d5
cmp word [0x42606a], bx
je 0x40b0d5
mov dword [ebp - 0x2c], 0x42606a
push dword [ebp - 0x30]
mov dword [ebp - 0x24], 1
call fcn.004077fa
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40b101
push str..inf
push eax
call fcn.0040d473
test eax, eax
jne 0x40b101
mov dword [ebp - 0x34], str.Install
push dword [ebp - 0x30]
call fcn.004039e4
mov bl, al
test bl, bl
je 0x40b127
lea eax, [ebp - 0x1040]
push eax
push dword [ebp - 0x30]
call fcn.00407458
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x30], eax
cmp byte [ebp + 8], 0
je 0x40b165
test bl, bl
jne 0x40b165
push dword [ebp - 0x30]
lea eax, [ebp - 0x840]
push eax
call fcn.00409741
push str..exe
lea eax, [ebp - 0x840]
push eax
call fcn.004097ae
lea eax, [ebp - 0x840]
push eax
call fcn.004039e4
test al, al
je 0x40b246
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp - 0x40]
push eax
call edi
test eax, eax
setne al
test al, al
jne 0x40b197
and dword [ebp - 0x3c], 0xfffffbff
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], esi
call edi
test eax, eax
setne al
test al, al
je 0x40b246
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor bl, bl
cmp byte [0x425860], bl
jne 0x40b1ac
cmp byte [ebp + 8], bl
je 0x40b1e2
mov eax, dword [0x425858]
test eax, eax
je 0x40b1cc
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b1cc
push 0
push dword [0x425858]
call esi
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
call fcn.0040a97c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40b202
push str..exe
push dword [ebp - 4]
call fcn.0040d473
test eax, eax
je 0x40b232
cmp byte [0x425860], 0
je 0x40b218
cmp byte [ebp + 8], 0
jne 0x40b218
push 0x1b58
jmp 0x40b22c
xor eax, eax
cmp byte [ebp + 8], al
sete al
dec eax
and eax, 0xfffffce0
add eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x40b246
cmp byte [ebp + 8], 0
je 0x40b246
push 1
push dword [0x425858]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c635
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
call fcn.0040cbe6
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42d8d0
call fcn.0040d62d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40c6c3
push esi
call fcn.0040a703
cmp byte [0x425869], bl
je 0x40c6bb
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40c6b0
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40c6a9
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c6c3
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x424f30
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x425840], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x425840]
mov dword [0x424f2c], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x424f28], eax
call fcn.0040d970
push esi
mov ecx, 0x426998
call fcn.00409255
lea ecx, [ebp - 0x40]
call fcn.004051f2
lea ecx, [ebp - 0x24]
call fcn.004051f2
push 0x64
call fcn.00409dd6
push 0x64
mov dword [ebp - 0x28], eax
call fcn.00409dd6
push ebx
push 0x40be86
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x424724], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x424720], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x424720], ebx
mov dword [0x424724], ebx
call fcn.00405208
lea ecx, [ebp - 0x40]
call fcn.00405208
lea ecx, [ebp - 8]
call fcn.0040d9c2
cmp byte [0x425860], bl
je 0x40c798
call fcn.0040a9bb
push 0x100
push ebx
push 0x425740
call fcn.00409484
cmp dword [0x42697c], ebx
jbe 0x40c7bb
push dword [0x426970]
call fcn.00409301
push dword [0x424f2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x424f28]
cmp eax, ebx
je 0x40c7d5
push eax
call esi
cmp dword [0x42698c], ebx
jne 0x40c7f4
cmp byte [0x42584a], bl
je 0x40c7f4
push 0xff
mov ecx, 0x42698c
call fcn.004019b1
mov eax, dword [0x426984]
mov byte [0x42584a], 1
cmp eax, ebx
je 0x40c80a
push eax
call fcn.0040a97c
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x42698c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40ced9
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x422680]
mov ecx, eax
xor ecx, dword [esp + 4]
shr eax, 8
mov edx, 0xff
and ecx, edx
xor eax, dword [ecx*4 + 0x4100d0]
mov ecx, dword [0x422688]
mov dword [0x422680], eax
movzx eax, al
add eax, dword [0x422684]
imul eax, eax, 0x8088405
inc eax
mov dword [0x422684], eax
shr eax, 0x18
xor eax, ecx
and eax, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x4100d0]
mov eax, dword [esp + 4]
mov dword [0x422688], ecx
ret 4

Function at 0x40cf6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040cf33
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004094b1
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040ceb9
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040ced9
inc esi
cmp esi, 0xc
jl 0x40cf8b
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x411548]
test byte [eax + 0x28], 2
movzx eax, byte [0x4215b7]
jne 0x40cfc6
movzx eax, byte [0x4215bf]
movzx ecx, cx
cmp ecx, eax
je 0x40cfd2
or eax, 0xffffffff
jmp 0x40d017
mov ecx, dword [0x421560]
mov eax, ecx
cdq
cmp edx, dword [0x410924]
push edi
jl 0x40cff4
mov edx, dword [0x410920]
jg 0x40cff0
cmp eax, edx
jbe 0x40cff4
mov edi, edx
jmp 0x40cff6
mov edi, ecx
mov esi, dword [0x421558]
jmp 0x40d010
dec edi
call fcn.0040ceb9
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040ced9
inc esi
test edi, edi
jne 0x40cffe
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40d900
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8