joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dbc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba43a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x5c], ebx
mov esi, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402693
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402620
test al, al
je 0x40dc23
lea ecx, [ebp - 0x40]
call fcn.004191d0
test al, al
jne 0x40dc23
lea ecx, [ebp - 0x40]
call fcn.00402634
mov eax, dword [0x4f4690]
test al, 1
jne 0x40dc51
or eax, 1
mov dword [0x4f4690], eax
mov byte [ebp - 4], 1
push 0
call fcn.0049c87e
push eax
call fcn.0049c7ed
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x4f4690]
test al, 2
jne 0x40dc7d
or eax, 2
mov dword [0x4f4690], eax
mov byte [ebp - 4], 2
call fcn.0049c7cc
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [0x4f4694], edx
mov byte [ebp - 4], 0
mov eax, dword [0x4f4690]
test al, 4
jne 0x40dca8
or eax, 4
mov dword [0x4f4690], eax
mov byte [ebp - 4], 3
call fcn.0049c7cc
cdq
mov ecx, 0x1388
idiv ecx
mov edi, edx
mov dword [0x4f4698], edi
mov byte [ebp - 4], 0
jmp 0x40dcae
mov edi, dword [0x4f4698]
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov byte [ebp - 4], 4
inc edi
push edi
push dword [0x4f4694]
mov ecx, ebx
mov dword [0x4f4698], edi
call fcn.00401921
push eax
lea eax, [ebp - 0x28]
push str._sD._.03d._.03d
push eax
call fcn.00405d70
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402620
test al, al
jne 0x40ddc6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [eax]
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x74]
call fcn.00402f50
add esp, 4
mov byte [ebp - 4], 5
mov ecx, esi
push eax
call fcn.00402646
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.0040192c
push 0
mov ecx, esi
call fcn.00401921
push eax
call edi
test eax, eax
jne 0x40de0d
lea ecx, [ebp - 0x58]
call fcn.00401bd5
mov byte [ebp - 4], 6
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.00419c90
test al, al
je 0x40dd6d
push 0
lea ecx, [ebp - 0x58]
call fcn.00401921
push eax
call edi
test eax, eax
jne 0x40de01
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.0040192c
call ebx
cmp eax, 0xb7
jne 0x40ddc6
mov eax, dword [0x4f4698]
mov ecx, dword [0x4f4694]
inc eax
inc ecx
mov dword [0x4f4698], eax
push eax
mov dword [0x4f4694], ecx
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.00401921
push eax
lea eax, [ebp - 0x28]
push str._sD._.03d._.03d
push eax
call fcn.00405d70
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.00402620
test al, al
je 0x40dd00
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040192c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.0040192c
mov edx, 0x10
mov ecx, esi
call fcn.00402bb0
mov bl, 1
jmp 0x40ddc8
Function at 0x414220
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f2008]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.00497aa0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4142b7
cmp dword [esp + 8], 6
jb 0x4142b7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.00495ca5
add esp, 0x118
ret

Function at 0x4142d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bab90
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x4f2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00401931
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00414c50
mov ecx, eax
call fcn.00414d10
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040192c
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00401931
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00414c50
mov ecx, eax
call fcn.00414d10
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040192c
test ebx, ebx
je 0x4143e5
test esi, esi
je 0x4143e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415d90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4e3988
push 0x497f80
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4f2008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x415df9
xor eax, eax
jmp 0x415f6f
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415f3a
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x415f3a
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415f3a
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x415f3a
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415f3a
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x415f3a
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415f3a
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x415f3a
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415f3a
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x415f3a
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x415f3a
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x415f23
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x415f10
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x415f20
jmp 0x415f3a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00415f96
test ebx, ebx
jne 0x415f6d
test esi, esi
je 0x415f5f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x415f6d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418df0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4f2008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x418e53
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x418e53
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418e53
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00495ca5
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00495ca5
add esp, 8
ret 4

Function at 0x418ea0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba528
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418ee9
mov al, 1
jmp 0x418f31
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00419c90
test al, al
je 0x418f1e
push esi
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418f1e
mov bl, 1
jmp 0x418f20
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba528
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418fce
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00419c90
test al, al
je 0x418fbd
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret
Function at 0x418ff0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb328
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00401921
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x419036
mov al, 1
jmp 0x419188
mov ecx, esi
call fcn.00401921
push eax
lea ecx, [ebp - 0x28]
call fcn.00401931
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00418f50
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040192c
cmp ebx, 0xffffffff
jne 0x419075
xor al, al
jmp 0x419188
mov ecx, esi
call fcn.00401921
push eax
lea ecx, [ebp - 0x28]
call fcn.00401931
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0
call fcn.00401921
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
je 0x4190a7
xor bl, bl
jmp 0x4190f1
lea ecx, [ebp - 0x40]
call fcn.00401bd5
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00419c90
test al, al
je 0x4190e3
push 0
lea ecx, [ebp - 0x40]
call fcn.00401921
push eax
call ebx
test eax, eax
je 0x4190e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040192c
xor bl, bl
jmp 0x4190f1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0040192c
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040192c
test bl, bl
jne 0x41906e
mov ecx, esi
call fcn.00401921
push eax
call edi
test eax, eax
jne 0x41902f
lea ecx, [ebp - 0x28]
call fcn.00401bd5
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00419c90
test al, al
je 0x41914a
lea ecx, [ebp - 0x28]
call fcn.00401921
push eax
call edi
test eax, eax
je 0x41914a
mov bl, 1
jmp 0x419177
mov ecx, esi
call fcn.00401921
push eax
lea ecx, [ebp - 0x40]
call fcn.00401931
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x44]
call fcn.00418ea0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040192c
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040192c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret
Function at 0x419a50
Capabilities:
Get common file path

Disassembly:
jmp 0x419a50
sub esp, 0x42c
mov eax, dword [0x4f2008]
xor eax, esp
mov dword [esp + 0x428], eax
push ebp
mov ebp, ecx
call fcn.00402634
push 0x412
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00497aa0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x419c60
cmp eax, 0x208
jae 0x419c60
push ebx
xor eax, eax
push esi
mov word [esp + 0x430], ax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00401a44
add esp, 4
mov ecx, ebp
mov ebx, eax
call fcn.00401970
mov edi, eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x20], eax
cmp ebx, eax
ja 0x419b09
mov esi, edi
cmp eax, 8
jb 0x419adc
mov esi, dword [edi]
push ebx
lea eax, [esp + 0x28]
mov dword [edi + 0x10], ebx
push eax
push esi
call fcn.00401a12
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
add esp, 0x14
jmp 0x419c45
mov ecx, ebp
call fcn.00401b82
cmp ebx, eax
ja 0x419c78
mov ecx, ebp
call fcn.00401b82
mov ecx, ebx
mov esi, eax
or ecx, 7
mov dword [esp + 0x18], ecx
cmp ecx, esi
ja 0x419b5f
mov ecx, ebp
call fcn.00401970
mov edx, dword [eax + 0x14]
mov ecx, edx
shr ecx, 1
mov eax, esi
sub eax, ecx
cmp edx, eax
ja 0x419b5f
lea eax, [ecx + edx]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004019ef
add esp, 8
mov esi, dword [eax]
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x419b71
or ecx, 0xffffffff
jmp 0x419b79
cmp ecx, 0x1000
jb 0x419ba2
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00495cb6
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x419c7d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x419bb3
test ecx, ecx
je 0x419bb1
push ecx
call fcn.00495cb6
add esp, 4
jmp 0x419bb3
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.00401a2b
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esi + ebx*2]
push eax
call fcn.00401a01
mov ecx, dword [esp + 0x34]
add esp, 0x14
cmp ecx, 8
jb 0x419c24
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x419c12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x419c7d
mov eax, edx
push ecx
push eax
call fcn.00495ce6
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [edi], eax
jmp 0x419c45
lea eax, [esp + 0x10]
push eax
call fcn.00401a5f
push edi
mov esi, eax
call fcn.00401a5f
push eax
push 4
call fcn.00401880
mov ecx, dword [esi]
add esp, 0x10
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00495ca5
add esp, 0x42c
ret
mov ecx, dword [esp + 0x42c]
xor al, al
pop ebp
xor ecx, esp
call fcn.00495ca5
add esp, 0x42c
ret
call fcn.00401b40
call fcn.00499d54
int3
Function at 0x41ace0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x4bb570
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp + 4]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x41ada7
lea edi, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x41adcc
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004963de
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, edi
mov dword [ebp], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41ad93
cmp eax, ebx
ja 0x41ad93
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x10], ebx
jmp 0x41adf0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41ada7
push edi
call fcn.004963d9
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.00495ca5
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x41ae63
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x41ae63
mov word [ebp + eax + 4], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x41ae48
mov esi, dword [ebp - 0x14]
mov ebx, 2
mov eax, dword [ebp - 0x10]
cmp word [esi + ebx - 2], 0
jne 0x41ae3d
cmp ecx, edi
je 0x41ae3d
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401931
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00404ef0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040192c
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x41ae03
mov esi, dword [ebp]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41ae5c
push esi
call fcn.004963d9
add esp, 4
mov al, 1
jmp 0x41ada9
call fcn.00495e15
int3
Function at 0x4291f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x4f4560], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x4f4260], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x4f4460], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4f4360], al
inc esi
cmp esi, 0x100
jl 0x429300
pop esi
add esp, 0x80
ret
Function at 0x42c140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd5f3
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4f2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [esi]
test edi, edi
jne 0x42c17e
xor al, al
jmp 0x42c31d
lea eax, [edi + 0x38]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0042c340
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00402620
test al, al
jne 0x42c307
lea ecx, [ebp - 0x74]
call fcn.00402620
test al, al
jne 0x42c307
cmp dword [ebp - 0x5c], 0
jne 0x42c2d9
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
jne 0x42c276
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x18], xmm0
call fcn.004247a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00402620
test al, al
jne 0x42c25a
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [ebp - 0x3c]
call fcn.00401921
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c25a
test edi, edi
je 0x42c25a
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 8
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42c253
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040192c
mov dword [esi + 8], edi
mov edx, edi
mov dword [esi + 0xc], ebx
mov ecx, ebx
or edx, ecx
je 0x42c300
lea ecx, [ebp - 0x20]
call fcn.00481970
mov ecx, dword [esi + 8]
mov esi, dword [esi + 0xc]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp edx, esi
ja 0x42c29c
jb 0x42c300
cmp eax, ecx
jb 0x42c300
push esi
push ecx
push edx
push eax
call fcn.0042c5e0
test al, al
je 0x42c307
lea ecx, [ebp - 0x20]
call fcn.00481b50
test eax, eax
js 0x42c300
lea ecx, [ebp - 0x20]
call fcn.00481b50
cmp eax, 3
jg 0x42c300
call fcn.0049c7cc
xor edx, edx
mov ecx, 0xf0
div ecx
cmp edx, 1
jne 0x42c307
mov bl, dl
jmp 0x42c309
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42c304
cmp ecx, eax
jbe 0x42c304
sub ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
add edx, 2
cmp edx, dword [ebp - 0x5c]
jb 0x42c307
mov bl, 1
jmp 0x42c309
mov dword [esi + 0x10], ecx
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.00401c73
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00495ca5
mov esp, ebp
pop ebp
ret 4