joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440b60
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov ecx, dword [0x477340]
sub esp, 0x108
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x110]
push 0x104
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x440b94
pop esi
add esp, 0x108
ret 0x10
xor ecx, ecx
lea edx, [esp + 4]
cmp esi, 0x1067
push edx
setle cl
push 0xf003f
lea eax, [esp + 0x10]
push 0
add ecx, 0x80000001
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x440c0f
mov eax, dword [esp + 0x118]
test eax, eax
je 0x440bef
mov edx, dword [esp + 0x11c]
mov ecx, dword [esp + 4]
push edx
push eax
mov eax, dword [esp + 0x11c]
push 3
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x440c02
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x108
ret 0x10
Function at 0x4410d0
Capabilities:
Delete registry key

Disassembly:
mov ecx, dword [0x477340]
sub esp, 0x88
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x90]
push 0x80
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
xor edx, edx
cmp esi, 0x1067
setle dl
add edx, 0x80000001
lea eax, [esp + 0xc]
mov esi, edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop esi
je 0x441148
xor eax, eax
add esp, 0x88
ret 4
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x88
ret 4

Function at 0x441170
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0x80
xor ebx, ebx
mov dword [esp + 0x10], eax
call fcn.0044c0d4
mov esi, eax
add esp, 4
mov ecx, 0x20
xor eax, eax
mov edi, esi
push 0x80
rep stosd dword es:[edi], eax
mov ecx, dword [0x477340]
push esi
push 0x100f
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x18]
push edx
push 0xf003f
push ebx
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4411fb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
push ebx
push 0x46115c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4411f0
mov ebx, 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x441208
push esi
call fcn.0044c186
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
pop ecx
ret 8
Function at 0x441560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x40
mov dword [esp + 0x14], 0x30c
call fcn.0044c0d4
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call fcn.0044c0d4
mov ebx, dword [esp + 0x28]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebx + 0x62]
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp], 0
je 0x4415c7
mov eax, ebp
cmp byte [eax], 0x2d
jne 0x4415bf
mov byte [eax], 0x20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4415b7
mov ecx, dword [esp + 0x10]
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x477430]
lea eax, [esp + 0x18]
push eax
push 1
push 0
push ecx
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441625
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x441629
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x4416e1
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lea esi, [ebx + 0xc2]
lea edx, [eax + 2]
xor eax, eax
mov edi, edx
mov dword [esp + 0x20], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edx, [edx + ecx + 1]
test al, al
je 0x4416e1
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebx + 0x1c6]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [edx + ecx + 1]
lea edi, [edx + ecx + 1]
test al, al
je 0x4416e1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x2ca]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x4416ee
push ebp
call fcn.0044c186
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x441703
push eax
call fcn.0044c186
add esp, 4
add esp, 0xc
ret 4
Function at 0x441710
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x477340]
sub esp, 0x218
lea eax, [esp + 0x10]
push ebx
mov ebx, 0x104
push ebp
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
push ebx
push eax
push 0x1006
push ecx
call ebp
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4417b2
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor esi, esi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x20]
push 0
lea ecx, [esp + 0x134]
mov eax, esi
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
inc esi
call edi
test eax, eax
jne 0x4417a5
lea eax, [esp + 0x20]
push eax
call fcn.0044c687
add esp, 4
jmp 0x441761
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x477340]
lea edx, [esp + 0x18]
push ebx
push edx
push 0x1004
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x441af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
push 0x104
mov dword [esp + 0x18], 1
call fcn.0044c0d4
push 0x104
mov ebp, eax
call fcn.0044c0d4
mov edi, eax
push 0x104
mov dword [esp + 0x18], edi
call fcn.0044c0d4
add esp, 0xc
mov ebx, eax
mov eax, dword [0x477340]
push 0x104
push edi
push 0x106e
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x441b4d
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441c7f
push esi
xor esi, esi
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
push edx
push ecx
push 0
lea edx, [esp + 0x2c]
push 0
mov eax, esi
push edx
push edi
push eax
mov eax, dword [esp + 0x30]
inc esi
push eax
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x441c73
mov eax, dword [esp + 0x24]
test eax, eax
je 0x441b70
mov edx, dword [0x45a5ac]
mov ecx, ebx
push 0x104
push ebp
mov dword [ecx], edx
mov eax, dword [0x45a5b0]
push 0x464964
push 0x45a5a4
mov dword [ecx + 4], eax
mov edx, dword [0x45a5b4]
xor eax, eax
push ebx
mov dword [ecx + 8], edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
je 0x441c1b
push ebp
call fcn.0044c687
add esp, 4
mov eax, dword [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
test eax, eax
je 0x441c59
mov ecx, dword [esp + 0x34]
push ecx
push 0x45a4b0
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
push 0x461174
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x10]
jmp 0x441b70
push 0x30
push 0x223
push 0
call fcn.00448b60
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push ebp
call fcn.0044c186
push edi
call fcn.0044c186
push ebx
call fcn.0044c186
mov eax, dword [esp + 0x20]
add esp, 0xc
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret 8
Function at 0x441cb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push 0x104
call fcn.0044c0d4
add esp, 4
mov esi, eax
mov eax, dword [0x477340]
push 0x104
push esi
push 0x106e
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x441d75
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441d6c
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push edi
xor edi, edi
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
push ecx
push 0
lea edx, [esp + 0x24]
push 0
mov eax, edi
push edx
push esi
push eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x34], 4
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x441d5e
push esi
push eax
push 0x180
push ebx
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
push eax
push 0x19a
push ebx
call ebp
jmp 0x441d0d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
push esi
call fcn.0044c186
add esp, 4
pop esi
add esp, 0x10
ret 4
Function at 0x441d80
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x477368]
sub esp, 0x648
xor ecx, ecx
push esi
push edi
test eax, eax
jne 0x441f7b
mov esi, dword [esp + 0x654]
test byte [esi + 0x27], 0x80
je 0x441f7b
cmp word [esi + 0x24], 0x226
jbe 0x441db5
mov ecx, 2
mov al, byte [esi + 0x23]
test al, al
je 0x441dbf
or ecx, 1
xor eax, eax
mov al, byte [esi + 0x22]
sub eax, 0x11
je 0x441dd3
dec eax
je 0x441dd6
sub eax, 2
je 0x441dd9
jmp 0x441ddc
or ch, 1
or ch, 2
or ch, 4
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esi + 2]
push ecx
push eax
lea ecx, [esp + 0x54]
push 0x46118c
push ecx
call edi
mov eax, dword [esp + 0x668]
add esp, 0x10
test eax, eax
jne 0x441f1b
lea edx, [esi + 0x62]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov cl, byte [eax]
test cl, cl
je 0x441e2a
cmp cl, 0x2d
jne 0x441e22
mov byte [eax], 0x20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x441e1a
mov al, byte [esi + 0x22]
cmp al, 0x12
lea eax, [esi + 0x2ca]
je 0x441e3d
lea eax, [esi + 0xc2]
add esi, 0x1c6
lea ecx, [esp + 0xc]
push esi
push eax
push ecx
lea edx, [esp + 0x25c]
push 0x461180
push edx
call edi
mov ecx, dword [0x477340]
add esp, 0x14
lea eax, [esp + 0x14c]
push 0x104
push eax
push 0xfa6
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x441f7b
lea edx, [esp + 8]
lea eax, [esp + 0x14c]
push edx
push 0xf003f
push 0
push eax
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441f7b
lea ecx, [esp + 0x250]
test ecx, ecx
je 0x441ef5
lea edi, [esp + 0x250]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x250]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 1
push eax
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x648
ret 8
mov eax, dword [esp + 8]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x648
ret 8
mov eax, dword [0x477340]
lea edx, [esp + 0x14c]
push 0x104
push edx
push 0xfa6
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x441f7b
lea ecx, [esp + 8]
lea edx, [esp + 0x14c]
push ecx
push 0xf003f
push 0
push edx
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441f7b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x648
ret 8
Function at 0x441f90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8dc
push ebx
push edi
xor ebx, ebx
xor edi, edi
call fcn.0044bd80
test eax, eax
je 0x4421b3
push ebp
call fcn.0044b850
push 0x400
call fcn.0044c0d4
mov ecx, dword [0x477340]
mov ebp, dword [sym.imp.USER32.dll_LoadStringA]
add esp, 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x8c]
push 0x50
push eax
push 0xfa6
push ecx
call ebp
lea edx, [esp + 0x14]
lea eax, [esp + 0x8c]
push edx
push 0x20019
push ebx
push eax
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44219b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x4ec]
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x30]
push ebx
lea ecx, [esp + 0xf0]
mov eax, edi
push edx
mov edx, dword [esp + 0x2c]
push ecx
push eax
push edx
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x40], 0x400
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, ebx
jne 0x44218f
lea eax, [esp + 0xe0]
push 0x45a494
push eax
call fcn.0044c740
add esp, 8
lea ecx, [esp + 0x30]
push eax
push ecx
call esi
push 0x45a494
push ebx
call fcn.0044c740
add esp, 8
cmp eax, ebx
je 0x44208e
push eax
call fcn.0044c8a5
add esp, 4
mov dword [esp + 0x28], eax
lea edx, [esp + 0x4ec]
push 0x45a494
push edx
call fcn.0044c740
add esp, 8
push eax
lea eax, [esp + 0x54]
push eax
call esi
push 0x45a494
push ebx
call fcn.0044c740
add esp, 8
lea ecx, [esp + 0x2e4]
push eax
push ecx
call esi
push 0x45a494
push ebx
call fcn.0044c740
add esp, 8
lea edx, [esp + 0x1e0]
push eax
push edx
call esi
mov ecx, dword [0x477340]
lea eax, [esp + 0x3e8]
push 0x104
push eax
push 0x100c
push ecx
call ebp
test eax, eax
je 0x44200b
lea edx, [esp + 0x1c]
lea eax, [esp + 0x3e8]
push edx
push 1
push ebx
push eax
push CreateStatusWindowA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x442186
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ebx
lea eax, [esp + 0x5c]
push ebx
push eax
push ecx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44214b
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], ebx
je 0x44200b
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1e0]
lea ecx, [esp + 0x2e4]
push eax
push ecx
lea eax, [esp + 0x38]
push edx
push eax
push 4
call fcn.0044b7c0
jmp 0x44200b
mov dword [esp + 0x10], ebx
jmp 0x44200b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov edx, dword [esp + 0x10]
push edx
call fcn.0044c186
add esp, 4
call fcn.0044b8c0
call fcn.0044be20
pop ebp
pop edi
pop ebx
add esp, 0x8dc
ret
Function at 0x442980
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 2
push esi
push edi
cmp dword [ebp + 8], eax
je 0x442aeb
push ebp
call fcn.00442b00
cmp eax, 1
jne 0x442aeb
cmp dword [ebp], 0
je 0x442ae6
cmp dword [ebp + 8], 1
jne 0x442ae6
lea esi, [ebp + 0xc]
push esi
push 0x4611e0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x442a0e
test byte [esi], 0x10
je 0x4429e0
cmp byte [esi + 0x2c], 0x2e
jne 0x442a0e
push esi
push edi
call ebx
test byte [esi], 0x10
je 0x4429f6
cmp byte [esi + 0x2c], 0x2e
je 0x4429f6
mov ecx, 1
jmp 0x4429f8
xor ecx, ecx
test eax, eax
je 0x442a04
test ecx, ecx
je 0x4429e0
test eax, eax
jne 0x442a0e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
xor eax, eax
cmp edi, 0xffffffff
setne al
test eax, eax
mov dword [ebp + 4], eax
je 0x442ada
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x442a94
push 0x475374
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
call fcn.00442980
cmp eax, 2
je 0x442ac7
cmp dword [ebp + 8], 2
je 0x442ac7
mov eax, dword [0x475a5c]
test eax, eax
je 0x442a89
mov eax, dword [0x475a64]
push eax
call fcn.0041d170
call fcn.0041cf70
call fcn.0041d1e0
test eax, eax
je 0x442a89
push 0x24
push 4
push 0
call fcn.00448b60
cmp eax, 6
je 0x442ac0
push 0
call fcn.0041d210
push 0x4611dc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
push edi
call ebx
test byte [esi], 0x10
je 0x442aaa
cmp byte [esi + 0x2c], 0x2e
je 0x442aaa
mov ecx, 1
jmp 0x442aac
xor ecx, ecx
test eax, eax
je 0x442ab4
test ecx, ecx
je 0x442a94
test eax, eax
mov dword [ebp + 4], eax
je 0x442ada
jmp 0x442a21
push 1
call fcn.0041d210
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret 4
cmp edi, 0xffffffff
je 0x442ae6
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x443710
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4570d0
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x120]
push edx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0044c925
add esp, 0x14
lea edi, [ebp - 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4437e4
mov al, 0x5c
cmp byte [ebp - 0x118], al
jne 0x4437e4
cmp byte [ebp - 0x117], al
jne 0x4437e4
lea edx, [ebp - 0x220]
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 4
mov dword [ebp - 0x224], esi
jmp 0x443810
lea eax, [ebp - 0x120]
push eax
call fcn.00448e70
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
mov dword [ebp - 0x224], esi
cmp esi, 4
jne 0x443810
push ebx
call fcn.00449840
push ebx
call fcn.00449800
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4440c0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x144
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov edi, dword [esp + 0x150]
push 0x475230
push edi
call ebp
cmp eax, 0xffffffff
je 0x4441f5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
push eax
call ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, 0x475374
push 0x475374
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044c660
add esp, 8
mov byte [eax], 0
push 0x475374
call fcn.00449800
push 0x475374
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x475374
call fcn.00443710
mov edi, 0x475374
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov eax, ecx
mov edi, 0x47547c
push 0x47547c
mov edx, edi
push 0x475954
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4611ec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044d55b
add esp, 0xc
lea eax, [esp + 0x14]
mov dword [0x475a58], 0
push eax
push 0x4611e4
call ebp
cmp eax, 0xffffffff
je 0x4441d6
push eax
mov dword [0x475a58], 1
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00443870
pop esi
pop ebx
test eax, eax
je 0x4441f7
pop edi
mov byte [eax + 0x29], 0
pop ebp
add esp, 0x144
ret 4
xor eax, eax
pop edi
pop ebp
add esp, 0x144
ret 4

Function at 0x444210
Capabilities:
Set current directory

Disassembly:
push edi
mov edi, dword [esp + 8]
push 0x475230
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x444292
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, 0x475374
push 0x475374
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044c660
add esp, 8
mov byte [eax], 0
push 0x475374
call fcn.00449800
push 0x475374
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x475374
call fcn.00443710
push eax
call fcn.004434e0
test eax, eax
pop esi
je 0x444294
mov byte [eax + 0x29], 0
pop edi
ret 4
xor eax, eax
pop edi
ret 4