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

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
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 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
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 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4029ac
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4121c4], 0
jne 0x4029ba
call fcn.00402982
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x4029e7
test cl, 7
je 0x4029e7
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
dec esi
inc ecx
jmp 0x4029c8
cmp esi, 8
jb 0x402a6b
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4121c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4121c0]
dec edi
jne 0x4029f1
xor edx, edx
test esi, esi
jbe 0x402a8b
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4121c0]
inc edx
cmp edx, esi
jb 0x402a72
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4040e7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x24c0]
call fcn.00402eb2
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c0]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00405587
test al, al
je 0x404280
cmp byte [ebp - 0x24c0], bl
je 0x404280
cmp byte [ebp - 0x1840], bl
je 0x404280
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0x24c0]
push eax
call fcn.0040691d
push eax
call fcn.0040b8d6
test eax, eax
je 0x404280
lea eax, [ebp - 0x1840]
push eax
push edi
call fcn.0040691d
push eax
call fcn.0040b8d6
test eax, eax
jne 0x404280
mov esi, 0x400
push esi
push edi
lea eax, [ebp - 0x400]
push eax
call fcn.0040b9b2
push ebx
push str.rtmp_d
lea eax, [ebp - 0x400]
push eax
call fcn.0040691d
push eax
call fcn.00408af0
add esp, 0xc
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00404cae
test al, al
je 0x4041bf
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404179
push 0
lea eax, [ebp - 0x400]
push eax
call fcn.00404cae
test al, al
jne 0x404280
push esi
push edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040b9b2
lea eax, [ebp - 0x24c0]
push eax
call fcn.0040691d
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.0040691d
push eax
call fcn.00408957
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
je 0x404280
lea ecx, [ebp - 0x1420]
call fcn.0040445b
push 0
push edi
xor bl, bl
call fcn.00404cae
test al, al
jne 0x404247
push 1
push 0
push edi
lea ecx, [ebp - 0x1420]
call fcn.00404770
mov bl, al
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x400]
push eax
call esi
test bl, bl
je 0x404271
lea ecx, [ebp - 0x1420]
call fcn.004044c6
lea ecx, [ebp - 0x1420]
call fcn.00404544
lea ecx, [ebp - 0x1420]
call fcn.0040460c
mov al, 1
jmp 0x404282
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40462f
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 0x404649
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x40465c
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x40466f
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.004063e7
test eax, eax
je 0x4046a8
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4046a8
cmp word [eax], bx
je 0x4046a8
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 0x4046bc
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 0x4046d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4046d8
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 0x40473a
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x404706
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040c16e
jmp 0x40470f
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x404722
push dword [ebp + 8]
push eax
call fcn.00408957
jmp 0x404730
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040bf7b
push dword [esi + 4]
mov ecx, esi
call fcn.0040449f
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x404831
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 0x404857
cmp dword [ebp + 0xc], esi
jbe 0x40484c
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 0x4048a7
mov ecx, edi
call fcn.004045e9
test al, al
je 0x40488d
cmp dword [ebp + 0xc], esi
jbe 0x40488d
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00404831
jmp 0x4048aa
cmp dword [edi + 0xc], 1
jne 0x4048a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x4048a2
xor eax, eax
jmp 0x4048aa
or eax, 0xffffffff
jmp 0x4048aa
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x404ae4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x404be4
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404b11
dec eax
je 0x404b06
dec eax
jne 0x404b11
push 0xfffffffffffffff4
jmp 0x404b08
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x404b60
cmp dword [ebp + 0xc], edi
jbe 0x404b7b
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x404b38
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x404b7b
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x404b28
jmp 0x404b77
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x404bde
cmp byte [esi + 0x14], 0
je 0x404bde
cmp dword [esi + 0xc], 0
jne 0x404bde
push 0
lea eax, [esi + 0x17]
mov edi, 0x412c7c
push eax
mov ecx, edi
call fcn.00402d1a
test al, al
je 0x404bd1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x404b19
test eax, eax
jbe 0x404b19
push 0
mov ecx, esi
call fcn.00404574
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00404a4c
jmp 0x404b19
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, edi
call fcn.00402e87
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x404cae
Capabilities:
Get file attributes

Disassembly:
call fcn.004063e7
test eax, eax
je 0x404cce
mov eax, dword [esp + 8]
test eax, eax
je 0x404cce
cmp word [eax], 0
je 0x404cce
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x404cd8
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 0x404cfd
Capabilities:
Get file attributes

Disassembly:
call fcn.004063e7
test eax, eax
je 0x404d1d
mov eax, dword [esp + 8]
test eax, eax
je 0x404d1d
cmp word [eax], 0
je 0x404d1d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x404d27
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x404d2a
Capabilities:
Set file attributes

Disassembly:
call fcn.004063e7
test eax, eax
je 0x404d4e
mov eax, dword [esp + 8]
test eax, eax
je 0x404d4e
cmp word [eax], 0
je 0x404d4e
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x404d5c
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc
Function at 0x404dda
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004063e7
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x404dff
test esi, esi
je 0x404dff
cmp word [esi], 0
je 0x404dff
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x404e0a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x404e24
cmp byte [ebp + 0x10], 0
je 0x404e20
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00404d2a
xor eax, eax
jmp 0x404e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404e39
cmp eax, 3
je 0x404e39
xor eax, eax
inc eax
jmp 0x404e3c
push 2
pop eax
pop esi
pop ebp
ret 0x10
Function at 0x405a3f
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 0x405a71
cmp dword [ebp - 8], ebx
jne 0x405ab2
call esi
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x405ab2
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 0x405a5e
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 0x405a5e
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x405af2
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x4107c8
push eax
call dword [ecx]
test eax, eax
jl 0x405af2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
jl 0x405ae9
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 0x406296
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 0x4062b9
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.0040622f
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 0x40630f
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 0x40635a
push 5
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [esi + 0x15], 0
je 0x40636f
cmp dword [esi + 0x18], 0x64
jbe 0x4063e0
mov ecx, esi
call fcn.00405bf5
jmp 0x4063e0
mov eax, dword [esi + 4]
cmp eax, edi
je 0x406380
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.00408864
imul eax, eax, 6
add eax, 0x100
push eax
call fcn.0040871d
push dword [ebp + 0x10]
mov ebx, eax
push ebx
call fcn.00408957
push ebx
mov ecx, esi
call fcn.00405afb
test al, al
jne 0x4063bc
push ebx
mov ecx, esi
call fcn.00405b2b
push ebx
mov ecx, esi
call fcn.00405f5b
push ebx
mov esi, eax
call fcn.00408736
cmp esi, edi
je 0x4063e0
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.00408736
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4084bb
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.004083e4
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 0x408548
cmp byte [ebp + 0x10], 0
jne 0x408588
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 0x408588
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.00408300
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 0x40867e
cmp dword [ebp + 8], 0x200
jge 0x408686
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 0x4085fc
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push 1
lea eax, [ebp - 0x444]
push eax
push eax
call fcn.00408300
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp byte [ebp - 1], 0
je 0x408668
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 0x408686
inc dword [ebp + 8]
test eax, eax
jne 0x4085ac
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409226
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 0x409288
mov ecx, dword [0x416ecc]
call fcn.004059de
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x410542
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 0x4092d8
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 0x409322
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 0x410578
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x409b5e
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 0x409bed
push 6
push dword [0x41209c]
lea eax, [ebp - 0x420]
push eax
call fcn.0040691d
push eax
call fcn.00408a9d
test eax, eax
jne 0x409bed
push 0x4102e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call fcn.00408864
push 0x1e
mov byte [ebp + eax - 0x41f], 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004087ba
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 0x409cac
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 0x409cd6
push 0x7d
call fcn.004086a4
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 0x409d26
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x418824], ebx
jne 0x409d1d
cmp byte [0x418814], bl
jne 0x409d1d
push ebx
push esi
push 0x111
push dword [0x417f80]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x409d1d
call fcn.00408d0d
cmp dword [0x417f78], 2
jne 0x409d18
cmp byte [0x417f88], bl
pop esi
pop ebx
je 0x409d35
jmp fcn.00409b5e
ret
Function at 0x409d64
Capabilities:
Set registry value

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

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

Function at 0x409fbf
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 0x409fef
xor eax, eax
inc eax
jmp 0x40a018
cmp byte [0x417edf], 0
je 0x409ffd
push 2
pop eax
jmp 0x40a018
push dword [ebp + 0xc]
push 0x409377
push dword [0x417f80]
push str.REPLACEFILEDLG
push dword [0x412c74]
call esi
dec eax
je 0x40a079
dec eax
je 0x40a058
dec eax
je 0x40a072
dec eax
jne 0x40a04b
push dword [ebp + 0xc]
push 0x409673
push dword [0x417f80]
push str.RENAMEDLG
push dword [0x412c74]
call esi
test eax, eax
je 0x409fc9
mov eax, dword [ebp + 8]
mov byte [eax], 0x52
jmp 0x40a08a
dec eax
je 0x40a060
dec eax
jne 0x40a08a
mov byte [0x417edf], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0x4e
jmp 0x40a08a
mov eax, dword [ebp + 8]
mov dword [0x417f78], 1
mov byte [eax], 0x43
jmp 0x40a08a
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