joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475598
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404abc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x478054
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00477cb8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404abc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4780b2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50f2bc]
mov dl, 1
mov eax, dword [0x477bb0]
call fcn.0040d0b8
call fcn.00404050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4780bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404abc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x478114
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x50f60c]
mov dl, 1
mov eax, dword [0x477bb0]
call fcn.0040d0b8
call fcn.00404050
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00477ce8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47d860
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47d938
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x510c9c], 0
jne 0x47d91c
lea eax, [ebp - 4]
mov edx, 0x47d950
call fcn.004046a4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404abc
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47d91c
mov eax, ebx
call fcn.004027b0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47d915
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x47d8ff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47d960
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47d8ff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x510c9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d91c
mov eax, dword [ebp - 0xc]
call fcn.004027d0
ret
mov ebx, dword [0x510c9c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d93f
lea eax, [ebp - 4]
call fcn.0040460c
ret
Function at 0x4b2f28
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b2f56
mov eax, ebx
call fcn.004b39e0
cmp dword [ebx + 0x3c], 0
je 0x4b2f4f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b2fc7
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4b2fb9
cmp dword [ebx + 8], 0
je 0x4b2f78
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4b2f8a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b2fb9
cmp dword [ebx + 8], 0
je 0x4b2f6b
cmp eax, 3
je 0x4b2f9d
dec eax
jne 0x4b2f6b
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 0x4b2f6b
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4b2f6b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b2fe5
cmp dword [ebx + 0x10], 0xcc
je 0x4b2fe5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b2ff0
pop ebx
ret
Function at 0x4d5b04
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
mov eax, ebx
call fcn.0042e810
call fcn.00429ecc
mov esi, eax
push 0
push 1
push 1
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
call sub.gdi32.dll_CreateBitmap
mov dword [ebp - 0x14], eax
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x18], eax
push esi
call sub.gdi32.dll_GetBkColor
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4d5bc0
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
call fcn.00428628
push eax
push esi
call sub.gdi32.dll_SetBkColor
cmp dword [ebp - 0x1c], 0
sete al
and eax, 0x7f
mov eax, dword [eax*4 + 0x50e02c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
push esi
mov eax, dword [edi + 4]
push eax
mov eax, dword [edi]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0x1c]
add ebx, 4
dec dword [ebp - 0x20]
jne 0x4d5b73
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.gdi32.dll_SetBkColor
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteDC
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0042f55c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4dda08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
add ebx, 0xfffffff0
mov eax, dword [ebp + 8]
mov ax, word [eax - 0xc]
mov edx, dword [ebp + 8]
mov word [edx - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dda36
mov eax, dword [ebp + 8]
add word [eax - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dda4b
mov eax, dword [ebp + 8]
add word [eax - 6], 0x4000
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
test byte [eax + 0xf], 0x20
je 0x4dda60
mov eax, dword [ebp + 8]
add word [eax - 6], 0x8000
cmp dword [ebx], 0
je 0x4dda89
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x2dc]
call fcn.004dd884
pop ecx
test al, al
jne 0x4dda8d
mov eax, dword [ebp + 8]
push eax
call fcn.004dd8d8
pop ecx
test al, al
jne 0x4dda8d
xor eax, eax
jmp 0x4dda8f
mov al, 1
xor esi, esi
jmp 0x4ddaa5
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x30c]
call fcn.004dd884
pop ecx
test al, al
jne 0x4ddac6
cmp dword [ebx], 0
je 0x4ddac6
mov edx, dword [ebx]
cmp dword [edx + 0x30c], 0
je 0x4ddac6
mov edx, dword [ebx]
mov edx, dword [edx + 0x30c]
cmp esi, dword [edx + 8]
jl 0x4dda93
pop esi
pop ebx
pop ebp
ret
Function at 0x4e15e8
Capabilities:
Hide graphical window
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4e15fa
add esp, 0xfffffff0
call fcn.00403be8
mov byte [ebp - 1], dl
mov esi, eax
push 0
xor edx, edx
mov eax, esi
call fcn.00465bf0
xor edx, edx
mov eax, esi
call fcn.0046711c
mov dl, 3
mov eax, esi
call fcn.00467418
mov dword [esi + 0x2f4], 0xffffffff
mov dword [esi + 0x2f8], 0xffffffff
mov byte [esi + 0x30c], 1
mov byte [esi + 0x30d], 1
mov ecx, esi
mov dl, 1
mov eax, dword [0x440c48]
call fcn.00442a98
mov ebx, eax
mov dword [esi + 0x320], ebx
mov eax, ebx
xor edx, edx
call fcn.00442c20
cmp dword [0x50e098], 0x32
jae 0x4e1670
mov dword [0x50e098], 0x32
mov eax, dword [esi + 0x320]
mov edx, dword [0x50e098]
call fcn.00442c30
push esi
push 0x4e2484
mov eax, dword [esi + 0x320]
call fcn.00442c40
mov dl, 1
mov eax, dword [0x427b3c]
call fcn.0042e248
mov ebx, eax
mov dword [esi + 0x2f0], ebx
mov eax, ebx
call fcn.0042e810
mov eax, dword [eax + 0xc]
mov edx, dword [esi + 0x68]
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x84]
push 5
mov eax, esi
call fcn.004536d4
push eax
call sub.user32.dll_ShowWindow
cmp dword [0x50e0b8], 0
jne 0x4e16fc
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4ddc98
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x50e0b8], eax
mov eax, esi
cmp byte [ebp - 1], 0
je 0x4e1713
call fcn.00403c40
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4edbbf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x50ecfe
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4edc17
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x50ed1f
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4edc0d
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4edc1b
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x505510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x505671
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x511048]
mov eax, dword [eax + 0x3f4]
call fcn.004e46dc
test al, al
je 0x50554c
mov esi, 1
jmp 0x50554e
xor esi, esi
mov eax, dword [0x511048]
mov eax, dword [eax + 0x40c]
call fcn.004e46dc
test al, al
je 0x50556b
mov dword [ebp - 0xc], 1
jmp 0x505570
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x511048]
mov eax, dword [eax + 0x41c]
call fcn.004e46dc
test al, al
je 0x50558d
mov dword [ebp - 0x10], 1
jmp 0x505592
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x511048]
mov eax, dword [eax + 0x42c]
call fcn.004e46dc
test al, al
je 0x5055af
mov dword [ebp - 8], 1
jmp 0x5055b4
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402b10
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004095dc
lea eax, [ebp - 0x14]
mov edx, 0x505688
call fcn.004048cc
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x475fc0]
call fcn.00476070
mov ebx, eax
push esi
mov ecx, 0x5056a0
mov edx, 0x5056b0
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x5056c0
mov edx, 0x5056b0
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x5056d4
mov edx, 0x5056b0
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x414]
mov eax, dword [eax + 0x30]
push eax
mov ecx, 0x5056e8
mov edx, 0x5056b0
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x5056fc
mov edx, 0x5056b0
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505678
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404630
ret
Function at 0x405cf5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408880
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408870
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405d46
xor eax, eax
jmp 0x405d73
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405d72
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405d70
xor eax, eax
jmp 0x405d72
call esi
pop esi
leave
ret 4

Function at 0x405d94
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x435210
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x435210], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405dd3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405dd7
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405fa2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405fc2
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405fc8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ff7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40895c]
mov dword [ebp - 8], eax
mov eax, dword [0x408960]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406047
test edi, edi
jne 0x406004
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406041
Function at 0x406201
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call fcn.004061a0
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406272
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
mov word [esi + 0x7fe], ax
pop edi
jne 0x406272
cmp dword [ebp + 0xc], 1
je 0x406277
cmp dword [ebp + 0xc], 2
je 0x406277
xor eax, eax
mov word [esi], ax
pop esi
leave
ret 0x14

Function at 0x40642f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406453
xor eax, eax
test eax, eax
je 0x406466
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406466
xor ecx, ecx
jmp 0x406469
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4082b0]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4065a8
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fa2
mov edi, eax
cmp edi, 0xffffffff
je 0x4065e9
test byte [esp + 0x10], 1
push esi
je 0x4065d2
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4065da
xor eax, eax
inc eax
jmp 0x4065eb
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4065c9
test byte [esp + 0x10], 4
jne 0x4065e9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x435258
push esi
call fcn.00406335
push esi
call fcn.00405ecb
mov edi, eax
test edi, edi
jne 0x4066b4
xor eax, eax
jmp 0x406712
push edi
call fcn.00406357
test byte [0x439da0], 0x80
je 0x4066d1
movzx eax, word [edi]
test ax, ax
je 0x4066b0
cmp ax, 0x5c
je 0x4066b0
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x4066f3
push esi
call fcn.00406408
test eax, eax
je 0x4066ed
test byte [eax], 0x10
je 0x406717
push esi
call fcn.0040661f
push esi
call ebx
cmp eax, edi
jg 0x4066de
push esi
call fcn.004065f0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406711
Function at 0x406990
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x435a58], 0x55004e
mov dword [0x435a5c], 0x4c
mov edi, 0x400
mov ebp, 0x435a58
test esi, esi
je 0x4069e6
push 1
push 0
push esi
call fcn.00405fc8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406b05
cmp eax, edi
jg 0x406b05
push edi
mov esi, 0x4370a8
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406b05
cmp eax, edi
jg 0x406b05
push esi
push ebp
push str._ls_ls_r_n
push 0x4364a8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x439d30]
push dword [eax + 0x128]
push esi
call fcn.0040671b
push 4
push 0xc0000000
push esi
call fcn.00405fc8
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406b05
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406afe
push edi
push esi
push ebp
call fcn.0040604b
test eax, eax
je 0x406afe
push str._Rename__r_n
push esi
call fcn.00405f28
test eax, eax
jne 0x406a9c
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406ad1
push 0x40898c
add eax, 0xa
push eax
call fcn.00405f28
mov ebp, eax
test ebp, ebp
je 0x406acd
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406abe
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406ab8
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406ad3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x4364a8
add eax, esi
push eax
call fcn.00405f7e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040607a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406b0a
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406b2d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406990
pop ecx
pop ecx
inc dword [0x439e10]
ret 8
Function at 0x406b36
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00406693
mov dword [ebp - 8], eax
test bl, 8
je 0x406b74
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x439e08], eax
jmp 0x406cf6
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406b8f
test eax, eax
je 0x406ca2
test bl, 2
je 0x406ca2
push edi
mov esi, 0x4368a8
push esi
call fcn.00406335
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406bb1
push str..
push esi
call ebx
jmp 0x406bb7
push edi
call fcn.0040661f
cmp word [edi], 0
jne 0x406bc7
cmp word [0x4368a8], 0x5c
jne 0x406bcf
push 0x4082b0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c96
cmp word [ebp - 0x22c], 0x2e
jne 0x406c1a
cmp word [ebp - 0x22a], 0
je 0x406c79
cmp word [ebp - 0x22a], 0x2e
jne 0x406c1a
cmp word [ebp - 0x228], 0
je 0x406c79
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406335
test byte [ebp - 0x258], 0x10
je 0x406c45
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406c79
push dword [ebp + 0xc]
push edi
call fcn.00406b36
jmp 0x406c79
push dword [ebp - 4]
push edi
call fcn.004065a8
test eax, eax
jne 0x406c71
cmp dword [ebp - 4], eax
je 0x406c69
push edi
push 0xfffffffffffffff1
call fcn.00405093
push 0
push edi
call fcn.00406b0a
jmp 0x406c79
inc dword [0x439e08]
jmp 0x406c79
push edi
push 0xfffffffffffffff2
call fcn.00405093
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406bf2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406ca2
xor eax, eax
mov word [ebx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406cf5
cmp dword [ebp - 8], esi
je 0x406ce5
push edi
call fcn.00406408
test eax, eax
je 0x406cf5
push edi
call fcn.004065f0
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.004065a8
test eax, eax
jne 0x406ced
cmp dword [ebp - 4], esi
je 0x406ce5
push edi
push 0xfffffffffffffff1
call fcn.00405093
push esi
push edi
call fcn.00406b0a
jmp 0x406cf5
inc dword [0x439e08]
jmp 0x406cf5
push edi
push 0xffffffffffffffe5
call fcn.00405093
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406cfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4378ac], 0
jne 0x406d3a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d10
mov dword [ecx*4 + 0x4378a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406d0b
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d67
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4378a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d48
not eax
pop ebp
ret 0xc

Function at 0x406da5
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret