joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c93
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c8
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c8]
call fcn.004036e5
xor edi, edi
push edi
lea eax, [ebp - 0x30c8]
push eax
push dword [ebp + 8]
push edi
call fcn.004062c6
test al, al
je 0x404e38
cmp word [ebp - 0x2448], di
je 0x404e38
lea eax, [ebp - 0x2448]
push eax
lea eax, [ebp - 0x2cc8]
push eax
call fcn.00406c3a
push eax
call fcn.0040e107
test eax, eax
je 0x404e38
lea eax, [ebp - 0x2448]
push eax
push dword [ebp + 8]
call fcn.00406c3a
push eax
call fcn.0040e107
test eax, eax
jne 0x404e38
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x404d89
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040d76b
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00406c3a
push eax
call fcn.00409ddc
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.004059f3
test al, al
je 0x404d71
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x404d22
cmp word [ebp - 0x800], di
je 0x404e38
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d76b
lea eax, [ebp - 0x2cc8]
push eax
call fcn.00406c3a
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00406c3a
push eax
call fcn.00409b68
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x404e38
lea ecx, [ebp - 0x1c28]
call fcn.004050b8
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.004059f3
test al, al
jne 0x404dff
push 9
push dword [ebp + 8]
lea ecx, [ebp - 0x1c28]
push edi
call fcn.0040543c
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x404e29
lea ecx, [ebp - 0x1c28]
call fcn.0040512a
lea ecx, [ebp - 0x1c28]
call fcn.004051af
lea ecx, [ebp - 0x1c28]
call fcn.004052a4
mov al, 1
jmp 0x404e3a
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4052c7
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 0x4052e7
test byte [ebp + 0x10], 4
jne 0x4052e7
xor al, al
jmp 0x4052e9
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 0x405310
or edi, 0x40000000
mov dword [ebp + 0x10], 1
cmp al, bl
je 0x405322
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.00406395
test eax, eax
je 0x40535c
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40535c
cmp word [eax], bx
je 0x40535c
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 0x405370
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 0x40538c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40538c
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 0x405404
mov dword [esi + 4], edi
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x4053c5
push edi
call fcn.00409b3e
lea eax, [eax + eax + 2]
push eax
push edi
lea eax, [esi + 0x41e]
push eax
call fcn.0040986d
jmp 0x4053ce
xor eax, eax
mov word [esi + 0x41e], ax
cmp dword [ebp + 8], ebx
je 0x4053eb
push dword [ebp + 8]
call fcn.004098b8
inc eax
push eax
push dword [ebp + 8]
lea eax, [esi + 0x1d]
push eax
call fcn.0040986d
jmp 0x4053fa
push 0x1000000
lea eax, [esi + 0x1d]
push eax
push edi
call fcn.0040deac
push dword [esi + 4]
mov ecx, esi
call fcn.00405103
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x405522
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 0x405548
cmp dword [ebp + 0xc], esi
jbe 0x40553d
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 0x405598
mov ecx, edi
call fcn.00405281
test al, al
je 0x40557e
cmp dword [ebp + 0xc], esi
jbe 0x40557e
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405522
jmp 0x40559b
cmp dword [edi + 0xc], 1
jne 0x405593
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405593
xor eax, eax
jmp 0x40559b
or eax, 0xffffffff
jmp 0x40559b
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4057f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405903
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405820
dec eax
je 0x405815
dec eax
jne 0x405820
push 0xfffffffffffffff4
jmp 0x405817
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 0x40586f
cmp dword [ebp + 0xc], edi
jbe 0x40588a
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405847
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 0x40588a
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405837
jmp 0x405886
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 0x4058fd
cmp byte [esi + 0x14], 0
je 0x4058fd
cmp dword [esi + 0xc], 0
jne 0x4058fd
push 0
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
mov edi, 0x417e8c
push eax
mov ecx, edi
call fcn.00403406
test al, al
je 0x4058e7
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405828
test eax, eax
jbe 0x405828
push 0
mov ecx, esi
call fcn.004051df
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405754
jmp 0x405828
lea eax, [esi + 0x41e]
push eax
lea eax, [esi + 0x1d]
push eax
push 0
push 0
mov ecx, edi
call fcn.004036ac
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.00406395
test eax, eax
je 0x405a1d
mov eax, dword [esp + 8]
test eax, eax
je 0x405a1d
cmp word [eax], 0
je 0x405a1d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405a3a
cmp dword [esp + 4], 0
je 0x405a38
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405a38
xor eax, eax
inc eax
jmp 0x405a3a
xor eax, eax
ret 8

Function at 0x405a68
Capabilities:
Get file attributes

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

Function at 0x405a95
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.00406395
test eax, eax
je 0x405aba
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405aba
cmp word [eax], 0
je 0x405aba
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405acc
cmp dword [ebp + 8], 0
je 0x405ad3
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405ad5
xor al, al
pop ebp
ret 0xc
Function at 0x405b0b
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
call fcn.00406395
mov esi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x405b31
cmp esi, ebx
je 0x405b31
cmp word [esi], bx
je 0x405b31
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x405b40
cmp dword [ebp + 8], ebx
je 0x405b6e
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, ebx
je 0x405b59
cmp byte [ebp + 0x10], bl
je 0x405b55
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.00405a95
xor eax, eax
jmp 0x405b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405b6e
cmp eax, 3
je 0x405b6e
xor eax, eax
inc eax
jmp 0x405b71
push 2
pop eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x408ed1
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.004097e5
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x408fdf
cmp ebx, edx
jge 0x408f26
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x408f28
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 0x408f0b
cmp ecx, edx
jne 0x408f30
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x408ef7
cmp eax, 0xa
jg 0x408fdf
mov dword [ebp - 4], 0x41cec0
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x41cfe0]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x41cfe0]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x41cfe0]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x41cfe0]
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 0x408f8b
add eax, edx
dec edi
jne 0x408f89
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x408fdf
cmp ebx, edx
jge 0x408fc8
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x408fca
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 0x408fac
cmp ecx, edx
jne 0x408fd1
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x408f9e
cmp dword [ebp + 8], 0xa
jle 0x408f44
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408fe6
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 + 0x419ec0]
xor dl, byte [eax + ebx*4 + 0x41a6c0]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x41aac0]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x41a2c0]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x40900e
inc eax
cmp eax, edi
jl 0x409001
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.004097e5
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x408fff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [0x41d0e8], esi
jne 0x40a069
mov ecx, 0x41d0e0
call fcn.0040a011
cmp byte [ebp + 0x14], 0
mov ebx, dword [ebp + 0x10]
je 0x40a0bf
cmp dword [0x41d0e8], esi
je 0x40a0f0
test bl, 0xf
jne 0x40a0f0
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004097e5
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41d0e8]
test eax, eax
jne 0x40a118
push str.CryptProtectMemory_failed
mov esi, 0x417e8c
mov ecx, esi
call fcn.004034e9
mov ecx, esi
call fcn.0040338b
push 2
mov ecx, esi
call fcn.00403686
jmp 0x40a118
cmp dword [0x41d0ec], esi
je 0x40a0f0
test bl, 0xf
jne 0x40a0f0
add ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004097e5
push esi
push ebx
push dword [ebp + 0xc]
call dword [0x41d0ec]
test eax, eax
jne 0x40a118
push str.CryptUnprotectMemory_failed
jmp 0x40a0a1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
cmp ebx, esi
jbe 0x40a118
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 0x40a105
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x40a26d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40a2b8
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 [0x429a7c], ax
xor eax, eax
mov word [0x429a7e], ax
mov dword [0x4150b0], 0x429a7c
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d7eb
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
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 0x40a637
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x423920]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x423924], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a699
mov ecx, dword [0x41d0f4]
call fcn.0041159b
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x4132e8
push 0
push 0xc2
push edi
call esi
mov byte [0x423924], 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 0x40a6e9
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 0x40a733
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 0x4134c0
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40aee1
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 0x40aefc
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40af06
mov byte [eax], 0
test edi, edi
je 0x40afaf
movzx eax, word [edi]
test ax, ax
je 0x40afaf
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40af3f
cmp dword [ebp + 0xc], 0
je 0x40af4b
test esi, esi
jne 0x40af4b
test ebx, ebx
je 0x40af3b
mov byte [ebx], 1
mov esi, edx
jmp 0x40af5a
cmp ax, 0xd
je 0x40af6d
cmp ax, 0xa
je 0x40af6f
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40af65
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40af1f
jmp 0x40af6f
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40af6f
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40afaa
mov word [ebx], ax
test esi, esi
je 0x40afaa
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.0040d76b
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40afb1
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x40aff6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.0041201c
cmp byte [0x423925], 0
jne 0x40b084
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00406c3a
push eax
call fcn.0040e1c4
test eax, eax
jne 0x40b084
push 0x41353c
call fcn.00412009
lea eax, [ebp - 0x820]
push eax
call fcn.00409b3e
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.004097b8
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 0x40b14f
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x423911], 1
cmp dword [0x423920], ebx
je 0x40b177
push 0x7d
call fcn.00408e23
push eax
push 2
push dword [0x423920]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x423920]
mov dword [0x423914], ebx
mov byte [0x423910], 1
cmp eax, ebx
je 0x40b1d8
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x423934], ebx
jne 0x40b1a6
cmp byte [0x423924], bl
je 0x40b1ae
cmp dword [0x423918], ebx
jne 0x40b1d0
push ebx
push 1
push 0x111
push dword [0x423920]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b1d0
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040a22e
cmp dword [0x423920], ebx
jne 0x40b1c4
cmp byte [0x423950], bl
pop ebx
je 0x40b1e6
jmp fcn.0040aff6
ret

Function at 0x40b222
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x423958], bl
je 0x40b2a2
cmp word [0x41d0f8], bx
je 0x40b2a2
push esi
push 0x41d0f8
lea esi, [ebp - 0x808]
call fcn.0040b1e7
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 0x40b2a2
push dword [ebp + 8]
call fcn.00409b3e
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 0x40b2a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x423958], 0
je 0x40b34e
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040b1e7
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 0x40b34e
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 0x40b345
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40b329
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.0040d76b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40b476
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x423906], 0
mov eax, dword [ebp + 0xc]
mov dword [0x423908], eax
mov eax, dword [ebp + 0x10]
mov dword [0x42390c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x423900], eax
je 0x40b4a6
xor eax, eax
inc eax
jmp 0x40b4cf
cmp byte [0x423907], 0
je 0x40b4b4
push 2
pop eax
jmp 0x40b4cf
push dword [ebp + 8]
push 0x40a807
push dword [0x423920]
push str.REPLACEFILEDLG
push dword [0x417e84]
call esi
dec eax
je 0x40b521
dec eax
je 0x40b533
dec eax
je 0x40b51a
dec eax
jne 0x40b4fe
push dword [ebp + 8]
push 0x40ab53
push dword [0x423920]
push str.RENAMEDLG
push dword [0x417e84]
call esi
test eax, eax
je 0x40b480
mov al, 0x52
jmp 0x40b52e
dec eax
je 0x40b50f
dec eax
mov al, 0x4e
jne 0x40b52e
mov byte [0x423907], 1
jmp 0x40b52e
mov byte [0x423912], 1
mov al, 0x43
jmp 0x40b52e
mov byte [0x423906], 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 0x40b52e
Function at 0x40d480
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 0x4115b2
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 0x4115e4
cmp dword [ebp - 4], edi
jne 0x411625
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x411625
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 0x4115d1
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 0x4115d1
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x41167b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413b90
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x411672
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x411669
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