joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028e8
Capabilities:
Get file version info

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x3c
push ebx
mov dword [ebp - 8], edx
mov edx, ecx
push esi
sub esi, esi
mov dword [ebp - 0xc], edx
push esi
pop ebx
push edi
mov edi, esi
mov dword [ebp - 0x10], ebx
cmp dword [edx + 0x7c], esi
jle 0x402a62
push esi
pop eax
mov dword [ebp - 4], esi
mov ecx, dword [edx + 0x80]
add eax, edx
add edx, 0x84
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + ecx + 0xbc]
mov ecx, dword [ebp - 8]
add eax, edx
push eax
call fcn.00402773
test eax, eax
je 0x402a65
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402a2c
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
or edi, edi
je 0x402a65
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
or eax, eax
je 0x402a65
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
or eax, eax
je 0x402a20
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x401244
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x402a20
cmp dword [ebp - 0x24], 0
je 0x402a20
mov eax, dword [ebp - 0x28]
mov ebx, esi
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x94
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov esi, eax
push dword [esi - 0xc]
push dword [esi - 0x10]
call fcn.00402a89
push dword [esi]
mov dword [ebp + ebx - 0x34], eax
push dword [esi - 4]
call fcn.00402a89
mov dword [ebp + ebx - 0x3c], eax
lea esi, [esi + 0x18]
add ebx, 4
cmp ebx, 8
jl 0x4029df
mov ebx, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebp - 0x34], esi
jl 0x402a16
cmp dword [ebp - 0x3c], esi
jle 0x402a20
cmp dword [ebp - 0x30], esi
jl 0x402a80
cmp dword [ebp - 0x38], esi
jg 0x402a80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0xc]
jmp 0x402a4c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
cmp dword [eax + ecx + 0x84], esi
jne 0x402a65
cmp dword [eax + ecx + 0x88], esi
jne 0x402a65
mov eax, dword [ebp - 4]
inc ebx
add eax, 0x3c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
cmp ebx, dword [edx + 0x7c]
jl 0x402912
sub esi, esi
inc esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], ebx
or edi, edi
je 0x402a75
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
push esi
pop eax
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x402a65
Function at 0x402f1d
Capabilities:
Get common file path
Packed with generic packer
Set current directory

Disassembly:
pushal
popal
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408a38], 0
push ebx
push esi
push edi
jne 0x402f6c
cmp dword [0x408a24], 0
jne 0x402f5f
call 0x4051e5
test eax, eax
je 0x403041
cmp word [0x408a38], 0
jne 0x402f6c
call 0x403a3f
test eax, eax
je 0x403041
call fcn.00405164
test eax, eax
je 0x403041
call fcn.004055a0
test eax, eax
je 0x403041
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401144
push esi
pop edx
lea ecx, [ebp - 0x10c]
call fcn.0040658a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop ebx
sub edi, edi
or ebx, ebx
je 0x402ff7
push 0x4012a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x110], eax
or eax, eax
je 0x402ff7
mov esi, esp
mov ecx, eax
push edi
push 0x4091e4
call dword [0x40a288]
call dword [ebp - 0x110]
cmp esi, esp
je 0x402ff7
mov ecx, 4
int 0x29
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408a24], edi
jne 0x403017
cmp dword [0x409a30], edi
jne 0x403017
call 0x40621e
or eax, eax
je 0x403041
push 0x4091e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403054
push edi
push 0x10
push edi
push edi
mov edx, 0x4bc
xor ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
cmp dword [0x408a2c], edi
jne 0x403065
call fcn.00403b26
or eax, eax
je 0x403041
test byte [0x408d48], 0xc0
jne 0x40307c
mov cx, word [0x409a40]
call fcn.0040256d
push eax
pop edi
mov eax, dword [0x408a24]
mov dword [0x409a44], edi
or eax, eax
jne 0x4030a1
cmp dword [0x409a30], eax
jne 0x4030a1
call fcn.00403ba2
test eax, eax
je 0x403041
mov eax, dword [0x408a24]
cmp word [0x408a38], 0
jne 0x4030b4
test eax, eax
jne 0x4030b4
call fcn.00404169
xor eax, eax
inc eax
jmp 0x403043
Function at 0x403fef
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x21c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push ecx
pop ebx
inc esi
xor eax, eax
push edi
test ebx, ebx
je 0x40410a
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push edx
sub edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4040c4
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x408a28], edi
jne 0x404091
mov eax, dword [0x409a2c]
test al, 1
je 0x404091
test al, 2
jne 0x404091
push ecx
pop eax
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x404091
mov dword [0x409a2c], ecx
call fcn.0040411b
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x409a34], 0x400
je 0x404108
cmp dword [ebp - 0x20c], edi
jge 0x404108
jmp 0x404106
call fcn.00406285
push edi
mov dword [0x409124], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x208]
mov edx, 0x4c4
push eax
push ebx
sub ecx, ecx
call fcn.004044b9
push edi
pop esi
push esi
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret
Function at 0x404224
Capabilities:
Get common file path
Packed with generic packer

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x30
push ebx
push esi
push edi
push str.SHELL32.DLL
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
pop edi
test edi, edi
je 0x4043b2
push str.SHBrowseForFolder
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
or eax, eax
je 0x4043a4
push 0xc3
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4043a4
push str.SHGetPathFromIDList
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4043a4
xor ebx, ebx
cmp byte [0x4088c0], bl
jne 0x4042e6
push 0x4088c0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x4088c0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4042ad
sub ecx, edx
lea eax, [ecx + 0x4088c0]
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 4], eax
cmp byte [eax], 0x5c
jne 0x4042e6
push eax
push 0x4088c0
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x3a
je 0x4042e6
mov eax, dword [ebp - 4]
mov byte [eax], bl
lea eax, [ebp - 0x30]
mov byte [0x4087a0], bl
mov dword [ebp - 0x30], esi
push esp
pop esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x24], 0x408598
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0x404200
mov dword [ebp - 0x18], 0x4088c0
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x40432f
push edx
pop edx
push 4
pop ecx
int 0x29
mov dword [ebp - 8], eax
or eax, eax
je 0x404390
mov ebx, dword [ebp - 0xc]
push esp
pop esi
push 0x4088c0
push eax
push ebx
pop ecx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404356
mov ecx, 4
int 0x29
cmp byte [0x4088c0], 0
je 0x404373
push 0x4088c0
mov edx, 0x104
mov ecx, 0x4087a0
call fcn.00401680
mov ebx, dword [ebp - 0x10]
mov esi, esp
push dword [ebp - 8]
push ebx
pop ecx
call dword [0x40a288]
call ebx
cmp esi, esp
je 0x404390
pushal
popal
push 4
pop ecx
int 0x29
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [0x4087a0], al
setne al
jmp 0x4043c7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0x4c1
jmp 0x4043b7
mov edx, 0x4c2
sub ebx, ebx
mov ecx, esi
push ebx
push 0x10
push ebx
push ebx
call fcn.004044b9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40476d
Capabilities:
Set file attributes

Disassembly:
pushal
popal
push esi
mov esi, ecx
call fcn.004066ae
test eax, eax
jne 0x40477e
inc eax
pop esi
ret
cmp dword [0x4091dc], 0
push edi
jne 0x4047cc
test byte [0x408a38], 1
jne 0x4047cc
push 6
sub edi, edi
mov dword [0x409404], esi
push edi
push 0x403450
push dword [0x408584]
mov edx, 0x7d3
call fcn.00406517
sub eax, 6
je 0x4047cc
sub eax, 1
je 0x4047db
sub eax, 0x832
jne 0x4047cc
mov dword [0x4091dc], 1
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
sub edi, edi
inc edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x40490c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
push ecx
pop edi
mov cl, byte [edi]
test cl, cl
je 0x404973
mov al, byte [edi + 1]
push ebx
sub ebx, ebx
push esi
lea esi, [edi + 2]
cmp al, 0x3a
jne 0x40492f
cmp byte [esi], 0x5c
jne 0x40492f
lea esi, [edi + 3]
jmp 0x40496b
cmp cl, 0x5c
jne 0x40493d
cmp al, cl
jne 0x40493d
push 2
pop ebx
jmp 0x40496b
lea esi, [edi + 1]
jmp 0x40496d
cmp al, 0x5c
jne 0x404962
cmp byte [esi - 1], 0x3a
je 0x404962
test ebx, ebx
je 0x404953
dec ebx
jmp 0x404962
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
push eax
pop esi
mov al, byte [esi]
test al, al
jne 0x404942
pop esi
pop ebx
pop edi
ret

Function at 0x404fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
pop esi
push ebx
push esi
xor ebx, ebx
mov esi, 0x40134c
push ebx
sub edx, edx
push esi
pop ecx
call fcn.0040468f
push 0xa
push esi
push ebx
mov dword [0x409144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x409140], eax
test eax, eax
je 0x405161
mov eax, dword [0x408584]
or eax, eax
je 0x405057
push ebx
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x841
push dword [0x408584]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00404efd
or eax, eax
jne 0x40507c
mov ecx, dword [0x408584]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.004044b9
push ebx
pop esi
jmp 0x405107
push edi
push 0x409148
push 1
push 0x404bc0
push fcn.00404b60
push 0x404ad0
push 0x404a50
push fcn.00404980
push 0x404cc0
push 0x404ca0
call dword [sym.imp.Cabinet.dll_FDICreate]
push eax
pop edi
add esp, 0x24
or edi, edi
je 0x4050e8
push 0x409140
push ebx
push 0x404cd0
push ebx
push 0x401140
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
push eax
pop esi
add esp, 0x1c
test esi, esi
je 0x405106
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
or eax, eax
jne 0x405106
mov edx, dword [0x409148]
mov ecx, dword [0x408584]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.004044b9
mov esi, ebx
pop edi
mov eax, dword [0x409140]
test eax, eax
je 0x40511d
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409140], ebx
test esi, esi
jne 0x40513a
cmp dword [0x4091d8], ebx
jne 0x40513a
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
sub ecx, ecx
call fcn.004044b9
test byte [0x408a38], 1
jne 0x40515f
test byte [0x409a34], 1
jne 0x40515f
push ebx
push esi
push 0xfa1
push dword [0x408584]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
pop eax
pop esi
pop ebx
ret
Function at 0x4052b6
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
test esi, esi
je 0x405317
push edi
cmp dword [0x408a24], 0
mov edi, esi
jne 0x405300
cmp dword [0x409a30], 0
jne 0x405300
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
or esi, esi
jne 0x4052d7
pop edi
mov eax, dword [0x408a20]
pop esi
or eax, eax
je 0x405379
cmp dword [0x408a24], 0
jne 0x405379
cmp dword [0x409a30], 0
jne 0x405379
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
test byte [0x409a34], 0x20
je 0x40535e
lea ecx, [ebp - 0x108]
call fcn.004065e8
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.00402390
mov eax, dword [0x408a20]
cmp word [0x409a40], 1
je 0x40538c
test eax, eax
je 0x40538c
call fcn.00401fe1
mov ecx, dword [ebp - 4]
and dword [0x408a20], 0
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x4053a1
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push edx
pop esi
push ecx
pop ebx
xor edi, edi
push edi
push 0x401378
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040171e
add esp, 0x10
mov edx, 0x104
mov ecx, esi
inc edi
push ebx
call fcn.00401680
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
push esi
pop ecx
call fcn.0040658a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40544f
cmp edi, 0x190
jl 0x4053bf
push esi
xor edi, edi
push edi
push 0x401384
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
or eax, eax
je 0x40543a
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or eax, eax
je 0x405415
xor edi, edi
inc edi
mov dword [0x408a20], edi
jmp 0x40543a
Function at 0x406298
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
pop ecx
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013d4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.0040171e
jmp 0x40633b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
or edi, edi
je 0x40635f
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4062e8
sub ecx, esi
push esp
pop esi
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a288]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x406316
nop
push 4
nop
pop ecx
int 0x29
push edi
or eax, eax
je 0x406355
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013d4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.0040171e
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4062cb
jmp 0x40636b
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40636b
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
mov edi, 0x4011d8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406501
test al, 0x10
jne 0x406501
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406508
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
pop esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4066bf
sub eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40681f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push edi
pop edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x406940
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
or eax, eax
je 0x40693a
sub edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x40693a
cmp dword [ebp - 0xa0], 4
jne 0x40693a
cmp dword [ebp - 0x9c], 0xa
jae 0x40693a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40693a
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x40693a
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401140
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40693a
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.004066f9
or eax, eax
je 0x40693a
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x406932
cmp eax, 0xd
jne 0x40693a
mov dword [0x4081d8], edi
jmp 0x406940
mov edi, dword [0x4081d8]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
push ebp
pop esp
pop ebp
ret

Function at 0x406952
Capabilities:
Get disk size

Disassembly:
push ebx
pop ebx
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4069a1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4069a1
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
push esi
pop eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Terminate process

Disassembly:
call fcn.00407155
jmp 0x406a6a
push 0x58
push 0x4072b8
call fcn.00407208
sub ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
push ebx
pop edi
mov edx, 0x4088ac
push esi
pop ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406abc
cmp eax, esi
jne 0x406aaf
xor esi, esi
inc esi
mov edi, esi
jmp 0x406abf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406a93
xor esi, esi
inc esi
cmp dword [0x4088b0], esi
jne 0x406ad1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406b0b
cmp dword [0x4088b0], ebx
jne 0x406b05
mov dword [0x4088b0], esi
push 0x4010c4
push 0x4010b8
call fcn.00406c3f
pop ecx
pop ecx
or eax, eax
je 0x406b0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406c39
mov dword [0x4081e4], esi
cmp dword [0x4088b0], esi
jne 0x406b2e
push 0x4010b4
push 0x4010ac
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test edi, edi
jne 0x406b3b
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406b67
push 0x4088b4
call fcn.00407060
pop ecx
or eax, eax
je 0x406b67
push ebx
push 2
push ebx
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a288]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406bc5
test cl, cl
je 0x406b94
or edi, edi
jne 0x406bc5
test cl, cl
je 0x406b94
cmp cl, 0x20
ja 0x406b94
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x406b83
test byte [ebp - 0x3c], 1
je 0x406ba0
movzx eax, word [ebp - 0x38]
jmp 0x406ba3
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406c1e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406bd6
xor eax, eax
or edi, edi
sete al
push eax
pop edi
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406be9
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x406b74
cmp dword [0x4081e4], 0
jne 0x406c32
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040724d
ret

Function at 0x406c70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x406cd3
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
jne 0x406cd3
movzx eax, word [ecx + 0x400018]
mov edx, 0x10b
cmp ax, dx
je 0x406cc0
mov edx, 0x20b
cmp ax, dx
jne 0x406cd3
cmp dword [ecx + 0x400084], 0xe
jbe 0x406cd3
sub eax, eax
cmp dword [ecx + 0x4000f8], eax
setne al
ret
cmp dword [ecx + 0x400074], 0xe
jbe 0x406cd3
sub eax, eax
cmp dword [ecx + 0x4000e8], eax
jmp 0x406cbc
xor eax, eax
ret