joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d70
Capabilities:
Check os version

Disassembly:
mov ecx, dword [0x43d4fc]
sub esp, 0x94
cmp ecx, 0xffffffff
push esi
push edi
jne 0x403e08
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
mov esi, 1
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x403dbe
cmp dword [esp + 0xc], 5
jae 0x403dd7
jmp 0x403dd5
cmp eax, 1
jne 0x403dd5
mov eax, dword [esp + 0xc]
cmp eax, 4
jb 0x403dd5
jne 0x403dd7
cmp dword [esp + 0x10], 0xa
jae 0x403dd7
xor esi, esi
test esi, esi
jne 0x403de1
mov dword [0x43d4f4], esi
mov eax, dword [str.COM1]
xor ecx, ecx
test eax, eax
mov dword [0x43d4fc], ecx
je 0x403e08
mov eax, 0x43d4e0
mov edx, dword [eax + 4]
add eax, 4
inc ecx
test edx, edx
jne 0x403df7
mov dword [0x43d4fc], ecx
mov eax, dword [esp + 0xa0]
cmp eax, ecx
jge 0x403e23
mov eax, dword [eax*4 + 0x43d4e0]
pop edi
pop esi
add esp, 0x94
ret
sub eax, ecx
pop edi
pop esi
mov eax, dword [eax*4 + 0x43d4f0]
add esp, 0x94
ret
Function at 0x417390
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x3c], 0xffffffff
je 0x4173b1
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 4]
cmp edx, 1
mov ecx, dword [ecx + 0x18]
jne 0x4173b1
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x4173c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x3c], 0xffffffff
je 0x417435
mov eax, dword [esi + 0x70]
push edi
push esi
mov edi, dword [eax + 0x18]
call fcn.00417f00
add esp, 4
test eax, eax
je 0x4173fb
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_SetParent]
mov dword [0x45411c], 0
cmp dword [esi + 4], 1
je 0x41741a
push edi
call fcn.00416f00
mov ecx, dword [esi + 0x70]
add esp, 4
mov edx, dword [ecx + 0x34]
push edx
push esi
call fcn.00416f70
add esp, 8
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
call fcn.004188f0
mov eax, dword [esi + 0x70]
add esp, 4
mov dword [eax + 0x18], 0
pop edi
pop esi
ret

Function at 0x417f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor esi, esi
mov eax, dword [ebp + 0x6c]
xor edi, edi
test eax, eax
jne 0x417fa6
mov eax, dword [esp + 0x18]
mov esi, dword [0x45566c]
push 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00409120
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417fd3
mov ecx, dword [ebp + 0x6c]
mov edx, dword [esp + 0x18]
push 5
push edx
mov esi, dword [ecx + ebx*4 - 4]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x417fd3
dec ebx
jne 0x417fb5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41e0b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x70]
mov edx, dword [eax + 0xc]
push edi
mov ebx, dword [ecx + 0x18]
lea esi, [esi + esi*4]
shl esi, 3
xor ecx, ecx
xor ebp, ebp
mov cl, byte [edx + esi + 0x16]
lea eax, [edx + esi]
xor edi, edi
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
je 0x41e10a
dec ecx
je 0x41e0fb
dec ecx
jne 0x41e11b
mov eax, dword [eax + 0x18]
lea ecx, [eax + 1]
lea edi, [eax + 2]
mov dword [esp + 0x10], ecx
jmp 0x41e117
mov edi, dword [eax + 0x18]
lea edx, [edi + 1]
lea eax, [edi + 2]
mov dword [esp + 0x10], edx
jmp 0x41e117
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
lea edi, [eax + 1]
add eax, 2
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], ebp
je 0x41e1ab
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push ebx
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
push edx
push ebx
call ebp
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + esi + 8]
not edx
shr edx, 1
and edx, 1
push edx
push eax
call ebp
mov ecx, dword [esp + 0x24]
push 0
push ecx
call ebp
push 0
push ebx
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + esi + 8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push edx
call esi
mov eax, dword [esp + 0x24]
push 0
push eax
call esi
push 0
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x41fd00
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x4541cc]
test eax, eax
je 0x41fd0c
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x41fd60
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
xor ecx, ecx
mov dword [0x4541cc], eax
test eax, eax
setne cl
mov eax, ecx
ret

Function at 0x4286f0
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x428711
pop esi
pop ebp
pop ebx
ret
push edi
push 6
push esi
call fcn.00427f20
add esp, 8
mov edi, eax
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42873c
test edi, edi
je 0x42873c
push edi
call fcn.00427f70
add esp, 4
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4288d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov dword [esp], 0xffffffff
mov dword [esp + 4], 4
call fcn.00428960
mov edx, dword [0x4404cc]
lea ecx, [esp]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x428925
mov ecx, dword [esp]
lea eax, [esp + 4]
push eax
push 0x4541f8
push 0
push 0
push str.LocaleCode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42892e
xor al, al
mov byte [0x4541f8], al
jmp 0x428933
mov al, byte [0x4541f8]
mov ecx, dword [esp]
cmp ecx, 0xffffffff
je 0x428948
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x4541f8]
neg al
sbb eax, eax
and eax, 0x4541f8
add esp, 8
ret

Function at 0x42a760
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42a817
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov eax, esp
push esi
dec esi
push eax
push esi
push ebx
push 0
mov dword [ebp + 8], eax
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42a802
mov ebx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42a802
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a900
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42a974
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42a95f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ab00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
push 0
push 0
je 0x42ab5d
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
mov esi, eax
test esi, esi
jne 0x42ab29
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push edi
push esi
call ebx
inc eax
cmp eax, 1
jne 0x42ab4c
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
dec eax
push 0
push eax
push edi
call fcn.0042f8f0
add esp, 0xc
mov esi, eax
jmp 0x42ab97
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call ebx
mov edi, eax
test edi, edi
jne 0x42ab73
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 6
push edi
call fcn.00427f20
add esp, 8
mov esi, eax
push esi
push edi
call ebx
test eax, eax
jne 0x42ab97
test esi, esi
je 0x42aba4
push esi
call fcn.00427f70
add esp, 4
xor esi, esi
test esi, esi
je 0x42aba4
push esi
call fcn.0042ef20
add esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42ac40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42acc4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42acaf
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42adc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 1
je 0x42ae34
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42ae1f
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ae50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
or ecx, 0xffffffff
push esi
test eax, eax
push edi
mov dword [ebp - 4], ecx
je 0x42aec0
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42aeab
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42aff0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x45460c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0
test eax, eax
push 0
push ebx
je 0x42b05e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
test esi, esi
jne 0x42b01f
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov ecx, dword [ebp + 8]
mov edi, esp
push esi
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42b047
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
dec eax
push 0
push eax
push edi
call fcn.0042f8f0
add esp, 0xc
mov esi, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov edi, eax
test edi, edi
jne 0x42b076
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 6
push edi
call fcn.00427f20
add esp, 8
mov esi, eax
mov eax, dword [ebp + 8]
push edi
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42b0a3
test esi, esi
je 0x42b0a3
push esi
call fcn.00427f70
add esp, 4
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42b150
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x45460c]
push ebx
xor ebx, ebx
push esi
test eax, eax
push edi
je 0x42b25a
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x42b1be
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov eax, dword [ebp + 8]
mov edi, esp
push esi
dec esi
push edi
push esi
push eax
push ebx
call fcn.0042f940
add esp, 0x14
test eax, eax
jne 0x42b1be
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov ecx, eax
lea edx, [ebp - 0x200]
neg ecx
sbb ecx, ecx
and ecx, 0x100
neg eax
sbb eax, eax
push ecx
and eax, edx
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push eax
mov eax, esi
push ecx
neg eax
sbb eax, eax
mov ecx, esi
and eax, 0x100
push edx
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x400]
and ecx, edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebx, eax
test ebx, ebx
je 0x42b2de
test esi, esi
je 0x42b22d
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.0042f8b0
add esp, 8
mov dword [esi], eax
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x42b2de
lea ecx, [ebp - 0x200]
push 0
push ecx
call fcn.0042f8b0
mov dword [esi], eax
add esp, 8
mov eax, ebx
lea esp, [ebp - 0x40c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
mov edx, edi
mov eax, edi
neg edx
sbb edx, edx
lea ecx, [ebp - 0x300]
and edx, 0x100
neg eax
sbb eax, eax
push edx
mov edx, dword [ebp + 0x18]
and eax, ecx
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, esi
push eax
neg edx
sbb edx, edx
mov eax, esi
and edx, 0x100
push ecx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x100]
push edx
mov edx, dword [ebp + 8]
and eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, eax
test ebx, ebx
je 0x42b2de
test esi, esi
je 0x42b2c9
lea eax, [ebp - 0x100]
push eax
call fcn.00421290
add esp, 4
mov dword [esi], eax
test edi, edi
je 0x42b2de
lea ecx, [ebp - 0x300]
push ecx
call fcn.00421290
add esp, 4
mov dword [edi], eax
lea esp, [ebp - 0x40c]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b400
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42b4b3
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov eax, esp
push esi
dec esi
push eax
push esi
push ebx
push 0
mov dword [ebp + 8], eax
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42b49e
mov ebx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42b49e
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b4d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42b544
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42b52f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b560
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42b5d4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42b5bf
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b5f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45460c]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 4], 0
je 0x42b668
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0040ebf0
mov edi, esp
push esi
dec esi
push edi
push esi
push ebx
push 0
call fcn.0042f940
add esp, 0x14
test eax, eax
je 0x42b653
mov eax, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 4], eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea esp, [ebp - 0x10]
mov dword [ebp - 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret