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

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x466d14
mov eax, edx
pop esi
pop ebx
ret

Function at 0x491930
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49197e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004913f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x491997
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a0d04
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a0d0c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4a0df9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00422c64
mov edx, dword [ebp - 8]
mov ecx, 0x4a0e14
xor eax, eax
call fcn.004a0be8
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4a0dc7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4a0d26
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x3b
call fcn.00426dfc
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00419f38
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.004231e0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x70
call fcn.00426dcc
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x414ecc]
call fcn.0041f384
call fcn.004070f0
jmp 0x4a0d26
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00407dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0e00
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00407a54
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407a54
ret

Function at 0x4a0e28
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.0042004c
cmp eax, 2
jne 0x4a0e90
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a0e4b
xor eax, eax
jmp 0x4a0e9f
lea eax, [esp + 8]
push eax
push 0x4a0ea4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x4a0e90
xor eax, eax
jmp 0x4a0e9f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4a0ecc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4a0f26
inc esi
xor edi, edi
cmp edi, 1
jne 0x4a0ef2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4a0f00
cmp edi, 1
jle 0x4a0f00
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00427040
test eax, eax
jne 0x4a0f26
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4a0f26
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4a0f26
inc edi
dec esi
jne 0x4a0ee2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4a0f30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4a0f54
mov eax, dword [ebp - 4]
jmp 0x4a0f57
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a0f5c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x4a0fa9
xor ebx, ebx
jmp 0x4a0f9e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.004198cc
test eax, eax
jne 0x4a0f9d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x4a1054
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0f7f
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4a0fb5
je 0x4a0fbe
jmp 0x4a0fc7
call fcn.00422f10
mov esi, eax
jmp 0x4a0fc9
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x4a0fc9
xor esi, esi
test si, si
je 0x4a1054
xor ebx, ebx
jmp 0x4a0fef
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4a0fee
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1054
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0fd6
xor ebx, ebx
jmp 0x4a1049
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x4a1048
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x4a103d
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004a0f30
push eax
mov eax, esi
call fcn.004a0f30
pop edx
cmp edx, eax
jne 0x4a1048
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x4a1054
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4a0ffe
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a143c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a1511
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a152c
push ebx
push 0x4a153c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087a4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405864
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084c8
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4a14bc
mov al, 0x72
call fcn.004a1064
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004a1410
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4a14c5
call fcn.004a1410
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1518
lea eax, [ebp - 4]
call fcn.004079f4
ret

Function at 0x4a162c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a16f7
jmp 0x4a16eb
cmp dword [esi + 0x10], 0x1000
jne 0x4a16d7
test byte [esi + 0x15], 1
jne 0x4a16d7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4a1688
cmp ebp, 2
je 0x4a1688
cmp ebp, 0x10
je 0x4a1688
cmp ebp, 0x20
jne 0x4a16a4
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a16a4
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4a16b5
mov eax, dword [esi]
add eax, ebx
call fcn.004a1624
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4a16a8
cmp byte [esp + 4], 0
je 0x4a16d7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4a16f7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4a165d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x433cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
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.004058c9
cmp eax, ebx
je 0x401533
push ebx
push dword [0x433cb0]
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 [0x433cb0], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402d39
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402d56
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402d65
mov ebx, 0x4138e8
mov eax, dword [ebp + 8]
test eax, eax
js 0x402d7a
mov ecx, dword [0x433c18]
add ecx, eax
push ecx
call fcn.00402d22
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402cf0
test eax, eax
jne 0x402d91
push 0xfffffffffffffffd
pop eax
jmp 0x402eea
test dword [ebp + 0x14], 0x80000000
je 0x402ec9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4238f0
mov dword [ebp - 0xc], eax
call fcn.00406819
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x402ee7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402dd1
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40f8e8
push edi
call fcn.00402cf0
test eax, eax
je 0x402d89
sub dword [ebp + 0x14], esi
mov dword [0x423908], edi
mov dword [0x42390c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4238f0
mov dword [0x423910], ebx
mov dword [0x423914], eax
call fcn.00406839
mov dword [ebp - 0x14], eax
test eax, eax
js 0x402ebb
mov esi, dword [0x423910]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x433cb4], 1
mov edi, eax
je 0x402e6f
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402e3c
cmp dword [ebp + 0x14], 0
jne 0x402e6f
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040480f
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402eb0
cmp dword [ebp + 0x10], eax
jne 0x402e98
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ec2
cmp dword [ebp - 0x10], esi
jne 0x402ec2
add dword [ebp - 4], esi
jmp 0x402ea4
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x423910]
cmp dword [ebp - 0x14], 1
jne 0x402df0
jmp 0x402ee7
cmp dword [ebp + 0x14], eax
jg 0x402dc4
jmp 0x402ee7
push 0xfffffffffffffffc
jmp 0x402d8b
push 0xfffffffffffffffe
jmp 0x402d8b
test edi, edi
je 0x402f30
cmp dword [ebp + 0x14], esi
jge 0x402ed5
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402cf0
test eax, eax
je 0x402d89
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402efc
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x40f8e8
push edi
call fcn.00402cf0
test eax, eax
je 0x402d89
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ec2
cmp esi, dword [ebp + 0x10]
jne 0x402ec2
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ef1
jmp 0x402ee7
Function at 0x40544e
Capabilities:
Create process on windows

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

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

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

Function at 0x40564a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405679
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056bd
test edi, edi
jne 0x405684
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056b7

Function at 0x4056c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405732
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x1000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405721
cmp dword [ebp + 0x14], 1
je 0x405723
cmp dword [ebp + 0x14], 2
je 0x405723
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0xfff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d96
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ca10
push esi
call fcn.004057d8
push esi
call fcn.0040555b
mov edi, eax
test edi, edi
jne 0x405db7
xor eax, eax
jmp 0x405e0f
push edi
call fcn.00405807
test byte [0x433c28], 0x80
je 0x405dd0
mov al, byte [edi]
test al, al
je 0x405db3
cmp al, 0x5c
je 0x405db3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405df0
push esi
call fcn.004058a2
test eax, eax
je 0x405dea
test byte [eax], 0x10
je 0x405e14
push esi
call fcn.00405d6f
push esi
call ebx
cmp eax, edi
jg 0x405ddb
push esi
call fcn.00405d42
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405e0e
Function at 0x406070
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408708
mov edi, 0x42da10
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x400
test esi, esi
je 0x4060bf
push 1
push 0
push esi
call fcn.0040564a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x4061fc
cmp eax, ebx
jg 0x4061fc
push ebx
mov esi, 0x42f350
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x4061fc
cmp eax, ebx
jg 0x4061fc
push esi
push edi
push str._s_s_r_n
push 0x42df50
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x433bcc]
push dword [eax + 0x128]
push esi
call fcn.00405e18
push 4
push 0xc0000000
push esi
call fcn.0040564a
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
je 0x4061fc
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 0x4061f5
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4061f5
cmp edi, dword [esp + 0x10]
jne 0x4061f5
push str._Rename__r_n
push esi
call fcn.004055b0
test eax, eax
jne 0x406187
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4061c0
push 0x4086fc
add eax, 0xa
push eax
call fcn.004055b0
mov ebp, eax
test ebp, ebp
je 0x4061bc
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x4061b1
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x4061a7
sub ebp, esi
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x1c]
jmp 0x4061c2
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
push 0x42df50
add eax, esi
push eax
call fcn.00405606
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
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
pop ecx
ret
Function at 0x406235
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405d96
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x40626a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x433c88], eax
jmp 0x4063fb
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406285
test eax, eax
je 0x4063a6
test cl, 2
je 0x4063a6
push edi
push ebx
mov esi, 0x42e350
push esi
call fcn.004057d8
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4062a8
push str..
push esi
call edi
jmp 0x4062ae
push ebx
call fcn.00405d6f
cmp byte [ebx], 0
jne 0x4062bc
cmp byte [0x42e350], 0x5c
jne 0x4062c4
push 0x4082a8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [ebx + eax]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40639b
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405515
cmp byte [eax], 0
je 0x406306
cmp byte [ebp - 0x18], 0
je 0x406306
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40631c
mov al, byte [esi + 1]
test al, al
je 0x40637a
cmp al, 0x2e
jne 0x40631c
cmp byte [esi + 2], 0
je 0x40637a
push esi
push edi
call fcn.004057d8
test byte [ebp - 0x148], 0x10
je 0x406341
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40637a
push dword [ebp + 0xc]
push ebx
call fcn.00406235
jmp 0x40637a
push ebx
call fcn.0040562a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406372
test byte [ebp + 0xc], 4
je 0x40636a
push ebx
push 0xfffffffffffffff1
call fcn.0040480f
push 0
push ebx
call fcn.00406202
jmp 0x40637a
inc dword [0x433c88]
jmp 0x40637a
push ebx
push 0xfffffffffffffff2
call fcn.0040480f
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4062e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4063a5
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4063fa
cmp dword [ebp - 8], esi
je 0x4063ea
push ebx
call fcn.004058a2
test eax, eax
je 0x4063fa
push ebx
call fcn.00405d42
push ebx
call fcn.0040562a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4063f2
test byte [ebp + 0xc], 4
je 0x4063ea
push ebx
push 0xfffffffffffffff1
call fcn.0040480f
push esi
push ebx
call fcn.00406202
jmp 0x4063fa
inc dword [0x433c88]
jmp 0x4063fa
push ebx
push 0xffffffffffffffe5
call fcn.0040480f
pop esi
pop ebx
leave
ret 8
Function at 0x4067a8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42f754], 0
jne 0x4067e6
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 0x4067bc
mov dword [ecx*4 + 0x42f750], eax
inc ecx
cmp ecx, 0x100
jl 0x4067b7
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406813
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 + 0x42f750]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4067f4
not eax
pop ebp
ret 0xc