joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x21787919
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..text_1
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x77fb2e56
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401823
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4138ac
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xc
mov eax, dword [0x4ab1c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
mov byte [ebp - 0x15], 0
mov eax, dword fs:[0x30]
mov al, byte [eax + 2]
mov byte [ebp - 0x15], al
movsx eax, byte [ebp - 0x15]
test eax, eax
je 0x401877
mov byte [ebp - 0x16], 1
jmp 0x40187b
mov byte [ebp - 0x16], 0
mov al, byte [ebp - 0x16]
jmp 0x40189d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004090dc
leave
ret
Function at 0x405447
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405466
xor eax, eax
jmp 0x4054e1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40547c
xor eax, eax
jmp 0x4054e1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4054c4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jae 0x4054c4
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jmp 0x40549d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jb 0x4054d0
xor eax, eax
jmp 0x4054e1
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x4054de
xor eax, eax
jmp 0x4054e1
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40da1d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040ac2c
mov dword [ebp - 0x14], eax
cmp dword [0x4ad1f4], edi
jne 0x40db0e
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40da9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40dbee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40dbee
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40dbee
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4ad1f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4ad1f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4ad1fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad204], eax
test eax, eax
je 0x40db0b
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad200], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40db33
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40db26
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40db48
push 4
pop eax
jmp 0x40dbf0
cmp dword [ebp - 0x14], edi
je 0x40db48
push dword [0x4ad1f4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40db2d
mov eax, dword [0x4ad200]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40dba6
cmp dword [0x4ad204], esi
je 0x40dba6
push eax
call ebx
push dword [0x4ad204]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40dba6
test eax, eax
je 0x40dba6
call ecx
test eax, eax
je 0x40db9b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40db9b
test byte [ebp - 8], 1
jne 0x40dba6
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40dbd6
mov eax, dword [0x4ad1f8]
cmp eax, esi
je 0x40dbd3
push eax
call ebx
test eax, eax
je 0x40dbd3
call eax
mov edi, eax
test edi, edi
je 0x40dbd3
mov eax, dword [0x4ad1fc]
cmp eax, esi
je 0x40dbd3
push eax
call ebx
test eax, eax
je 0x40dbd3
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4ad1f4]
call ebx
test eax, eax
je 0x40dbee
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40dbf0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004090dc
leave
ret
Function at 0x40149d
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 [0x474890]
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 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405dad
cmp eax, ebx
je 0x401539
push ebx
push dword [0x474890]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
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 [0x474890], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x402f01
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x474800], eax
cmp esi, ebx
jle 0x40305f
push dword [0x4321cc]
call fcn.00402eea
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402f76
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402eb8
test eax, eax
je 0x403071
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4747bc], ebx
je 0x402fcd
cmp dword [0x474880], ebx
jne 0x402fcd
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e16
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.004069bc
test eax, eax
js 0x403076
mov esi, dword [0x426158]
sub esi, ebp
je 0x40302b
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40307b
cmp esi, dword [esp + 0x10]
jne 0x40307b
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402f9c
jmp 0x403037
cmp dword [0x426154], ebx
jne 0x403076
cmp edi, ebx
je 0x403076
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f60
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e16
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403069
push 0xfffffffffffffffd
pop eax
jmp 0x403069
push 0xfffffffffffffffe
jmp 0x403078
Function at 0x40307f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030a9
add eax, dword [0x4747f8]
push edi
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f01
cmp eax, edi
jl 0x4031a2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x40319e
cmp dword [ebp - 4], esi
jne 0x40319e
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f01
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x4031a1
cmp dword [ebp + 0x10], edi
jne 0x40316d
cmp dword [ebp + 8], edi
jle 0x403199
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40311d
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x40319e
cmp edi, dword [ebp - 4]
jne 0x40319e
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403169
cmp dword [ebp + 0x14], edi
jne 0x403169
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x403110
jmp 0x403199
push 0xfffffffffffffffe
jmp 0x4031a0
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403178
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x40319e
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031a1
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x4058de
Capabilities:
Create process on windows

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

Function at 0x405acf
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 0x405aec
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405aef
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
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 0x405b1e
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 [0x408934]
mov dword [ebp - 8], eax
mov eax, dword [0x408938]
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 0x405b6e
test edi, edi
jne 0x405b2b
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405b68

Function at 0x405b72
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 0x405beb
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 0x405bd4
cmp dword [ebp + 0x14], 1
je 0x405bd9
cmp dword [ebp + 0x14], 2
je 0x405bd9
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 0x40622f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a4b8
push esi
call fcn.00405ca8
push esi
call fcn.004059f8
mov edi, eax
test edi, edi
jne 0x406250
xor eax, eax
jmp 0x4062ad
push edi
call fcn.00405cd7
test byte [0x474808], 0x80
je 0x40626c
movzx eax, word [edi]
test ax, ax
je 0x40624c
cmp eax, 0x5c
je 0x40624c
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40628e
push esi
call fcn.00405d86
test eax, eax
je 0x406288
test byte [eax], 0x10
je 0x4062b2
push esi
call fcn.00406202
push esi
call ebx
cmp eax, edi
jg 0x406279
push esi
call fcn.004061d3
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 0x4062ac
Function at 0x40654a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408a1c
mov ebx, 0x45e4c0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406598
push 1
push ebp
push edi
call fcn.00405aef
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 0x406713
cmp eax, esi
jg 0x406713
push esi
mov edi, 0x463b18
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406713
cmp eax, esi
jg 0x406713
push ebp
push ebp
push esi
push 0x45ecc0
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406713
push ebp
push ebp
push esi
mov esi, 0x45f310
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406713
push esi
push 0x45ecc0
push str._s_s_r_n
push 0x45f710
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4747bc]
push dword [eax + 0x128]
push edi
call fcn.004062b6
push 4
push 0xc0000000
push edi
call fcn.00405aef
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406713
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 0x406709
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 0x406709
cmp edi, dword [esp + 0x10]
jne 0x406709
push str._Rename__r_n
push esi
call fcn.00405a55
cmp eax, ebp
jne 0x40669c
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4066d1
push 0x408a10
add eax, 0xa
push eax
call fcn.00405a55
mov ebp, eax
test ebp, ebp
je 0x4066cf
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x4066c6
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x4066bc
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x4066d3
xor ebp, ebp
mov eax, edi
push ebx
push 0x45f710
add eax, esi
push eax
call fcn.00405aab
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 0x40674c
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.0040622f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406781
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x474868], eax
jmp 0x406926
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x40679c
test eax, eax
je 0x4068d1
test cl, 2
je 0x4068d1
push edi
push ebx
mov esi, 0x45fb10
push esi
call fcn.00405ca8
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067bf
push str..
push esi
call edi
jmp 0x4067c5
push ebx
call fcn.00406202
cmp word [ebx], 0
jne 0x4067d5
cmp word [0x45fb10], 0x5c
jne 0x4067dd
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 0x4068c0
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.004059a5
xor edi, edi
cmp word [eax], di
je 0x406824
cmp word [ebp - 0x28], di
je 0x406824
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x40683e
movzx eax, word [esi + 2]
cmp ax, di
je 0x40689d
cmp eax, 0x2e
jne 0x40683e
cmp word [esi + 4], di
je 0x40689d
push esi
push dword [ebp - 4]
call fcn.00405ca8
test byte [ebp - 0x25c], 0x10
je 0x406865
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40689d
push dword [ebp + 0xc]
push ebx
call fcn.0040674c
jmp 0x40689d
push ebx
call fcn.00405acf
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406895
test byte [ebp + 0xc], 4
je 0x40688d
push ebx
push 0xfffffffffffffff1
call fcn.00404c65
push edi
push ebx
call fcn.00406719
jmp 0x40689d
inc dword [0x474868]
jmp 0x40689d
push ebx
push 0xfffffffffffffff2
call fcn.00404c65
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406804
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4068c2
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4068d1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406925
cmp dword [ebp - 0xc], esi
je 0x406915
push ebx
call fcn.00405d86
test eax, eax
je 0x406925
push ebx
call fcn.004061d3
push ebx
call fcn.00405acf
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40691d
test byte [ebp + 0xc], 4
je 0x406915
push ebx
push 0xfffffffffffffff1
call fcn.00404c65
push esi
push ebx
call fcn.00406719
jmp 0x406925
inc dword [0x474868]
jmp 0x406925
push ebx
push 0xffffffffffffffe5
call fcn.00404c65
pop esi
pop ebx
leave
ret 8
Function at 0x40692b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46431c], 0
jne 0x406969
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 0x40693f
mov dword [ecx*4 + 0x464318], eax
inc ecx
cmp ecx, 0x100
jl 0x40693a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406996
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 + 0x464318]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406977
not eax
pop ebp
ret 0xc
Function at 0x12a18c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x12a19c1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x12a19c1
push ebx
call fcn.012a8900
add esp, 4
test eax, eax
je 0x12a191a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x12a1921
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x12a1900
jmp 0x12a1923
mov esi, 0x1505
jmp 0x12a1923
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x12a19c1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x12a1954
inc ebp
dec ebx
je 0x12a19bf
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x12a19bf
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x12a1950
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.012a8900
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x12a1950
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.012a8930
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x12a1950
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x12a19bf
cmp dword [eax + 4], 2
mov edi, 0
jne 0x12a19c1
mov edi, dword [eax + 8]
jmp 0x12a19c1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret