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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6190
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50e008]
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 edi, ecx
call fcn.00402650
test al, al
je 0x40846d
xor al, al
jmp 0x408619
mov ecx, edi
call fcn.00407d90
test al, al
je 0x40847f
mov al, 1
jmp 0x408619
push 0
mov ecx, edi
call fcn.00405b00
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4084ce
lea ecx, [ebp - 0x28]
call fcn.00402750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00414cb0
test al, al
je 0x4084bf
push 0
lea ecx, [ebp - 0x28]
call fcn.00405b00
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
mov ecx, edi
call fcn.00407d90
test al, al
jne 0x408478
mov ecx, edi
call fcn.00402860
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4085be
mov ecx, edi
call fcn.00402850
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x408502
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x408525
mov eax, ebx
cmp ecx, 8
jb 0x40851b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4085ae
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004088a0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402650
test al, al
jne 0x40859f
lea ecx, [ebp - 0x28]
call fcn.00407a60
test al, al
jne 0x40859f
push 0
lea ecx, [ebp - 0x28]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40859f
lea ecx, [ebp - 0x40]
call fcn.00402750
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00414cb0
test al, al
je 0x408593
push 0
lea ecx, [ebp - 0x40]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4084f6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00407a60
test al, al
jne 0x408612
push 0
mov ecx, edi
call fcn.00405b00
push eax
call ebx
test eax, eax
jne 0x408612
lea ecx, [ebp - 0x40]
call fcn.00402750
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00414cb0
test al, al
je 0x408603
push 0
lea ecx, [ebp - 0x40]
call fcn.00405b00
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402290
mov ecx, edi
call fcn.00407d90
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.004a100a
mov esp, ebp
pop ebp
ret
Function at 0x4095a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c63c8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50e008]
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
push ecx
push 0x4ed18c
call fcn.00409f50
cmp eax, 0xffffffff
jne 0x409635
mov ecx, esi
call fcn.00405b00
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x409630
lea ecx, [ebp - 0x28]
call fcn.00402750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414cb0
test al, al
je 0x40961e
lea ecx, [ebp - 0x28]
call fcn.00405b00
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
cmp edi, 0xffffffff
setne al
jmp 0x409661
lea ecx, [ebp - 0x68]
call fcn.00413b00
mov dword [ebp - 4], 1
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.00414020
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402290
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.004a100a
mov esp, ebp
pop ebp
ret

Function at 0x40a460
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x50e008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004a101b
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.004a2d80
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40a4bc
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004a100a
add esp, 0x120
ret
Function at 0x411730
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x50e008]
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.004a2d80
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x4117c7
cmp dword [esp + 8], 6
jb 0x4117c7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004a100a
add esp, 0x118
ret

Function at 0x4117e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7150
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x50e008]
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.00402700
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.004131f0
mov ecx, eax
call fcn.004132b0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00402700
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004131f0
mov ecx, eax
call fcn.004132b0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402290
test ebx, ebx
je 0x4118f5
test esi, esi
je 0x4118f5
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 0x414250
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x414288
mov edx, dword [esp + 4]
test edx, edx
je 0x414288
cmp dword [eax], 0xffffffff
je 0x414288
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414288
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x414290
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4142ca
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4142ca
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4142ca
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4142ca
cmp edi, dword [esi]
jne 0x4142ca
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x414310
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x50e008]
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 0x414373
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x414373
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41434e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x414373
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.004a100a
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004a100a
add esp, 8
ret 4

Function at 0x414420
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c75b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50e008]
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
cmp esi, 0xffffffff
jne 0x414457
xor al, al
jmp 0x4144ba
and esi, 0xffffb1af
push esi
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x414472
mov al, 1
jmp 0x4144ba
lea ecx, [ebp - 0x28]
call fcn.00402750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00414cb0
test al, al
je 0x4144a7
push esi
lea ecx, [ebp - 0x28]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4144a7
mov bl, 1
jmp 0x4144a9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
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.004a100a
mov esp, ebp
pop ebp
ret
Function at 0x4144e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c75b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50e008]
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.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41455e
lea ecx, [ebp - 0x28]
call fcn.00402750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00414cb0
test al, al
je 0x41454d
lea ecx, [ebp - 0x28]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
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.004a100a
mov esp, ebp
pop ebp
ret

Function at 0x414690
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7638
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x50e008]
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, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.00405b00
push eax
mov ecx, edi
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4146e2
mov al, 1
jmp 0x4147d0
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00402750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.00414cb0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00402750
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.00414cb0
test al, al
jne 0x414728
test bl, bl
je 0x414746
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00405b00
push eax
lea ecx, [ebp - 0x58]
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41479a
mov ecx, esi
call fcn.004144e0
cmp eax, 0xffffffff
je 0x4147b1
push esi
lea ecx, [ebp - 0x28]
call fcn.00402770
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00414a00
test al, al
je 0x4147a5
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414580
test al, al
je 0x4147a5
mov edx, esi
mov ecx, edi
call fcn.00414580
lea ecx, [ebp - 0x28]
test al, al
je 0x41479e
call fcn.004147f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402290
mov bl, 1
jmp 0x4147b3
mov edx, esi
call fcn.00414580
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402290
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402290
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.004a100a
mov esp, ebp
pop ebp
ret
Function at 0x4147f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7680
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50e008]
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.00405b00
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x414836
mov al, 1
jmp 0x41492b
mov ecx, esi
call fcn.00405b00
push eax
lea ecx, [ebp - 0x28]
call fcn.00402700
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004144e0
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
cmp ebx, 0xffffffff
jne 0x414875
xor al, al
jmp 0x41492b
mov ecx, esi
call fcn.00405b00
push eax
lea ecx, [ebp - 0x28]
call fcn.00402700
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00414420
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
test bl, bl
je 0x41486e
mov ecx, esi
call fcn.00405b00
push eax
call edi
test eax, eax
jne 0x41482f
lea ecx, [ebp - 0x28]
call fcn.00402750
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00414cb0
test al, al
je 0x4148ed
lea ecx, [ebp - 0x28]
call fcn.00405b00
push eax
call edi
test eax, eax
je 0x4148ed
mov bl, 1
jmp 0x41491a
mov ecx, esi
call fcn.00405b00
push eax
lea ecx, [ebp - 0x44]
call fcn.00402700
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.00414420
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402290
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402290
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.004a100a
mov esp, ebp
pop ebp
ret

Function at 0x414950
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x50e008]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004a2d80
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00405b00
push eax
mov ecx, edi
call fcn.00405b00
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4149e5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00402a80
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00402870
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004a100a
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a100a
add esp, 0x210
ret
Function at 0x414b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7708
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50e008]
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 edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov esi, dword [ebp + 0xc]
cdq
push edx
push eax
call fcn.004121e0
add esp, 8
mov ecx, edi
call fcn.00402850
cmp esi, eax
je 0x414bc8
call fcn.00402850
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x414bbd
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00402870
push 0x4ed850
call fcn.00402a80
add esp, 4
mov ecx, esi
push eax
push 0x4ed850
call fcn.00407190
lea eax, [ebp - 0x50]
push eax
call fcn.00402a80
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00407190
push 0x4ed854
call fcn.00402a80
add esp, 4
mov ecx, esi
push eax
push 0x4ed854
call fcn.00407190
mov ecx, ebx
call fcn.00402850
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x414c25
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00407190
mov ecx, esi
call fcn.00405b00
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x414c83
lea ecx, [ebp - 0x68]
call fcn.00402750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x68]
mov ecx, esi
call fcn.00414cb0
test al, al
je 0x414c71
lea ecx, [ebp - 0x68]
call fcn.00405b00
push eax
call ebx
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402290
cmp edi, 0xffffffff
sete al
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.004a100a
mov esp, ebp
pop ebp
ret
Function at 0x414e20
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x50e008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.004a2d80
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414f62
cmp dword [esi + 4], 6
push edi
ja 0x414e76
jne 0x414efe
cmp dword [esi + 8], 2
jb 0x414efe
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x414efe
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x414efe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414efe
movups xmm0, xmmword [0x4edb88]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x4edb98]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x414efe
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x414efe
cmp word [edi + 2], ax
jbe 0x414efe
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x414f49
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004a2d80
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x414f49
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004a100a
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.004a100a
add esp, 0x140
ret
Function at 0x4174f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x50e008]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x4175ce
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x4175ec
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a173e
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4175ba
cmp eax, ebx
ja 0x4175ba
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x41761a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4175ce
push edi
call fcn.004a1739
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 - 0x10]
xor ecx, ebp
call fcn.004a100a
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x4176a5
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x4176a5
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x41768a
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x41767c
cmp ecx, edi
je 0x41767c
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00402700
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.00406ed0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00402290
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x417633
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41769e
push esi
call fcn.004a1739
add esp, 4
mov al, 1
jmp 0x4175d0
call fcn.004a165f
int3
Function at 0x427eb0
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 + 0x510b50], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x510850], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x510a50], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x510950], al
inc esi
cmp esi, 0x100
jl 0x427fc0
pop esi
add esp, 0x80
ret