joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5889ac2c
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x5889f687
call fcn.5889ec10
push ecx
push esi
mov esi, ecx
push esi
mov dword [ebp - 0x10], esi
call sub.MFC42u.DLL_AfxVariantInit
and dword [ebp - 4], 0
lea eax, [esi + 0x10]
push eax
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x20]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x30]
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x40]
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x50]
push eax
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x60]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x70]
push eax
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x80]
push eax
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x90]
push eax
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0xa0]
push eax
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0xb0]
push eax
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0xc0]
push eax
mov byte [ebp - 4], 0xb
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0xd0]
push eax
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0xe0]
push eax
mov byte [ebp - 4], 0xd
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0xf0]
push eax
mov byte [ebp - 4], 0xe
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x100]
push eax
mov byte [ebp - 4], 0xf
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x110]
push eax
mov byte [ebp - 4], 0x10
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x120]
push eax
mov byte [ebp - 4], 0x11
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x130]
push eax
mov byte [ebp - 4], 0x12
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x140]
push eax
mov byte [ebp - 4], 0x13
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x150]
push eax
mov byte [ebp - 4], 0x14
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x160]
push eax
mov byte [ebp - 4], 0x15
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x170]
push eax
mov byte [ebp - 4], 0x16
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x180]
push eax
mov byte [ebp - 4], 0x17
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x190]
push eax
mov byte [ebp - 4], 0x18
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x1a0]
push eax
mov byte [ebp - 4], 0x19
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x1b0]
push eax
mov byte [ebp - 4], 0x1a
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x1c0]
push eax
mov byte [ebp - 4], 0x1b
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x1d0]
push eax
mov byte [ebp - 4], 0x1c
call sub.MFC42u.DLL_AfxVariantInit
lea eax, [esi + 0x1e0]
push eax
mov byte [ebp - 4], 0x1d
call sub.MFC42u.DLL_AfxVariantInit
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x43c630
Capabilities:
Create pipe
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x180c
call fcn.0044b9e0
mov eax, dword [0x462e54]
mov ecx, dword [0x4628e0]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x43c765
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x462e54], 0x959
jne 0x43c74e
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1808]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
lea edx, [ebp - 0x408]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0x403690
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0xc08]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
push edx
call fcn.0043c3a0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x43c66e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e4c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45071b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x43aee8
call fcn.0043efcd
push 4
mov dword [ebp - 4], 0
call fcn.004400aa
mov edi, eax
add esp, 4
test edi, edi
je 0x43e533
push ebx
call fcn.0043ec39
mov dword [edi], eax
call fcn.0043ea67
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0043ed89
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43e528
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0043edb1
pop ebx
jmp 0x43e535
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4406b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453444]
jne 0x4406bd
repz ret
jmp fcn.004467cc
Function at 0x44ae3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00443d5e
and dword [ebp - 4], 0
cmp dword [0x459e5c], 0
mov ebx, eax
jne 0x44aeec
push 0x402d74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44af9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402d68
push edi
call esi
test eax, eax
je 0x44af9d
push eax
call fcn.00443cec
mov dword [esp], 0x402d58
push edi
mov dword [0x459e5c], eax
call esi
push eax
call fcn.00443cec
mov dword [esp], 0x402d44
push edi
mov dword [0x459e60], eax
call esi
push eax
call fcn.00443cec
mov dword [esp], 0x402d28
push edi
mov dword [0x459e64], eax
call esi
push eax
call fcn.00443cec
pop ecx
mov dword [0x459e6c], eax
test eax, eax
je 0x44aeec
push 0x402d10
push edi
call esi
push eax
call fcn.00443cec
pop ecx
mov dword [0x459e68], eax
mov eax, dword [0x459e68]
cmp eax, ebx
je 0x44af44
cmp dword [0x459e6c], ebx
je 0x44af44
push eax
call fcn.00443d67
push dword [0x459e6c]
mov esi, eax
call fcn.00443d67
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44af44
test edi, edi
je 0x44af44
call esi
test eax, eax
je 0x44af3b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44af3b
test byte [ebp - 0xc], 1
jne 0x44af44
or dword [ebp + 0x10], 0x200000
jmp 0x44af7d
mov eax, dword [0x459e60]
cmp eax, ebx
je 0x44af7d
push eax
call fcn.00443d67
pop ecx
test eax, eax
je 0x44af7d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44af7d
mov eax, dword [0x459e64]
cmp eax, ebx
je 0x44af7d
push eax
call fcn.00443d67
pop ecx
test eax, eax
je 0x44af7d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459e5c]
call fcn.00443d67
pop ecx
test eax, eax
je 0x44af9d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44af9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x446f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405cff
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x446f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
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 [0x446f30], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x402e5b
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 0x402e78
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e87
mov ebx, 0x417c20
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e9c
mov ecx, dword [0x446ed8]
add ecx, eax
push ecx
call fcn.00403080
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040304e
test eax, eax
je 0x402ff9
test byte [ebp + 0x17], 0x80
je 0x402fe2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x413b90
mov dword [ebp - 0xc], eax
call fcn.00405dd9
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403044
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402eec
mov esi, dword [ebp + 0x14]
mov edi, 0x413c20
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
sub dword [ebp + 0x14], esi
mov dword [0x413ba8], edi
mov dword [0x413bac], esi
mov eax, dword [ebp - 8]
mov ecx, 0x413b90
mov dword [0x413bb0], ebx
mov dword [0x413bb4], eax
call fcn.00405df9
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fda
mov esi, dword [0x413bb0]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x446f34], 1
mov edi, eax
je 0x402f8e
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f5b
cmp dword [ebp + 0x14], 0
jne 0x402f8e
mov eax, dword [ebp + 8]
push 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.00404d7b
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fcf
cmp dword [ebp + 0x10], eax
jne 0x402fb7
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 0x402fde
cmp dword [ebp - 0x10], esi
jne 0x402fde
add dword [ebp - 4], esi
jmp 0x402fc3
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x413bb0]
cmp dword [ebp - 0x14], 1
jne 0x402f0f
jmp 0x403044
cmp dword [ebp + 0x14], eax
jg 0x402edf
jmp 0x403044
push 0xfffffffffffffffc
jmp 0x402ffb
push 0xfffffffffffffffe
jmp 0x402ffb
test edi, edi
je 0x403039
cmp dword [ebp + 0x14], esi
jge 0x402fee
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040304e
test eax, eax
jne 0x403041
push 0xfffffffffffffffd
pop eax
jmp 0x403047
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403009
mov esi, dword [ebp + 0x14]
mov edi, 0x413c20
push esi
push edi
call fcn.0040304e
test eax, eax
je 0x402ff9
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fde
cmp esi, dword [ebp + 0x10]
jne 0x402fde
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ffe
jmp 0x403044
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40523d
Capabilities:
Create process on windows

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

Function at 0x405302
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055b1
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405336
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446f08], eax
jmp 0x4054ca
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405354
test eax, eax
je 0x405475
test byte [ebp + 0xc], 2
je 0x405475
mov esi, 0x439c80
push edi
push esi
call fcn.004059dd
test ebx, ebx
je 0x405371
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405377
push edi
call fcn.00405517
cmp byte [edi], 0
jne 0x405385
cmp byte [0x439c80], 0x5c
jne 0x405390
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40546b
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054fb
cmp byte [eax], 0
je 0x4053d6
cmp byte [ebp - 0x18], 0
je 0x4053d6
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ec
mov al, byte [esi + 1]
test al, al
je 0x40544a
cmp al, 0x2e
jne 0x4053ec
cmp byte [esi + 2], 0
je 0x40544a
push esi
push ebx
call fcn.004059dd
test byte [ebp - 0x148], 0x10
je 0x405411
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40544a
push dword [ebp + 0xc]
push edi
call fcn.00405302
jmp 0x40544a
push edi
call fcn.00405695
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405442
test byte [ebp + 0xc], 4
je 0x40543a
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push 0
push edi
call fcn.0040572b
jmp 0x40544a
inc dword [0x446f08]
jmp 0x40544a
push edi
push 0xfffffffffffffff2
call fcn.00404d7b
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405475
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054ca
cmp dword [ebp - 8], esi
jne 0x40548a
inc dword [0x446f08]
jmp 0x4054ca
push edi
call fcn.00405cd8
test eax, eax
je 0x4054ca
push edi
call fcn.004054d0
push edi
call fcn.00405695
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054c2
test byte [ebp + 0xc], 4
je 0x405482
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push esi
push edi
call fcn.0040572b
jmp 0x4054ca
push edi
push 0xffffffffffffffe5
call fcn.00404d7b
pop edi
pop esi
leave
ret 8
Function at 0x4055b1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bc80
push esi
call fcn.004059dd
push esi
call fcn.00405564
mov edi, eax
test edi, edi
jne 0x4055d2
xor eax, eax
jmp 0x405624
push edi
call fcn.00405c3f
test byte [0x446e98], 0x80
je 0x4055eb
mov al, byte [edi]
test al, al
je 0x4055ce
cmp al, 0x5c
je 0x4055ce
sub edi, esi
jmp 0x405603
call fcn.00405cd8
test eax, eax
je 0x4055fd
test byte [eax], 0x10
je 0x4055ce
push esi
call fcn.00405517
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4055ef
call fcn.004054d0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405695
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 0x4056b1
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056b4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x4056e3
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
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405727
test edi, edi
jne 0x4056ee
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405721
Function at 0x40572b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405cff
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40574f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405888
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43e608], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43e608
je 0x405793
push 1
push 0
push esi
call fcn.004056b4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
mov esi, 0x43e080
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40588e
cmp eax, edi
jg 0x40588e
push esi
push ebp
push str._s_s_r_n
push 0x43dc80
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446e90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004059ff
push 4
push 0xc0000000
push esi
call fcn.004056b4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405888
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 0x405881
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405881
cmp edi, dword [esp + 0x18]
jne 0x405881
push str._Rename__r_n
push esi
call fcn.00405629
test eax, eax
jne 0x405895
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059dd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43dc80
push eax
call fcn.00405675
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
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]
inc dword [0x446f10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405629
test eax, eax
je 0x40584c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058bc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058b1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40584e
Function at 0x4058c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405935
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405924
cmp dword [ebp + 0x14], 1
je 0x405926
cmp dword [ebp + 0x14], 2
je 0x405926
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x43ea08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc
Function at 0x401460
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
test eax, eax
lea ebx, [ecx + eax]
je 0x4014fd
mov edx, ecx
lea eax, [ecx + 1]
xor byte [ecx], 0x42
not edx
add edx, ebx
and edx, 7
cmp eax, ebx
je 0x4014fd
test edx, edx
je 0x4014d7
cmp edx, 1
je 0x4014cd
cmp edx, 2
je 0x4014c7
cmp edx, 3
je 0x4014c1
cmp edx, 4
je 0x4014bb
cmp edx, 5
je 0x4014b5
cmp edx, 6
je 0x4014af
xor byte [eax], 0x42
lea eax, [ecx + 2]
xor byte [eax], 0x42
add eax, 1
xor byte [eax], 0x42
add eax, 1
xor byte [eax], 0x42
add eax, 1
xor byte [eax], 0x42
add eax, 1
xor byte [eax], 0x42
add eax, 1
xor byte [eax], 0x42
add eax, 1
cmp eax, ebx
je 0x4014fd
xor byte [eax], 0x42
xor byte [eax + 1], 0x42
xor byte [eax + 2], 0x42
xor byte [eax + 3], 0x42
xor byte [eax + 4], 0x42
xor byte [eax + 5], 0x42
xor byte [eax + 6], 0x42
xor byte [eax + 7], 0x42
add eax, 8
cmp eax, ebx
jne 0x4014d7
xor eax, eax
pop ebx
ret

Function at 0x401510
Capabilities:
Check for peb beingdebugged flag

Disassembly:
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 2]
mov edx, eax
mov eax, edx
ret