joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455391
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x14]
and eax, 0xff
test eax, eax
jne 0x455455
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
push 0x4000
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x4553dd
mov eax, 0xe
jmp 0x455477
mov eax, 1
test eax, eax
je 0x45543e
mov dword [ebp - 0x14], 0x4000
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45540b
cmp dword [ebp - 0x14], 0
jne 0x45540d
jmp 0x45543e
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455431
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
je 0x45543c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x45543e
jmp 0x4553dd
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004d3366
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x455477
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x10], 0
jne 0x455465
mov eax, 0x85670004
jmp 0x455477
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
call dword [eax + 0x10]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x455857
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f545c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00420900
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x5018f8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00428520
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x28]
mov dword [eax + 0x28], ecx
mov edx, dword [edx + 0x2c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0xc]
mov byte [ecx + 0xc], al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x45acf1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f579b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], 0
push 0x536a80
lea ecx, [ebp - 0x14]
call fcn.004d3839
mov byte [ebp - 4], 4
lea eax, [ebp + 0x14]
push eax
push 0x52ec8c
lea ecx, [ebp + 0x10]
push ecx
push 0x52ec90
lea edx, [ebp + 0xc]
push edx
push str.SOFTWAREDigital_RiverSoftwarePassport_
lea eax, [ebp - 0x28]
push eax
call fcn.004d3ad4
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004d3a60
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004d39fa
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.004d3a60
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x58]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004d39fa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x34]
call fcn.004d37cb
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x30]
call fcn.004d37cb
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004d37cb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x28]
call fcn.004d37cb
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.00447470
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45ae38
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x1c]
call fcn.00447470
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45ae84
push 0x400
lea ecx, [ebp - 0x14]
call fcn.004d3bfb
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x400
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
push 0
push str.BuyURL
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004d3c4a
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004d3540
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.004d37cb
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004d37cb
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.004d37cb
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004d37cb
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004d37cb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45be1f
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f58a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0045f660
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00404dc0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00404dc0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00404dc0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.00404dc0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 0xfffffc19
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0x501ba8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004d3954
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x40], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 4], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x467b59
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x30]
add eax, 0x28
push eax
lea ecx, [ebp - 0x18]
call fcn.00446280
mov dword [ebp - 4], 0
mov word [ebp - 0x1c], 0x400
mov ecx, dword [ebp - 0x30]
add ecx, 8
call fcn.00490fa0
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x467bc8
cmp dword [ebp - 0x10], 2
je 0x467bd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x467c2a
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
mov edx, dword [ebp - 0x30]
add edx, 4
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x467bf6
cmp dword [ebp - 0x10], 4
je 0x467c01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x467c2a
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x467c21
cmp dword [ebp - 0x10], 4
je 0x467c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040b6c0
add esp, 4
and eax, 0xff
test eax, eax
je 0x467c9d
mov ecx, dword [ebp - 0x30]
add ecx, 8
call fcn.00487f40
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x30]
add ecx, 8
call fcn.0040f2b0
mov dword [ebp - 0x24], eax
jmp 0x467c66
mov edx, dword [ebp - 0x28]
add edx, 8
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x467c9d
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.0046bcb0
mov ecx, eax
call fcn.00465d87
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040b6a0
add esp, 4
and eax, 0xff
test eax, eax
je 0x467c9b
jmp 0x467c9d
jmp 0x467c5d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004462b0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x467cc5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6395
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 0x268]
add ecx, 0x28
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00446280
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x24], 0
push 0
lea edx, [ebp - 0x14]
push edx
push 2
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467d47
cmp dword [ebp - 0x14], 2
je 0x467d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x467dcc
mov edx, dword [ebp - 0x20]
and edx, 0xffff
mov dword [ebp - 0x26c], edx
cmp dword [ebp - 0x26c], 0x400
je 0x467d6f
jmp 0x467dc5
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467d8f
cmp dword [ebp - 0x14], 4
je 0x467d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x467dc3
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467dba
cmp dword [ebp - 0x14], 4
je 0x467dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x467dcc
mov dword [ebp - 0x18], 0x85670e03
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040b6c0
add esp, 4
and eax, 0xff
test eax, eax
je 0x467e88
push 0x536b44
mov ecx, dword [ebp - 0x268]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00465360
mov byte [ebp - 4], 1
mov dword [ebp - 0x260], 0
jmp 0x467e1e
mov eax, dword [ebp - 0x260]
add eax, 1
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
cmp ecx, dword [ebp - 0x24]
jae 0x467e79
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x25c]
call fcn.00465fd7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040b6a0
add esp, 4
and eax, 0xff
test eax, eax
je 0x467e52
jmp 0x467e79
push 1
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, dword [ebp - 0x268]
call fcn.004676d8
test eax, eax
je 0x467e77
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x467e0f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.0046541d
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004462b0
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x46d96a
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46d989
mov al, 1
jmp 0x46dad4
mov byte [ebp - 0x350], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.004aa670
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.0046d6f1
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
call fcn.0046d76a
add esp, 4
push 0x52f098
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x34c]
push eax
call fcn.0046e5a9
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x34c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x46da00
mov al, 1
jmp 0x46dad4
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x46da9c
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x34c]
push ecx
call fcn.0046e5a9
add esp, 0xc
mov edx, dword [ebp - 0x248]
and edx, 0x10
cmp edx, 0x10
je 0x46da60
lea eax, [ebp - 0x34c]
push eax
call fcn.0046dad8
add esp, 4
test eax, eax
jne 0x46da5e
mov byte [ebp - 0x350], 0
jmp 0x46da97
push 0x52f09c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004ac3e0
add esp, 8
test eax, eax
je 0x46da97
lea edx, [ebp - 0x34c]
push edx
call fcn.0046d96a
add esp, 4
and eax, 0xff
test eax, eax
jne 0x46da97
mov byte [ebp - 0x350], 0
jmp 0x46da00
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x350]
and ecx, 0xff
test ecx, ecx
je 0x46dace
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x46dace
mov byte [ebp - 0x350], 0
mov al, byte [ebp - 0x350]
mov esp, ebp
pop ebp
ret

Function at 0x46dad8
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
ret
Function at 0x46dc51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [ebp + 8]
push eax
call fcn.004a9710
add esp, 4
test eax, eax
jne 0x46dc71
mov al, 1
jmp 0x46de3f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10c], edx
mov eax, 1
test eax, eax
je 0x46ddc9
mov ecx, dword [ebp - 0x108]
push ecx
call fcn.004aa811
add esp, 4
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jne 0x46dcb3
jmp 0x46ddc9
cmp dword [ebp - 0x110], 0x2f
je 0x46dcc5
cmp dword [ebp - 0x110], 0x5c
jne 0x46dd1f
mov edx, dword [ebp - 0x10c]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x108]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x46dd1a
mov eax, dword [ebp - 0x108]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x2f
je 0x46dd09
mov edx, dword [ebp - 0x108]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x5c
jne 0x46dd1a
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
jmp 0x46dcdd
jmp 0x46ddc4
mov edx, dword [ebp - 0x108]
xor eax, eax
mov al, byte [edx]
xor ecx, ecx
mov cl, byte [eax + 0x53b321]
and ecx, 4
test ecx, ecx
je 0x46dd96
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x108]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x108]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
jmp 0x46ddc4
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
jmp 0x46dc83
mov edx, dword [ebp - 0x10c]
mov byte [edx], 0
mov byte [ebp - 0x104], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x46ddec
mov al, 1
jmp 0x46de3f
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0046de43
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x46de2a
movsx ecx, byte [ebp - 0x104]
test ecx, ecx
je 0x46de26
lea edx, [ebp - 0x104]
push edx
call fcn.0046d96a
add esp, 4
xor al, al
jmp 0x46de3f
push 0
mov eax, dword [ebp + 8]
push eax
push 0x1001
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x46de43
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46df63
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a9710
add esp, 4
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x104
jl 0x46de84
xor al, al
jmp 0x46df65
mov edx, dword [ebp - 0x118]
add edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.004aac10
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
call fcn.0046d7f0
add esp, 4
push 0x5c
lea eax, [ebp - 0x104]
push eax
call fcn.004aa0bf
add esp, 8
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x46defd
mov ecx, dword [ebp - 0x108]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.0046de43
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x46defd
xor al, al
jmp 0x46df65
mov dword [ebp - 0x114], 0xc
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 1
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x46df49
cmp dword [ebp + 0xc], 0
je 0x46df45
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046daf6
add esp, 4
xor al, al
jmp 0x46df65
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
jne 0x46df63
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004aa670
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x46fb98
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], SysReAllocString
push 0x52f114
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 4], 0
je 0x46fbd9
push str.GetDiskFreeSpaceExA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46fc07
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46fc05
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
jmp 0x46fc3d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46fc3d
mov edx, dword [ebp - 0x30]
imul edx, dword [ebp - 0x28]
imul edx, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x46fc4d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x47571e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
call fcn.00407cd0
mov dword [ebp - 8], eax
push 0xf1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x475752
xor al, al
jmp 0x47582b
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x475770
xor al, al
jmp 0x47582b
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47578a
xor al, al
jmp 0x47582b
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 2
push eax
call fcn.004d333d
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], 0
jmp 0x4757ba
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x4757e4
mov ecx, dword [ebp - 0x10]
call fcn.00475831
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x4757b1
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 6]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e6e5e
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d3366
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0047fc10
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
cmp dword [ebp - 0x14], 0
setne al
mov esp, ebp
pop ebp
ret 8
Function at 0x4814f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4815ad
push 0x52f198
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x48151e
xor al, al
jmp 0x4815af
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetVolumeNameForVolumeMountPointA
push eax
call edi
push str.FindFirstVolumeMountPointA
mov dword [esi + 8], eax
push dword [esi + 4]
call edi
push str.FindNextVolumeMountPointA
mov dword [esi + 0xc], eax
push dword [esi + 4]
call edi
push str.FindVolumeMountPointClose
mov dword [esi + 0x10], eax
push dword [esi + 4]
call edi
push str.FindFirstVolumeA
mov dword [esi + 0x14], eax
push dword [esi + 4]
call edi
push str.FindNextVolumeA
mov dword [esi + 0x18], eax
push dword [esi + 4]
call edi
push str.FindVolumeClose
mov dword [esi + 0x1c], eax
push dword [esi + 4]
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x20], eax
pop edi
je 0x4815a1
cmp dword [esi + 0xc], ebx
je 0x4815a1
cmp dword [esi + 0x10], ebx
je 0x4815a1
cmp dword [esi + 0x14], ebx
je 0x4815a1
cmp dword [esi + 0x18], ebx
je 0x4815a1
cmp dword [esi + 0x1c], ebx
je 0x4815a1
cmp eax, ebx
jne 0x4815ad
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov al, 1
pop esi
pop ebx
ret