joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002954a
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100727e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002959f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x2c]
push 1
push 0x65fb
push dword [ebp - 0x30]
push 0x3fc
call fcn.10029720
add esp, 0x14
jmp 0x1002970f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x100295d7
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x1002970f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1002970f
mov dword [ebp - 0x28], 0x71f4
mov dword [ebp - 0x50], 0x100080dc
cmp dword [ebp - 0x28], 0x7369
jle 0x100296cb
push 0
push 0x100f
push 0
call dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
and dword [ebp - 0x14], 0
jmp 0x10029628
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x722b
jge 0x100296cb
and dword [ebp - 0x18], 0
jmp 0x10029642
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4ada
jge 0x100296c6
and dword [ebp - 0x1c], 0
jmp 0x10029658
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x70f4
jge 0x100296c1
and dword [ebp - 0x20], 0
jmp 0x1002966e
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5725
jge 0x100296bf
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
shl esi, cl
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x20]
mov ecx, edx
sar esi, cl
mov eax, esi
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
call fcn.1000a6be
pop ecx
pop ecx
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.10020d71
push eax
call fcn.1005a6cf
pop ecx
lea ecx, [ebp - 0x70]
call fcn.10020d67
jmp 0x10029667
jmp 0x10029651
jmp 0x1002963b
jmp 0x10029621
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x7109
jge 0x100296e9
push dword [ebp - 0x50]
call fcn.1005a6cf
pop ecx
jmp 0x10029705
or dword [ebp - 4], 0xffffffff
jmp 0x1002970f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002afd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002b056
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002b047
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1002b028
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1002b045
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1002106f
mov dword [eax], 0x1824a8c6
jmp 0x1002b01d
jmp 0x1002b054
push 0x281
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1002b05e
push 0
call fcn.1002c110
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1002ccac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002cd06
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1002ccf3
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1002ccf1
push 0x14d6
push 0x32b7
push 1
push 0x4adc
push 1
call fcn.1002bd00
add esp, 0x14
jmp 0x1002cd04
push 0x55d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x1002cd27
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 0xc]
push 1
push dword [ebp - 0x10]
push 0xe8d
call fcn.1002cbc0
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x1003cafd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003cb4b
lea eax, [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x1003cb38
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xd386cce5
jmp 0x1003cb49
push 0x55d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jmp 0x1003cb67
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
call fcn.1003fceb
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x1003de32
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003de5d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0x4965
push dword [ebp - 0x20]
push 1
call fcn.1003df9f
add esp, 0xc
jmp 0x1003df9b
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1003df93
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xd
jmp 0x1003debd
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0x13
jle 0x1003df91
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x1003df69
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xd711e7bf
jbe 0x1003def6
mov dword [ebp - 0xc], 1
jmp 0x1003defa
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 6
jne 0x1003df0b
mov dword [ebp - 0x40], 1
jmp 0x1003df0f
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0xc], 0xdac7a8cf
jae 0x1003df28
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1003df36
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x1003df36
and dword [ebp - 0x10], 0
jmp 0x1003df3d
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
je 0x1003df4e
mov dword [ebp - 0x14], 1
jmp 0x1003df52
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
je 0x1003df69
cmp dword [ebp - 8], 0
je 0x1003df69
mov dword [ebp - 0x18], 1
jmp 0x1003df6d
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
je 0x1003df80
mov dword [ebp - 0x1c], 1
jmp 0x1003df84
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x1003deb2
jmp 0x1003df9b
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x1003f502
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003f5d8
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1003f595
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1003f56a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x1a
jle 0x1003f593
push 0
mov ecx, dword [ebp - 0x24]
call fcn.1002106f
cmp dword [eax], 0
je 0x1003f583
jmp 0x1003f593
push 0
push 0x5011
call fcn.10042e4b
pop ecx
pop ecx
jmp 0x1003f55f
jmp 0x1003f5d6
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x1003f5c3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jl 0x1003f5d6
mov eax, dword [ebp - 0x38]
mov dword [eax], 0xfffffffb
jmp 0x1003f5b8
jmp 0x1003f625
lea eax, [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1003f602
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003f600
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
jmp 0x1003f625
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x1003f625
push 0x281
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esp, ebp
pop ebp
ret

Function at 0x1003fe36
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003fe6c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x151a
push dword [ebp - 0xc]
push 1
push 0x2270
call fcn.1003fea8
add esp, 0x14
jmp 0x1003fea4
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1003fe9c
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003fe9a
push 0
push 0x148d
push 0x2136
call dword [sym.imp.USER32.dll_GetScrollInfo]
jmp 0x1003fea4
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x10040aaf
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10040bdd
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x52fc
mov dword [ebp - 0x2c], 0x100088e0
cmp dword [ebp - 0x20], 0x54b8
jle 0x10040b8a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [ebp - 0x14], 0
jmp 0x10040b15
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x463c
jge 0x10040b8a
and dword [ebp - 0x18], 0
jmp 0x10040b2b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x36fb
jge 0x10040b88
and dword [ebp - 0x1c], 0
jmp 0x10040b41
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x19b8
jge 0x10040b86
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.1000a6be
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.10020d71
push eax
call fcn.1005a6cf
pop ecx
lea ecx, [ebp - 0x68]
call fcn.10020d67
jmp 0x10040b3a
jmp 0x10040b24
jmp 0x10040b0e
push 0x111a
push 1
push dword [ebp - 0x28]
call fcn.10040c73
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x504c
jge 0x10040bb2
push dword [ebp - 0x2c]
call fcn.1005a6cf
pop ecx
jmp 0x10040bce
or dword [ebp - 4], 0xffffffff
jmp 0x10040bd8
jmp 0x10040c62
lea eax, [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10040c40
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x10040c3e
push 0xf9a
push 0x3b20
push 0x5abf
push 1
push 0x3144
push 0xd8c
push 0x2de4
push 0x778b
push 0
call fcn.1003d1e5
add esp, 0x24
jmp 0x10040c62
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x10040c62
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042b55
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10042bba
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10042b7d
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10042bb8
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10042bb8
push 0
push 0x77ec
push 0x4503
push 0x7772
push 0xa02
push 1
push 0x9cd
push 0x2a84
push 0x50ca
call fcn.10041f6f
add esp, 0x24
jmp 0x10042bd2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0
push 0x6388
push dword [ebp - 0xc]
call fcn.100465bf
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x10042bd6
Capabilities:
Accept command line arguments
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10072ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10042d5d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x10042c76
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10042c54
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jge 0x10042c71
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.1002106f
mov dword [eax], 0x7221ebc5
jmp 0x10042c49
jmp 0x10042d5b
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], 0x6791
mov dword [ebp - 0x48], 0x10008a38
cmp dword [ebp - 0x24], 0x6956
jle 0x10042cee
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
and dword [ebp - 0x18], 0
jmp 0x10042ca6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x70c9
jge 0x10042ce6
and dword [ebp - 0x1c], 0
jmp 0x10042cbc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1f04
jge 0x10042ce4
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
mov ecx, 0x1061a098
call fcn.10020d91
jmp 0x10042cb5
jmp 0x10042c9f
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 4]
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push dword [eax + 8]
call fcn.1005b35a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [ecx + 8], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x6630
jge 0x10042d35
mov edx, dword [ebp - 0x48]
mov ecx, 0x1061a098
call fcn.1002386b
jmp 0x10042d51
or dword [ebp - 4], 0xffffffff
jmp 0x10042d5b
jmp 0x10042d84
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
push dword [eax]
call fcn.1003a594
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047d08
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10047d53
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x10047d46
mov byte [ebp - 1], 0
push 1
push 0x6991
lea eax, [ebp - 1]
push eax
push 0x99e
push 1
call fcn.1004266b
add esp, 0x14
jmp 0x10047d4e
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x10047dfd
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10047dc2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10047da3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x10047dc0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.1002106f
mov dword [eax], 0xb110c93b
jmp 0x10047d98
jmp 0x10047dfd
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x10047de4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffeb
jne 0x10047dfd
mov dword [ebp - 0x34], 0x3126ff23
cmp dword [ebp - 0x34], 0
je 0x10047dfb
jmp 0x10047dfd
jmp 0x10047dd9
mov esp, ebp
pop ebp
ret
Function at 0x1004e5b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004e610
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1004e5f5
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004e5f3
push 0x77c
push 0x849
call dword [sym.imp.USER32.dll_GetWindowLongA]
jmp 0x1004e60e
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x1004e60e
push 0x281
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x1004e628
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push 0
push 0x322c
call fcn.10040c73
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x1004f1bb
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1004f208
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1004f1e5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x1004f203
mov byte [ebp - 1], 0
push 0
push 0x418d
push 1
push 0x6e3
lea eax, [ebp - 1]
push eax
call fcn.1003fc2a
add esp, 0x14
jmp 0x1004f28d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1004f24c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1004f24a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x1004f28d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x30]
mov edx, dword [edx]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ecx + 0xc], eax
mov esp, ebp
pop ebp
ret