joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf12000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0xf916ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0xf12026
xor al, al
jmp 0xf1223c
lea ecx, [ebp - 0x218]
call fcn.00d750e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.00f09310
movzx ecx, al
test ecx, ecx
je 0xf120a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.00d76550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00edd370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.00d7fd10
lea ecx, [ebp - 0x3c]
call fcn.00d74e90
lea ecx, [ebp - 0x20]
call fcn.00e30ca0
lea ecx, [ebp - 0x218]
call fcn.00d74c40
mov dword [ebp - 0x1fc], eax
jmp 0xf12108
push 0xf3ec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.00f08e60
mov ecx, eax
call fcn.00d7b350
push eax
call fcn.00d7e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.00e30ca0
lea ecx, [ebp - 0x58]
call fcn.00e30ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0xf12108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.00d74e90
mov al, byte [ebp - 0x232]
jmp 0xf1223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0xf12131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0xf1219b
xor edx, edx
je 0xf1217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.00ee4170
mov ecx, eax
call fcn.00edf550
push eax
call fcn.00d716a0
add esp, 8
push eax
call fcn.00d716a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.00ee4580
jmp 0xf12131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.00d74e90
mov al, byte [ebp - 0x233]
jmp 0xf1223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0xf121da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.00d74e90
mov al, byte [ebp - 0x234]
jmp 0xf1223c
xor edx, edx
je 0xf12217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.00ee4170
mov ecx, eax
call fcn.00edf550
push eax
call fcn.00d716a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.00ee4580
jmp 0xf121da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.00d74e90
mov al, byte [ebp - 0x235]
jmp 0xf1223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00eb8a41
mov esp, ebp
pop ebp
ret 8
Function at 0xf12250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0xf916ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], ecx
lea ecx, [ebp - 0x140]
call fcn.00f089b0
mov dword [ebp - 0x148], 0
push 0
lea ecx, [ebp - 0x144]
call fcn.00efb8e0
lea ecx, [ebp - 0x144]
call fcn.00edda50
push eax
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jne 0xf12328
xor ecx, ecx
je 0xf122fb
push str.::GetCurrentDirectory___failed
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x1c0
push str.P:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partylibjingle_files_talk_basewin32filesystem.cc
lea ecx, [ebp - 0xc8]
call fcn.00ee4170
mov ecx, eax
call fcn.00edf550
push eax
call fcn.00d716a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.00ee4580
jmp 0xf122b3
lea edx, [ebp - 0x140]
push edx
mov ecx, dword [ebp + 8]
call fcn.00f12400
lea ecx, [ebp - 0x144]
call fcn.00f124d0
lea ecx, [ebp - 0x140]
call fcn.00eff370
mov eax, dword [ebp + 8]
jmp 0xf123e2
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x148]
jg 0xf12338
jmp 0xf12388
xor ecx, ecx
mov eax, dword [ebp - 0x14c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00eb7a7c
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.00edda10
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x148], ecx
mov edx, 1
test edx, edx
jne 0xf1228b
lea ecx, [ebp - 0x144]
call fcn.00edda50
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00f0a380
add esp, 8
push eax
lea ecx, [ebp - 0x140]
call fcn.00f08f80
lea ecx, [ebp - 0xe4]
call fcn.00e30ca0
lea ecx, [ebp - 0x140]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00f12400
lea ecx, [ebp - 0x144]
call fcn.00f124d0
lea ecx, [ebp - 0x140]
call fcn.00eff370
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00eb8a41
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0xf13a6c
call fcn.00ebaeef
mov dword [eax], esi
call fcn.00ebaedc
push 0x16
pop esi
mov dword [eax], esi
call fcn.00eb8cab
mov eax, esi
jmp 0xf13ac1
test dword [ebp + 0xc], 0xfffffff9
jne 0xf13a52
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xf13a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00ebaf02
pop ecx
call fcn.00ebaedc
mov eax, dword [eax]
jmp 0xf13ac1
test al, 0x10
jne 0xf13abf
test al, 1
je 0xf13abf
test byte [ebp + 0xc], 2
je 0xf13abf
call fcn.00ebaeef
mov dword [eax], 5
call fcn.00ebaedc
mov dword [eax], 0xd
jmp 0xf13a90
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4cbef0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x89000]
push edi
jmp 0x4cbf0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4cbf11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cbf00
mov eax, 1
add ebx, ebx
jne 0x4cbf23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4cbf34
jne 0x4cbf53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cbf53
dec eax
add ebx, ebx
jne 0x4cbf40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4cbf18
add ebx, ebx
jne 0x4cbf4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cbfa5
xor ecx, ecx
sub eax, 3
jb 0x4cbf6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cbfda
sar eax, 1
mov ebp, eax
jmp 0x4cbf76
add ebx, ebx
jne 0x4cbf76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cbf44
inc ecx
add ebx, ebx
jne 0x4cbf84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cbf44
add ebx, ebx
jne 0x4cbf91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cbf86
jne 0x4cbfa2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cbf86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cbfc4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cbfb6
jmp 0x4cbf06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cbfc4
add edi, ecx
jmp 0x4cbf06
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cbfe2
cmp byte [edi], 0x11
jne 0x4cbfe2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4cbfe7
lea edi, [esi + 0xc7000]
mov eax, dword [edi]
or eax, eax
je 0x4cc05f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe70a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe7214]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cc014
mov ecx, edi
jns 0x4cc043
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe721c]
or eax, eax
je 0x4cc059
mov dword [ebx], eax
add ebx, 4
jmp 0x4cc031
call dword [esi + 0xe7218]
mov ebp, dword [esi + 0xe7220]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4cc093
sub esp, 0xffffff80
jmp 0x416310
Function at 0x402e00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x402e32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00402c60
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004035b0
pop ecx
mov esi, eax
test esi, esi
je 0x402e87
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00402c60
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x40c504], eax
mov dword [0x40c508], esi
jmp 0x402e8f
push 1
call fcn.004028d0
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402ea0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edx, eax
mov dword [ebp - 4], edx
test eax, eax
jne 0x402ec0
mov eax, dword [0x40c5d8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ebx, eax
xor ecx, ecx
jmp 0x402ee1
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402ece
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x402edf
add ecx, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402ec9
inc ecx
push ecx
call fcn.004035b0
pop ecx
mov edi, eax
mov dword [0x40c510], eax
cmp dword [0x40c510], 0
je 0x402f4e
mov eax, dword [ebp - 4]
mov ebx, eax
jmp 0x402f2f
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402f0a
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x402f2d
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x402f20
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x402f05
mov byte [edi], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40c5d8]
je 0x402f56
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x402f56
push 1
call fcn.004028d0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a30
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, ebx
cmp eax, dword [0x40d124]
jae 0x407a5f
mov edx, eax
and edx, 0x1f
shr eax, 5
mov eax, dword [eax*4 + 0x40d128]
test byte [eax + edx*8 + 4], 1
jne 0x407a71
mov dword [0x40c760], 9
or eax, 0xffffffff
jmp 0x407b89
push 1
push 0
push ebx
call fcn.004078e0
add esp, 0xc
mov edx, eax
mov dword [ebp - 4], edx
cmp eax, 0xffffffff
je 0x407b86
push 2
push 0
push ebx
call fcn.004078e0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
je 0x407b86
neg edi
add edi, esi
jg 0x407ad0
test edi, edi
jge 0x407b5b
push 0
push esi
push ebx
call fcn.004078e0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x407b49
or dword [ebp - 8], 0xffffffff
jmp 0x407b72
push 0x1000
push 1
call fcn.00408b70
add esp, 8
mov edx, eax
mov dword [ebp - 0xc], edx
test eax, eax
je 0x407ac7
push 0x8000
push ebx
call fcn.00408bb0
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, 0x1000
cmp eax, edi
jle 0x407b04
mov eax, edi
push eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00404740
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x407b2c
mov eax, edi
sub eax, esi
mov edi, eax
test eax, eax
jg 0x407af9
mov dword [ebp - 8], 0
jmp 0x407b30
or dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.00408bb0
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402380
pop ecx
jmp 0x407b72
push ebx
call fcn.00404b90
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x407b64
mov dword [ebp - 8], 0
jmp 0x407b72
mov dword [0x40c760], 0xd
or dword [ebp - 8], 0xffffffff
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004078e0
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x407b89
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a218
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1b4], ecx
lea ecx, [ebp - 0x1a0]
push ecx
xor ebx, ebx
push eax
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x1b0], ebx
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
test eax, eax
je 0x40a270
xor eax, eax
jmp 0x40a3cd
push esi
mov esi, 0xc8
push esi
lea eax, [ebp - 0x194]
push eax
push ebx
push dword [ebp - 0x1a0]
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x19c], esi
call dword [sym.imp.ical_size__lu_MB_RegEnumKeyA]
test eax, eax
jne 0x40a3a0
push edi
mov edi, dword [sym.imp.ical_size__lu_MB_RegEnumValueA]
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x1b8]
push 0x4696e0
call fcn.0042f614
add esp, 0xc
push eax
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
test eax, eax
jne 0x40a39f
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x1b4]
lea eax, [ebp - 0x1ac]
push ebx
push ebx
push eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0x1a8], ebx
push ebx
jmp 0x40a353
lea eax, [ebp - 0xcc]
push str.Service
push eax
call fcn.00450597
pop ecx
pop ecx
test eax, eax
je 0x40a367
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 0x1b4]
lea eax, [ebp - 0x1ac]
push ebx
push ebx
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x1a8]
push dword [ebp - 0x198]
mov dword [ebp - 0x1ac], esi
call edi
test eax, eax
je 0x40a30a
jmp 0x40a371
mov dword [ebp - 0x1b0], 1
inc dword [ebp - 0x1a4]
push esi
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x1a4]
mov dword [ebp - 0x19c], esi
push dword [ebp - 0x1a0]
call dword [sym.imp.ical_size__lu_MB_RegEnumKeyA]
test eax, eax
je 0x40a2a6
pop edi
mov esi, dword [sym.imp.ical_size__lu_MB_RegCloseKey]
cmp dword [ebp - 0x1a0], ebx
je 0x40a3b6
push dword [ebp - 0x1a0]
call esi
cmp dword [ebp - 0x198], ebx
je 0x40a3c6
push dword [ebp - 0x198]
call esi
mov eax, dword [ebp - 0x1b0]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0xc
Function at 0x40a3dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x2c8]
push eax
push str.SYSTEMCurrentControlSetEnumPCI
xor edi, edi
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
mov dword [ebp - 0x2c4], edi
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
test eax, eax
je 0x40a41e
xor eax, eax
jmp 0x40a50d
push ebx
mov ebx, 0x1f4
push ebx
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x2cc], edi
push edi
mov edi, dword [sym.imp.ical_size__lu_MB_RegEnumKeyA]
jmp 0x40a4ea
push 4
lea eax, [ebp - 0x2c0]
push eax
push str.VEN_
call fcn.00450c23
add esp, 0xc
test eax, eax
jne 0x40a4d6
mov eax, dword [ebp - 0x2c4]
cmp eax, dword [ebp + 0xc]
je 0x40a4fa
lea eax, [ebp - 0x2c0]
push eax
call fcn.004503c5
cmp dword [ebp + 0x10], 1
pop ecx
mov ecx, dword [ebp - 0x2c4]
mov dword [esi + ecx*8], eax
jne 0x40a4d0
push 0xc8
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2c0]
push eax
push str.SYSTEMCurrentControlSetEnumPCI
push 0x4696e0
mov byte [ebp - 0xcc], 0
call fcn.0042f614
add esp, 0xc
push eax
call fcn.0040a218
test eax, eax
je 0x40a4d0
lea eax, [ebp - 0xcc]
push eax
call fcn.004503c5
pop ecx
mov ecx, dword [ebp - 0x2c4]
mov dword [esi + ecx*8 + 4], eax
inc dword [ebp - 0x2c4]
inc dword [ebp - 0x2cc]
push ebx
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2cc]
push dword [ebp - 0x2c8]
call edi
test eax, eax
je 0x40a43e
push dword [ebp - 0x2c8]
call dword [sym.imp.ical_size__lu_MB_RegCloseKey]
mov eax, dword [ebp - 0x2c4]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00450b32
leave
ret 0xc
Function at 0x40a5ad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x48], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
push str.pci_s
push eax
mov dword [ebp - 0x54], 1
call fcn.00450c76
lea eax, [ebp - 0x44]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a5f6
sub eax, ecx
cmp eax, 0x14
jae 0x40a60c
xor eax, eax
inc eax
jmp 0x40a72a
lea eax, [ebp - 0x4c]
push eax
push esi
push str._sControlCriticalDeviceDatabase
call fcn.0042f614
pop ecx
pop ecx
push eax
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegOpenKeyA]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push str._sControlCriticalDeviceDatabase_s
call fcn.0042f614
add esp, 0xc
push eax
push reloc.lu_heads___lu_sectors___lu_byte_Ordinal_2
call dword [sym.imp.ical_size__lu_MB_RegCreateKeyA]
test eax, eax
je 0x40a684
push edi
push esi
push str._sControlCriticalDeviceDatabase_s
call fcn.0042f614
add esp, 0xc
push eax
push str.Creating_new__s_key_failed
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x123
push str.ADDDRIVER
call fcn.0044dc85
add esp, 0x14
xor edi, edi
jmp 0x40a70d
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a689
sub eax, esi
mov esi, dword [sym.imp.ical_size__lu_MB_RegSetValueExA]
inc eax
push eax
push ebx
push 1
xor edi, edi
push edi
push str.ClassGUID
push dword [ebp - 0x48]
call esi
test eax, eax
je 0x40a6c2
push ebx
push str.Adding_String_Value_for__ClassGUID__s_failed_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x12a
jmp 0x40a6fb
mov eax, dword [ebp - 0x50]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a6c8
sub eax, ecx
inc eax
push eax
push dword [ebp - 0x50]
push 1
push edi
push str.Service
push dword [ebp - 0x48]
call esi
test eax, eax
je 0x40a70a
push dword [ebp - 0x50]
push str.Adding_String_Value__Service__s_failed_n
call dword [sym.imp.___total_physical_size__lu_MB_GetLastError]
push eax
push 0x130
push str.ADDDRIVER
call fcn.0044dc85
add esp, 0x14
jmp 0x40a70d
mov dword [ebp - 0x54], edi
mov esi, dword [sym.imp.ical_size__lu_MB_RegCloseKey]
cmp dword [ebp - 0x4c], edi
je 0x40a71d
push dword [ebp - 0x4c]
call esi
cmp dword [ebp - 0x48], edi
je 0x40a727
push dword [ebp - 0x48]
call esi
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 0x10
Function at 0x40acbb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
pop ecx
xor edx, edx
xor esi, esi
xor eax, eax
inc esi
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
push 0x104
push esi
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x120], str.Please_select_your_Windows_Directory_in_the_restored_disk
call fcn.00450903
pop ecx
pop ecx
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x128]
push eax
push 0x11
push 0
call dword [sym.imp._byte_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp._byte_SHBrowseForFolderA]
test eax, eax
je 0x40ad71
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp._byte_SHGetPathFromIDListA]
test eax, eax
je 0x40ad71
lea eax, [ebp - 0x108]
push eax
push 0x469a48
push dword [ebp + 0xc]
push ebx
call fcn.00450d91
add esp, 0x10
test eax, eax
jle 0x40ad71
mov dword [ebp - 0x10c], esi
push dword [ebp - 0x124]
call fcn.0045038b
mov eax, dword [ebp - 0x10c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450b32
leave
ret 8
Function at 0x40b4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x13c]
push eax
push 0x10
push esi
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x144], edi
call fcn.0040be05
lea eax, [ebp - 0x13c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.0040b4b9
cmp dword [ebp + 0x10], 0x10
jae 0x40b55e
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jbe 0x40b637
lea eax, [ebp - 0x34]
mov esi, ebx
sub esi, eax
sub edi, eax
lea eax, [ebp + ecx - 0x34]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
cmp ecx, dword [ebp + 0x10]
jb 0x40b547
jmp 0x40b637
lea eax, [ebp - 0x13c]
push eax
push 0x10
push esi
call fcn.0040bd3c
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x140]
mov eax, dword [ebp - 0x34]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
xor dword [ebp - 8], eax
push 0x10
pop esi
add dword [ebp - 0x140], esi
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
sub ebx, esi
call fcn.0040b7fb
lea eax, [ebx - 1]
cmp eax, 0xe
ja 0x40b616
push ebx
push dword [ebp - 0x140]
mov ecx, esi
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0x24]
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00451390
add esp, 0xc
push 0x10
pop ecx
sub ecx, ebx
je 0x40b5f0
push ecx
lea eax, [ebp + ebx - 0x34]
push 0
push eax
call fcn.00450230
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x24]
xor byte [ebp + eax - 0x34], cl
inc eax
cmp eax, 0x10
jb 0x40b5f2
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x34]
push eax
push eax
call fcn.0040b7fb
lea esi, [ebx + 0x10]
xor ebx, ebx
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x144]
call fcn.00451390
add dword [ebp - 0x144], esi
add esp, 0xc
test ebx, ebx
jne 0x40b570
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00450b32
leave
ret 0x14