joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407418
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.00407178
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call sub.CRTDLL.DLL_memcpy
add esp, 0x10
xor edi, edi
call fcn.004070c4
lea ebx, [ebp + edi - 0xc]
movzx edx, byte [ebx]
xor edx, eax
mov byte [ebx], dl
movzx ebx, dl
push ebx
call fcn.004070f3
pop ecx
inc edi
cmp edi, 0xc
jl 0x40743c
movzx eax, byte [ebp - 1]
mov word [ebp - 0xe], ax
mov eax, dword [0x4139c4]
test byte [eax + 0x18], 2
je 0x407483
movzx edx, word [0x41fa14]
sar edx, 8
mov ebx, edx
and ebx, 0xff
jmp 0x40748f
mov edx, dword [0x41fa18]
shr edx, 0x18
movzx ebx, dx
movzx edx, word [ebp - 0xe]
cmp edx, ebx
je 0x40749c
or eax, 0xffffffff
jmp 0x4074db
mov eax, dword [0x4132a0]
cmp dword [0x41f9d8], eax
jle 0x4074ad
mov ebx, eax
jmp 0x4074b3
mov ebx, dword [0x41f9d8]
mov edi, ebx
mov esi, dword [0x41f9d4]
jmp 0x4074d4
call fcn.004070c4
movzx ebx, byte [esi]
xor ebx, eax
mov byte [esi], bl
movzx ebx, bl
push ebx
call fcn.004070f3
pop ecx
inc esi
mov eax, edi
dec edi
or eax, eax
jne 0x4074bd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4074e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x407597
call fcn.00407090
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x407594
test esi, 3
je 0x407522
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40750b
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x407581
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40752c
mov ecx, edx
jecxz 0x407594
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x407585
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40759c
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
cmp dword [0x421324], 0
je 0x4075af
xor eax, eax
inc eax
jmp 0x407637
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov edi, eax
or edi, edi
jne 0x4075c4
xor eax, eax
jmp 0x407637
push edi
push 0x421328
call sub.KERNEL32.DLL_InterlockedExchange
mov esi, eax
or esi, esi
je 0x4075fb
push esi
push 0x421328
call sub.KERNEL32.DLL_InterlockedExchange
push edi
call sub.KERNEL32.DLL_CloseHandle
push 0xffffffffffffffff
push esi
call sub.KERNEL32.DLL_WaitForSingleObject
push esi
call sub.KERNEL32.DLL_ReleaseMutex
mov eax, dword [0x421324]
jmp 0x407637
push 0x41fd7c
call sub.KERNEL32.DLL_InitializeCriticalSection
push 0x41fecc
call sub.KERNEL32.DLL_InitializeCriticalSection
mov ecx, 0x49
xor eax, eax
push edi
mov edi, 0x41fd9c
rep stosd dword es:[edi], eax
pop edi
call fcn.00407dc8
mov dword [0x421324], 1
push edi
call sub.KERNEL32.DLL_ReleaseMutex
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x407e88
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push edi
push dword [0x41fef4]
call fcn.00411281
push edi
call sub.CRTDLL.DLL__mkdir
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x408629
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x41fab0]
call sub.CRTDLL.DLL_fclose
pop ecx
cmp dword [0x413228], 0
jne 0x40872f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00408527
add esp, 0xc
mov esi, eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 2
push 0x40000000
push 0x41fac8
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
mov eax, dword [0x4139c4]
mov ecx, dword [eax + 0x14]
and ecx, 0x7f
test ecx, 0xffffffdf
je 0x4086a7
mov eax, dword [eax + 0x14]
and eax, 0x7f
push eax
push 0x41fac8
call sub.KERNEL32.DLL_SetFileAttributesA
or eax, eax
jne 0x4086a7
cmp dword [0x41fa04], 0
je 0x4086dc
movzx eax, word [0x41fa26]
push eax
push dword [0x41fa04]
push 0x41fac8
call fcn.00407fdb
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, 0x4f
jne 0x4086dc
cmp dword [0x41324c], 0
je 0x4086dc
cmp edi, 0xffffffff
je 0x40872f
or esi, esi
je 0x408729
test si, 1
je 0x4086f1
lea ebx, [ebp - 8]
jmp 0x4086f3
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
test si, 2
je 0x408702
lea ebx, [ebp - 0x10]
jmp 0x408704
xor ebx, ebx
mov dword [ebp - 0x20], ebx
test si, 4
je 0x408713
lea ebx, [ebp - 0x18]
jmp 0x408715
xor ebx, ebx
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
push edi
call sub.KERNEL32.DLL_SetFileTime
or eax, eax
jne 0x408729
push edi
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408734
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov eax, dword [ebp + 8]
add eax, 0x40
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2f
mov byte [ebp - 1], 0
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
sete al
and eax, 1
pop edi
leave
ret
Function at 0x408763
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
push 0x421399
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
or eax, eax
je 0x40879a
push 2
push 0x421396
push edi
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
or eax, eax
jne 0x4087b3
movsx esi, byte [edi + 2]
or esi, esi
je 0x4087b3
cmp esi, 0x2f
je 0x4087b3
cmp esi, 0x5c
je 0x4087b3
xor eax, eax
jmp 0x4088e7
movzx eax, byte [edi]
test byte [eax + str.________________________________H], 3
je 0x4087cb
cmp byte [edi + 1], 0x3a
jne 0x4087cb
mov dword [ebp - 4], edi
jmp 0x4087f2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call sub.KERNEL32.DLL_GetFullPathNameA
or eax, eax
je 0x4088e7
lea eax, [ebp - 0x20c]
mov dword [ebp - 4], eax
push 2
push dword [ebp - 4]
push 0x41fc2c
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
or eax, eax
je 0x4088e4
push 2
push dword [ebp - 4]
push 0x41fc2c
call sub.CRTDLL.DLL_strncpy
add esp, 0xc
mov byte [0x41fc2e], 0x2f
mov byte [0x41fc2f], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x41fc2c
call sub.KERNEL32.DLL_GetVolumeInformationA
or eax, eax
jne 0x408872
mov byte [0x41fc2c], 0
xor eax, eax
jmp 0x4088e7
xor eax, eax
cmp dword [ebp - 0x210], 0xc
setbe al
mov dword [0x41fc30], eax
lea eax, [ebp - 0x108]
push eax
call sub.CRTDLL.DLL__strupr
push 4
push str.VFAT
push eax
call sub.CRTDLL.DLL_strncmp
add esp, 0x10
or eax, eax
je 0x4088d7
push 4
push str.HPFS
lea edx, [ebp - 0x108]
push edx
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
or eax, eax
je 0x4088d7
push 3
push 0x421388
lea edx, [ebp - 0x108]
push edx
call sub.CRTDLL.DLL_strncmp
add esp, 0xc
or eax, eax
jne 0x4088dc
xor ebx, ebx
inc ebx
jmp 0x4088de
xor ebx, ebx
mov dword [0x41fc34], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4095ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push edi
push esi
call sub.CRTDLL.DLL__stat
add esp, 8
or eax, eax
jne 0x4096ee
push esi
call fcn.004081aa
add esp, 4
mov dword [ebp - 8], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push esi
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4096ea
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetFileTime
mov dword [ebp - 0x24], eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0x24], 0
je 0x4096ea
cmp dword [ebp - 8], 0
jne 0x40968c
mov eax, edi
add eax, 0x18
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004081ca
add esp, 8
cmp dword [ebp - 0x10], 0
jne 0x40964a
cmp dword [ebp - 0xc], 0
je 0x40965e
mov eax, edi
add eax, 0x14
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004081ca
add esp, 8
jmp 0x409664
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x18], 0
jne 0x409670
cmp dword [ebp - 0x14], 0
je 0x409684
mov eax, edi
add eax, 0x1c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004081ca
add esp, 8
jmp 0x4096ea
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
jmp 0x4096ea
mov eax, edi
add eax, 0x18
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408339
add esp, 8
cmp dword [ebp - 0x10], 0
jne 0x4096aa
cmp dword [ebp - 0xc], 0
je 0x4096be
mov eax, edi
add eax, 0x14
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00408339
add esp, 8
jmp 0x4096c4
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], eax
cmp dword [ebp - 0x18], 0
jne 0x4096d0
cmp dword [ebp - 0x14], 0
je 0x4096e4
mov eax, edi
add eax, 0x1c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408339
add esp, 8
jmp 0x4096ea
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
xor eax, eax
jmp 0x409748
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x409745
test al, 0x10
je 0x409745
mov ecx, 8
xor eax, eax
push edi
rep stosd dword es:[edi], eax
pop edi
push 0x210000
call fcn.0040618b
add esp, 4
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x14], eax
test byte [ebp - 4], 1
xchg esi, eax
sete al
xchg esi, eax
and esi, 1
dec esi
and esi, 0xffffff80
add esi, 0x80
mov eax, esi
or ax, 0x4100
mov word [edi + 4], ax
xor eax, eax
jmp 0x409748
or eax, 0xffffffff
pop edi
pop esi
leave
ret
Function at 0x40974c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push str.CONIN_
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x409783
or eax, 0xffffffff
jmp 0x4097f5
lea eax, [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_GetConsoleMode
or eax, eax
je 0x409799
push 1
push edi
call sub.KERNEL32.DLL_SetConsoleMode
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xa]
push eax
push edi
call sub.KERNEL32.DLL_ReadFile
or eax, eax
je 0x4097b9
cmp dword [ebp - 8], 1
jne 0x4097b9
movzx esi, byte [ebp - 0xa]
cmp esi, 0xa
jne 0x4097de
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xa]
push eax
push edi
call sub.KERNEL32.DLL_ReadFile
or eax, eax
je 0x4097de
cmp dword [ebp - 8], 1
jne 0x4097de
movzx esi, byte [ebp - 0xa]
cmp dword [ebp - 4], 0xffffffff
je 0x4097ed
push dword [ebp - 4]
push edi
call sub.KERNEL32.DLL_SetConsoleMode
push edi
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40b68f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
push esi
push edi
push 0x12d
push dword [ebp + 8]
call sub.USER32.DLL_GetDlgItem
mov dword [ebp - 0x308], eax
push 0x12e
push dword [ebp + 8]
call sub.USER32.DLL_GetDlgItem
mov ebx, eax
push 0
push 0
push 0x18b
push ebx
call sub.USER32.DLL_SendMessageA
mov esi, eax
xor edi, edi
jmp 0x40b772
lea eax, [ebp - 0x304]
push eax
push edi
push 0x189
push ebx
call sub.USER32.DLL_SendMessageA
lea eax, [ebp - 0x304]
push eax
push 0xffffffffffffffff
push 0x18f
push dword [ebp - 0x308]
call sub.USER32.DLL_SendMessageA
cmp eax, 0xffffffff
jne 0x40b771
lea ecx, [0x41ff04]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40b70f
cmp byte [eax + 0x41ff03], 0x5c
je 0x40b734
push 0x4214e4
lea eax, [ebp - 0x304]
push eax
call fcn.00410ce6
add esp, 8
push 0x41ff04
lea eax, [ebp - 0x304]
push eax
call fcn.00410ce6
lea eax, [ebp - 0x304]
push eax
call fcn.00410dcf
push 0x180
lea eax, [ebp - 0x304]
push eax
call sub.CRTDLL.DLL__chmod
lea eax, [ebp - 0x304]
push eax
call sub.CRTDLL.DLL_remove
add esp, 0x18
inc edi
cmp edi, esi
jl 0x40b6d5
push dword [0x41fef4]
call fcn.004114f5
pop ecx
mov esi, eax
mov edi, esi
jmp 0x40b7cd
push 0x304
lea eax, [ebp - 0x304]
push eax
mov eax, edi
dec eax
push eax
push dword [0x41fef4]
call fcn.00411468
add esp, 0x10
or eax, eax
jle 0x40b7cc
lea eax, [ebp - 0x304]
push eax
call fcn.00410dcf
add esp, 4
lea eax, [ebp - 0x304]
push eax
call sub.CRTDLL.DLL__rmdir
add esp, 4
dec edi
or edi, edi
jg 0x40b78c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bae3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4131a4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 4
lea eax, [0x40b85e]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x65
push edi
call sub.USER32.DLL_GetDlgItem
push 0x100
push 0x420340
push eax
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0x20]
push eax
call sub.SHELL32.DLL_SHBrowseForFolder
mov dword [ebp - 0x128], eax
or eax, eax
je 0x40bc5c
cmp dword [0x420330], 0
je 0x40bb8d
mov dword [0x420330], 0
push 0
push 0x40bc62
push edi
push str.DLGNEW
push dword [0x41fee8]
call sub.USER32.DLL_DialogBoxParamA
or eax, eax
jne 0x40bb8d
jmp 0x40bc5e
push 0x420340
lea eax, [ebp - 0x124]
push eax
call fcn.00411ab4
lea ecx, [ebp - 0x124]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x40bba7
cmp byte [ebp + eax - 0x125], 0x5c
je 0x40bbcc
push 0x42158c
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
push 0x421581
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL_strcat
push 0x421580
lea eax, [ebp - 0x22c]
push eax
call fcn.00411ab4
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL__findfirst
push 0x421580
lea eax, [ebp - 0x22c]
push eax
call sub.CRTDLL.DLL_strcmp
add esp, 0x18
or eax, eax
jne 0x40bc30
push 0x5c
lea eax, [ebp - 0x124]
push eax
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov byte [eax + 1], 0
jmp 0x40bc42
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x128]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push 0x65
push edi
call sub.USER32.DLL_GetDlgItem
lea esi, [ebp - 0x124]
push esi
push eax
call sub.USER32.DLL_SetWindowTextA
xor eax, eax
inc eax
jmp 0x40bc5e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40beea
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push 0
push dword [0x41fef0]
fild qword [esp]
add esp, 8
fstp dword [ebp - 0x120]
push 0
push dword [0x41fee4]
fild qword [esp]
add esp, 8
fstp dword [ebp - 0x124]
fld dword [0x42157c]
fld dword [ebp - 0x124]
fdiv dword [ebp - 0x120]
fmulp st(1)
fstp qword [ebp - 0x130]
fld qword [0x421574]
fst qword [ebp - 0x138]
fcomp qword [ebp - 0x130]
fnstsw ax
sahf
ja 0x40bf6d
fld qword [ebp - 0x130]
fsub qword [ebp - 0x138]
mov edi, eax
call fcn.00411a04
xchg edi, eax
mov ebx, edi
add ebx, 0x80000000
jmp 0x40bf7b
fld qword [ebp - 0x130]
mov ebx, eax
call fcn.00411a04
xchg ebx, eax
mov esi, ebx
push 0x66
push dword [0x420324]
call sub.USER32.DLL_GetDlgItem
push 0
push esi
push 0x402
push eax
call sub.USER32.DLL_SendMessageA
push dword [ebp + 8]
push 0x420014
call fcn.00411ab4
push 0x420014
call fcn.00410dcf
push 0x420014
call fcn.00410f0c
push 0x65
push dword [0x420324]
call sub.USER32.DLL_GetDlgItem
push 0x100
lea edi, [ebp - 0x11c]
push edi
push eax
call sub.USER32.DLL_GetWindowTextA
push 0x420014
lea eax, [ebp - 0x11c]
push eax
call sub.CRTDLL.DLL__stricmp
add esp, 0x10
or eax, eax
je 0x40c008
push 0x65
push dword [0x420324]
call sub.USER32.DLL_GetDlgItem
push 0x420014
push eax
call sub.USER32.DLL_SetWindowTextA
mov dword [0x420328], 0xff
jmp 0x40c036
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call sub.USER32.DLL_IsDialogMessageA
or eax, eax
jne 0x40c036
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_DispatchMessageA
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.DLL_PeekMessageA
or eax, eax
jne 0x40c014
xor eax, eax
cmp dword [0x420328], 2
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41083f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x23]
lea esi, str.SoftwarePowerArchiverGeneral
mov ecx, 0x1f
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2d]
lea esi, str.Directory
mov ecx, 5
rep movsw word es:[edi], word [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
or ebx, ebx
jne 0x41087a
xor eax, eax
jmp 0x4108df
push 0x4219b0
push ebx
call fcn.00411ab4
mov dword [ebp - 4], 0x80000001
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x23]
push eax
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
or eax, eax
jne 0x4108dd
lea eax, [ebp - 0x34]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x2d]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, ebx
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x4108cb
cmp eax, 0
setne al
and eax, 1
jmp 0x4108df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4108e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x18]
lea esi, str.SoftwareZipCentral
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x29]
lea esi, str.Application_Path
mov ecx, 0x11
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
push 0x4219b0
push ebx
call fcn.00411ab4
mov dword [ebp - 4], 0x80000002
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x18]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
or eax, eax
jne 0x410979
lea eax, [ebp - 0x30]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, ebx
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410967
cmp eax, 0
setne al
and eax, 1
jmp 0x41097b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x104]
lea esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x108], eax
push 0x4219b0
push ebx
call fcn.00411ab4
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.CRTDLL.DLL_strcat
add esp, 8
mov dword [ebp - 4], 0x80000002
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
or eax, eax
jne 0x410a24
lea eax, [ebp - 0x108]
push eax
push ebx
push 0
push 0
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, ebx
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410a12
cmp eax, 0
setne al
and eax, 1
jmp 0x410a26
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410d4c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410d5e
cmp byte [eax + edi - 1], 0x5c
jne 0x410d7d
lea ecx, [edi]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410d71
mov byte [eax + edi - 1], 0
mov ecx, edi
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x410d82
cmp eax, 3
jb 0x410d9c
push edi
call fcn.00411088
add esp, 4
cmp eax, 0
je 0x410d9e
jmp 0x410dcc
lea eax, [ebp - 0x100]
push eax
push edi
call fcn.00410e47
lea eax, [ebp - 0x100]
push eax
call fcn.00410d4c
push edi
push dword [0x41fef4]
call fcn.00411281
push edi
call sub.CRTDLL.DLL__mkdir
add esp, 0x18
pop edi
leave
ret

Function at 0x4117ad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
push edi
call sub.USER32.DLL_SetWindowTextA
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call sub.CRTDLL.DLL_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0x2bc
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x23], 0
mov byte [ebp - 0x22], 0
mov byte [ebp - 0x21], 0x10
push 0x421a20
lea eax, [ebp - 0x20]
push eax
call fcn.00411ab4
lea eax, [ebp - 0x3c]
push eax
call sub.GDI32.DLL_CreateFontIndirectA
mov dword [0x420464], eax
push 3
push edi
call sub.USER32.DLL_ShowWindow
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x41184e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push esi
push edi
mov esi, dword [ebp + 8]
push 0x100
lea eax, [ebp - 0x100]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
lea eax, [ebp - 0x154]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea eax, [ebp - 0x144]
push eax
push esi
call sub.USER32.DLL_BeginPaint
mov edi, eax
push edi
push esi
call fcn.00411922
add esp, 8
push 1
push edi
call sub.GDI32.DLL_SetBkMode
push dword [0x420464]
push edi
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0x104], eax
push 0
push edi
call sub.GDI32.DLL_SetTextColor
lea ecx, [ebp - 0x100]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x4118bf
push eax
lea eax, [ebp - 0x100]
push eax
push 0xf
push 0xf
push edi
call sub.GDI32.DLL_TextOutA
push 0xffffff
push edi
call sub.GDI32.DLL_SetTextColor
lea ecx, [ebp - 0x100]
or eax, 0xffffffff
inc eax
cmp byte [ecx + eax], 0
jne 0x4118ec
push eax
lea eax, [ebp - 0x100]
push eax
push 0xa
push 0xa
push edi
call sub.GDI32.DLL_TextOutA
push dword [ebp - 0x104]
push edi
call sub.GDI32.DLL_SelectObject
lea eax, [ebp - 0x144]
push eax
push esi
call sub.USER32.DLL_EndPaint
pop edi
pop esi
leave
ret
Function at 0x411a50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x411a84
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x411a9f
mov edi, eax
inc edi
jmp 0x411a7c
inc edi
cmp byte [edi], 0x20
je 0x411a7b
jmp 0x411a9f
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x411a90
cmp eax, 0x20
jne 0x411a83
jmp 0x411a93
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x411a9f
cmp eax, 0x20
je 0x411a92
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00409db0
pop edi
leave
ret