joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a7da
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x47a7e8
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x47a8c9
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x4a4c74]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4a4c74]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4a4c74]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4a4c74]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4a4c74]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x4a4c74]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x4a4c74]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x4a4c74]
xor eax, esi
inc edx
dec edi
jne 0x47a805
pop ebx
cmp dword [ebp + 0x10], 0
je 0x47a8ea
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4a4c74]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x47a8cf
pop edi
pop esi
not eax
pop ebp
ret

Function at 0x47a8f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x4a4c74]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x4a4c74]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x47e31b
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x4a08fd
call fcn.00486614
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x40]
mov dword [ebp - 4], 0xf
call fcn.004015f7
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xe
call fcn.004015f7
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xd
call fcn.004015f7
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xc
call fcn.004015f7
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0xb
call fcn.004015f7
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 0xa
call fcn.004015f7
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 9
call fcn.004015f7
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 8
call fcn.004015f7
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 7
call fcn.004015f7
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 6
call fcn.004015f7
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 5
call fcn.004015f7
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 4
call fcn.004015f7
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 3
call fcn.004015f7
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call fcn.004015f7
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call fcn.004015f7
and byte [ebp - 4], 0
lea ecx, [esi + 4]
call fcn.004015f7
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004015f7
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x47ecef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 8]
call fcn.0047ecde
mov edi, eax
pop ecx
test edi, edi
je 0x47ed28
and byte [ebp - 1], 0
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 1]
push eax
push edi
mov ecx, esi
call fcn.0047ed39
mov esi, dword [esi + 4]
push edi
push esi
push dword [ebp + 8]
call fcn.0047ec72
add esp, 0xc
pop esi
pop edi
leave
ret
Function at 0x482dbc
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x4a5250]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x4a5250]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
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 0x40180c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184b
cmp dword [ecx + 0x74], 0xe
jbe 0x40184b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40db60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40db8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40db8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

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 0x40add0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
push ecx
push edx
call fcn.0040add0
lodsd eax, dword [esi]
les ecx, [ebx]
ret
push ebp
mov esp, dword [edi - 0x75]
inc ebp
popal
mov ecx, dword [ebp + 0xc]
cmp eax, 0x10
xchg ebp, eax
adc bh, bh
adc eax, sym.imp.MSVCRT.dll__errno
mov dword [eax], 0x1c
movsb byte es:[edi], byte [esi]
rcr byte [ebp - 0x3d], 0x53
loope 0x40ad7c
jne 0x40adfb
jle 0x40adb4
add al, 0
add byte [eax + 0x3c46068a], cl
sub al, 0x88
inc ebp
adc byte [esi + 0x67], dh
mov al, byte [esi]
inc esi
cmp al, 0x2c
mov byte [ebp + 0x10], al
jbe 0x40ae6a
mov eax, dword [ebp + 1]
mov ebx, 0xee0064
and eax, 0xff
xchg ebp, eax
idiv ebx
add al, 0x66
mov byte [ebp + 0x10], dl
mov byte [ecx], al
inc ecx
jmp 0x40ae21
mov eax, dword [ebp + 0x10]
mov ebx, 0x6f00000a
aas
inc dword [eax]
add byte [edi - 0x67], cl
pop ebp
sti
std
xor byte [eax - 0x3d75beff], cl
mov bl, 0x30
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x2e
inc ecx
dec edi
jne 0x40adf9
mov eax, dword [ebp + 0xc]
pop edi
or eax, esi
inc ecx
inc edx
push ebp
pop ebx
pop ebp
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439008]
jne 0x401010
repz ret
jmp fcn.00401798

Function at 0x4082ab
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.00404f7f
and dword [ebp - 4], 0
cmp dword [0x43b774], 0
mov ebx, eax
jne 0x40835c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40840d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40840d
push eax
call fcn.00404f0d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43b774], eax
call esi
push eax
call fcn.00404f0d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43b778], eax
call esi
push eax
call fcn.00404f0d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43b77c], eax
call esi
push eax
call fcn.00404f0d
pop ecx
mov dword [0x43b784], eax
test eax, eax
je 0x40835c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404f0d
pop ecx
mov dword [0x43b780], eax
mov eax, dword [0x43b780]
cmp eax, ebx
je 0x4083b4
cmp dword [0x43b784], ebx
je 0x4083b4
push eax
call fcn.00404f88
push dword [0x43b784]
mov esi, eax
call fcn.00404f88
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4083b4
test edi, edi
je 0x4083b4
call esi
test eax, eax
je 0x4083ab
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4083ab
test byte [ebp - 0xc], 1
jne 0x4083b4
or dword [ebp + 0x10], 0x200000
jmp 0x4083ed
mov eax, dword [0x43b778]
cmp eax, ebx
je 0x4083ed
push eax
call fcn.00404f88
pop ecx
test eax, eax
je 0x4083ed
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4083ed
mov eax, dword [0x43b77c]
cmp eax, ebx
je 0x4083ed
push eax
call fcn.00404f88
pop ecx
test eax, eax
je 0x4083ed
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43b774]
call fcn.00404f88
pop ecx
test eax, eax
je 0x40840d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40840f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b790
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x27238b4], 0x930
jne 0x40b7ad
push str.zukatatuxaweporijoj
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x27238b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x27235d0], eax
jne 0x40b7d3
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x401388
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
push ebp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push edi
xor eax, eax
xor ebx, ebx
xor ecx, ecx
shr edi, 3
je 0x401458
mov al, byte [esi]
xor al, dl
inc esi
movzx ebx, bx
nop
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi]
mov ecx, dword [eax*4 + 0x41c0e8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 1]
mov ecx, dword [ebx*4 + 0x41c0e8]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 2]
mov ecx, dword [eax*4 + 0x41c0e8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 3]
mov ecx, dword [ebx*4 + 0x41c0e8]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 4]
mov ecx, dword [eax*4 + 0x41c0e8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 5]
mov ecx, dword [ebx*4 + 0x41c0e8]
xor al, dl
xor al, cl
xor edx, ecx
shr edx, 8
mov bl, byte [esi + 6]
mov ecx, dword [eax*4 + 0x41c0e8]
xor bl, dl
xor bl, cl
xor edx, ecx
shr edx, 8
mov al, byte [esi + 7]
mov ecx, dword [ebx*4 + 0x41c0e8]
xor al, dl
add esi, 8
dec edi
jne 0x4013b4
xor edx, ecx
dec esi
pop edi
and edi, 7
test edi, edi
je 0x401472
mov al, byte [esi]
xor al, dl
shr edx, 8
xor edx, dword [eax*4 + 0x41c0e8]
inc esi
dec edi
jne 0x401460
mov dword [0x421dc0], edx
pop esi
pop edi
pop ebp
pop ebx
mov eax, dword [0x421dc0]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4014d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push dword [0x421dd0]
push dword [esp + 8]
call fcn.00401486
pop ecx
mov dword [0x421dd0], eax
pop ecx
movzx ecx, al
mov eax, dword [0x421dd4]
push dword [0x421dd8]
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov dword [0x421dd4], eax
shr eax, 0x18
mov byte [esp + 8], al
push dword [esp + 8]
call fcn.00401486
pop ecx
mov dword [0x421dd8], eax
pop ecx
ret

Function at 0x40151a
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
je 0x40154e
push esi
mov esi, dword [esp + 8]
mov eax, dword [0x421dd8]
or al, 2
movzx eax, ax
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor byte [esi], cl
mov al, byte [esi]
push eax
call fcn.004014d0
inc esi
dec dword [esp + 0x10]
pop ecx
jne 0x401526
pop esi
ret
Function at 0x405e40
Capabilities:
Accept command line arguments
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor esi, esi
mov edi, eax
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 8]
mov dword [0x4222a0], 0x64
mov dword [0x422304], esi
push 0x422310
push 0x4222a0
call fcn.00408c4d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x422308], eax
mov ax, word [0x41d2d4]
push 1
mov word [ebp - 2], ax
pop ebx
lea eax, [ebp - 2]
push eax
push edi
call fcn.00405e08
mov edi, eax
pop ecx
cmp edi, esi
pop ecx
je 0x405eca
push 3
push 0x41e0f0
push edi
call fcn.0040fc70
add esp, 0xc
test eax, eax
jne 0x405e94
push edi
call fcn.0040b5c4
pop ecx
push eax
call fcn.0040bbcd
pop ecx
jmp 0x405e94
lea eax, [ebp - 8]
push eax
push 0x20006
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405ef7
push str.You_do_not_have_the_appropriate_access_priviliges__e.g._Administrator__to_install_PKZIP_for_Windows._Installation_will_be_aborted.
call fcn.0040bbcd
pop ecx
xor ebx, ebx
jmp 0x405f00
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x405f4d
mov edi, dword [ebp + 8]
push edi
mov dword [0x42230c], edi
call fcn.00405f5c
test eax, eax
pop ecx
je 0x405f53
push dword [ebp + 0x14]
push edi
call fcn.00405fd6
pop ecx
test eax, eax
pop ecx
je 0x405f53
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea eax, [ebp - 0x24]
push esi
push eax
call edi
test eax, eax
je 0x405f4d
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x24]
push esi
push eax
jmp 0x405f34
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406636
Capabilities:
Get common file path
Get graphical window text
Hide graphical window
Set current directory

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebp
neg edi
lea esi, [ebp + 4]
sbb edi, edi
and edi, esi
mov eax, dword [edi]
mov dword [0x422264], eax
mov eax, dword [0x422d78]
test eax, eax
je 0x406665
mov ecx, dword [edi]
mov dword [eax + 0x150], ecx
push dword [edi]
call fcn.0040bc5a
pop ecx
push dword [edi]
call fcn.00406b73
pop ecx
mov dword [ebp + 0x164], eax
call fcn.0040b4aa
test eax, eax
je 0x40668b
call fcn.0040b4aa
jmp 0x4066ae
lea eax, [esp + 0x2c]
push 0x200
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [0x4224bc]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
pop ebx
push ebx
push dword [edi]
call fcn.004069fd
xor eax, eax
pop ecx
cmp dword [ebp + 0x164], eax
pop ecx
setne al
push eax
push dword [edi]
call fcn.004068b3
pop ecx
pop ecx
push ebx
push dword [edi]
call fcn.0040683b
xor eax, eax
pop ecx
cmp dword [ebp + 0x164], eax
pop ecx
je 0x406703
mov ecx, dword [0x4224bc]
mov dword [esp + 0x10], ebx
mov ecx, dword [ecx + 0x650]
cmp word [ecx + 0x14], ax
jne 0x406707
mov dword [esp + 0x10], eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push dword [esi]
call ebx
push dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.0040b078
push eax
call fcn.0040be82
pop ecx
push eax
push 0x3f2
push dword [esi]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push dword [edi]
call fcn.0040b6ea
pop ecx
push 1
pop edi
cmp dword [ebp + 0x164], edi
je 0x40677d
call fcn.00409f58
test eax, eax
je 0x406768
push 0x3f5
push dword [esi]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x40677b
lea eax, [esp + 0x14]
push eax
push 0
call fcn.0040a006
pop ecx
cmp eax, 0xffffffff
pop ecx
jne 0x40677d
xor edi, edi
push 1
push dword [esi]
call ebx
push edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, 0xc9
push edi
push dword [esi]
call ebx
push eax
lea ecx, [ebp + 0x14]
call fcn.00407cae
push edi
push dword [esi]
call ebx
mov ecx, dword [ebp + 0x164]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [0x422380], 0
mov esi, 0x423198
mov ecx, esi
call fcn.0040a056
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x422380
test eax, eax
je 0x406809
mov ecx, esi
call fcn.0040a056
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [0x422381], 0x3a
je 0x406809
lea eax, [esp + 0x2c]
push eax
push 0x105
call ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [0x422380], 0
jne 0x40681a
push edi
push 0x104
call ebx
cmp dword [ebp + 0x164], 1
jne 0x40682b
push edi
mov ecx, ebp
call fcn.00406ee8
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret 0x10
Function at 0x40683b
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
neg esi
mov ebp, dword [esp + 0x10]
push edi
sbb esi, esi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and esi, 0xfffffffb
add esi, 5
push esi
push 0x3f8
push ebp
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push esi
push 0x3f4
push ebp
call edi
push eax
call ebx
push esi
push 0x407
push ebp
call edi
push eax
call ebx
mov eax, dword [esp + 0x18]
mov esi, 0x3f0
neg eax
sbb eax, eax
and eax, 5
push eax
push esi
push ebp
call edi
push eax
call ebx
cmp dword [esp + 0x18], 0
je 0x4068ae
call fcn.0040b4b4
push eax
push esi
push ebp
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406c49
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov eax, dword [0x41e100]
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
neg esi
sbb esi, esi
mov edi, 0x41e100
and esi, 5
test eax, eax
je 0x406c87
push esi
push eax
push dword [esp + 0x1c]
call ebp
push eax
call ebx
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x406c72
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
neg eax
sbb eax, eax
and al, 0xfb
add eax, 5
push eax
push 0x3ec
push esi
call ebp
push eax
call ebx
push dword [esp + 0x18]
push esi
call fcn.004068b3
xor eax, eax
pop ecx
cmp dword [esp + 0x1c], eax
pop ecx
push 0x100
push 0
setne al
add eax, 0x244
push eax
call fcn.0040acec
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x406cdb
call fcn.0040bbe5
jmp 0x406ce8
push edi
push 0x408
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
call fcn.0040ecb0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406f24
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 4]
mov edi, ecx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
cmp eax, 0x400
jb 0x406f5d
shr eax, 0xa
imul eax, dword [ebp - 4]
jmp 0x406f64
imul eax, dword [ebp - 4]
shr eax, 0xa
push eax
call fcn.0040be82
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop ecx
push eax
push 0x3f3
push dword [edi + 4]
call esi
push dword [ebp + 8]
push 0x3ef
push dword [edi + 4]
call esi
pop edi
pop esi
leave
ret 4
Function at 0x407cae
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
mov esi, ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, ebx
jl 0x407cfe
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
cmp eax, ebx
jl 0x407cf1
push dword [ebp + 8]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00408e26
test eax, eax
jne 0x407d12
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x407cfe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x407d0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x407da0
push ebx
push 0x50800037
push ebx
mov ecx, edi
call fcn.00408cbb
push 0x4011
lea eax, [ebp - 0x168]
push 0x160
push eax
push ebx
push 0x421df4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
cmp eax, ebx
je 0x407d55
mov ecx, dword [edi]
cmp ecx, ebx
je 0x407d55
push eax
push ebx
push 0x1109
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 4]
lea eax, [esi + 4]
push eax
call fcn.00408c24
push dword [ebp - 8]
lea eax, [esi + 8]
push eax
call fcn.00408c24
push ebx
push 0x65
push 0x111
mov dword [esi + 0x130], ebx
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x407d90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x407d9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407dfb
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
mov ebx, ecx
xor esi, esi
xor eax, eax
push edi
cmp dword [ebx + 4], esi
sete al
test al, al
jne 0x407e2c
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push dword [ebx + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, esi
jge 0x407e33
xor eax, eax
jmp 0x407ec9
push 0x4209
lea eax, [ebp - 0x1bc]
push 0x160
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x28
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040f730
add esp, 0xc
cmp dword [ebp - 4], 0
lea eax, [ebp - 0x1b0]
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1b8]
push 0xa
lea esi, [ebp - 0x2c]
pop ecx
lea edi, [ebp - 0x54]
mov dword [ebp - 0x2c], 0x67
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x58], 0xffff0001
mov dword [ebp - 0x5c], 0xffff0000
je 0x407eb5
mov eax, dword [ebx + 4]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0x5c]
push eax
push 0
push 0x1100
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
leave
ret