joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41cf49
test eax, edx
je 0x41cf4c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41cf07
movzx eax, word [eax]
sub eax, ecx
jmp 0x41cf2e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41cf2f
add ecx, 4
js 0x41cf1f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41cf2c
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41cf2e
xor eax, eax
ret
test eax, eax
je 0x41cf58
test edx, edx
jne 0x41cef8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x424874
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004071d4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a7e0
mov edi, eax
cmp edi, 0x104
jbe 0x42481f
mov eax, edi
add eax, eax
call fcn.0040443c
mov esi, eax
jmp 0x424821
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a7e0
push esi
call fcn.0040c84c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42485a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x424844
mov eax, esp
cmp esi, eax
je 0x424867
mov eax, esi
call fcn.00404458
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4248a0
cmp bl, 0
je 0x42489c
cmp bl, 0x41
jl 0x424897
cmp bl, 0x5a
jg 0x424897
or bl, 0x20
xor al, bl
inc esi
jmp 0x42487b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4247e0
Function at 0x40d596
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x1505
jmp 0x40d5b7
lea eax, [ecx - 0x61]
cmp eax, 0x19
ja 0x40d5af
and ecx, 0xffffffdf
imul edx, edx, 0x21
xor edx, ecx
add esi, 2
movzx ecx, word [esi]
test ecx, ecx
jne 0x40d5a4
mov eax, dword [ebp + 0x10]
movzx ecx, dl
mov edx, ecx
and ecx, 0x1f
shr edx, 5
mov dword [eax], edx
xor edx, edx
mov eax, dword [ebp + 0x14]
inc edx
shl edx, cl
pop esi
mov dword [eax], edx
pop ebp
ret 0x10

Function at 0x10408058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x104081a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1040807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1040806a
add dl, dl
jne 0x10408089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104080dc
xor eax, eax
add dl, dl
jne 0x10408096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1040817d
add dl, dl
jne 0x104080a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104080b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104080bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104080c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104080d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10408075
mov eax, 1
add dl, dl
jne 0x104080ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104080f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104080e1
sub eax, ebx
mov ebx, 1
jne 0x10408128
mov ecx, 1
add dl, dl
jne 0x1040810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10408119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10408105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10408075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1040813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1040814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10408136
cmp eax, 0x7d00
jae 0x1040816d
cmp eax, 0x500
jb 0x10408168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10408075
cmp eax, 0x7f
ja 0x10408170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10408075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1040819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10408075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4b305bba
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3617342b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4013ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x401417
test cl, 7
je 0x401417
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
jmp 0x4013f8
cmp esi, 8
jb 0x4014ba
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x423860]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x423460]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x423c60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x424460]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424860]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x424c60]
movzx edx, dl
xor edi, dword [edx*4 + 0x424060]
movzx eax, al
xor edi, dword [eax*4 + 0x425060]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x401429
pop ebx
jmp 0x4014ba
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x423460]
dec esi
inc ecx
test esi, esi
ja 0x4014a6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4034e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
jne 0x403500
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403571
mov ecx, esi
call fcn.00403474
test al, al
je 0x40353b
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x40353b
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.004034e6
jmp 0x403574
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403552
call ebx
cmp eax, 0x6d
jne 0x403552
xor eax, eax
jmp 0x403574
cmp dword [esi + 0xc], 0
jne 0x40356c
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x40356c
call ebx
cmp eax, 0x21
jne 0x40356c
push edi
jmp 0x40352f
or eax, 0xffffffff
jmp 0x403574
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x4038ab
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065fc
test al, al
je 0x4038ab
lea eax, [ebp - 0x1000]
push eax
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4038b3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x403902
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004065fc
test al, al
je 0x403902
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x403aef
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040617a
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x403b25
cmp ax, 0x20
je 0x403b25
push 0
push edi
call esi
test eax, eax
jne 0x403b54
push edi
call fcn.00403acb
test al, al
jne 0x403b67
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.004065fc
test al, al
je 0x403b67
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x403b67
cmp byte [ebp + 0xc], 0
je 0x403b63
push dword [ebp + 0x10]
push edi
call fcn.004038b3
xor eax, eax
jmp 0x403b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403b7c
cmp eax, 3
je 0x403b7c
xor eax, eax
inc eax
jmp 0x403b7f
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x403fb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44e134]
call fcn.004013ea
cmp byte [0x4377e1], 0
mov dword [0x44e134], eax
jne 0x403fe8
cmp dword [ebp + 0xc], 0
jbe 0x403fe8
mov ecx, dword [0x44e230]
pop ebp
jmp fcn.004032eb
pop ebp
ret 8

Function at 0x4047e5
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0040d8e0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x404874
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048a1
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.004065fc
test al, al
je 0x40484d
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4048a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404867
cmp eax, 3
je 0x404867
cmp eax, 0x12
je 0x404867
xor eax, eax
inc eax
jmp 0x404869
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x40496c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404897
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x40496c
push edi
push dword [ebp + 0xc]
push esi
call fcn.0040b3ab
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.00406485
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0040df60
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.0040b6f9
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.0040b6f9
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.0040b6f9
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4065fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0040d8e0
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x40661a
xor al, al
jmp 0x4067a4
push ebx
push edi
push esi
call fcn.00406299
push esi
call fcn.0040d86a
pop ecx
push esi
mov ebx, eax
call fcn.00406538
test al, al
je 0x4066c4
push esi
call fcn.00406299
test al, al
je 0x406671
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x4067a0
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
push esi
add edi, 8
push edi
call fcn.0040d8b2
add esp, 0x14
jmp 0x40679c
cmp word [esi], 0x5c
jne 0x4067a0
add esi, 2
cmp word [esi], 0x5c
jne 0x4067a0
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067a0
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
lea eax, [edi + 8]
push 0x41d658
push eax
call fcn.0040d8b2
push esi
add edi, 0xe
push edi
call fcn.0040d8b2
add esp, 0x1c
jmp 0x40679c
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4067a0
cmp eax, edi
ja 0x4067a0
movzx eax, word [esi]
push eax
call fcn.004061b5
test al, al
je 0x406731
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4067a0
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040e7f4
push esi
add edi, 0xc
push edi
call fcn.0040d8b2
add esp, 0x20
jmp 0x40679c
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.004061cd
lea eax, [ebp - 0x1000]
push eax
call fcn.0040d86a
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x4067a0
mov edi, dword [ebp + 0xc]
push 4
push 0x41d660
push edi
call fcn.0040e7f4
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0040d8b2
add esp, 0x14
cmp word [esi], 0x2e
jne 0x406792
movzx eax, word [esi + 2]
push eax
call fcn.004061b5
test al, al
je 0x406792
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.0040b3d8
mov al, 1
jmp 0x4067a2
xor al, al
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4082ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x42747c], ebx
jne 0x4082c6
mov ecx, 0x427474
call fcn.0040826e
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x408318
mov ecx, dword [0x42747c]
cmp ecx, ebx
je 0x408334
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408355
push str.CryptProtectMemory_failed
mov esi, 0x4325fc
push esi
call fcn.004016a9
pop ecx
pop ecx
mov ecx, esi
call fcn.004015d8
push 2
mov ecx, esi
call fcn.00401626
jmp 0x408355
mov ecx, dword [0x427480]
cmp ecx, ebx
je 0x408334
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x408355
push str.CryptUnprotectMemory_failed
jmp 0x4082f9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x408355
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x408345
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4084a5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x422038], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x4084f0
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 [0x43bbc4], ax
xor eax, eax
mov word [0x43bbc6], ax
mov dword [0x422038], 0x43bbc4
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040b406
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x422028
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 0x4085e6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x4304c4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x4304c8], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x408648
mov ecx, dword [0x42748c]
call fcn.0040c79f
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41d43c
push 0
push 0xc2
push edi
call esi
mov byte [0x4304c8], 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 0x408698
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 0x4086e2
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 0x41d788
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x408b8b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0040d8e0
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x408ba6
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408bb0
mov byte [eax], 0
test edi, edi
je 0x408c59
movzx eax, word [edi]
test ax, ax
je 0x408c59
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x408be9
cmp dword [ebp + 0xc], 0
je 0x408bf5
test esi, esi
jne 0x408bf5
test ebx, ebx
je 0x408be5
mov byte [ebx], 1
mov esi, edx
jmp 0x408c04
cmp ax, 0xd
je 0x408c17
cmp ax, 0xa
je 0x408c19
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jge 0x408c0f
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x408bc9
jmp 0x408c19
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408c19
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x408c54
mov word [ebx], ax
test esi, esi
je 0x408c54
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.0040b3ab
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x408c5b
xor eax, eax
pop edi
pop ebx
leave
ret 0x10
Function at 0x408ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0040d8e0
push 0x800
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d2af
cmp byte [0x4304c9], 0
jne 0x408d35
push 6
push dword [0x422024]
lea eax, [ebp - 0x1020]
push eax
call fcn.0040631b
push eax
call fcn.0040c23f
test eax, eax
jne 0x408d35
push 0x41d480
call fcn.0040d29c
lea eax, [ebp - 0x1020]
push eax
call fcn.0040d86a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x101e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d7f0
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x1020]
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 0x408e96
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040d8e0
push ebx
xor ebx, ebx
cmp byte [0x4304f8], bl
je 0x408f1b
cmp word [0x427490], bx
je 0x408f1b
push esi
push 0x427490
lea esi, [ebp - 0x1008]
call fcn.00408e59
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 0x408f1b
push dword [ebp + 8]
call fcn.0040d86a
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
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 0x408f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0040d8e0
cmp byte [0x4304f8], 0
je 0x408fc7
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x200c]
call fcn.00408e59
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 0x408fc7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408fbe
shr dword [ebp - 4], 1
mov eax, 0x7ff
cmp dword [ebp - 4], eax
jae 0x408fa2
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x100c], cx
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0040b3ab
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8