joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf043173
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 [0xf07723c], edi
mov dword [0xf077248], edi
jne 0xf043212
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0xf042f27
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0xf0431b0
xor eax, eax
jmp 0xf0432cf
mov eax, dword [0xf09ac68]
push esi
push dword [0xf09ac18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
dec eax
mov dword [0xf07723c], 1
mov dword [0xf077254], edi
mov dword [0xf09ac64], eax
mov dword [0xf09ac40], edi
call esi
push edi
push 0x64
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 2
push ebx
mov dword [0xf09ac18], 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 [0xf09ac0c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0xf09ac74]
sub eax, dword [0xf09ac24]
mov ecx, dword [0xf064a44]
inc ecx
cmp ecx, eax
jbe 0xf04325c
cmp dword [0xf077238], edi
je 0xf04323a
call fcn.0f04272e
call fcn.0f042905
mov eax, dword [0xf09ac24]
mov ecx, dword [0xf064a44]
lea eax, [eax + ecx + 1]
push eax
call fcn.0f041dbc
cmp dword [0xf077238], edi
je 0xf04325c
call fcn.0f0428cb
cmp dword [ebp + 8], edi
jne 0xf0432a4
cmp dword [0xf077238], edi
je 0xf043275
cmp dword [0xf064a40], 0xffff
je 0xf04329c
call fcn.0f042db9
call fcn.0f042337
push edi
call fcn.0f042228
call fcn.0f0428cb
movzx eax, word [0xf09adec]
push 0xf042eb3
push eax
call fcn.0f008f53
mov dword [0xf09ac84], edi
jmp 0xf0432bb
cmp dword [0xf09ac84], edi
jne 0xf0432b1
call fcn.0f042eee
mov dword [0xf09ac84], 1
push dword [0xf09ac84]
mov dword [0xf077240], edi
call fcn.0f042b69
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4

Function at 0xf0447a0
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 0xf0447f7
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 [0xf077274]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
mov dword [ebp + 0xc], eax
jl 0xf0447f6
add dword [ebp + 8], esi
dec edi
jne 0xf0447b6
pop esi
xor eax, eax
cmp dword [ebp + 0xc], eax
pop edi
setge al
leave
ret 8
Function at 0xf044bf7
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0xf077280], 0
je 0xf044cda
push edi
push 0xf002c4c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0xf044cd9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf002d1c
push edi
call esi
push 0xf002d08
push edi
mov dword [0xf09bc08], eax
call esi
push 0xf002cf4
push edi
mov dword [0xf09bbf4], eax
call esi
push 0xf002ce0
push edi
mov dword [0xf09bc10], eax
call esi
push 0xf002ccc
push edi
mov dword [0xf09bc0c], eax
call esi
push 0xf002cc0
push edi
mov dword [0xf09bc1c], eax
call esi
push 0xf002cb4
push edi
mov dword [0xf09bc04], eax
call esi
push 0xf002ca4
push edi
mov dword [0xf09bc20], eax
call esi
push 0xf002c90
push edi
mov dword [0xf09bbf8], eax
call esi
push 0xf002c70
push edi
mov dword [0xf09bbfc], eax
call esi
push 0xf002c58
push edi
mov dword [0xf09bc00], eax
call esi
mov dword [0xf09bc24], eax
mov eax, dword [0xf09bc08]
test eax, eax
pop esi
je 0xf044cd9
mov ecx, dword [0xf0774d0]
push 0xf09bc14
push dword [0xf077288]
add ecx, 0x714
push ecx
call eax
mov dword [0xf077284], eax
pop edi
ret

Function at 0xf045215
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.0f0081f8
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0xf045294
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 0xf045290
push ebx
jmp 0xf045292
push 5
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
je 0xf04535f
cmp eax, 1
jbe 0xf04534d
cmp eax, 3
jbe 0xf04535f
cmp eax, 5
je 0xf0452c4
cmp eax, 0x20
jne 0xf04534d
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebp - 0x214]
call fcn.0f00961d
test eax, eax
je 0xf04535f
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0xf0452f2
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
push ebx
push 0xf003610
lea eax, [ebp - 0x20c]
push eax
call fcn.0f04efda
test eax, eax
je 0xf04535f
push 1
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x214]
call fcn.0f04f578
test eax, eax
je 0xf04535f
lea eax, [ebp - 0x108]
push eax
call fcn.0f04f469
test eax, eax
jne 0xf04535c
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push eax
call fcn.0f04f4ce
push 5
jmp 0xf04535d
push dword [ebp - 0x214]
call fcn.0f04f469
test eax, eax
je 0xf04535f
push ebx
call edi
call esi
cmp eax, ebx
je 0xf045378
cmp eax, 1
jbe 0xf045374
cmp eax, 3
jbe 0xf045378
cmp eax, 5
je 0xf045378
push 5
call edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b780
leave
ret 4
Function at 0xf0458d1
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 0xf0458ed
mov eax, 0x80000006
jmp 0xf045a11
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 0xf003658
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 0xf0459a4
push 0xf003650
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 0xf0459a4
cmp byte [esi + 0x252], 0
je 0xf0459a4
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 0xf045a0f
cmp eax, 0x80000006
je 0xf045a0f
cmp eax, 0xc000000f
je 0xf045a0f
mov byte [esi + 0x252], 1
xor ebx, ebx
mov edi, dword [esi + 0x20]
cmp edi, ebx
jne 0xf0459cd
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 0xf045a0f
mov eax, dword [edi]
cmp eax, ebx
je 0xf0459da
add eax, edi
mov dword [esi + 0x20], eax
jmp 0xf0459dd
mov dword [esi + 0x20], ebx
mov eax, dword [edi + 4]
cmp eax, dword [esi + 0x28]
jne 0xf0459a6
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 0xf0459a6
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0xf045a1b
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 0xf045a36
mov eax, 0x80000006
jmp 0xf045af1
mov ecx, dword [esi + 0x20]
test ecx, ecx
push ebx
push edi
je 0xf045a7f
mov edx, dword [esi + 0x1c]
mov eax, ecx
sub eax, edx
je 0xf045a58
mov edi, dword [esi + 0x24]
sub edi, eax
push edi
push ecx
push edx
call fcn.0f01cd90
add esp, 0xc
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
mov ecx, eax
jmp 0xf045a64
add ecx, edx
mov edx, dword [ecx]
test edx, edx
jne 0xf045a62
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 0xf045ae6
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x24]
xor ebx, ebx
jmp 0xf045ae6
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 0xf045aef
cmp eax, 0xc000000f
je 0xf045aef
test eax, eax
jl 0xf045aed
test ebx, ebx
je 0xf045ac0
mov eax, edi
sub eax, ebx
mov dword [ebx], eax
jmp 0xf045aca
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
jmp 0xf045aca
add edi, eax
mov eax, dword [edi]
test eax, eax
jne 0xf045ac8
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 0xf045a89
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0xf0461af
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 0xf0461d5
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f056c40
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf04621a
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 0xf046201
lea eax, [ebp - 0x14]
push eax
call fcn.0f013225
pop ecx
mov byte [esi], 0
jmp 0xf04621e
mov byte [ebp - 0x14], 0
cmp word [ebp + 0x10], 8
jne 0xf046262
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f0569a0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0xf046262
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0xf046262
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 0xf046253
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.0f0109ea
test eax, eax
je 0xf04630b
cmp byte [ebp - 0x114], 0
mov byte [ebp - 0x109], 0
je 0xf046303
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0f046020
test eax, eax
je 0xf046303
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 0xf0462c5
sub eax, edi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.0f01ca80
push 8
push esi
lea esi, [ebx + 0x14]
push esi
call fcn.0f01ca80
push 3
add ebx, 9
push ebx
add esi, 8
push esi
call fcn.0f01ca80
add esp, 0x24
push 0
call sym.ntvdm.exe_setCF
jmp 0xf046317
push 0x12
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov al, byte [edi]
push eax
push 0xffffffffffffffff
call fcn.0f00803d
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0f01b780
leave
ret 0xc
Function at 0xf04632b
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 0xf046350
push esi
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f056c40
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0xf046394
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 0xf04637c
lea eax, [ebp - 0x14]
push eax
call fcn.0f013225
pop ecx
mov byte [esi], bl
jmp 0xf046397
mov byte [ebp - 0x14], bl
cmp word [ebp + 0x10], 8
jne 0xf0463de
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0f0569a0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0xf0463de
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0xf0463de
inc esi
cmp byte [esi], bl
jne 0xf0463dc
xor eax, eax
mov cl, byte [eax + str.________.___]
mov byte [ebp + eax - 0x14], cl
inc eax
cmp cl, bl
jne 0xf0463cd
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.0f0109ea
test eax, eax
pop esi
je 0xf046453
cmp byte [ebp - 0x114], bl
mov byte [ebp - 0x109], bl
je 0xf04644b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0f046020
test eax, eax
je 0xf04644b
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + 0x1e]
push eax
call fcn.0f045caa
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 0xf046455
push 0x12
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0f01b780
leave
ret 0xc

Function at 0xf0469a8
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 0xf046a47
push 1
push esi
lea eax, [eax + eax - 4]
push 0xf09bd88
mov word [esi], ax
call fcn.0f0467fa
test eax, eax
je 0xf046a1a
mov eax, dword [0xf09bd88]
add eax, 0xfffffffc
push eax
push 0
push esi
call fcn.0f046885
mov eax, dword [esi + 4]
mov word [eax], 0x5c
jmp 0xf046a3c
push 1
push esi
push 0xf09bd78
call fcn.0f0467fa
test eax, eax
je 0xf046a40
xor eax, eax
mov ax, word [0xf09bd78]
push eax
push 0
push esi
call fcn.0f046885
xor eax, eax
jmp 0xf046a52
mov eax, 0x80070089
jmp 0xf046a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop esi
call fcn.0f01b780
leave
ret 8
Function at 0xf047486
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 0xf0474a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf0474b9
and al, 0x10
neg al
sbb eax, eax
and eax, 0x7ff8fffd
add eax, 0x80070003
pop ebp
ret 4

Function at 0xf0474c2
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 0xf04753b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0xf04753e
push esi
call fcn.0f047486
test eax, eax
jl 0xf047543
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
test eax, eax
je 0xf047537
xor eax, eax
jmp 0xf047543
call edi
jmp 0xf04753e
mov eax, dword [ebp - 0xc]
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0f01b780
leave
ret 8

Function at 0xf0476b9
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 0xf04771e
push dword [ebp + 0x18]
xor edi, edi
push dword [ebp + 0x14]
inc edi
push esi
call fcn.0f047684
test eax, eax
jne 0xf04770d
test edi, edi
je 0xf047716
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.0f047684
test eax, eax
je 0xf0476eb
test edi, edi
je 0xf047716
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
jmp 0xf04773a
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 0xf047738
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0xf047785
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [0xf09bde0]
test edx, edx
jne 0xf0477dc
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 0xf0477bc
mov eax, 0x80070008
jmp 0xf047866
and dword [0xf09bdec], 0
push 0x20
pop ecx
or eax, 0xffffffff
mov dword [0xf09bde0], edx
mov dword [0xf09bde4], ecx
mov dword [0xf09bde8], eax
jmp 0xf0477e7
mov eax, dword [0xf09bde8]
mov ecx, dword [0xf09bde4]
cmp eax, 0xffffffff
push esi
push edi
je 0xf0477fd
lea eax, [eax + eax*4]
lea ecx, [edx + eax*4]
mov eax, dword [ecx]
mov dword [0xf09bde8], eax
jmp 0xf047845
mov edi, dword [0xf09bdec]
cmp edi, ecx
jb 0xf047838
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 0xf04786a
mov dword [0xf09bde0], edx
mov dword [0xf09bde4], esi
lea eax, [edi + edi*4]
inc edi
lea ecx, [edx + eax*4]
mov dword [0xf09bdec], edi
mov eax, ecx
sub eax, dword [0xf09bde0]
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 0xf047864

Function at 0xf047e64
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0xf09bda0]
movzx ax, byte [eax]
push ebx
mov bx, word [ebp + 8]
push esi
xor esi, esi
cmp bx, ax
jb 0xf047eb4
cmp bx, 0x19
ja 0xf047ef2
mov al, bl
add al, 0x41
mov byte [0xf064cfc], al
mov eax, dword [0xf09bdac]
movzx ax, byte [eax]
cmp ax, bx
je 0xf047eac
push 0xf064cfc
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0xf047ef2
mov esi, dword [0xf09bda8]
jmp 0xf047ef2
mov al, bl
add al, 0x41
cmp bx, 1
mov byte [0xf064cfc], al
jne 0xf047ed3
push 0xf064cfc
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0xf047ef2
mov esi, dword [0xf09bda4]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp ax, 0x411
movzx eax, bx
jne 0xf047eed
imul eax, eax, 0x58
jmp 0xf047ef0
imul eax, eax, 0x47
add esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0xf048980
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 0xf0489ae
dec eax
dec eax
je 0xf0489a9
dec eax
dec eax
jne 0xf0489b3
lea eax, [ebp - 0x5c]
jmp 0xf0489b6
lea eax, [ebp - 0x54]
jmp 0xf0489b6
lea eax, [ebp - 0x4c]
jmp 0xf0489b6
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0f0487d4
xor esi, esi
cmp eax, esi
jl 0xf048a87
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 0xf0489ee
mov eax, 0x80070003
jmp 0xf048a87
mov eax, dword [ebp - 0x1c]
cmp ax, si
push ebx
mov ebx, dword [ebp - 4]
je 0xf048a05
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
jmp 0xf048a08
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 0xf048a65
mov eax, edi
jmp 0xf048a87
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 0xf048adb
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.0f0467cf
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 0xf048b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80070000
jmp 0xf048b43
cmp word [ebp - 0x212], ax
ja 0xf048b47
mov eax, 0x8007006f
cmp eax, esi
jl 0xf048b76
push dword [ebp - 0x210]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
cmp eax, 2
jne 0xf048b76
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.0f01b780
leave
ret 4