joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449180
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x44919c
cmp dword [esi + 4], 0
je 0x4491c9
test byte [ebx + 0x55], 1
jne 0x4491bb
mov eax, ebx
call fcn.00447d20
test eax, eax
jne 0x4491bb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4492d9
mov edx, esi
mov eax, ebx
call fcn.00448ca4
jmp 0x4492d9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4492d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b098
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004459bc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00449180
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044b098
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4492d9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44fa30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4983d8]
cmp byte [eax + 0xc], 0
je 0x44fb9d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44fb96
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x499b94], 0
jne 0x44fa84
push 0x44fba4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44fbac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499b94], eax
cmp dword [0x493d9c], 0
jne 0x44fb7f
push 0x44fbbc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x493d9c], eax
cmp dword [0x493d9c], 0
je 0x44fb7f
push 0x44fbc8
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499b98], eax
push 0x44fbd8
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499b9c], eax
push 0x44fbec
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499ba0], eax
push 0x44fc04
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499ba4], eax
push 0x44fc1c
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499ba8], eax
push 0x44fc30
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499bac], eax
push 0x44fc48
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499bb0], eax
push 0x44fc60
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499bb4], eax
push 0x44fc7c
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499bb8], eax
push 0x44fc88
mov eax, dword [0x493d9c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x499bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fb9d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x453a44
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004045bc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x453a93
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45b26c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45b2bc]
test si, 4
je 0x45b280
or bl, 1
test si, 8
je 0x45b28a
or bl, 4
test si, 1
je 0x45b294
or bl, 8
test si, 2
je 0x45b29e
or bl, 0x10
test si, 0x10
je 0x45b2a8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b2b7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45b2c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45b2f8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b2d9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45b2e8
or bl, 4
test esi, 0x20000000
je 0x45b2f3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4619bc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4619ce
add esp, 0xfffffff0
call fcn.00403b68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e134
mov eax, dword [0x497ff4]
mov dword [eax + 4], ebx
mov dword [eax], 0x461d60
mov eax, dword [0x498004]
mov dword [eax + 4], ebx
mov dword [eax], 0x461d6c
mov eax, ebx
call fcn.00461d78
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416398]
call fcn.00403800
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416398]
call fcn.00403800
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416398]
call fcn.00403800
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416398]
call fcn.00403800
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416398]
call fcn.00403800
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45e190
push eax
push 0
push 0
mov eax, dword [0x498178]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fc18]
call fcn.004213b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fc18]
call fcn.004213b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fc18]
call fcn.004213b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004621c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462090
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462090
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x462090
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x461b0b
call fcn.00403bc0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x461e74
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46201f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x462000
mov dl, 1
mov eax, dword [0x4167b4]
call fcn.00403800
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045bc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461fef
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044fd90
test al, al
je 0x461fe2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x462030
lea eax, [ebp - 0x254]
call fcn.0040a0c4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x461fe2
xor eax, eax
push ebp
push 0x461fdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x462068
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461fc4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x461fc4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040482c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461fe2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x461ee5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a290
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462026
lea eax, [ebp - 0x260]
call fcn.004045bc
ret

Function at 0x462968
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x499be0]
cmp byte [eax + 0xa5], 0
jne 0x4629d9
cmp dword [0x499bf8], 0
jne 0x46299a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462924
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x499bf8], eax
cmp dword [0x499bf4], 0
jne 0x4629b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x499bf4], eax
cmp dword [0x499bfc], 0
jne 0x4629d9
push esp
push 0
push 0
push 0x4628c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x499bfc], eax
pop edx
ret
Function at 0x46306c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x499be0]
cmp dword [eax + 0x30], 0
je 0x463116
cmp dword [ebx + 0x94], 0
jne 0x463110
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462ffc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x463110
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4630d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x463110
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418700
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4630e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x463c74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x463ca9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004046ac
jmp 0x463cb6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404610
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x464d70
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464db1
mov eax, esi
call fcn.0044b39c
test al, al
je 0x464db1
mov eax, dword [ebx + 0x84]
call fcn.0044b098
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464db1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b098
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4693cc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4693fa
mov eax, ebx
call fcn.00469e80
cmp dword [ebx + 0x40], 0
je 0x4693f3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46946b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46945d
cmp dword [ebx + 8], 0
je 0x46941c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46942e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46945d
cmp dword [ebx + 8], 0
je 0x46940f
cmp eax, 3
je 0x469441
dec eax
jne 0x46940f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46940f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46940f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x469489
cmp dword [ebx + 0x14], 0xcc
je 0x469489
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00469494
pop ebx
ret
Function at 0x47a1b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a6c
xor eax, eax
push ebp
push 0x47a29e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409ad4
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00402c9c
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409ad4
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00403240
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x47a262
mov dword [ebp - 8], 0xffffffff
jmp 0x47a280
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a2a5
lea eax, [ebp - 0xc]
call fcn.004045bc
lea eax, [ebp - 4]
call fcn.004045bc
ret
Function at 0x47a3b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a6c
xor eax, eax
push ebp
push 0x47a581
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0xc]
call fcn.004099fc
mov eax, dword [ebp - 0xc]
call fcn.0040487c
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404c08
mov eax, dword [ebp - 4]
call fcn.00402c2c
call fcn.00402bf0
lea eax, [ebp - 0x14c]
push eax
push 0x47a590
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x47a515
lea eax, [ebp - 8]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040482c
mov eax, dword [ebp - 8]
mov edx, 0x47a59c
call fcn.004049c8
je 0x47a45e
mov eax, dword [ebp - 8]
mov edx, 0x47a5a8
call fcn.004049c8
jne 0x47a46f
test bl, bl
jne 0x47a466
xor eax, eax
jmp 0x47a468
mov al, 1
mov ebx, eax
jmp 0x47a4f2
xor ebx, ebx
cmp dword [ebp - 0x14c], 0x10
jne 0x47a4e2
mov eax, dword [ebp - 4]
call fcn.0040487c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x47a4b4
push dword [ebp - 4]
push 0x47a5b4
push dword [ebp - 8]
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.0040493c
mov eax, dword [ebp - 0x150]
call fcn.0047a3b0
jmp 0x47a4d0
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004048c8
mov eax, dword [ebp - 0x154]
call fcn.0047a3b0
mov eax, dword [ebp - 8]
call fcn.00404a7c
push eax
call sub.kernel32.dll_RemoveDirectoryA
test eax, eax
jmp 0x47a4f2
mov eax, dword [ebp - 8]
call fcn.00404a7c
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
lea eax, [ebp - 0x14c]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x47a42d
push esi
call sub.kernel32.dll_FindClose_1
jmp 0x47a526
mov eax, dword [ebp - 0xc]
call fcn.00402c2c
call fcn.00402bf0
xor ebx, ebx
jmp 0x47a556
test bl, bl
je 0x47a547
mov eax, 0x47a5b8
call fcn.00402c40
call fcn.00402bf0
mov eax, dword [ebp - 4]
call fcn.00404a7c
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [ebp - 0xc]
call fcn.00402c2c
call fcn.00402bf0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a588
lea eax, [ebp - 0x154]
mov edx, 2
call fcn.004045e0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045e0
ret

Function at 0x47a6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a7c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47a6b9
test al, 0x10
jne 0x47a6bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x47d12c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a6c
xor eax, eax
push ebp
push 0x47d18a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.0047d208
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x47d172
lea eax, [ebp - 4]
call fcn.0047d208
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x47d174
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d191
lea eax, [ebp - 4]
call fcn.004045bc
ret

Function at 0x47d198
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a6c
xor eax, eax
push ebp
push 0x47d1fc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.0047d208
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.00409c44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d203
lea eax, [ebp - 4]
call fcn.004045bc
ret

Function at 0x47d7fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a6c
xor eax, eax
push ebp
push 0x47d8f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.0047cec8
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409854
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047e1e8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409738
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047e25c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d8fc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045e0
ret
Function at 0x47d904
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404a6c
xor eax, eax
push ebp
push 0x47da0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.0047cec8
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x47d9d3
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409854
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0047e1e8
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409738
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047e25c
jmp 0x47d9e5
xor edx, edx
mov eax, ebx
call fcn.0047e1e8
xor edx, edx
mov eax, ebx
call fcn.0047e25c
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47da14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004045e0
ret