joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf039c0c
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
sub eax, dword [esi]
mov ebx, dword [esi + 4]
sub ebx, eax
sub ebx, dword [ebp + 0x10]
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 8], esi
je 0xf039c73
push 0x14
call fcn.0f005706
mov edi, eax
pop ecx
test edi, edi
jne 0xf039c4c
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf039d5c
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [edi], eax
mov eax, 0xffff
mov word [edi + 8], ax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
sub dword [esi + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], edi
jmp 0xf039c76
mov edi, dword [ebp + 0x14]
test eax, eax
jbe 0xf039cb2
push 0x14
call fcn.0f005706
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0xf039c3d
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov cx, word [ebp + 0x14]
mov word [eax + 8], cx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, 0xffff
jmp 0xf039cb6
mov ax, word [ebp + 0x14]
push dword [esi]
mov word [esi + 8], ax
push 0xffffffffffffffff
call sub.ntdll.dll_NtUnmapViewOfSection
test eax, eax
jge 0xf039cce
push 5
jmp 0xf039c3f
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], ecx
jbe 0xf039d16
mov eax, dword [esi + 4]
mov esi, dword [esi]
push 0x40
push 0x40000000
push 2
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
lea eax, [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [0xf0ad1b4]
mov dword [ebp + 0xc], esi
add esi, 0xfff40000
mov dword [ebp - 0x10], esi
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jl 0xf039cc7
xor ecx, ecx
cmp ebx, ecx
jbe 0xf039d59
mov eax, dword [edi]
push 0x40
mov dword [ebp + 0xc], eax
add eax, 0xfff40000
push 0x40000000
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
push 2
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
push ecx
lea eax, [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [0xf0ad1b4]
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jl 0xf039cc7
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0xf039d68
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x14
call fcn.0f005706
mov esi, eax
xor edi, edi
pop ecx
cmp esi, edi
je 0xf039e05
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esi + 4], ecx
mov cx, word [ebp + 0x10]
mov edx, 0xffff
mov dword [esi], eax
mov dword [esi + 0xc], edi
mov word [esi + 8], cx
mov dword [esi + 0x10], edi
cmp cx, dx
jne 0xf039e05
add eax, 0xfff40000
mov dword [ebp - 8], eax
push 0x8000
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 4], edi
call sub.ntdll.dll_NtFreeVirtualMemory
test eax, eax
jge 0xf039dd4
push esi
call fcn.0f00996a
pop ecx
xor esi, esi
push 0x40
push 0x40000000
push 2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [0xf0ad1b4]
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jge 0xf039e05
push esi
call fcn.0f00996a
pop ecx
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
test eax, eax
je 0xf039e50
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, 0xffff
cmp word [eax + 8], cx
jne 0xf039e45
mov ecx, dword [eax]
cmp ecx, edx
ja 0xf039e45
mov edi, dword [eax + 4]
add edi, ecx
lea ecx, [edx + esi]
cmp edi, ecx
jae 0xf039e4c
mov eax, dword [eax + 0x10]
test eax, eax
jne 0xf039e28
test eax, eax
jne 0xf039e5f
push 0x1e7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0xf039ecd
push 0xfffa
push esi
push edx
push eax
call fcn.0f039c0c
test eax, eax
je 0xf039e5b
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
shr esi, 0xc
movzx edi, si
mov esi, 0x1000
add eax, 0xfff40000
mov dword [ebp + 0x10], esi
mov dword [ebp - 8], eax
jmp 0xf039ec5
push 0x40
push 0x40000000
push 2
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [0xf0ad1b4]
call sub.ntdll.dll_NtMapViewOfSection
test eax, eax
jl 0xf039e5b
add dword [ebp + 8], esi
add edi, 0xffff
add dword [ebp - 8], esi
test di, di
ja 0xf039e8f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0xf03b220
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0xf0035ac
lea edi, [ebp - 0x130]
movsd dword es:[edi], dword [esi]
push 0x126
lea eax, [ebp - 0x12a]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.0f0060e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0xf03b2c0
inc dword [0xf082dfc]
js 0xf03b2c0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x230]
push 0x100
push eax
call fcn.0f05e925
lea eax, [ebp - 0x230]
push eax
mov esi, 0x12c
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.0f00a2b3
push 0xf0016c0
lea eax, [ebp - 0x130]
push esi
push eax
call fcn.0f00a2b3
add esp, 0x28
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0f0057d5
leave
ret

Function at 0xf03c016
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0x40
push 0x3000
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], 0xa0000
mov dword [ebp - 4], 0x20000
call sub.ntdll.dll_NtAllocateVirtualMemory
test eax, eax
jge 0xf03c05c
push 0xe8
push 0xf003610
push eax
push 0x3e9
call fcn.0f02cb1f
leave
ret
Function at 0xf03e989
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ecx, ecx
inc ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0xa]
mov word [esi + 4], cx
xor ecx, ecx
xor ebx, ebx
mov byte [ebp + 0xb], al
mov word [esi + 6], cx
mov dword [esi + 0xc], ebx
cmp al, 0xf0
jne 0xf03e9b9
cmp word [esi + 8], bx
je 0xf03e9b9
mov byte [ebp + 0xb], bl
push 1
lea eax, [ebp + 0xb]
push eax
push ebx
push 2
lea eax, [ebp - 4]
push eax
call sub.ntdll.dll_RtlOemToUnicodeN
test eax, eax
jge 0xf03e9d6
xor eax, eax
jmp 0xf03eb8d
mov cl, byte [ebp + 0xb]
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp cl, bl
jne 0xf03ea22
movzx eax, word [esi + 8]
cmp ax, 0x54
jb 0xf03eaac
mov edx, 0xa6
cmp ax, dx
ja 0xf03eaac
add eax, 0xffffffac
mov word [esi + 8], ax
movzx eax, ax
shl eax, 3
mov ecx, dword [eax + 0xf076204]
mov dword [esi + 0xc], ecx
mov ax, word [eax + 0xf076200]
jmp 0xf03eb61
cmp cl, 0xe0
jne 0xf03eaac
movzx eax, word [esi + 8]
cmp ax, bx
je 0xf03eaac
movzx ecx, ax
mov eax, 0x84
cmp ecx, eax
mov dword [esi + 0xc], 0x108
jg 0xf03ea72
je 0xf03ea6e
sub ecx, 0x73
je 0xf03ea6a
dec ecx
je 0xf03ea66
dec ecx
je 0xf03ea62
dec ecx
je 0xf03ea5e
dec ecx
jne 0xf03ea85
push 0x47
jmp 0xf03ea9c
push 0x51
jmp 0xf03ea9c
push 0x4f
jmp 0xf03ea9c
push 0x4d
jmp 0xf03ea9c
push 0x4b
jmp 0xf03ea9c
push 0x49
jmp 0xf03ea9c
sub ecx, 0x8d
je 0xf03ea9a
sub ecx, 4
je 0xf03ea96
dec ecx
je 0xf03ea92
dec ecx
je 0xf03ea8e
mov dword [esi + 0xc], 0x100
jmp 0xf03eaa1
push 0x53
jmp 0xf03ea9c
push 0x52
jmp 0xf03ea9c
push 0x50
jmp 0xf03ea9c
push 0x48
pop eax
mov word [esi + 8], ax
mov byte [ebp + 0xb], bl
mov dword [ebp - 4], ebx
jmp 0xf03eb65
movzx eax, word [esi + 8]
mov edx, pe_nt_image_headers32
cmp ax, dx
jne 0xf03eaed
mov dword [esi + 0xc], 0x100
cmp cl, 0x2f
jne 0xf03eacd
push 0x35
pop eax
push 0x6f
jmp 0xf03eb23
push 0x1c
pop eax
push 0xd
mov word [esi + 8], ax
pop eax
mov word [esi + 6], ax
cmp cl, 0xa
jne 0xf03eb65
mov dword [esi + 0xc], 0x108
jmp 0xf03eb65
cmp cl, bl
je 0xf03eb65
cmp ax, 1
je 0xf03eb65
cmp ax, 0xe
je 0xf03eb65
cmp ax, 0xf
je 0xf03eb65
cmp ax, 0x1c
je 0xf03eb65
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx ecx, ax
mov eax, 0xffff
cmp cx, ax
jne 0xf03eb2e
xor eax, eax
push 0x12
mov word [esi + 8], ax
pop eax
mov word [esi + 6], ax
jmp 0xf03eb65
movzx ax, cl
mov word [esi + 6], ax
test ecx, 0x100
je 0xf03eb42
or dword [esi + 0xc], 0x10
test ecx, 0x200
je 0xf03eb4e
or dword [esi + 0xc], 8
test ecx, 0x400
je 0xf03eb5a
or dword [esi + 0xc], 2
movzx eax, ax
push ebx
push eax
call edi
mov word [esi + 8], ax
cmp word [esi + 6], bx
jne 0xf03eb81
movzx eax, word [esi + 8]
push 3
push eax
call edi
mov word [esi + 6], ax
cmp ax, bx
jne 0xf03eb81
xor eax, eax
jmp 0xf03eb8c
mov ax, word [ebp - 4]
mov word [esi + 0xa], ax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf03fc25
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [0xf0896a8]
shl eax, 2
push eax
push 0xf0acfc0
push dword [0xf0896a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xf03fc55
leave
ret
and dword [0xf0896a8], 0
xor eax, eax
inc eax
leave
ret

Function at 0xf0407a9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
cmp dword [0xf0896c4], esi
jne 0xf04080e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
push 0xf0acf60
mov dword [0xf0896c4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0f066f86
movzx ecx, word [0xf0ad0d4]
mov edx, ecx
shr edx, 2
shl edx, 6
add edx, eax
and ecx, 0x80000003
mov dword [0xf0acf34], eax
mov dword [0xf0acec4], edx
jns 0xf040807
dec ecx
or ecx, 0xfffffffc
inc ecx
mov word [0xf0acf44], cx
push 0x3000
mov dword [0xf0acee4], 0x200
call fcn.0f040618
test eax, eax
je 0xf04087d
push edi
push esi
push 0x81
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push esi
push esi
mov dword [0xf0aced8], eax
call edi
push esi
push esi
push esi
push esi
mov dword [0xf0acecc], eax
call edi
push esi
push esi
push esi
push esi
mov dword [0xf0acf24], eax
call edi
push esi
push esi
push esi
push esi
mov dword [0xf0acf14], eax
call edi
push esi
push esi
push esi
push esi
mov dword [0xf0acf3c], eax
call edi
mov dword [0xf0acf78], eax
xor eax, eax
inc eax
pop edi
jmp 0xf04087f
xor eax, eax
pop esi
leave
ret
Function at 0xf041a37
Capabilities:
Create thread
Resume thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
mov dword [0xf0896d8], edi
cmp dword [0xf0896cc], edi
jne 0xf041ad9
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0xf0417e7
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0xf041a74
xor eax, eax
jmp 0xf041b96
mov eax, dword [0xf0acf2c]
push esi
push dword [0xf0aced8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
dec eax
mov dword [0xf0896cc], 1
mov dword [0xf0896e4], edi
mov dword [0xf0acf28], eax
mov dword [0xf0acf00], edi
call esi
push edi
push 0x81
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 2
push ebx
mov dword [0xf0aced8], 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 [0xf0acecc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0xf0acf38]
sub eax, dword [0xf0acee4]
mov ecx, dword [0xf07651c]
inc ecx
cmp ecx, eax
jbe 0xf041b23
cmp dword [0xf0896c8], edi
je 0xf041b01
call fcn.0f040fee
call fcn.0f0411c5
mov eax, dword [0xf0acee4]
mov ecx, dword [0xf07651c]
lea eax, [eax + ecx + 1]
push eax
call fcn.0f040618
cmp dword [0xf0896c8], edi
je 0xf041b23
call fcn.0f04118b
cmp dword [ebp + 8], edi
jne 0xf041b6b
cmp dword [0xf0896c8], edi
je 0xf041b3c
cmp dword [0xf076518], 0xffff
je 0xf041b63
call fcn.0f041679
call fcn.0f040bb8
push edi
call fcn.0f040aa9
call fcn.0f04118b
movzx eax, word [0xf0ad0bc]
push 0xf041773
push eax
call fcn.0f029c6c
mov dword [0xf0acf48], edi
jmp 0xf041b82
cmp dword [0xf0acf48], edi
jne 0xf041b78
call fcn.0f0417ae
mov dword [0xf0acf48], 1
push dword [0xf0acf48]
mov dword [0xf0896d0], edi
call fcn.0f04143d
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 4

Function at 0xf043f41
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0xf0add5c]
mov dword [ebp - 4], eax
push 0x4000
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], 1
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
test eax, eax
jge 0xf043fa3
mov ecx, dword [0xf0ae030]
mov edx, ecx
and edx, 0xf
cmp dl, 2
jb 0xf043f93
push eax
push 0xf0036ec
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [0xf0ae030]
and ecx, 0xf0
cmp ecx, 0x20
jb 0xf043fa3
call fcn.0f0050a4
leave
ret
Function at 0xf044187
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0xf089708], esi
je 0xf0441f7
mov eax, 0x100000
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x10000
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test eax, eax
jge 0xf0441bb
call fcn.0f02d021
push 0x40
push 0x40000000
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push esi
push eax
push 0xffffffffffffffff
push dword [0xf089704]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf0441f1
call fcn.0f02d021
mov dword [0xf089708], esi
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0xf089708], 1
je 0xf044277
mov eax, 0x100000
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x10000
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
test eax, eax
jge 0xf044231
call fcn.0f02d021
and dword [ebp - 0xc], 0
push 0x40
push 0x40000000
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
lea eax, [ebp - 8]
push 0
push eax
push 0xffffffffffffffff
push dword [0xf089704]
mov dword [ebp - 0x10], 0xa0000
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jge 0xf04426d
call fcn.0f02d021
mov dword [0xf089708], 1
leave
ret

Function at 0xf0445b1
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
xor eax, eax
test edi, edi
je 0xf044609
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 [0xf089704]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
jl 0xf044608
add dword [ebp + 8], esi
dec edi
jne 0xf0445cb
pop esi
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
leave
ret 8
Function at 0xf04461c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
xor eax, eax
push eax
push 0x4000000
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xa
push 0xf089704
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x10], 0xb0000
call dword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
jge 0xf04466c
call fcn.0f02d021
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
push esi
push edi
mov dword [0xf0add5c], eax
mov edi, 0x8000
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x9ffff
call ebx
test eax, eax
jge 0xf0446a6
call fcn.0f02d021
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, 0x10000
push 0xffffffffffffffff
mov dword [ebp - 8], 0x100000
mov dword [ebp - 4], esi
call ebx
test eax, eax
jge 0xf0446cb
call fcn.0f02d021
mov edi, dword [sym.imp.ntdll.dll_NtMapViewOfSection]
push 0x40
mov ebx, 0x40000000
push ebx
push 2
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x10]
push edx
mov eax, 0xffff
push eax
xor ecx, ecx
push ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [0xf089704]
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call edi
test eax, eax
jge 0xf044713
call fcn.0f02d021
push 0x40
push ebx
push 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [0xf089704]
mov dword [ebp - 8], 0x100000
mov dword [ebp - 4], esi
call edi
test eax, eax
jge 0xf044744
call fcn.0f02d021
call fcn.0f02f0cb
push 0x40
push ebx
push 2
mov word [0xf0896fc], ax
movzx eax, ax
lea ecx, [ebp - 4]
push ecx
shl eax, 4
sub eax, esi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
xor esi, esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [0xf089704]
mov dword [ebp - 0xc], esi
call edi
test eax, eax
jge 0xf04478b
call fcn.0f02d021
mov ax, word [0xf0896fc]
mov ecx, 0xa000
mov edi, 0xa0000
cmp ax, cx
jae 0xf0447ba
movzx eax, ax
shl eax, 4
mov ecx, edi
sub ecx, eax
push ecx
push eax
call fcn.0f0445b1
test eax, eax
jne 0xf0447ba
call fcn.0f02d021
push 0x40
push 0x1000
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x60000
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jge 0xf0447e5
call fcn.0f02d021
mov eax, dword [0xf0add5c]
mov dword [0xf0ada88], eax
push esi
add eax, 0x1ffff
push eax
push esi
mov dword [0xf089708], esi
mov dword [0xf0adabc], esi
call fcn.0f043fb5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xf044c3f
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0xf089710], 0
je 0xf044d22
push edi
push 0xf003820
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0xf044d21
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xf003814
push edi
call esi
push 0xf003800
push edi
mov dword [0xf0ae048], eax
call esi
push 0xf0037ec
push edi
mov dword [0xf0ae034], eax
call esi
push 0xf0037d8
push edi
mov dword [0xf0ae050], eax
call esi
push 0xf0037c4
push edi
mov dword [0xf0ae04c], eax
call esi
push 0xf0037b8
push edi
mov dword [0xf0ae05c], eax
call esi
push 0xf0037ac
push edi
mov dword [0xf0ae044], eax
call esi
push 0xf00379c
push edi
mov dword [0xf0ae060], eax
call esi
push 0xf003788
push edi
mov dword [0xf0ae038], eax
call esi
push 0xf003768
push edi
mov dword [0xf0ae03c], eax
call esi
push 0xf003750
push edi
mov dword [0xf0ae040], eax
call esi
mov dword [0xf0ae064], eax
mov eax, dword [0xf0ae048]
pop esi
test eax, eax
je 0xf044d21
mov ecx, dword [0xf089a08]
push 0xf0ae054
push dword [0xf0765b4]
add ecx, 0x714
push ecx
call eax
mov dword [0xf089714], eax
pop edi
ret

Function at 0xf0456dd
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x10000
push eax
mov dword [ebp - 0x214], eax
call fcn.0f0554e2
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0xf04575e
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 0xf04575a
push ebx
jmp 0xf04575c
push 5
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
je 0xf045829
cmp eax, 1
jbe 0xf045817
cmp eax, 3
jbe 0xf045829
cmp eax, 5
je 0xf04578e
cmp eax, 0x20
jne 0xf045817
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push dword [ebp - 0x214]
call fcn.0f055ed1
test eax, eax
je 0xf045829
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0xf0457bc
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
push ebx
push 0xf004120
lea eax, [ebp - 0x20c]
push eax
call fcn.0f054cc4
test eax, eax
je 0xf045829
push 1
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x214]
call fcn.0f055ae3
test eax, eax
je 0xf045829
lea eax, [ebp - 0x108]
push eax
call fcn.0f0558b3
test eax, eax
jne 0xf045826
push dword [ebp - 0x214]
lea eax, [ebp - 0x108]
push eax
call fcn.0f055983
push 5
jmp 0xf045827
push dword [ebp - 0x214]
call fcn.0f0558b3
test eax, eax
je 0xf045829
push ebx
call edi
call esi
cmp eax, ebx
je 0xf045842
cmp eax, 1
jbe 0xf04583e
cmp eax, 3
jbe 0xf045842
cmp eax, 5
je 0xf045842
push 5
call edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 4
Function at 0xf046865
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 0xf046881
mov eax, 0x80000006
jmp 0xf0469a5
movzx eax, 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 0xf004168
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 0xf046938
push 0xf004160
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 0xf046938
cmp byte [esi + 0x252], 0
je 0xf046938
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 0xf0469a3
cmp eax, 0x80000006
je 0xf0469a3
cmp eax, 0xc000000f
je 0xf0469a3
mov byte [esi + 0x252], 0
xor ebx, ebx
mov edi, dword [esi + 0x20]
cmp edi, ebx
jne 0xf046961
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 0xf0469a3
mov eax, dword [edi]
cmp eax, ebx
je 0xf04696e
add eax, edi
mov dword [esi + 0x20], eax
jmp 0xf046971
mov dword [esi + 0x20], ebx
mov eax, dword [edi + 4]
cmp eax, dword [esi + 0x28]
jne 0xf04693a
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 0xf04693a
pop edi
pop ebx
pop esi
leave
ret 4