joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100633f0
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1006341a
mov eax, dword [eax]
push esi
push 0
push ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x10063437
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x6801
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10063457
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10065fa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011e26d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1015bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100d04bc
mov edi, eax
add esp, 4
test edi, edi
je 0x1006603d
push 1
mov dword [ebp - 4], 0
call fcn.100d2b57
add esp, 4
mov dword [edi + 4], eax
jmp 0x1006603f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.10044f30
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x1006609a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1006609a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x100660b6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x100660d9
cmp byte [ebp + 0xc], 0
je 0x100660c5
push esi
call fcn.100d301d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x100660e5
mov esi, str.ios_base::badbit_set
jmp 0x100660f5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.100468d0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.100456e0
push 0x10152820
lea eax, [ebp - 0x28]
push eax
call fcn.100ed62d
int3
Function at 0x10070570
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x10195478
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x10195478]
mov ebx, esi
sub ebx, dword [0x10195470]
mov eax, dword [0x1019547c]
mov edi, eax
sbb edi, dword [0x10195474]
mov edx, dword [0x1019548c]
mov ecx, dword [0x10195488]
mov dword [0x10195480], ebx
mov dword [0x10195484], edi
mov dword [0x10195470], esi
mov dword [0x10195474], eax
call fcn.100d0990
mov edx, edi
movss dword [ebp - 4], xmm0
mov ecx, ebx
call fcn.100d0990
cmp byte [0x10194e01], 0
movss xmm2, dword [ebp - 4]
divss xmm2, xmm0
movss dword [0x1019546c], xmm2
je 0x1007063e
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 8]
push eax
call edi
movsd xmm0, qword [0x101954b8]
call fcn.100d07c0
mov edx, dword [ebp - 4]
mov esi, eax
mov ecx, dword [ebp - 8]
call fcn.100d08c0
divsd xmm0, qword [0x101954b0]
movsd qword [0x101954b8], xmm0
call fcn.100d07c0
mov ecx, eax
sub ecx, esi
cmp esi, eax
sbb eax, eax
test ecx, eax
je 0x100705f5
movss xmm2, dword [0x1019546c]
cmp dword [0x10194ed4], 5
pop edi
pop esi
pop ebx
jl 0x100706b0
movss xmm1, dword [0x101954ac]
movsd xmm0, qword [0x1012e250]
cvtps2pd xmm1, xmm1
comisd xmm0, xmm1
movss xmm0, dword [0x101262f0]
divss xmm0, xmm2
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x1012e248]
cvtpd2ps xmm0, xmm0
jbe 0x10070688
mulss xmm0, dword [0x10126514]
jmp 0x10070690
mulss xmm0, dword [0x1012a650]
movss dword [str.B_e_], xmm0
movss dword [0x10195490], xmm0
movss dword [0x10195494], xmm0
movss dword [0x10195498], xmm0
mov esp, ebp
pop ebp
ret

Function at 0x10071000
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str._themes.re
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.100fedf0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push str.Theme
push str.Themes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 1
push 0x1012afcc
push dword [0x10195540]
mov dword [0x1015b668], eax
call fcn.10075910
push 6
push 0x10070f60
push dword [0x10195534]
call fcn.100755d0
push 7
push 0x10070fb0
push dword [0x10195554]
call fcn.100755d0
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
Function at 0x100755d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, 5
jl 0x100756a3
push 0x40
push 0x3000
lea eax, [esi + 5]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x10075608
push str.Failed_to_allocate_memory_for_trampoline.
jmp 0x100756a8
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10075631
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push str.Failed_to_change_memory_protection.
jmp 0x100756a8
push esi
push ebx
push edi
call fcn.100eca80
mov eax, ebx
mov byte [edi + esi], 0xe9
sub eax, edi
add esp, 0xc
sub eax, 5
mov dword [edi + esi + 1], eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov byte [ebx], 0xe9
sub eax, 5
mov dword [ebx + 1], eax
cmp esi, 5
jle 0x10075673
lea eax, [esi - 5]
push eax
lea eax, [ebx + 5]
push 0x90
push eax
call fcn.100ed000
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1007569a
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push str.Failed_to_restore_memory_protection.
jmp 0x100756a8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Length_must_be_at_least_5_bytes_to_apply_a_hook.
lea ecx, [ebp - 0xc]
call fcn.1004b930
push 0x101530bc
lea eax, [ebp - 0xc]
push eax
call fcn.100ed62d
int3

Function at 0x10075910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.100eca80
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100779f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
push 0x1012a5dc
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x10077a23
push 0x1012a5dc
call esi
mov edi, eax
test edi, edi
jne 0x10077a23
push str.Failed_to_load_ntdll.dll
jmp 0x10077aa4
push str.sfc.dll
call ebx
mov ebx, eax
test ebx, ebx
jne 0x10077a39
push str.sfc.dll
call esi
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push edi
call esi
push str.NtDuplicateObject
push edi
mov dword [0x101959d4], eax
call esi
push str.NtQueryObject
push edi
mov dword [0x101959d8], eax
call esi
push str.SfcIsFileProtected
push ebx
mov dword [0x101959dc], eax
call esi
push str.RtlGetFullPathName_U
push edi
mov dword [0x101959e0], eax
call esi
cmp dword [0x101959d4], 0
mov dword [0x101959e4], eax
je 0x10077a9f
cmp dword [0x101959d8], 0
je 0x10077a9f
cmp dword [0x101959dc], 0
je 0x10077a9f
test eax, eax
jne 0x10077ab7
push str.Failed_to_get_function_addresses_from_ntdll.dll
push 0x10196348
call fcn.10071b60
push eax
call fcn.10071e00
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x10078300
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x190
call fcn.100d04bc
add esp, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10078396
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10078396
mov eax, 2
push 0x6e05
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
push str.141.95.72.22
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x10078396
push 0x10
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
Function at 0x10091560
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x10132100
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1009157a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x1012b258
push esi
call fcn.10101c00
add esp, 8
test eax, eax
je 0x100915c2
test ebp, ebp
je 0x100915b3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100915e8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100915e8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1009169f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091605
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x1015b864]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10091695
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10091695
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091637
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091650
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10091660
test ebp, ebp
je 0x1009168c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1015b868]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1015b868]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x100ae700
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x100ae730
push str.Couldnt_set_desired_mode
push esi
call fcn.1008ef10
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x100ae747
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.1008efe0
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x100ae761
push ebx
push esi
call fcn.100ae410
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x100ae86d
mov edi, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4c0], 2
mov dword [esp + 0x18], edi
jne 0x100ae7de
mov eax, dword [esi + 0x11c]
mov eax, dword [eax]
test eax, eax
je 0x100ae7de
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.100bb4a0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x100ae898
push 0x2f
push dword [esp + 0x18]
call fcn.100eef30
add esp, 8
test eax, eax
je 0x100ae7cd
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x100ae7da
push dword [esp + 0x14]
call dword [0x1015b868]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x4f4]
test ecx, ecx
jne 0x100ae7fc
cmp byte [esi + 0xd83], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x101239ea
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x101264b8
cmove eax, edx
push eax
push ecx
push 0x10131a40
call fcn.10095870
push ebx
mov ebp, eax
call dword [0x1015b868]
add esp, 0x14
test ebp, ebp
jne 0x100ae839
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x10126120
lea eax, [edi + 0x350]
push eax
push esi
call fcn.100cc4c0
push ebp
mov edi, eax
call dword [0x1015b868]
add esp, 0x14
test edi, edi
jne 0x100ae898
mov eax, dword [esi + 0x18]
pop ebp
mov byte [eax + 0x3fe], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x100ae885
push 0xd
push 1
push esi
call fcn.100adf70
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x100ae898
push 0xe
push 1
push esi
call fcn.100adf70
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100cf2e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x1015b864]
mov esi, eax
add esp, 4
test esi, esi
jne 0x100cf30b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x100cf35a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x100cf362
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100cf3d6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x100cf390
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x100cf405
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x1013dd09
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1013dd0a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x100cf3e0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x100cf410
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.10091330
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x1015b864]
mov esi, eax
add esp, 8
test esi, esi
je 0x100cf592
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x100cf492
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100cf506
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x100cf4c0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x100cf535
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x1013dd09
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1013dd0a
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x100cf510
push dword [esp + 0x30]
call fcn.10091330
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x100cf560
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x1015b868]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x100eae90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120c6e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
jbe 0x100eaedd
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100eaef7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10057990
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 7
jbe 0x100eaf5c
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x28]
push eax
call fcn.100da97a
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x100eaf9f
test esi, esi
je 0x100eaf9f
push dword [ebp - 0x34]
push edi
mov edi, dword [ebp - 0x2c]
push esi
push edi
call fcn.100eaa20
add esp, 0x10
push esi
mov dword [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x100eb043
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
cmp eax, 5
jne 0x100eb011
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x100eafb7
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100eb003
test edi, 0x400
jne 0x100eb00b
push edi
push dword [ebp - 0x30]
call fcn.100ea5a0
mov ecx, dword [ebp - 0x2c]
and edi, 0x10
or edi, 0x20
mov dword [ebp - 4], 0xffffffff
shr edi, 4
add esp, 8
mov dword [ecx], edi
mov dword [ecx + 4], eax
cmp esi, 0xffffffff
je 0x100eb040
test esi, esi
je 0x100eb040
mov dword [ebp - 4], 7
jmp 0x100eb039
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100eb00e
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
push edi
push eax
push ecx
call fcn.100ea900
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x100eb040
test esi, esi
je 0x100eb040
mov dword [ebp - 4], 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
Function at 0x101031a6
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x10142050
push esi
call fcn.10110e7c
pop ecx
pop ecx
test eax, eax
jne 0x101031d4
xor al, al
jmp 0x10103251
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.10102ebc
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x1010320e
push dword [ebp - 0x210]
call fcn.100f0440
xor al, al
jmp 0x1010324f
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10103214
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x10103234
push edx
call fcn.101030dd
pop ecx
test al, al
je 0x101031ff
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x10103242
mov bl, 1
push dword [ebp - 0x210]
call fcn.100f0440
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d04ae
leave
ret