joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5513ae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00541b1f
xor ebx, ebx
cmp dword [0x68a600], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x551484
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x551564
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x611714
push edi
call esi
cmp eax, ebx
je 0x551564
push eax
call fcn.00541ab1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x68a600], eax
call esi
push eax
call fcn.00541ab1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x68a604], eax
call esi
push eax
call fcn.00541ab1
mov dword [0x68a608], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00540cf1
test eax, eax
pop ecx
pop ecx
je 0x551452
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00536526
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x551484
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00541ab1
cmp eax, ebx
pop ecx
mov dword [0x68a610], eax
je 0x551484
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00541ab1
pop ecx
mov dword [0x68a60c], eax
mov eax, dword [0x68a60c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x551509
cmp dword [0x68a610], ecx
je 0x551509
push eax
call fcn.00541b28
push dword [0x68a610]
mov esi, eax
call fcn.00541b28
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x551509
cmp edi, ebx
je 0x551509
call esi
cmp eax, ebx
je 0x5514d6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5514d6
test byte [ebp - 0x18], 1
jne 0x551509
lea eax, [ebp - 0x10]
push eax
call fcn.00540d28
test eax, eax
pop ecx
je 0x5514f1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00536526
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x551500
or dword [ebp + 0x10], 0x200000
jmp 0x551544
or dword [ebp + 0x10], 0x40000
jmp 0x551544
mov eax, dword [0x68a604]
cmp eax, dword [ebp - 8]
je 0x551544
push eax
call fcn.00541b28
cmp eax, ebx
pop ecx
je 0x551544
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x551544
mov eax, dword [0x68a608]
cmp eax, dword [ebp - 8]
je 0x551544
push eax
call fcn.00541b28
cmp eax, ebx
pop ecx
je 0x551544
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x68a600]
call fcn.00541b28
cmp eax, ebx
pop ecx
je 0x551564
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x551566
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106e8
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00010686
aad 0xa0
in eax, 0x34
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
cmp edi, esi
jl 0x10762
push 0x10882
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
cmp eax, esi
je 0x10759
lea ecx, [ebp - 4]
push ecx
push 1
push dword [eax]
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edi, eax
cmp edi, esi
jl 0x10759
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x4afce4
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 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
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 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
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 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2ae65fa6
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..pdata_1
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x62980b72
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402ece
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063ae
xor ebx, ebx
cmp eax, ebx
jne 0x402fb1
test byte [ebp + 0x10], 2
je 0x402f2f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f96
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f6b
test edi, edi
jne 0x402f96
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ece
test eax, eax
jne 0x402f74
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406935
test eax, eax
jne 0x402fa6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402fb1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402fb1
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032d9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
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 0x4032f9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403308
mov ebx, 0x418ec0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40331d
mov ecx, dword [0x429a78]
add ecx, eax
push ecx
call fcn.004034d4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034be
test eax, eax
je 0x403475
test byte [ebp + 0x17], 0x80
je 0x40345e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce30
mov dword [ebp - 0xc], eax
call fcn.00406a90
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034b4
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40336d
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.004034be
test eax, eax
je 0x403475
sub dword [ebp + 0x14], esi
mov dword [0x40ce48], edi
mov dword [0x40ce4c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce30
mov dword [0x40ce50], ebx
mov dword [0x40ce54], eax
call fcn.00406ab0
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403456
mov esi, dword [0x40ce50]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429ad4], 1
mov edi, eax
je 0x403415
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033dc
cmp dword [ebp + 0x14], 0
jne 0x403415
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 - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.004055c6
mov dword [ebp - 0xc], edi
test esi, esi
je 0x40344a
cmp dword [ebp + 0x10], 0
jne 0x403432
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004060e3
test eax, eax
je 0x40345a
add dword [ebp - 4], esi
jmp 0x40343e
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce50]
cmp dword [ebp - 0x10], 1
jne 0x403390
jmp 0x4034b4
cmp dword [ebp + 0x14], 0
jg 0x403360
jmp 0x4034b4
push 0xfffffffffffffffc
jmp 0x403477
push 0xfffffffffffffffe
jmp 0x403477
test edi, edi
je 0x4034a9
cmp dword [ebp + 0x14], esi
jge 0x40346a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034be
test eax, eax
jne 0x4034b1
push 0xfffffffffffffffd
pop eax
jmp 0x4034b7
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403485
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.004034be
test eax, eax
je 0x403475
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060e3
test eax, eax
je 0x40345a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40347a
jmp 0x4034b4
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b24
Capabilities:
Create process on windows

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

Function at 0x405b67
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040600c
mov edi, eax
cmp edi, 0xffffffff
je 0x405c46
test byte [esp + 0x10], 1
push esi
je 0x405c28
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c2e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c37
xor eax, eax
inc eax
jmp 0x405c48
test byte [esp + 0x10], 4
jne 0x405c46
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c4d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f18
test bl, 8
mov dword [ebp - 8], eax
je 0x405c8c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429aa8], eax
jmp 0x405e09
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ca6
test eax, eax
je 0x405db7
test bl, 2
je 0x405db7
mov esi, 0x424f10
push edi
push esi
call fcn.00406541
cmp dword [ebp + 8], 0
je 0x405cc5
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ccb
push edi
call fcn.00405e5c
cmp word [edi], 0
jne 0x405cdb
cmp word [0x424f10], 0x5c
jne 0x405ce6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dac
cmp word [ebp - 0x22c], 0x2e
jne 0x405d30
cmp word [ebp - 0x22a], 0
je 0x405d8f
cmp word [ebp - 0x22a], 0x2e
jne 0x405d30
cmp word [ebp - 0x228], 0
je 0x405d8f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406541
test byte [ebp - 0x258], 0x10
je 0x405d5b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d8f
push dword [ebp + 0xc]
push edi
call fcn.00405c4d
jmp 0x405d8f
push dword [ebp - 4]
push edi
call fcn.00405c05
test eax, eax
jne 0x405d87
cmp dword [ebp - 4], eax
je 0x405d7f
push edi
push 0xfffffffffffffff1
call fcn.004055c6
push 0
push edi
call fcn.00406301
jmp 0x405d8f
inc dword [0x429aa8]
jmp 0x405d8f
push edi
push 0xfffffffffffffff2
call fcn.004055c6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d08
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405db7
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e09
cmp dword [ebp - 8], esi
jne 0x405dcb
inc dword [0x429aa8]
jmp 0x405e09
push edi
call fcn.0040689e
test eax, eax
je 0x405e09
push edi
call fcn.00405e10
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c05
test eax, eax
jne 0x405e01
cmp dword [ebp - 4], esi
je 0x405dc3
push edi
push 0xfffffffffffffff1
call fcn.004055c6
push esi
push edi
call fcn.00406301
jmp 0x405e09
push edi
push 0xffffffffffffffe5
call fcn.004055c6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f18
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425710
push esi
call fcn.00406541
push esi
call fcn.00405ebb
mov edi, eax
test edi, edi
jne 0x405f39
xor eax, eax
jmp 0x405f91
push edi
call fcn.004067ef
test byte [0x429a38], 0x80
je 0x405f56
mov ax, word [edi]
test ax, ax
je 0x405f35
cmp ax, 0x5c
je 0x405f35
sub edi, esi
sar edi, 1
jmp 0x405f70
call fcn.0040689e
test eax, eax
je 0x405f6a
test byte [eax], 0x10
je 0x405f35
push esi
call fcn.00405e5c
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f5c
call fcn.00405e10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x406031
Capabilities:
Get file attributes

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

Function at 0x406060
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 [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4060b0
test edi, edi
jne 0x40606d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x4060aa
Function at 0x406187
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4265a8], 0x55004e
mov dword [0x4265ac], 0x4c
mov edi, 0x400
mov ebp, 0x4265a8
je 0x4061dd
push 1
push 0
push esi
call fcn.00406031
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062fc
cmp eax, edi
jg 0x4062fc
mov esi, 0x426da8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062fc
cmp eax, edi
jg 0x4062fc
push esi
push ebp
push str._ls_ls_r_n
push 0x4261a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x429a30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040657e
push 4
push 0xc0000000
push esi
call fcn.00406031
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062fc
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 0x4062f5
push edi
push esi
push ebp
call fcn.004060b4
test eax, eax
je 0x4062f5
push str._Rename__r_n
push esi
call fcn.00405f96
test eax, eax
jne 0x406293
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062c8
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f96
mov ebp, eax
test ebp, ebp
je 0x4062c4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062b5
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062af
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062ca
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4261a8
push eax
call fcn.00405fec
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060e3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406301
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406324
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406187
pop ecx
pop ecx
inc dword [0x429ab0]
ret 8
Function at 0x40640f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004063ae
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40647f
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x40647f
cmp dword [ebp + 0xc], 1
je 0x406483
cmp dword [ebp + 0xc], 2
je 0x406483
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068c5
Capabilities:
Get common file path

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

Function at 0x406a22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a59
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 0x406a33
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a8a
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 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a6c
pop edi
not eax
pop esi
ret 0xc
Function at 0x591370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x59138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5ba074
push ecx
mov edi, eax
call fcn.005a5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5913cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005a502e
push esi
call fcn.005a4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x594850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5948ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5bf720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5948ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005a51e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5948ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5bf720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x59492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005a6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x594957
mov word [eax], si
add eax, 2
push eax
call fcn.005a6030
add esp, 4
jmp 0x594959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5948ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5948b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x594ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret