joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4045a3
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x40547f
call fcn.00404d20
sub esp, 0x118
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x124]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
and byte [ebp - 0x121], 0
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
or dword [ebp - 0x18], 0xffffffff
push 1
pop ebx
mov edi, 0x4094dc
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 4], 2
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea esi, [ebp - 0x124]
mov dword [ebp - 0x1c], 0xa
cmp byte [esi], 0
je 0x404665
push esi
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x404665
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x404665
push esi
call fcn.004046c1
cmp eax, dword [ebp - 0x18]
pop ecx
jle 0x404665
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call sub.MFC42.DLL_CString::operator_1
add esi, 4
dec dword [ebp - 0x1c]
jne 0x40462c
push edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x404689
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00404a22
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4034d9
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d3588], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x40351e
push 0x402b50
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0x402bac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x422d28]
mov ebx, dword [str.Wr_h_B]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004034d2
mov eax, dword [0x422d30]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x422d34]
add edi, 0x23f
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d3588], 0xc
mov dword [ebp - 4], ecx
jne 0x4035bf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402bc4
push 0x402bd8
push 0x402be8
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x2c]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d3588]
cmp ecx, 0xfa9
jne 0x4035dd
mov dword [0x4d2b24], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4035eb
mov dword [0x4d24d8], esi
lea ecx, [edi + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x4d2b20], 0xf4ea3dee
add eax, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d3588], 0x213
mov dword [ebp - 0x14], ecx
jne 0x403629
push esi
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
cmp dword [0x4d3588], 0xc
jne 0x403672
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402c28
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [edi + eax]
shr eax, cl
add eax, ebx
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add edi, 0x61c88647
dec dword [ebp - 0x18]
jne 0x403557
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x4036bd
Capabilities:
Create pipe
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.0040bbf0
mov eax, dword [0x4d3588]
mov ecx, dword [0x4d24dc]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4037ba
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4d3588], 0x959
jne 0x4037a8
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
push esi
push esi
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402c90
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x402cf8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d28
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.004034d9
add ebx, 8
dec dword [ebp - 4]
jne 0x4036ea
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4055ab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422494]
jne 0x4055b5
repz ret
jmp fcn.00408dcc

Function at 0x40abeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406b76
and dword [ebp - 4], 0
cmp dword [0x424108], 0
mov ebx, eax
jne 0x40ac9c
push 0x4021bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021b0
push edi
call esi
test eax, eax
je 0x40ad4d
push eax
call fcn.00406b04
mov dword [esp], 0x4021a0
push edi
mov dword [0x424108], eax
call esi
push eax
call fcn.00406b04
mov dword [esp], 0x40218c
push edi
mov dword [0x42410c], eax
call esi
push eax
call fcn.00406b04
mov dword [esp], 0x402170
push edi
mov dword [0x424110], eax
call esi
push eax
call fcn.00406b04
pop ecx
mov dword [0x424118], eax
test eax, eax
je 0x40ac9c
push 0x402158
push edi
call esi
push eax
call fcn.00406b04
pop ecx
mov dword [0x424114], eax
mov eax, dword [0x424114]
cmp eax, ebx
je 0x40acf4
cmp dword [0x424118], ebx
je 0x40acf4
push eax
call fcn.00406b7f
push dword [0x424118]
mov esi, eax
call fcn.00406b7f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acf4
test edi, edi
je 0x40acf4
call esi
test eax, eax
je 0x40aceb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aceb
test byte [ebp - 0xc], 1
jne 0x40acf4
or dword [ebp + 0x10], 0x200000
jmp 0x40ad2d
mov eax, dword [0x42410c]
cmp eax, ebx
je 0x40ad2d
push eax
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad2d
mov eax, dword [0x424110]
cmp eax, ebx
je 0x40ad2d
push eax
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424108]
call fcn.00406b7f
pop ecx
test eax, eax
je 0x40ad4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x59bfd3
Capabilities:
Packed with generic packer

Disassembly:
push edx
mov edx, 0x64
jmp 0x59bff6
mov ecx, 0x1000
jmp 0x59bfe7
add eax, ecx
add eax, ebx
dec ecx
or ecx, ecx
jne 0x59bfe2
push edx
push esp
push esp
call dword [sym.imp.kernel32.dll_lstrcpy]
pop edx
dec edx
or edx, edx
jne 0x59bfdb
pop edx
jmp section..data_2
Function at 0x4dc1c7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4dc1e4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4dc1d5
add dl, dl
jne 0x4dc1ef
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4dc23b
xor eax, eax
add dl, dl
jne 0x4dc1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4dc2d8
add dl, dl
jne 0x4dc20b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4dc216
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4dc221
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4dc22c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4dc236
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4dc1db
mov eax, 1
add dl, dl
jne 0x4dc249
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4dc254
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4dc240
sub eax, 2
jne 0x4dc283
mov ecx, 1
add dl, dl
jne 0x4dc269
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4dc274
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4dc260
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4dc1db
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4dc29a
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4dc2a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4dc291
cmp eax, 0x7d00
jae 0x4dc2c8
cmp eax, 0x500
jb 0x4dc2c3
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4dc1db
cmp eax, 0x7f
ja 0x4dc2cb
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4dc1db
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4dc2f4
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4dc1db
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x411b76
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x411bae
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
xor eax, eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov edi, dword [esi + 0x64]
test edi, edi
jne 0x411bba
mov eax, dword [esi + 0x5c]
jmp 0x411c03
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x411c01
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x411bdf
shr ebx, 1
shr edi, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x5c]
mov edi, dword [esi + 0x64]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x411bc3
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x41234e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4123a0
push eax
call fcn.004146d7
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4123a0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x424c80
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4123a4
xor al, al
jmp 0x412405
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x412403
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004146d7
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x412403
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x4123f1
mov al, 1
pop ebx
leave
ret 4
Function at 0x4011ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x401213
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004324e0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x401213
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401247
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004321f0
leave
ret

Function at 0x401672
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
cmp dword [eax + 0x18], 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
jb 0x4016a5
mov eax, dword [eax + 4]
jmp 0x4016a8
add eax, 4
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x446d9c
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401734
cmp dword [ebp - 0x74], ebx
je 0x401734
mov eax, 0x208
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.004324e0
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4016f5
mov edi, dword [edi + 4]
jmp 0x4016f8
add edi, 4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x40171d
lea eax, [ebp - 0x70]
call fcn.00401247
cmp dword [ebp - 0x74], ebx
je 0x40172b
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
jmp 0x401736
xor al, al
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004321f0
add ebp, 0x19c
leave
ret 4

Function at 0x401750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [eax + 0x18], 8
push ebx
push esi
mov esi, ecx
jb 0x401764
mov eax, dword [eax + 4]
jmp 0x401767
add eax, 4
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x446d9c
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4017dc
cmp dword [ebp - 4], ebx
je 0x4017dc
mov eax, dword [esi + 0x14]
add eax, eax
cmp dword [esi + 0x18], 8
jb 0x4017a3
mov esi, dword [esi + 4]
jmp 0x4017a6
add esi, 4
cmp dword [edi + 0x18], 8
jb 0x4017b1
mov ecx, dword [edi + 4]
jmp 0x4017b4
lea ecx, [edi + 4]
push eax
push esi
push 1
push ebx
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x4017d3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4017de
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x402cc2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004324e0
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.004324e0
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x402d08
mov esi, dword [esi + 4]
jmp 0x402d0b
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x402d19
mov eax, dword [eax + 4]
jmp 0x402d1c
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402d48
cmp dword [ebp - 0x14], ebx
je 0x402d44
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402d4a
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x403dc9
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0x442a56
call fcn.004342a8
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
jb 0x403deb
mov eax, dword [eax + 4]
jmp 0x403dee
add eax, 4
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
jne 0x403e03
xor al, al
jmp 0x403e56
xor edi, edi
cmp dword [ebp - 0x30], esi
jle 0x403e42
jmp 0x403e0e
xor esi, esi
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x2c]
call fcn.00401221
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
je 0x403e2d
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
call fcn.00403eec
or dword [ebp - 4], 0xffffffff
push esi
push 1
lea esi, [ebp - 0x2c]
call fcn.004012b5
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x403e0c
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x34]
call fcn.00403eb7
test eax, eax
setne al
call fcn.0043432b
ret 4
Function at 0x406349
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40636a
mov eax, dword [eax + 4]
jmp 0x40636d
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x406394
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004321f0
leave
ret 4
Function at 0x408e1d
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x456214]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0x28
mov eax, 0x44309b
call fcn.0043423f
lea eax, [ebp]
mov edi, ecx
push 0x5087
push eax
mov dword [ebp - 0x18], edi
call fcn.00402c73
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x408e66
lea eax, [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp + 0x38]
push 0
push eax
call fcn.004324e0
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x10], eax
je 0x408ed5
push eax
call ebx
test eax, eax
je 0x408ed5
push 0x104
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x408ed5
and word [ebp + 0x240], 0
lea esi, [edi + 0x298]
lea eax, [ebp + 0x38]
call fcn.00401247
jmp 0x408ef8
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x408ef8
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x408eef
mov eax, dword [eax + 4]
jmp 0x408ef2
add eax, 4
push eax
push dword [ebp - 0x10]
call esi
add edi, 0x298
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], edi
call fcn.0042a926
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.00401313
push ebx
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004012b5
push 0x4470c4
mov eax, edi
call fcn.0040befb
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0x90], bl
pop ecx
je 0x408fe3
cmp dword [esi + 0x88], ebx
je 0x408fe3
lea ecx, [esi + 0x74]
mov eax, edi
call fcn.0040bd5a
test eax, eax
je 0x408fe3
lea eax, [esi + 0x32c]
lea esi, [ebp + 0x1c]
call fcn.00403f4c
mov byte [ebp - 4], 2
call fcn.0040bfc4
push 0x25
push 0x3a
call fcn.0040be6e
push 0x25
push 0x5c
call fcn.0040be6e
mov edi, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, edi
lea ecx, [ebp - 0x34]
call fcn.00401221
lea eax, [ebp - 0x34]
call fcn.0040161f
push ebx
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 0x11], al
call fcn.004012b5
cmp byte [ebp - 0x11], bl
je 0x408fd8
mov eax, edi
lea ecx, [ebp - 0x34]
call fcn.00401221
mov ecx, dword [ebp - 0x10]
lea edi, [ebp + 0x1c]
lea eax, [ebp - 0x34]
call fcn.00401750
push ebx
push 1
lea esi, [ebp - 0x34]
call fcn.004012b5
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.004012b5
push ebx
push 1
lea esi, [ebp]
call fcn.004012b5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.004321f0
add ebp, 0x248
leave
ret