joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf042c2f
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
cmp dword [0xf07718c], edi
mov dword [0xf077198], edi
jne 0xf042cce
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0xf0429e3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0xf042c6c
xor eax, eax
jmp 0xf042d8b
mov eax, dword [0xf09aba8]
push esi
push dword [0xf09ab58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
dec eax
mov dword [0xf07718c], 1
mov dword [0xf0771a4], edi
mov dword [0xf09aba4], eax
mov dword [0xf09ab80], edi
call esi
push edi
push 0x64
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 2
push ebx
mov dword [0xf09ab58], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call esi
push 0xffffffffffffffff
push dword [0xf09ab4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0xf09abb4]
sub eax, dword [0xf09ab64]
mov ecx, dword [0xf064a2c]
inc ecx
cmp ecx, eax
jbe 0xf042d18
cmp dword [0xf077188], edi
je 0xf042cf6
call fcn.0f0421ea
call fcn.0f0423c1
mov eax, dword [0xf09ab64]
mov ecx, dword [0xf064a2c]
lea eax, [eax + ecx + 1]
push eax
call fcn.0f041878
cmp dword [0xf077188], edi
je 0xf042d18
call fcn.0f042387
cmp dword [ebp + 8], edi
jne 0xf042d60
cmp dword [0xf077188], edi
je 0xf042d31
cmp dword [0xf064a28], 0xffff
je 0xf042d58
call fcn.0f042875
call fcn.0f041df3
push edi
call fcn.0f041ce4
call fcn.0f042387
movzx eax, word [0xf09ad2c]
push 0xf04296f
push eax
call fcn.0f008e4d
mov dword [0xf09abc4], edi
jmp 0xf042d77
cmp dword [0xf09abc4], edi
jne 0xf042d6d
call fcn.0f0429aa
mov dword [0xf09abc4], 1
push dword [0xf09abc4]
mov dword [0xf077190], edi
call fcn.0f042625
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4

Function at 0xf044252
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 0xc]
shr edi, 0xe
je 0xf0442a9
push esi
mov esi, 0x4000
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x40
push 0x40000000
push 2
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [0xf0771c4]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
mov dword [ebp + 0xc], eax
jl 0xf0442a8
add dword [ebp + 8], esi
dec edi
jne 0xf044268
pop esi
xor eax, eax
cmp dword [ebp + 0xc], eax
pop edi
setge al
leave
ret 8
Function at 0xf0446a7
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0xf0771d0], 0
je 0xf04478a
push edi
push 0xf002bfc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0xf044789
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf002ccc
push edi
call esi
push 0xf002cb8
push edi
mov dword [0xf09bb48], eax
call esi
push 0xf002ca4
push edi
mov dword [0xf09bb34], eax
call esi
push 0xf002c90
push edi
mov dword [0xf09bb50], eax
call esi
push 0xf002c7c
push edi
mov dword [0xf09bb4c], eax
call esi
push 0xf002c70
push edi
mov dword [0xf09bb5c], eax
call esi
push 0xf002c64
push edi
mov dword [0xf09bb44], eax
call esi
push 0xf002c54
push edi
mov dword [0xf09bb60], eax
call esi
push 0xf002c40
push edi
mov dword [0xf09bb38], eax
call esi
push 0xf002c20
push edi
mov dword [0xf09bb3c], eax
call esi
push 0xf002c08
push edi
mov dword [0xf09bb40], eax
call esi
mov dword [0xf09bb64], eax
mov eax, dword [0xf09bb48]
test eax, eax
pop esi
je 0xf044789
mov ecx, dword [0xf077418]
push 0xf09bb54
push dword [0xf0771d8]
add ecx, 0x714
push ecx
call eax
mov dword [0xf0771d4], eax
pop edi
ret

Function at 0xf044cc5
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0xf061038]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x10000
push eax
mov dword [ebp - 0x214], eax
call fcn.0f0080f2
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0xf044d44
push 0xd
push 1
lea eax, [ebp - 0x20d]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
mov byte [ebp - 0x20d], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push esi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x21c], ebx
jl 0xf044d40
push ebx
jmp 0xf044d42
push 5
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
je 0xf044e0f
cmp eax, 1
jbe 0xf044dfd
cmp eax, 3
jbe 0xf044e0f
cmp eax, 5
je 0xf044d74
cmp eax, 0x20
jne 0xf044dfd
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebp - 0x214]
call fcn.0f009517
test eax, eax
je 0xf044e0f
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0xf044da2
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
push ebx
push 0xf0035c0
lea eax, [ebp - 0x20c]
push eax
call fcn.0f04ea05
test eax, eax
je 0xf044e0f
push 1
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x214]
call fcn.0f04efa3
test eax, eax
je 0xf044e0f
lea eax, [ebp - 0x108]
push eax
call fcn.0f04ee94
test eax, eax
jne 0xf044e0c
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push eax
call fcn.0f04eef9
push 5
jmp 0xf044e0d
push dword [ebp - 0x214]
call fcn.0f04ee94
test eax, eax
je 0xf044e0f
push ebx
call edi
call esi
cmp eax, ebx
je 0xf044e28
cmp eax, 1
jbe 0xf044e24
cmp eax, 3
jbe 0xf044e28
cmp eax, 5
je 0xf044e28
push 5
call edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 4
Function at 0xf045381
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0xffffffff
jne 0xf04539d
mov eax, 0x80000006
jmp 0xf0454c1
mov ax, word [esi + 0x2c]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push edi
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], ax
push 0xf003608
lea eax, [ebp - 8]
lea edi, [esi + 0x30]
push eax
mov dword [ebp - 0xc], edi
call ebx
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
je 0xf045454
push 0xf003600
lea eax, [ebp - 8]
push eax
call ebx
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
je 0xf045454
cmp byte [esi + 0x252], 0
je 0xf045454
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x24], eax
mov ax, word [esi + 0x2c]
mov word [ebp - 0x18], ax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 6
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntdll.dll_NtVdmControl]
test eax, eax
jge 0xf0454bf
cmp eax, 0x80000006
je 0xf0454bf
cmp eax, 0xc000000f
je 0xf0454bf
mov byte [esi + 0x252], 1
xor ebx, ebx
mov edi, dword [esi + 0x20]
cmp edi, ebx
jne 0xf04547d
mov edi, dword [esi + 0x1c]
push ebx
push ebx
push ebx
push 3
push dword [esi + 0x24]
lea eax, [ebp - 0x20]
push edi
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x18]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, ebx
jl 0xf0454bf
mov eax, dword [edi]
cmp eax, ebx
je 0xf04548a
add eax, edi
mov dword [esi + 0x20], eax
jmp 0xf04548d
mov dword [esi + 0x20], ebx
mov eax, dword [edi + 4]
cmp eax, dword [esi + 0x28]
jne 0xf045456
mov ax, word [edi + 0x3c]
mov word [ebp - 8], ax
mov ax, word [edi + 0x3c]
mov word [ebp - 6], ax
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
add edi, 0x5e
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0xf045456
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0xf0454cb
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0xffffffff
jne 0xf0454e6
mov eax, 0x80000006
jmp 0xf0455a1
mov ecx, dword [esi + 0x20]
test ecx, ecx
push ebx
push edi
je 0xf04552f
mov edx, dword [esi + 0x1c]
mov eax, ecx
sub eax, edx
je 0xf045508
mov edi, dword [esi + 0x24]
sub edi, eax
push edi
push ecx
push edx
call fcn.0f01ca60
add esp, 0xc
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
mov ecx, eax
jmp 0xf045514
add ecx, edx
mov edx, dword [ecx]
test edx, edx
jne 0xf045512
mov edx, dword [ecx + 0x3c]
shr edx, 1
lea edi, [ecx + edx*2 + 0x65]
and edi, 0xfffffff8
sub eax, edi
add eax, dword [esi + 0x24]
mov ebx, ecx
jmp 0xf045596
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
xor ebx, ebx
jmp 0xf045596
xor ecx, ecx
push ecx
push ecx
push ecx
push 3
push eax
push edi
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push ecx
push dword [esi + 0x18]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, 0x80000006
je 0xf04559f
cmp eax, 0xc000000f
je 0xf04559f
test eax, eax
jl 0xf04559d
test ebx, ebx
je 0xf045570
mov eax, edi
sub eax, ebx
mov dword [ebx], eax
jmp 0xf04557a
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
jmp 0xf04557a
add edi, eax
mov eax, dword [edi]
test eax, eax
jne 0xf045578
mov eax, dword [edi + 0x3c]
shr eax, 1
mov ebx, edi
lea edi, [edi + eax*2 + 0x65]
mov eax, dword [esi + 0x24]
and edi, 0xfffffff8
sub eax, edi
add eax, dword [esi + 0x1c]
cmp eax, 0x268
ja 0xf045539
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0xf045c5f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0xf061038]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], eax
mov eax, edi
sub ecx, edi
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0xf045c85
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f056670
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf045cca
inc esi
lea edx, [ebp - 0x14]
mov byte [esi + 0xc], 0
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0xf045cb1
lea eax, [ebp - 0x14]
push eax
call fcn.0f013116
pop ecx
mov byte [esi], 0
jmp 0xf045cce
mov byte [ebp - 0x14], 0
cmp word [ebp + 0x10], 8
jne 0xf045d12
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f0563d0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf045d12
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0xf045d12
mov byte [esi + 1], 0
xor eax, eax
mov cl, byte [eax + str.________.___]
mov byte [ebp + eax - 0x14], cl
inc eax
test cl, cl
jne 0xf045d03
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0f0108ed
test eax, eax
je 0xf045dbb
cmp byte [ebp - 0x114], 0
mov byte [ebp - 0x109], 0
je 0xf045db3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0f045ad0
test eax, eax
je 0xf045db3
lea esi, [ebx + 1]
mov eax, 0x20202020
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xf045d75
sub eax, edi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.0f01c750
push 8
push esi
lea esi, [ebx + 0x14]
push esi
call fcn.0f01c750
push 3
add ebx, 9
push ebx
add esi, 8
push esi
call fcn.0f01c750
add esp, 0x24
push 0
call sym.ntvdm.exe_setCF
jmp 0xf045dc7
push 0x12
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov al, byte [edi]
push eax
push 0xffffffffffffffff
call fcn.0f007f37
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 0xc
Function at 0xf045ddb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0xf061038]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
lea edx, [ebp - 0x218]
push edi
mov edi, dword [ebp + 0xc]
sub edx, eax
xor ebx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0xf045e00
push esi
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f056670
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0xf045e44
inc esi
lea edx, [ebp - 0x14]
mov byte [esi + 0xc], bl
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0xf045e2c
lea eax, [ebp - 0x14]
push eax
call fcn.0f013116
pop ecx
mov byte [esi], bl
jmp 0xf045e47
mov byte [ebp - 0x14], bl
cmp word [ebp + 0x10], 8
jne 0xf045e8e
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f0563d0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0xf045e8e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0xf045e8e
inc esi
cmp byte [esi], bl
jne 0xf045e8c
xor eax, eax
mov cl, byte [eax + str.________.___]
mov byte [ebp + eax - 0x14], cl
inc eax
cmp cl, bl
jne 0xf045e7d
mov byte [esi], bl
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xff
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0f0108ed
test eax, eax
pop esi
je 0xf045f03
cmp byte [ebp - 0x114], bl
mov byte [ebp - 0x109], bl
je 0xf045efb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0f045ad0
test eax, eax
je 0xf045efb
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + 0x1e]
push eax
call fcn.0f04575a
xor eax, eax
mov byte [edi + 0x15], 8
mov word [edi + 0x1a], bx
mov word [edi + 0x1c], bx
mov word [edi + 0x16], bx
mov word [edi + 0x18], bx
inc eax
jmp 0xf045f05
push 0x12
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0f01b45c
leave
ret 0xc

Function at 0xf046458
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xf061038]
and word [ebp - 8], 0
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
movzx eax, word [esi + 2]
shr eax, 1
push eax
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0xf0464f7
push 1
push esi
lea eax, [eax + eax - 4]
push 0xf09bcc8
mov word [esi], ax
call fcn.0f0462aa
test eax, eax
je 0xf0464ca
mov eax, dword [0xf09bcc8]
add eax, 0xfffffffc
push eax
push 0
push esi
call fcn.0f046335
mov eax, dword [esi + 4]
mov word [eax], 0x5c
jmp 0xf0464ec
push 1
push esi
push 0xf09bcb8
call fcn.0f0462aa
test eax, eax
je 0xf0464f0
xor eax, eax
mov ax, word [0xf09bcb8]
push eax
push 0
push esi
call fcn.0f046335
xor eax, eax
jmp 0xf046502
mov eax, 0x80070089
jmp 0xf046502
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b45c
leave
ret 8
Function at 0xf046f36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xf046f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf046f69
and al, 0x10
neg al
sbb eax, eax
and eax, 0x7ff8fffd
add eax, 0x80070003
pop ebp
ret 4

Function at 0xf046f72
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0xf061038]
and word [ebp - 8], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
add eax, 0x40
push edi
mov word [ebp - 0xc], ax
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0xf046feb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0xf046fee
push esi
call fcn.0f046f36
test eax, eax
jl 0xf046ff3
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0xf046fe7
xor eax, eax
jmp 0xf046ff3
call edi
jmp 0xf046fee
mov eax, dword [ebp - 0xc]
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0f01b45c
leave
ret 8

Function at 0xf047169
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0xf0471ce
push dword [ebp + 0x18]
xor edi, edi
push dword [ebp + 0x14]
inc edi
push esi
call fcn.0f047134
test eax, eax
jne 0xf0471bd
test edi, edi
je 0xf0471c6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push dword [ebp + 0x18]
mov edi, eax
push dword [ebp + 0x14]
push esi
call fcn.0f047134
test eax, eax
je 0xf04719b
test edi, edi
je 0xf0471c6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
jmp 0xf0471ea
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or esi, 0x80070000
cmp ebx, 0xffffffff
je 0xf0471e8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0xf047235
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [0xf09bd20]
test edx, edx
jne 0xf04728c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x280
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, eax
test edx, edx
jne 0xf04726c
mov eax, 0x80070008
jmp 0xf047316
and dword [0xf09bd2c], 0
push 0x20
pop ecx
or eax, 0xffffffff
mov dword [0xf09bd20], edx
mov dword [0xf09bd24], ecx
mov dword [0xf09bd28], eax
jmp 0xf047297
mov eax, dword [0xf09bd28]
mov ecx, dword [0xf09bd24]
cmp eax, 0xffffffff
push esi
push edi
je 0xf0472ad
lea eax, [eax + eax*4]
lea ecx, [edx + eax*4]
mov eax, dword [ecx]
mov dword [0xf09bd28], eax
jmp 0xf0472f5
mov edi, dword [0xf09bd2c]
cmp edi, ecx
jb 0xf0472e8
lea esi, [ecx + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ecx, [esi + esi*4]
shl ecx, 2
push ecx
push edx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov edx, eax
test edx, edx
je 0xf04731a
mov dword [0xf09bd20], edx
mov dword [0xf09bd24], esi
lea eax, [edi + edi*4]
inc edi
lea ecx, [edx + eax*4]
mov dword [0xf09bd2c], edi
mov eax, ecx
sub eax, dword [0xf09bd20]
push 0x14
cdq
pop esi
idiv esi
mov edx, dword [ebp + 8]
or ax, 0x4000
mov word [edx], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
mov eax, 0x80070008
jmp 0xf047314

Function at 0xf047914
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0xf09bce0]
movzx ax, byte [eax]
push ebx
mov bx, word [ebp + 8]
push esi
xor esi, esi
cmp bx, ax
jb 0xf047964
cmp bx, 0x19
ja 0xf0479a2
mov al, bl
add al, 0x41
mov byte [0xf064ce4], al
mov eax, dword [0xf09bcec]
movzx ax, byte [eax]
cmp ax, bx
je 0xf04795c
push 0xf064ce4
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0xf0479a2
mov esi, dword [0xf09bce8]
jmp 0xf0479a2
mov al, bl
add al, 0x41
cmp bx, 1
mov byte [0xf064ce4], al
jne 0xf047983
push 0xf064ce4
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0xf0479a2
mov esi, dword [0xf09bce4]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, 0x411
movzx eax, bx
jne 0xf04799d
imul eax, eax, 0x58
jmp 0xf0479a0
imul eax, eax, 0x47
add esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0xf048430
Capabilities:
Get process heap flags
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, 3
je 0xf04845e
dec eax
dec eax
je 0xf048459
dec eax
dec eax
jne 0xf048463
lea eax, [ebp - 0x5c]
jmp 0xf048466
lea eax, [ebp - 0x54]
jmp 0xf048466
lea eax, [ebp - 0x4c]
jmp 0xf048466
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0f048284
xor esi, esi
cmp eax, esi
jl 0xf048537
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0xf04849e
mov eax, 0x80070003
jmp 0xf048537
mov eax, dword [ebp - 0x1c]
cmp ax, si
push ebx
mov ebx, dword [ebp - 4]
je 0xf0484b5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0xf0484b8
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
push 0x4020
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x100100
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp edi, esi
pop ebx
jge 0xf048515
mov eax, edi
jmp 0xf048537
push 4
push 0x28
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0xf04858b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0xf061038]
mov edx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
xor esi, esi
call fcn.0f04627f
movzx eax, word [ebp - 0x212]
push esi
push dword [ebp - 0x210]
push eax
push dword [edx + 4]
call dword [sym.imp.ntdll.dll_RtlGetFullPathName_U]
cmp eax, esi
jne 0xf0485e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf0485f3
cmp word [ebp - 0x212], ax
ja 0xf0485f7
mov eax, 0x8007006f
cmp eax, esi
jl 0xf048626
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
cmp eax, 2
jne 0xf048626
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x206], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
sub esi, 5
neg esi
sbb esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.0f01b45c
leave
ret 4