joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405920
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 + 0xc20], ebx
cmp byte [esi + 0x1c], bl
jne 0x405940
test byte [ebp + 0x10], 4
jne 0x405940
xor al, al
jmp 0x405942
mov al, 1
mov ecx, dword [ebp + 0x10]
shr ecx, 1
and cl, 1
movzx edi, cl
neg edi
sbb edi, edi
and edi, 0xc0000000
add edi, 0x80000000
test byte [ebp + 0x10], 1
je 0x405969
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x40597b
mov dword [ebp + 0x10], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov dword [ebp - 4], eax
call fcn.00406a2a
test eax, eax
je 0x4059b5
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4059b5
cmp word [eax], bx
je 0x4059b5
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4059c9
push ebx
push dword [ebp - 4]
push 3
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4059e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4059e5
mov dword [esi + 0xc20], 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 0x405a5d
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x405a1e
push edi
call fcn.0040a826
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.0040a555
jmp 0x405a27
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x405a44
push dword [ebp + 8]
call fcn.0040a5a0
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.0040a555
jmp 0x405a53
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040eca0
push dword [esi + 4]
mov ecx, esi
call fcn.0040575c
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405bb7
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 0x405bdd
cmp dword [ebp + 0xc], esi
jbe 0x405bd2
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 0x405c2d
mov ecx, edi
call fcn.004058da
test al, al
je 0x405c13
cmp dword [ebp + 0xc], esi
jbe 0x405c13
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405bb7
jmp 0x405c30
cmp dword [edi + 0xc], 1
jne 0x405c28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405c28
xor eax, eax
jmp 0x405c30
or eax, 0xffffffff
jmp 0x405c30
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x405e88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405f98
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405eb5
dec eax
je 0x405eaa
dec eax
jne 0x405eb5
push 0xfffffffffffffff4
jmp 0x405eac
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 0x405f04
cmp dword [ebp + 0xc], edi
jbe 0x405f1f
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405edc
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 0x405f1f
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405ecc
jmp 0x405f1b
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 0x405f92
cmp byte [esi + 0x14], 0
je 0x405f92
cmp dword [esi + 0xc], 0
jne 0x405f92
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x418e8c
push eax
mov ecx, edi
call fcn.00403617
test al, al
je 0x405f7c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405ebd
test eax, eax
jbe 0x405ebd
push 0
mov ecx, esi
call fcn.00405838
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405de9
jmp 0x405ebd
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.004038bd
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

Function at 0x406088
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00406a2a
test eax, eax
je 0x4060b2
mov eax, dword [esp + 8]
test eax, eax
je 0x4060b2
cmp word [eax], 0
je 0x4060b2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x4060cf
cmp dword [esp + 4], 0
je 0x4060cd
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4060cd
xor eax, eax
inc eax
jmp 0x4060cf
xor eax, eax
ret 8

Function at 0x4060fd
Capabilities:
Get file attributes

Disassembly:
call fcn.00406a2a
test eax, eax
je 0x40611d
mov eax, dword [esp + 8]
test eax, eax
je 0x40611d
cmp word [eax], 0
je 0x40611d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x406127
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x40612a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406a2a
test eax, eax
je 0x40614f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40614f
cmp word [eax], 0
je 0x40614f
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x406161
cmp dword [ebp + 8], 0
je 0x406168
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x40616a
xor al, al
pop ebp
ret 0xc
Function at 0x4061a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406a2a
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x4061c6
cmp esi, ebx
je 0x4061c6
cmp word [esi], bx
je 0x4061c6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4061d5
cmp dword [ebp + 8], ebx
je 0x406203
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x4061ee
cmp byte [ebp + 0x10], bl
je 0x4061ea
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.0040612a
xor eax, eax
jmp 0x406206
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406203
cmp eax, 3
je 0x406203
xor eax, eax
inc eax
jmp 0x406206
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x409bb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040a4cd
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x409cc7
cmp ebx, edx
jge 0x409c0e
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x409c10
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409bf3
cmp ecx, edx
jne 0x409c18
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x409bdf
cmp eax, 0xa
jg 0x409cc7
mov dword [ebp - 4], 0x41dec0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41dfe0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41dfe0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41dfe0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41dfe0]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x409c73
add eax, edx
dec edi
jne 0x409c71
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x409cc7
cmp ebx, edx
jge 0x409cb0
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x409cb2
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409c94
cmp ecx, edx
jne 0x409cb9
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x409c86
cmp dword [ebp + 8], 0xa
jle 0x409c2c
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x41aec0]
xor dl, byte [eax + ebx*4 + 0x41b6c0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x41bac0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x41b2c0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x409cf6
inc eax
cmp eax, edi
jl 0x409ce9
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040a4cd
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x409ce7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ad38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [0x41e0e8], esi
jne 0x40ad51
mov ecx, 0x41e0e0
call fcn.0040acf9
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
je 0x40ada7
cmp dword [0x41e0e8], esi
je 0x40add8
test bl, 0xf
jne 0x40add8
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040a4cd
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41e0e8]
test eax, eax
jne 0x40ae00
push str.CryptProtectMemory_failed
mov esi, 0x418e8c
mov ecx, esi
call fcn.004036fa
mov ecx, esi
call fcn.0040359c
push 2
mov ecx, esi
call fcn.00403897
jmp 0x40ae00
cmp dword [0x41e0ec], esi
je 0x40add8
test bl, 0xf
jne 0x40add8
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.0040a4cd
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41e0ec]
test eax, eax
jne 0x40ae00
push str.CryptUnprotectMemory_failed
jmp 0x40ad89
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
cmp ebx, esi
jbe 0x40ae00
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub esi, ecx
push edi
lea edi, [eax + edx + 0x4b]
xor di, word [esi + ecx]
inc edx
mov word [ecx], di
inc ecx
inc ecx
cmp edx, ebx
jb 0x40aded
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40af55
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4160b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40afa0
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 [0x42aa7c], ax
xor eax, eax
mov word [0x42aa7e], ax
mov dword [0x4160b0], 0x42aa7c
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e623
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4160a0
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 0x40b31f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x424920]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x424924], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b381
mov ecx, dword [0x41e0f4]
call fcn.004126b4
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41437c
push 0
push 0xc2
push edi
call esi
mov byte [0x424924], 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 0x40b3d1
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 0x40b41b
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 0x414554
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40bcf8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40bd13
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40bd1d
mov byte [eax], 0
test edi, edi
je 0x40bdc6
movzx eax, word [edi]
test ax, ax
je 0x40bdc6
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40bd56
cmp dword [ebp + 0xc], 0
je 0x40bd62
test esi, esi
jne 0x40bd62
test ebx, ebx
je 0x40bd52
mov byte [ebx], 1
mov esi, edx
jmp 0x40bd71
cmp ax, 0xd
je 0x40bd84
cmp ax, 0xa
je 0x40bd86
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40bd7c
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40bd36
jmp 0x40bd86
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40bd86
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40bdc1
mov word [ebx], ax
test esi, esi
je 0x40bdc1
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.0040e5a3
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40bdc8
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x40be0d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00413135
cmp byte [0x424925], 0
jne 0x40be9b
push 6
push dword [0x41609c]
lea eax, [ebp - 0x820]
push eax
call fcn.004072cf
push eax
call fcn.0040efb8
test eax, eax
jne 0x40be9b
push 0x4145e8
call fcn.00413122
lea eax, [ebp - 0x820]
push eax
call fcn.0040a826
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040a4a0
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 0x40bf66
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x424911], 1
cmp dword [0x424920], ebx
je 0x40bf8e
push 0x7d
call fcn.00409b0b
push eax
push 2
push dword [0x424920]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x424920]
mov dword [0x424914], ebx
mov byte [0x424910], 1
cmp eax, ebx
je 0x40bfef
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x424934], ebx
jne 0x40bfbd
cmp byte [0x424924], bl
je 0x40bfc5
cmp dword [0x424918], ebx
jne 0x40bfe7
push ebx
push 1
push 0x111
push dword [0x424920]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bfe7
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040af16
cmp dword [0x424920], ebx
jne 0x40bfdb
cmp byte [0x424950], bl
pop ebx
je 0x40bffd
jmp fcn.0040be0d
ret

Function at 0x40c039
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x424958], bl
je 0x40c0b9
cmp word [0x41e0f8], bx
je 0x40c0b9
push esi
push 0x41e0f8
lea esi, [ebp - 0x808]
call fcn.0040bffe
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 0x40c0b9
push dword [ebp + 8]
call fcn.0040a826
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 0x40c0be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x424958], 0
je 0x40c165
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040bffe
lea eax, [ebp - 8]
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 0x40c165
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c15c
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40c140
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040e5a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40c28d
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x424906], 0
mov eax, dword [ebp + 0xc]
mov dword [0x424908], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42490c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x424900], eax
je 0x40c2bd
xor eax, eax
inc eax
jmp 0x40c2e6
cmp byte [0x424907], 0
je 0x40c2cb
push 2
pop eax
jmp 0x40c2e6
push dword [ebp + 8]
push 0x40b4ef
push dword [0x424920]
push str.REPLACEFILEDLG
push dword [0x418e84]
call esi
dec eax
je 0x40c338
dec eax
je 0x40c34a
dec eax
je 0x40c331
dec eax
jne 0x40c315
push dword [ebp + 8]
push 0x40b83b
push dword [0x424920]
push str.RENAMEDLG
push dword [0x418e84]
call esi
test eax, eax
je 0x40c297
mov al, 0x52
jmp 0x40c345
dec eax
je 0x40c326
dec eax
mov al, 0x4e
jne 0x40c345
mov byte [0x424907], 1
jmp 0x40c345
mov byte [0x424912], 1
mov al, 0x43
jmp 0x40c345
mov byte [0x424906], 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 0x40c345
Function at 0x40e2b8
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4126cb
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x4126fd
cmp dword [ebp - 4], edi
jne 0x41273e
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x41273e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4126ea
push edi
push edi
push edi
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 0x4126ea
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x412794
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x414c40
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x41278b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x412782
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x412f38
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00412ed1
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x412f9f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x413020
cmp dword [ebp + 0xc], edi
je 0x413043
cmp dword [esi + 0x14], edi
jne 0x413043
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x413043
push eax
mov ecx, esi
call fcn.00412bb1
mov esi, eax
cmp esi, edi
je 0x413043
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040a41c
jmp 0x413043
cmp eax, edi
je 0x413036
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x413043
mov ecx, esi
call fcn.004128c6
pop edi
pop esi
pop ebx
leave
ret 0x14