joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017b90
Capabilities:
Copy file
Create directory
Delete file
Set file attributes

Disassembly:
sub esp, 0x450
push ebx
push ebp
mov ebp, dword [esp + 0x45c]
push esi
test ebp, ebp
push edi
jne 0x10017bb2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov ebx, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x10017bd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
cmp ecx, 2
jl 0x10017bf5
cmp byte [ebp], 0x5c
jne 0x10017bf5
cmp byte [ebp + 1], 0x5c
jne 0x10017bf5
cmp ecx, 2
jne 0x10017bf3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x450
ret
xor ebx, ebx
lea eax, [esp + 0x21c]
mov dword [esp + 0x10], 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x10017cbf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x21c], 0x10
jne 0x10017d84
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x35c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x35c]
push ecx
call fcn.10018da0
add esp, 4
lea edx, [esp + 0x35c]
lea eax, [esp + 0x118]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x118]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
lea esi, [esp + 0x16]
je 0x10017cee
lea esi, [esp + 0x17]
mov al, byte [esi]
test al, al
je 0x10017d84
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp al, 0x5c
je 0x10017d0e
test al, al
je 0x10017d0e
mov al, byte [esi + 1]
inc esi
cmp al, 0x5c
jne 0x10017d02
cmp byte [esi], 0
jne 0x10017d1d
mov dword [esp + 0x10], 1
jmp 0x10017d20
mov byte [esi], 0
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x10017d4b
lea eax, [esp + 0x14]
push 0
push eax
call edi
test eax, eax
je 0x10017be6
jmp 0x10017d6d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x21c], 0x10
jne 0x10017d6d
lea ecx, [esp + 0x14]
push 0
push ecx
call edi
test eax, eax
je 0x10017be6
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10017d84
mov byte [esi], 0x5c
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10017cfe
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x450
ret
Function at 0x100189f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x454
push ebx
push esi
push edi
mov edi, dword [esp + 0x464]
test edi, edi
jne 0x10018a10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x454
ret
mov ebx, dword [esp + 0x468]
push str..abm
push edi
lea eax, [esp + 0x15c]
push str._s_s
push eax
mov dword [esp + 0x1c], 0
mov dword [ebx], 0
call fcn.100355b4
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x154]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x10018a6a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x454
ret
push ebp
test byte [esp + 0x18], 0x10
jne 0x10018b1d
push 0x108
call fcn.100355a6
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10018a9a
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x10018b30
lea ecx, [esp + 0x44]
lea edx, [esp + 0x360]
push ecx
push edi
push 0x10046f84
push edx
mov dword [ebp + 0x104], 0
call fcn.100355b4
lea eax, [esp + 0x26c]
push 0
push eax
push 0
lea ecx, [esp + 0x37c]
push 0
push ecx
call fcn.100110b0
lea edi, [esp + 0x280]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx], 0
jne 0x10018b0b
mov dword [esp + 0x10], ebp
mov dword [ebx], ebp
jmp 0x10018b19
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [eax + 0x104], ebp
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, dword [esp + 0x468]
test eax, eax
jne 0x10018a6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebx]
xor eax, eax
pop ebp
pop edi
test ecx, ecx
pop esi
pop ebx
setne al
add esp, 0x454
ret
Function at 0x10018bd0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x44c
push ebx
push ebp
mov ebp, dword [esp + 0x458]
test ebp, ebp
jne 0x10018bee
pop ebp
xor eax, eax
pop ebx
add esp, 0x44c
ret
mov eax, dword [esp + 0x464]
cmp dword [eax], 0
jne 0x10018c08
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret
push str..abm
push ebp
lea ecx, [esp + 0x358]
push str._s_s
push ecx
call fcn.100355b4
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x350]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10018c4b
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret
push esi
mov esi, dword [esp + 0x464]
push edi
mov edi, dword [esp + 0x464]
test byte [esp + 0x10], 0x10
jne 0x10018cbd
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x150]
push ecx
push ebp
push 0x10046f84
push edx
call fcn.100355b4
push esi
lea eax, [esp + 0x268]
push edi
lea ecx, [esp + 0x168]
push eax
push ecx
call fcn.100187d0
add esp, 0x20
cmp eax, 1
jne 0x10018cbd
mov edx, dword [esp + 0x46c]
lea eax, [esp + 0x254]
push edx
push eax
call fcn.10018b60
mov ecx, dword [esp + 0x474]
add esp, 8
cmp dword [ecx], 0
je 0x10018ccd
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10018c5b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret
Function at 0x10018ed0
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x82c
test eax, eax
push ebx
push ebp
je 0x100190db
mov ebp, dword [esp + 0x83c]
test ebp, ebp
je 0x100190db
mov ebx, dword [esp + 0x840]
test ebx, ebx
je 0x100190db
lea eax, [esp + 0x118]
push 0x104
push eax
push 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x21c]
push 0
lea edx, [esp + 0x428]
push ecx
lea eax, [esp + 0x634]
push edx
lea ecx, [esp + 0x124]
push eax
push ecx
call fcn.100110b0
lea edx, [esp + 0x230]
push str..set
lea eax, [esp + 0x43c]
push edx
lea ecx, [esp + 0x648]
push eax
push ecx
lea edx, [esp + 0x13c]
push 0x10047d70
push edx
call fcn.100355b4
lea eax, [esp + 0x144]
push eax
call fcn.10012080
add esp, 0x30
test eax, eax
je 0x100190db
lea ecx, [esp + 0x118]
push ecx
push 0
push str.NewShareMethod
push str.SharedAlbumInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x100190db
push esi
push edi
push eax
lea edx, [esp + 0x20]
push 0x26
push edx
mov byte [esp + 0x28], 0
call fcn.10033620
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x10019084
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10019037
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10019028
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10019084
lea eax, [esp + 0x328]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
lea ecx, [esp + 0x538]
push 0
lea edx, [esp + 0x334]
push ecx
push edx
call fcn.10035e70
lea eax, [esp + 0x544]
push str.Program_Files
push eax
lea ecx, [esp + 0x38]
push str._s_s
push ecx
call fcn.100355b4
add esp, 0x24
mov edx, dword [esp + 0x840]
push ebp
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x744]
push str._sArcsoftCommon_s_s
push ecx
call fcn.100355b4
lea edi, [esp + 0x74c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x82c
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x82c
ret
Function at 0x1001f8e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x60
push ebx
mov ebx, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x70]
push esi
cmp ebx, 0x18
push edi
ja 0x1001f9c4
cmp ebx, 0x18
je 0x1001f9ef
lea eax, [ebx - 1]
cmp eax, 0xf
ja case.0x1001f915.5
xor ecx, ecx
mov cl, byte [eax + 0x1001fafc]
jmp dword [ecx*4 + 0x1001fae8]
push 0
push 0x1f4
push 1
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esp + 0x74]
mov dword [edx + 0x24], eax
jmp case.0x1001f915.5
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x30]
push ecx
push ebp
call dword [sym.imp.USER32.dll_BeginPaint]
push 0xf
lea edx, [esp + 0x24]
push 5
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.USER32.dll_EndPaint]
jmp case.0x1001f915.5
mov eax, dword [esp + 0x80]
test eax, eax
jne case.0x1001f915.5
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x1001f915.5
mov esi, dword [esp + 0x74]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1001f9a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret 0x14
mov eax, dword [esi + 0x24]
test eax, eax
je case.0x1001f915.5
push eax
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0x24], 0
jmp case.0x1001f915.5
mov eax, ebx
sub eax, 0x111
je 0x1001fa79
sub eax, 0x103df
je 0x1001f9ef
sub eax, 0xf
jne case.0x1001f915.5
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x1001f915.5
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1001fa6e
mov esi, dword [esp + 0x74]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
mov edx, dword [esi]
push ecx
push edx
call edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
push eax
push ecx
call edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push 1
mov ebx, eax
call edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + ecx]
cmp edx, ebx
jle 0x1001fa49
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x14]
push 0x11
push 0
push 0
push eax
push ecx
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, esi
call fcn.1001fd10
mov ebx, dword [esp + 0x7c]
jmp case.0x1001f915.5
mov ecx, dword [esp + 0x74]
call fcn.1001fdb0
jmp case.0x1001f915.5
mov edi, dword [esp + 0x84]
test edi, edi
je case.0x1001f915.5
mov esi, dword [esp + 0x74]
xor eax, eax
mov edx, dword [esi + 0x14]
test edx, edx
jle case.0x1001f915.5
mov ecx, dword [esi + 0x18]
cmp edi, dword [ecx]
je 0x1001faa2
inc eax
add ecx, 4
cmp eax, edx
jl 0x1001fa94
jmp case.0x1001f915.5
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 8]
push edi
mov edx, dword [esp + 0x84]
push edx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
push ebx
push ebp
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x14
Function at 0x1001fdb0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp dword [ebx + 8], esi
je 0x1001fe45
mov eax, dword [ebx + 0x14]
mov dword [esp + 0xc], esi
cmp eax, esi
jle 0x1001fe45
push ebp
push edi
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0x18]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x1001fe2c
mov ecx, dword [ebx + 8]
push ecx
push edi
call dword [sym.imp.USER32.dll_SetParent]
test eax, eax
je 0x1001fe2c
mov edx, dword [ebx + 0x1c]
mov esi, dword [esp + 0x10]
add edx, esi
push 0x14
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [edx + 8]
mov eax, dword [edx + 0xc]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
push eax
mov eax, ebp
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
push eax
push esi
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x14]
inc esi
add ecx, 0x10
cmp esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
jl 0x1001fdd3
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret

Function at 0x10021090
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x100210c0
push esi
call fcn.10025160
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x100210b9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x10021143
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x1002112f
mov eax, dword [esi + 8]
test eax, eax
je 0x100210e4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1002112b
cmp eax, 2
je 0x1002112f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100210d7
cmp eax, 3
je 0x1002110a
cmp eax, 1
jne 0x100210d7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x100210d7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x100210d7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.10021170
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10021163
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.10021170
add esp, 4
pop esi
ret
Function at 0x10022de0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x10022e9a
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x10022e9a
cmp byte [eax + 1], 0x64
jne 0x10022e9a
cmp byte [eax + 2], 0x6f
jne 0x10022e9a
cmp byte [eax + 3], 0x62
jne 0x10022e9a
cmp byte [eax + 4], 0x65
jne 0x10022e9a
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x10034000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov dword [ebp - 0x250], 0
cmp dword [ebp + 8], 0
je 0x1003402a
mov eax, dword [ebp + 8]
push eax
call fcn.10036f30
add esp, 4
cmp eax, 3
jae 0x10034032
or eax, 0xffffffff
jmp 0x100340fc
mov dword [ebp - 0x10c], 3
jmp 0x1003404d
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10036f30
add esp, 4
cmp dword [ebp - 0x10c], eax
jae 0x100340fa
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10c]
movsx ecx, byte [eax + 1]
test ecx, ecx
je 0x10034088
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10c]
movsx eax, byte [edx + 1]
cmp eax, 0x5c
jne 0x100340f5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.10036e40
add esp, 8
mov eax, dword [ebp - 0x10c]
mov byte [ebp + eax - 0x103], 0
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0xffffffff
jne 0x100340e8
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100340e6
mov eax, 0xfffffffe
jmp 0x100340fc
jmp 0x100340f5
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1003403e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10034100
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push esi
push edi
cmp dword [ebp + 8], 0
je 0x10034121
mov eax, dword [ebp + 8]
push eax
call fcn.10036f30
add esp, 4
test eax, eax
jne 0x1003412a
xor eax, eax
xor edx, edx
jmp 0x100342c5
mov ecx, dword [str.kernel32.dll]
mov dword [ebp - 0x338], ecx
mov edx, dword [0x1004aebc]
mov dword [ebp - 0x334], edx
mov eax, dword [0x1004aec0]
mov dword [ebp - 0x330], eax
mov cl, byte [0x1004aec4]
mov byte [ebp - 0x32c], cl
mov ecx, 5
mov esi, str.GetDiskFreeSpaceExA
lea edi, [ebp - 0x34c]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10035e70
add esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x464]
push ecx
call fcn.10036f30
add esp, 4
mov byte [ebp + eax - 0x463], 0
lea edx, [ebp - 0x464]
push edx
call fcn.10036f30
add esp, 4
mov byte [ebp + eax - 0x464], 0x5c
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0
jne 0x100341f4
xor eax, eax
xor edx, edx
jmp 0x100342c5
lea ecx, [ebp - 0x34c]
push ecx
mov edx, dword [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x320], eax
cmp dword [ebp - 0x320], 0
je 0x1003424d
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x360]
push ecx
lea edx, [ebp - 0x358]
push edx
lea eax, [ebp - 0x464]
push eax
call dword [ebp - 0x320]
mov ecx, dword [ebp - 0x358]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x354]
mov dword [ebp - 4], edx
jmp 0x100342b2
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x324]
push ecx
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x100342b2
mov edx, dword [ebp - 0x110]
imul edx, dword [ebp - 0x31c]
imul edx, dword [ebp - 0x324]
xor eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x100342b2
jl 0x100342a4
cmp dword [ebp - 8], 0
jae 0x100342b2
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100343a7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0x1a
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0x10000000
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 1
mov eax, dword [0x1004aedc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x100343ec
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x1f
jge 0x1003442a
mov edx, dword [ebp - 0x14]
and edx, dword [ebp - 0x18]
test edx, edx
je 0x10034418
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x10034418
mov ecx, dword [ebp - 0x18]
not ecx
mov edx, dword [ebp - 0x14]
and edx, ecx
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 4]
add al, 1
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x100343e3
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x100346f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3124
call fcn.10036150
push edi
cmp dword [ebp + 8], 0
jne 0x1003470b
xor eax, eax
jmp 0x10034829
mov dword [ebp - 0x311c], 0
mov al, byte [0x1004deac]
mov byte [ebp - 0x100], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x3118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x311c]
push edx
lea eax, [ebp - 0x3118]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x3124], eax
lea ecx, [ebp - 0x3010]
push ecx
mov edx, dword [ebp - 0x3124]
push edx
mov eax, dword [ebp - 0x311c]
push eax
lea ecx, [ebp - 0x3118]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [ebp - 0x3124]
push edx
lea eax, [ebp - 0x3120]
push eax
push 0x1004af28
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10034813
mov edx, dword [ebp - 0x3120]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x3120]
xor edx, edx
mov dx, word [ecx]
push edx
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x900]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x3124]
push ecx
lea edx, [ebp - 0x3014]
push edx
lea eax, [ebp - 0x900]
push eax
lea ecx, [ebp - 0x3010]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10034813
mov edx, dword [ebp - 0x3014]
push edx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret