joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48808d
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.00497490
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x50e190
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0049aa90
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
cmp eax, edi
mov dword [0x52a9b0], eax
je 0x488234
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [0x52a9b0]
mov dword [0x52a954], eax
call esi
push str.WinHttpOpenRequest
push dword [0x52a9b0]
mov dword [0x52a958], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [0x52a9b0]
mov dword [0x52a95c], eax
call esi
push str.WinHttpSendRequest
push dword [0x52a9b0]
mov dword [0x52a960], eax
call esi
push str.WinHttpReceiveResponse
push dword [0x52a9b0]
mov dword [0x52a964], eax
call esi
push str.WinHttpQueryHeaders
push dword [0x52a9b0]
mov dword [0x52a968], eax
call esi
push str.WinHttpReadData
push dword [0x52a9b0]
mov dword [0x52a96c], eax
call esi
push str.WinHttpCloseHandle
push dword [0x52a9b0]
mov dword [0x52a970], eax
call esi
push str.WinHttpCrackUrl
push dword [0x52a9b0]
mov dword [0x52a974], eax
call esi
push str.WinHttpSetOption
push dword [0x52a9b0]
mov dword [0x52a978], eax
call esi
push str.WinHttpSetTimeouts
push dword [0x52a9b0]
mov dword [0x52a97c], eax
call esi
cmp dword [0x52a954], edi
mov dword [0x52a980], eax
je 0x48822e
cmp dword [0x52a960], edi
je 0x48822e
cmp dword [0x52a974], edi
je 0x48822e
cmp dword [0x52a958], edi
je 0x48822e
cmp dword [0x52a95c], edi
je 0x48822e
cmp dword [0x52a96c], edi
je 0x48822e
cmp dword [0x52a970], edi
je 0x48822e
cmp dword [0x52a968], edi
je 0x48822e
cmp dword [0x52a964], edi
je 0x48822e
cmp dword [0x52a978], edi
je 0x48822e
cmp dword [0x52a97c], edi
je 0x48822e
cmp eax, edi
je 0x48822e
inc edi
mov dword [0x52a950], edi
mov eax, dword [0x52a950]
pop edi
pop esi
leave
ret

Function at 0x488cc1
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x40e]
push edi
push eax
xor ebx, ebx
mov word [ebp - 0x410], di
call fcn.00497490
push esi
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call fcn.00497490
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0049aba1
add esp, 0x10
push dword [edi + 0x528330]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x488d55
xor ebx, ebx
inc ebx
add edi, 4
cmp edi, 0xc
jb 0x488d16
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x488d64
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5289f4]
push ebx
push esi
xor ebx, ebx
push edi
mov ecx, 0x5289f4
mov dword [ebp - 4], ebx
call dword [eax + 0xc]
mov esi, 0x206
mov edi, eax
push esi
lea eax, [ebp - 0x412]
push ebx
push eax
add edi, 0x10
mov word [ebp - 0x414], bx
call fcn.00497490
push esi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.00497490
add esp, 0x18
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0049eb27
add esp, 0xc
push dword [ebx + 0x528350]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x488e11
add ebx, 4
cmp ebx, 0x20
jb 0x488dcc
jmp 0x488e18
mov dword [ebp - 4], 1
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x488e28
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [0x529930]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], ebp
je 0x488e45
mov esi, dword [eax + 4]
jmp 0x488e47
xor esi, esi
cmp esi, ebp
jne 0x488e57
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
cmp esi, ebp
je 0x488e7c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x488e7c
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x488e7c
push ebp
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x1c], 1
push ecx
mov eax, esp
mov dword [edi + 0x378], ebp
push esi
mov ebx, edi
mov dword [eax], ebp
call fcn.00488f89
mov ebx, eax
cmp ebx, ebp
jne 0x488ea5
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x488f81
mov edx, ebx
call fcn.0040b1d5
mov dword [esp + 0x20], eax
lea eax, [edi + 4]
push eax
mov eax, esi
call fcn.0040b088
cmp dword [edi + 0x36c], ebp
je 0x488f2f
push ebp
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push ebp
push ebp
push ebp
push 0x2001
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push ebp
push ebp
push ebp
push ebp
push ebp
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x488f12
push 1
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
je 0x488f2f
push ebp
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
call fcn.004626f3
push 0x97
push ebp
lea ebx, [edi + 4]
push ebx
mov dword [edi + 0x378], ebp
call fcn.0041e82e
cmp dword [esp + 0x1c], ebp
je 0x488f6d
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp esi, ebp
je 0x488f6d
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx]
jne 0x488f6d
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esp + 0x20]
call fcn.0040b1d5
push dword [ebx]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x489142
Capabilities:
Enumerate files on windows
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [esp + 0x42e]
push ebx
push eax
mov byte [esp + 0x1b], bl
mov word [esp + 0x434], bx
call fcn.00497490
push esi
lea eax, [esp + 0x232]
push ebx
push eax
mov word [esp + 0x238], bx
call fcn.00497490
push esi
lea eax, [esp + 0x36]
push ebx
push eax
mov word [esp + 0x3c], bx
call fcn.00497490
push 0x250
lea eax, [esp + 0x658]
push ebx
push eax
call fcn.00497490
add esp, 0x30
mov esi, 0x104
push esi
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push esi
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x430]
push eax
call fcn.0049eb27
add esp, 0xc
push str.________.sys
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x630]
push eax
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4892eb
test byte [esp + 0x630], 0x10
jne 0x4892ca
push esi
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0049eb27
add esp, 0xc
lea eax, [esp + 0x65c]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.00497791
mov edi, eax
mov dword [esp], str.xxxxxxxx.sys
call fcn.00497791
cmp edi, eax
pop ecx
jne 0x4892ca
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4892b5
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x14], 0x3c00
jle 0x4892b5
push str.DeviceGuntior
jmp 0x4892ba
push str.DeviceSixser
lea eax, [esp + 0x1c]
push eax
call fcn.00489300
cmp al, bl
pop ecx
pop ecx
jne 0x4892e6
lea eax, [esp + 0x630]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x489214
jmp 0x4892eb
mov byte [esp + 0xf], 1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489300
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x4893bc
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4893a5
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call fcn.00497791
mov esi, eax
add esi, esi
cmp dword [ebp - 8], ebx
pop ecx
je 0x4893a5
sub edi, esi
cmp edi, ebx
jle 0x48939c
mov eax, dword [ebp - 8]
push esi
push dword [ebp + 0xc]
add eax, ebx
push eax
call fcn.0049b198
add esp, 0xc
test eax, eax
je 0x489398
inc ebx
cmp ebx, edi
jl 0x48937b
jmp 0x48939c
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp dword [ebp - 0xc], 0xffffffff
pop edi
je 0x4893bc
push dword [ebp - 0xc]
call esi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x4893c3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push 0x14
pop ecx
push 0x13
mov esi, str.C:WINDOWS_system32driversp2phook.sys
lea edi, [ebp - 0x27c]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.C:WINDOWS_system32drivers_nthook.sys
lea edi, [ebp - 0x22c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
push 0x13
pop ecx
push 0x14
lea edi, [ebp - 0x1de]
stosw word es:[edi], ax
mov esi, str.C:WINDOWS_system32drivers_nhook.sys
lea edi, [ebp - 0x1dc]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0xe
lea edi, [ebp - 0x190]
stosd dword es:[edi], eax
mov esi, str.C:WINDOWS_system32driverspersist.sys
lea edi, [ebp - 0x18c]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, str.C:WINDOWS_system32uspx.dll
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x102]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x10
pop ecx
xor eax, eax
mov esi, str.C:WINDOWS_system32_safemon.dll
lea edi, [ebp - 0xec]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0xac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xe
pop ecx
mov esi, str.C:WINDOWS_system32ups.dll
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
xor edi, edi
lea esi, [ebp - 0x27c]
push esi
call ebx
test eax, eax
jne 0x4894c3
inc edi
add esi, 0x50
cmp edi, 7
jl 0x489485
push 0x12
pop ecx
mov esi, str.C:WINDOWS_system32drivers_beep.sys
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
movsw word es:[edi], word [esi]
call ebx
test eax, eax
je 0x4894bc
lea eax, [ebp - 0x4c]
push eax
call fcn.004894c7
test al, al
pop ecx
jne 0x4894c3
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x4894be
Function at 0x4894c7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x489590
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x489587
push edi
push 0xc
pop ecx
push ebx
push ebx
push ebx
push 4
mov esi, str.DeviceBeep_DeviceName
lea edi, [ebp - 0x40]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x40]
push eax
call fcn.00497791
mov esi, eax
add esi, esi
cmp edi, ebx
pop ecx
je 0x48957d
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x489576
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebx + edi]
push eax
call fcn.004d2930
add esp, 0xc
test eax, eax
je 0x489572
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x489555
jmp 0x489576
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x489790
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 0xe
pop ecx
mov esi, str.C:WINDOWSconimeSSDT01.SYS
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor bl, bl
stosw word es:[edi], ax
xor edi, edi
lea esi, [ebp - 0x50]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4897e1
inc edi
add esi, 0x50
cmp edi, 1
jl 0x4897bb
call fcn.004897e5
test al, al
je 0x4897da
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x4897dc
Function at 0x4897e5
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [esp + 0x426]
push ebx
push eax
mov byte [esp + 0x1b], bl
mov word [esp + 0x42c], bx
call fcn.00497490
push esi
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00497490
push esi
lea eax, [esp + 0x236]
push ebx
push eax
mov word [esp + 0x23c], bx
call fcn.00497490
push 0x250
lea eax, [esp + 0x650]
push ebx
push eax
call fcn.00497490
add esp, 0x30
mov esi, 0x104
push esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x428]
push eax
call fcn.0049eb27
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
push str..sys
lea eax, [esp + 0x424]
push eax
call edi
lea eax, [esp + 0x628]
push eax
lea eax, [esp + 0x424]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x489912
test byte [esp + 0x628], 0x10
jne 0x4898f1
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call fcn.0049eb27
add esp, 0xc
lea eax, [esp + 0x654]
push eax
lea eax, [esp + 0x21c]
push eax
call edi
lea eax, [esp + 0x218]
push eax
call fcn.0048991d
test al, al
pop ecx
jne 0x489906
lea eax, [esp + 0x628]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4898ad
jmp 0x48990b
mov byte [esp + 0xf], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48991d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10], esi
je 0x4899f2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x3c00
mov dword [ebp - 8], eax
jle 0x489966
push esi
jmp 0x4899ec
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4899e9
push edi
mov esi, str.C:drv.pdb
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push ebx
movsw word es:[edi], word [esi]
push 4
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00499a10
cmp edi, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4899df
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
xor esi, esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x4899d8
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + edi]
push eax
call fcn.0049b198
add esp, 0xc
test eax, eax
je 0x4899d6
inc esi
cmp esi, dword [ebp - 8]
jl 0x4899b7
jmp 0x4899d8
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4899f8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
push edi
push 0x12
pop ecx
mov esi, str.C:Program_FilesAdminMgr_vmqutr.sys
lea edi, [ebp - 0x820]
rep movsd dword es:[edi], dword [esi]
mov ebx, 0x1be
push ebx
lea eax, [ebp - 0x7d6]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00497490
push 0x12
pop ecx
mov esi, str.C:Program_FilesAdminMgr_vmqutr.dll
lea edi, [ebp - 0x618]
rep movsd dword es:[edi], dword [esi]
push ebx
lea eax, [ebp - 0x5ce]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00497490
push 0x13
pop ecx
add ebx, 0xfffffffe
push ebx
lea eax, [ebp - 0x3c4]
push 0
mov esi, str.C:Program_FilesAdminLive_vbcdtr.sys
lea edi, [ebp - 0x410]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00497490
push 0x13
pop ecx
mov esi, str.C:Program_FilesAdminLive_vbcdtr.dll
lea edi, [ebp - 0x208]
rep movsd dword es:[edi], dword [esi]
push ebx
xor edi, edi
lea eax, [ebp - 0x1bc]
push edi
push eax
call fcn.00497490
add esp, 0x30
xor bl, bl
lea esi, [ebp - 0x820]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x489ab1
inc edi
add esi, 0x208
cmp edi, 4
jl 0x489a98
jmp 0x489ab3
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x489d48
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5289f4]
push ebx
push esi
push edi
mov ecx, 0x5289f4
xor ebx, ebx
call dword [eax + 0xc]
add eax, 0x10
push str.SOFTWAREBaiduBaiduSd
lea edi, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], str.BDKVRTP
call fcn.00489dcb
pop ecx
lea edi, [ebp - 4]
call fcn.00402073
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040151c
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], ebx
je 0x489dbc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x489dbc
xor edi, edi
push dword [ebp + edi*4 - 0xc]
call fcn.0048a5bf
test eax, eax
pop ecx
jne 0x489db9
inc edi
cmp edi, 1
jb 0x489da3
jmp 0x489dbc
xor ebx, ebx
inc ebx
lea eax, [esi - 0x10]
call fcn.0040151c
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x48a03f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5289f4]
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
push ebx
push esi
mov esi, 0x5289f4
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x5289f4]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
call fcn.00401b57
lea eax, [ebp - 4]
push eax
call fcn.00442fca
pop ecx
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push str._s.
push eax
call fcn.0041e84b
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x48a1d4
lea eax, [ebp - 0x244]
push 0x4f9af0
push eax
call fcn.004996ee
test eax, eax
pop ecx
pop ecx
je 0x48a1ac
lea eax, [ebp - 0x244]
push 0x4fca44
push eax
call fcn.004996ee
test eax, eax
pop ecx
pop ecx
je 0x48a1ac
test byte [ebp - 0x270], 0x10
je 0x48a146
mov eax, dword [0x5289f4]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x14]
push str._s_s_
push eax
call fcn.0041e84b
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
push edi
call fcn.0048a03f
add esp, 0x18
test eax, eax
jne 0x48a141
cmp dword [ebp + 0xc], eax
je 0x48a208
lea eax, [edi - 0x10]
jmp 0x48a1a7
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.004019c5
lea eax, [ebp - 0xc]
call fcn.0040538f
or dword [ebp - 8], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.0041e789
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x48a186
cmp dword [ebp + 0xc], eax
jne 0x48a186
mov bl, 1
jmp 0x48a188
xor bl, bl
test byte [ebp - 8], 1
je 0x48a19d
mov eax, dword [ebp - 0x20]
and dword [ebp - 8], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040151c
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
test bl, bl
jne 0x48a20b
call fcn.0040151c
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x48a0be
mov dword [ebp - 0x18], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
call esi
lea eax, [ebp - 4]
call fcn.00489f18
mov edi, dword [ebp - 4]
push edi
call esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040151c
lea eax, [edi - 0x10]
call fcn.0040151c
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [edi - 0x10]
call fcn.0040151c
jmp 0x48a1cb