joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e804
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e83c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e81d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e82c
or bl, 4
test esi, 0x20000000
je 0x44e837
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454e58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454e6a
add esp, 0xfffffff0
call fcn.004039e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420948
mov eax, dword [0x6aba18]
mov dword [eax + 4], ebx
mov dword [eax], 0x4551fc
mov eax, dword [0x6aba24]
mov dword [eax + 4], ebx
mov dword [eax], 0x455208
mov eax, ebx
call fcn.00455214
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
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, 0x4516dc
push eax
push 0
push 0
mov eax, dword [0x6abb40]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422308]
call fcn.00423a1c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422308]
call fcn.00423a1c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422308]
call fcn.00423a1c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455634
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455510
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455510
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455510
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454fa7
call fcn.00403a3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4552f4
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 0x45549f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455480
mov dl, 1
mov eax, dword [0x416df8]
call fcn.00403650
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043ec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45546f
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.00442da4
test al, al
je 0x455462
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, 0x4554b0
lea eax, [ebp - 0x254]
call fcn.004091a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455462
xor eax, eax
push ebp
push 0x45545b
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 0x4554e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455444
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
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 0x455444
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455462
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455365
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041af54
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 0x4554a6
lea eax, [ebp - 0x260]
call fcn.004043ec
ret

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

Disassembly:
push ecx
mov eax, dword [0x6acc28]
cmp byte [eax + 0xa5], 0
jne 0x455e45
cmp dword [0x6acc40], 0
jne 0x455e06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455d90
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x6acc40], eax
cmp dword [0x6acc3c], 0
jne 0x455e21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x6acc3c], eax
cmp dword [0x6acc44], 0
jne 0x455e45
push esp
push 0
push 0
push 0x455d34
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x6acc44], eax
pop edx
ret
Function at 0x455f3c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455f53
add esp, 0xfffffff0
call fcn.004039e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420948
mov eax, dword [0x6abb30]
cmp word [eax + 2], 0
jne 0x455f7b
mov eax, dword [0x6abb30]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457600
mov eax, dword [0x6abbc4]
cmp word [eax + 2], 0
jne 0x455f95
mov eax, dword [0x6abbc4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004577f8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416908]
call fcn.00403650
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422d88]
call fcn.0042a108
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45611c
mov eax, dword [0x6aba70]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a4d8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x457d78
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6aba70]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b4d4
test eax, eax
je 0x45608a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b4fc
test eax, eax
je 0x45609e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404654
mov eax, dword [0x6ab97c]
cmp byte [eax], 0
jne 0x4560d2
mov eax, ebx
call fcn.00456244
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457f54
mov eax, ebx
call fcn.00458904
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456112
call fcn.00403a3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4564b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x6acc28]
cmp dword [eax + 0x30], 0
je 0x456562
cmp dword [ebx + 0x94], 0
jne 0x45655c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456448
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45655c
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 0x456522
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45655c
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.00418fa8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456531
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457040
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 0x457075
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.004044dc
jmp 0x457082
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404440
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458130
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458171
mov eax, esi
call fcn.0043e524
test al, al
je 0x458171
mov eax, dword [ebx + 0x84]
call fcn.0043e220
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458171
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e220
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45d108
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45d1fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4170e8]
call fcn.00403650
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d1d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2f4]
xor edx, edx
call fcn.00430210
lea eax, [ebp - 0xc]
mov ecx, 0x45d210
mov edx, dword [0x6adcf8]
call fcn.004046f0
push ebp
call fcn.0045d018
pop ecx
mov eax, dword [ebp - 4]
call fcn.0041b038
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
call fcn.0045cf18
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2f0]
mov edx, 0x45d224
call fcn.00437bcc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2f0]
mov edx, dword [eax]
call dword [edx + 0x80]
push 8
mov eax, dword [ebp - 0xc]
call fcn.0040489c
push eax
call sub.kernel32.dll_WinExec
push 0x3e8
call sub.kernel32.dll_Sleep_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d1de
mov eax, dword [ebp - 4]
call fcn.00403680
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408e84
nop
mov ecx, 0x6a6f6aa9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x306e787c
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x7eeeb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ba9
cmp eax, ebx
je 0x401533
push ebx
push dword [0x7eeeb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7eeeb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x4056d6
Capabilities:
Create process on windows

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

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

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

Function at 0x4058e8
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 0x405917
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 [0x4088c4]
mov dword [ebp - 8], eax
mov eax, dword [0x4088c8]
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 0x405967
test edi, edi
jne 0x405924
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405961

Function at 0x40596b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
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 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059e4
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059cd
cmp dword [ebp + 0x14], 1
je 0x4059d2
cmp dword [ebp + 0x14], 2
je 0x4059d2
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40602c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7d4ad8
push esi
call fcn.00405aa2
push esi
call fcn.004057f1
mov edi, eax
test edi, edi
jne 0x40604d
xor eax, eax
jmp 0x4060ab
push edi
call fcn.00405ad1
test byte [0x7eee28], 0x80
je 0x40606a
movzx eax, word [edi]
test ax, ax
je 0x406049
cmp ax, 0x5c
je 0x406049
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40608c
push esi
call fcn.00405b82
test eax, eax
je 0x406086
test byte [eax], 0x10
je 0x4060b0
push esi
call fcn.00405fff
push esi
call ebx
cmp eax, edi
jg 0x406077
push esi
call fcn.00405fd0
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 0x4060aa
Function at 0x406345
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089ac
mov ebx, 0x7d8ae0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406393
push 1
push ebp
push edi
call fcn.004058e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40650a
cmp eax, esi
jg 0x40650a
push esi
mov edi, 0x7de138
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40650a
cmp eax, esi
jg 0x40650a
push ebp
push ebp
push esi
push 0x7d92e0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40650a
push ebp
push ebp
push esi
mov esi, 0x7d9930
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40650a
push esi
push 0x7d92e0
push str._s_s_r_n
push 0x7d9d30
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x7eeddc]
push dword [eax + 0x128]
push edi
call fcn.004060b4
push 4
push 0xc0000000
push edi
call fcn.004058e8
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40650a
push ebp
push eax
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
cmp esi, ebp
je 0x406500
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406500
cmp edi, dword [esp + 0x10]
jne 0x406500
push str._Rename__r_n
push esi
call fcn.0040584e
cmp eax, ebp
jne 0x406497
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4064c8
push 0x4089a0
add eax, 0xa
push eax
call fcn.0040584e
mov ebp, eax
test ebp, ebp
je 0x4064c6
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4064b9
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4064b3
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4064ca
xor ebp, ebp
mov eax, edi
push ebx
push 0x7d9d30
add eax, esi
push eax
call fcn.004058a4
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406543
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040602c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406578
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7eee88], eax
jmp 0x40671e
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406593
test eax, eax
je 0x4066c9
test cl, 2
je 0x4066c9
push edi
push ebx
mov esi, 0x7da130
push esi
call fcn.00405aa2
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4065b6
push str..
push esi
call edi
jmp 0x4065bc
push ebx
call fcn.00405fff
cmp word [ebx], 0
jne 0x4065cc
cmp word [0x7da130], 0x5c
jne 0x4065d4
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4066b8
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.0040579d
xor edi, edi
cmp word [eax], di
je 0x40661b
cmp word [ebp - 0x28], di
je 0x40661b
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406636
movzx eax, word [esi + 2]
cmp ax, di
je 0x406695
cmp ax, 0x2e
jne 0x406636
cmp word [esi + 4], di
je 0x406695
push esi
push dword [ebp - 4]
call fcn.00405aa2
test byte [ebp - 0x25c], 0x10
je 0x40665d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406695
push dword [ebp + 0xc]
push ebx
call fcn.00406543
jmp 0x406695
push ebx
call fcn.004058c8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40668d
test byte [ebp + 0xc], 4
je 0x406685
push ebx
push 0xfffffffffffffff1
call fcn.00404a5d
push edi
push ebx
call fcn.00406510
jmp 0x406695
inc dword [0x7eee88]
jmp 0x406695
push ebx
push 0xfffffffffffffff2
call fcn.00404a5d
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4065fb
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4066ba
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4066c9
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40671d
cmp dword [ebp - 0xc], esi
je 0x40670d
push ebx
call fcn.00405b82
test eax, eax
je 0x40671d
push ebx
call fcn.00405fd0
push ebx
call fcn.004058c8
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406715
test byte [ebp + 0xc], 4
je 0x40670d
push ebx
push 0xfffffffffffffff1
call fcn.00404a5d
push esi
push ebx
call fcn.00406510
jmp 0x40671d
inc dword [0x7eee88]
jmp 0x40671d
push ebx
push 0xffffffffffffffe5
call fcn.00404a5d
pop esi
pop ebx
leave
ret 8
Function at 0x406723
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x7de93c], 0
jne 0x406761
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 0x406737
mov dword [ecx*4 + 0x7de938], eax
inc ecx
cmp ecx, 0x100
jl 0x406732
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40678e
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 + 0x7de938]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40676f
not eax
pop ebp
ret 0xc
Function at 0x491e9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491ecc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x491eea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491e04
jmp 0x491eea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491eea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491e04
test edi, edi
mov eax, edi
jne 0x491ed4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x416900
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0041698f
jae 0x41690e
xor ecx, ecx
call fcn.0041698f
jae 0x41693d
xor eax, eax
call fcn.0041698f
jae 0x41694d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0041698f
adc al, al
jae 0x41692f
jne 0x416979
stosb byte es:[edi], al
jmp 0x416911
call fcn.0041699b
sub ecx, ebx
jne 0x416956
call fcn.00416999
jmp 0x416975
lodsb al, byte [esi]
shr eax, 1
je 0x416983
adc ecx, ecx
jmp 0x416972
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00416999
cmp eax, 0x7d00
jae 0x416972
cmp ah, 5
jae 0x416973
cmp eax, 0x7f
ja 0x416974
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416911
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8