joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae7d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403218
and dword [ebp - 0x14], 0
cmp dword [0x438514], 0
mov dword [ebp - 0x18], eax
jne 0x40af30
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40afd8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40afd8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x438514], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x438518], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43851c], eax
call edi
push eax
call esi
mov dword [0x438524], eax
test eax, eax
je 0x40af30
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x438520], eax
mov eax, dword [0x438520]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af89
cmp dword [0x438524], ecx
je 0x40af89
push eax
call esi
push dword [0x438524]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af89
test ebx, ebx
je 0x40af89
call edi
test eax, eax
je 0x40af80
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40af80
test byte [ebp - 8], 1
jne 0x40af89
or dword [ebp + 0x10], 0x200000
jmp 0x40afbc
mov eax, dword [0x438518]
cmp eax, dword [ebp - 0x18]
je 0x40afbc
push eax
call esi
test eax, eax
je 0x40afbc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40afbc
mov eax, dword [0x43851c]
cmp eax, dword [ebp - 0x18]
je 0x40afbc
push eax
call esi
test eax, eax
je 0x40afbc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438514]
call esi
test eax, eax
je 0x40afd8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40afda
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405622
leave
ret
Function at 0x10003bd6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10003c1c
call fcn.1000c106
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10003c1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x10003c5f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10003c48
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10003c48
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10003c5c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100051b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x100051d6
cmp dword [edi + 0x54], 0
jne 0x100051d6
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.1000c106
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1000517d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1000b98e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000b9d1
call fcn.1000c106
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000b9d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000b9ec
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000b545
test ebx, ebx
mov esi, eax
je 0x1000b9ea
test edi, edi
je 0x1000b9ea
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1000d589
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10047481
call fcn.1001e481
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1000d5ae
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1000d5fa
call fcn.10006874
push eax
lea ecx, [ebp - 0x10]
call fcn.10001dc0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10002001
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001370
mov eax, esi
call fcn.1001e559
ret 8
Function at 0x1001c944
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10057460]
jne 0x1001c94e
repz ret
jmp fcn.10021c62

Function at 0x1002c8e1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100252a4
xor ebx, ebx
cmp dword [0x1005b28c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1002c9b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1002c921
xor eax, eax
jmp 0x1002ca7a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004ce60
push edi
call esi
cmp eax, ebx
je 0x1002c91a
push eax
call fcn.10025241
mov dword [esp], 0x1004ce50
push edi
mov dword [0x1005b28c], eax
call esi
push eax
call fcn.10025241
mov dword [esp], 0x1004ce3c
push edi
mov dword [0x1005b290], eax
call esi
push eax
call fcn.10025241
mov dword [0x1005b294], eax
lea eax, [ebp - 8]
push eax
call fcn.1001e9e4
test eax, eax
pop ecx
pop ecx
je 0x1002c984
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100228bf
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1002c9b6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10025241
cmp eax, ebx
pop ecx
mov dword [0x1005b29c], eax
je 0x1002c9b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10025241
pop ecx
mov dword [0x1005b298], eax
mov eax, dword [0x1005b298]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1002ca2f
cmp dword [0x1005b29c], esi
je 0x1002ca2f
push eax
call fcn.100252ad
pop ecx
call eax
cmp eax, ebx
je 0x1002c9fc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1005b29c]
call fcn.100252ad
pop ecx
call eax
test eax, eax
je 0x1002c9fc
test byte [ebp - 0x18], 1
jne 0x1002ca2f
lea eax, [ebp - 0xc]
push eax
call fcn.1001ea1b
test eax, eax
pop ecx
je 0x1002ca17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100228bf
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1002ca26
or dword [ebp + 0x10], 0x200000
jmp 0x1002ca60
or dword [ebp + 0x10], 0x40000
jmp 0x1002ca60
mov eax, dword [0x1005b290]
cmp eax, esi
je 0x1002ca60
push eax
call fcn.100252ad
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002ca60
mov eax, dword [0x1005b294]
cmp eax, esi
je 0x1002ca60
push dword [ebp - 4]
push eax
call fcn.100252ad
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1005b28c]
call fcn.100252ad
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003edf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1005b3cc], 0
jne 0x1003ee05
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 4], 0
push 0x1004e794
mov eax, dword [0x1005b3cc]
push eax
call fcn.100388c0
add esp, 8
mov dword [ebp - 4], eax
call dword [ebp - 4]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4032b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], str.VirtualProtect
push 0
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
mov dword [ebp - 0x10], str.kernel32.dll
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x76d640], eax
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x76d640]
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
Function at 0x407c3a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x76c6ec]
jne 0x407c44
repz ret
jmp fcn.0040b8e2

Function at 0x40e14c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004098bd
and dword [ebp - 4], 0
cmp dword [0x76e050], 0
mov ebx, eax
jne 0x40e1fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e2ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e2ae
push eax
call fcn.0040984b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x76e050], eax
call esi
push eax
call fcn.0040984b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x76e054], eax
call esi
push eax
call fcn.0040984b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x76e058], eax
call esi
push eax
call fcn.0040984b
pop ecx
mov dword [0x76e060], eax
test eax, eax
je 0x40e1fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040984b
pop ecx
mov dword [0x76e05c], eax
mov eax, dword [0x76e05c]
cmp eax, ebx
je 0x40e255
cmp dword [0x76e060], ebx
je 0x40e255
push eax
call fcn.004098c6
push dword [0x76e060]
mov esi, eax
call fcn.004098c6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e255
test edi, edi
je 0x40e255
call esi
test eax, eax
je 0x40e24c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e24c
test byte [ebp - 0xc], 1
jne 0x40e255
or dword [ebp + 0x10], 0x200000
jmp 0x40e28e
mov eax, dword [0x76e054]
cmp eax, ebx
je 0x40e28e
push eax
call fcn.004098c6
pop ecx
test eax, eax
je 0x40e28e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e28e
mov eax, dword [0x76e058]
cmp eax, ebx
je 0x40e28e
push eax
call fcn.004098c6
pop ecx
test eax, eax
je 0x40e28e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x76e050]
call fcn.004098c6
pop ecx
test eax, eax
je 0x40e2ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e2b0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x403371
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
idiv byte [ebx]
invalid
jl 0x40339c
mov ecx, dword [0x4702b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326f4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403479
cmp eax, esi
jl 0x403473
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp + 8]
add dword [0x4326f4], 4
call fcn.00403479
mov ebx, eax
cmp ebx, esi
jl 0x403471
cmp dword [ebp + 0x10], esi
jne 0x40343f
cmp dword [ebp + 8], esi
jle 0x403471
mov esi, 0x4266f0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403401
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.0040620a
test eax, eax
je 0x40343b
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326f4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f0
jmp 0x403471
push 0xfffffffffffffffe
jmp 0x403465
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403468
push 0xfffffffffffffffd
pop eax
jmp 0x403473
mov ebx, dword [ebp - 4]
add dword [0x4326f4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000120a
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x100433f4
call fcn.1002f354
xor edi, edi
mov dword [ebp - 4], edi
push 0x18
mov byte [ebp - 4], 1
call fcn.1002e93e
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x10001254
mov ecx, dword [ebp + 0x18]
cmp ecx, edi
jne 0x10001240
mov dword [esi + 0x10], edi
jmp 0x10001256
lea eax, [ebp + 8]
cmp ecx, eax
mov eax, dword [ecx]
jne 0x1000124c
push esi
jmp 0x1000124d
push edi
call dword [eax]
mov dword [esi + 0x10], eax
jmp 0x10001256
xor esi, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push esi
push 0x10001296
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
mov edi, eax
call fcn.1000c12f
mov eax, edi
jmp 0x10001290
call fcn.1002f3f9
ret
Function at 0x10003233
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp byte [edi + 4], bl
jne 0x1000324d
mov ebx, edi
call fcn.1000330d
xor ebx, ebx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003303
push 0x10220
call fcn.1002e93e
mov esi, eax
pop ecx
cmp esi, ebx
je 0x10003283
mov dword [esi + 0x1021c], ebx
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
jmp 0x10003285
xor esi, esi
push dword [ebp + 0xc]
lea eax, [esi + 0x10014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0x42000000
push 3
push ebx
push 7
push 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1021c], eax
cmp eax, 0xffffffff
je 0x100032eb
push ebx
push ebx
push dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
je 0x100032eb
push ebx
push esi
push ebx
push dword [edi + 0x24]
lea eax, [esi + 0x14]
push 1
push 0x10000
push eax
push dword [esi + 0x1021c]
call dword [sym.imp.KERNEL32.dll_ReadDirectoryChangesW]
test eax, eax
je 0x100032eb
mov al, 1
jmp 0x10003305
mov eax, dword [esi + 0x1021c]
cmp eax, ebx
je 0x100032fc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002e84a
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x10004def
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10039900
mov eax, dword [0x10058060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str._DlpBackupMonitor
push 0x23c
push str.._backup.cpp
push str._s._d:_s
lea eax, [ebp - 0x1008]
push 0x800
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
xor esi, esi
lea eax, [ebp - 0x100c]
push eax
push esi
push esi
push 0x10004ace
push esi
push esi
mov dword [ebp - 0x100c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10004e6f
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 0x100c]
push str.thread__d_created:__s
call fcn.10017071
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002dda4
leave
ret
Function at 0x1000a83d
Capabilities:
Get common file path

Disassembly:
push 0x154
mov eax, 0x10045ab8
call fcn.1002f38a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x120], ecx
push eax
mov ecx, edi
mov dword [ebp - 0x128], edi
mov esi, edx
call fcn.1000522c
and dword [ebp - 4], 0
push esi
lea esi, [edi + 0x1c]
call fcn.100052b6
lea ebx, [edi + 0x38]
push ebx
mov byte [ebp - 4], 1
call fcn.1000923e
lea eax, [edi + 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.100054cb
lea eax, [edi + 0x88]
mov byte [ebp - 4], 3
xor esi, esi
push eax
mov dword [edi + 0x80], esi
call fcn.10005529
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 4
mov dword [edi + 0x70], eax
or eax, ecx
mov dword [edi + 0x74], ecx
jne 0x1000a8cb
mov dword [edi + 0x70], 1
mov dword [edi + 0x74], esi
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
mov edx, 0x80000000
cmp eax, esi
ja 0x1000a8e4
cmp ecx, edx
jbe 0x1000a8ea
mov dword [edi + 0x78], edx
mov dword [edi + 0x7c], esi
mov eax, dword [ebp - 0x124]
cmp dword [eax + 0x18], 8
jb 0x1000a8fb
mov eax, dword [eax + 4]
jmp 0x1000a8fe
add eax, 4
push 0x1004c3b4
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10015baa
add esp, 0xc
mov esi, eax
mov eax, ebx
mov byte [ebp - 4], 5
call fcn.1000be19
lea esi, [ebp - 0x140]
mov byte [ebp - 4], 4
call fcn.10006137
push dword [ebp - 0x140]
call fcn.1002e84a
mov eax, dword [ebp - 0x120]
cmp dword [eax + 0x18], 8
pop ecx
jb 0x1000a94c
mov eax, dword [eax + 4]
jmp 0x1000a94f
add eax, 4
push 0x1004c3b4
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10015baa
add esp, 0xc
lea ecx, [ebp - 0x160]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.100088dd
pop ecx
push eax
lea esi, [edi + 0x50]
mov byte [ebp - 4], 7
call fcn.10005674
lea eax, [ebp - 0x160]
push eax
mov byte [ebp - 4], 6
call fcn.1000564c
lea esi, [ebp - 0x140]
call fcn.10006137
push dword [ebp - 0x140]
call fcn.1002e84a
mov dword [esp], 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.100321a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [ebp - 0x11c]
mov byte [edi + 0x84], al
mov eax, edi
call fcn.1002f40d
ret 0x18
Function at 0x1000ab66
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10058060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x24]
test ecx, eax
je 0x1000abf5
mov bl, byte [ebp - 0x14]
add bl, 0x61
xor eax, eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
lea edi, [ebp - 9]
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0x20], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x1000abf5
lea esi, [ebp - 0xd]
call fcn.10026b4c
test al, al
je 0x1000abf5
cmp byte [ebp - 0xd], 0
jne 0x1000abf5
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x80], 0
jne 0x1000ac11
mov ecx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.1000f338
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1a
jl 0x1000ab92
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002dda4
leave
ret 8
xor al, al
jmp 0x1000ac00

Function at 0x1000ac15
Capabilities:
Get disk size

Disassembly:
push 0x6c
mov eax, 0x10046309
call fcn.1002f38a
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x60], 0xf
call fcn.10006a21
lea eax, [ebp - 0x78]
push eax
mov edx, str.D:_test.docx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.1000218e
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.10005c5b
cmp dword [ebp - 0x1c], ebx
jne 0x1000ac71
xor edi, edi
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.10005e33
mov eax, edi
call fcn.1002f40d
ret
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1000ac7d
lea eax, [ebp - 0x2c]
movzx eax, word [eax]
push eax
push str._c:_
lea ecx, [ebp - 0x4c]
call fcn.10015cdb
xor eax, eax
cmp dword [ebp - 0x34], 8
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x50]
pop ecx
mov dword [ebp - 0x54], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x48]
pop ecx
jae 0x1000acac
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1000ace2
cmp dword [ebp - 0x50], ebx
ja 0x1000ace2
jb 0x1000acd0
cmp dword [ebp - 0x54], 0x3200000
jae 0x1000ace2
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x4c]
call fcn.10005e33
jmp 0x1000ac5e
push ebx
push 1
lea esi, [ebp - 0x4c]
call fcn.10005e33
jmp 0x1000ac5c