joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44312b
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
push eax
push edx
lea ecx, [ebp - 0x11c]
call fcn.00431bd0
mov ebx, eax
cmp ebx, esi
je 0x4335e4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x4335dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x11c], esi
mov eax, ebx
jmp 0x4336ca
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x11c]
push esi
push esi
push esi
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x110]
push edx
push esi
push eax
mov dword [ebp - 0x120], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x43366c
jmp 0x433620
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x11c]
call fcn.00433550
mov ebx, eax
cmp ebx, esi
jne 0x4335bf
lea edx, [ebp - 0x12c]
push edx
mov edx, dword [ebp - 0x11c]
push esi
push esi
push esi
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x110]
push ecx
push esi
push edx
mov dword [ebp - 0x120], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x433620
mov eax, dword [ebp - 0x11c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x433685
push eax
call ebx
mov dword [ebp - 0x11c], esi
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x118], esi
push eax
cmp ecx, esi
je 0x4336a3
mov edx, dword [edi]
push edx
call fcn.00431930
jmp 0x4336ac
mov ecx, dword [edi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x4336c8
push eax
call ebx
mov dword [ebp - 0x11c], esi
mov eax, edi
mov dword [ebp - 0x118], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 4
Function at 0x4389a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00427e70
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push ebx
push esi
mov dword [ebp - 8], 0
call edi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x438a6e
push 0xf0
push ebx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x4389f4
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [ebp - 0xc]
push eax
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x438a57
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x438a57
push ebx
push edi
call fcn.00432610
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add esp, 8
push ecx
mov ebx, eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [ebp - 8], eax
test eax, eax
jne 0x438a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x438a60
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x438a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x438a6e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043a1f0

Function at 0x43a470
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444046
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x45c4f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x43a4f0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.00401e00
mov dword [ebp - 4], ebx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 0x150], 0x5c
call fcn.0043a140
push eax
push ebx
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x130]
call fcn.0040a940
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x130]
call fcn.0040a9c0
mov byte [ebp - 4], bl
mov esi, 0x10
cmp dword [ebp - 0x138], esi
jb 0x43a56f
mov edx, dword [ebp - 0x14c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x138], 0xf
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x11c], esi
jae 0x43a599
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0x14]
push eax
push ebx
push edi
push str..StormPlayer.exe
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp byte [ebp + 8], bl
je 0x43a5e5
mov edi, dword [ebp + 0x10]
xor esi, esi
push ebx
push str.Baofeng_StormPlayer
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
jne 0x43a5e0
push 0x32
add esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, edi
jb 0x43a5c1
mov esi, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], esi
jb 0x43a603
mov ecx, dword [ebp - 0x130]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b28c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43b00d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45c9c0], 0
push esi
push edi
jne 0x43af7e
call fcn.0043aed8
test eax, eax
je 0x43afc3
mov eax, dword [0x45c9c0]
cmp eax, 1
jne 0x43af9f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43afc3
jmp 0x43b005
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x43b005
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43afc7
xor eax, eax
jmp 0x43b005
mov eax, dword [esi]
push dword [0x45c9c0]
call edi
mov edi, eax
test edi, edi
je 0x43afe9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x43b005
lea edi, [esi + 0xff0]
push esi
push dword [0x45c9c0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x43afef
mov eax, esi
pop edi
pop esi
ret
jmp 0x43af6a

Function at 0x43b28c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c4f4]
jne 0x43b296
repz ret
jmp fcn.0043b9fa
Function at 0x406029
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c584], esi
push edi
jne 0x406063
mov ecx, 0x42c580
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40603f
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c980
jl 0x40603a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406098
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c580]
xor eax, esi
inc ecx
dec edx
jne 0x40607b
pop edi
pop esi
not eax
ret 0xc

Function at 0x1005ab2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001110
call fcn.01005ca8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1005aed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005aed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005b05
cmp eax, 0x20b
je 0x1005af2
mov dword [ebp - 0x1c], edi
jmp 0x1005b19
cmp dword [ecx + 0x84], 0xe
jbe 0x1005aed
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1005b13
cmp dword [ecx + 0x74], 0xe
jbe 0x1005aed
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007014], 0xffffffff
or dword [0x1007018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100700c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100701c], eax
call fcn.01005ca2
cmp dword [section..data], edi
jne 0x1005b74
push fcn.01005ca2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005c90
push 0x10010e8
push 0x10010e4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1007008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1007004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10010e0
push 0x10010dc
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010058f0
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1005beb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1005c20
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01005ce1
ret
Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x434fd0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402c93
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040660e
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x434fd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
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 [0x434fd0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40319d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031c8
mov ecx, dword [0x434f78]
push esi
add eax, ecx
push esi
push eax
mov dword [0x422a34], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004032a5
cmp eax, esi
jl 0x40329f
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405e8c
test eax, eax
je 0x40328f
push dword [ebp + 8]
add dword [0x422a34], 4
call fcn.004032a5
mov ebx, eax
cmp ebx, esi
jl 0x40329d
cmp dword [ebp + 0x10], esi
jne 0x40326b
cmp dword [ebp + 8], esi
jle 0x40329d
mov esi, 0x41ea30
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40322d
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405e8c
test eax, eax
je 0x40328f
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405ebb
test eax, eax
je 0x403267
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x422a34], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x40321c
jmp 0x40329d
push 0xfffffffffffffffe
jmp 0x403291
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403276
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403294
push 0xfffffffffffffffd
pop eax
jmp 0x40329f
mov ebx, dword [ebp - 4]
add dword [0x422a34], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405862
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4058b3
xor eax, eax
jmp 0x4058da
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058da
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4058af
call esi
pop esi
leave
ret 4

Function at 0x405914
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430290], 0x44
push eax
xor eax, eax
push 0x430290
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 0x405953
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405de4
mov edi, eax
cmp edi, 0xffffffff
je 0x405a1e
test byte [esp + 0x10], 1
push esi
je 0x405a00
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405a06
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405a0f
xor eax, eax
inc eax
jmp 0x405a20
test byte [esp + 0x10], 4
jne 0x405a1e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a25
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.00405cf0
test bl, 8
mov dword [ebp - 8], eax
je 0x405a64
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fa8], eax
jmp 0x405be1
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a7e
test eax, eax
je 0x405b8f
test bl, 2
je 0x405b8f
mov esi, 0x42f290
push edi
push esi
call fcn.00406234
cmp dword [ebp + 8], 0
je 0x405a9d
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405aa3
push edi
call fcn.00405c34
cmp word [edi], 0
jne 0x405ab3
cmp word [0x42f290], 0x5c
jne 0x405abe
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 0x405b84
cmp word [ebp - 0x22c], 0x2e
jne 0x405b08
cmp word [ebp - 0x22a], 0
je 0x405b67
cmp word [ebp - 0x22a], 0x2e
jne 0x405b08
cmp word [ebp - 0x228], 0
je 0x405b67
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406234
test byte [ebp - 0x258], 0x10
je 0x405b33
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b67
push dword [ebp + 0xc]
push edi
call fcn.00405a25
jmp 0x405b67
push dword [ebp - 4]
push edi
call fcn.004059dd
test eax, eax
jne 0x405b5f
cmp dword [ebp - 4], eax
je 0x405b57
push edi
push 0xfffffffffffffff1
call fcn.00405393
push 0
push edi
call fcn.004060d5
jmp 0x405b67
inc dword [0x434fa8]
jmp 0x405b67
push edi
push 0xfffffffffffffff2
call fcn.00405393
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ae0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b8f
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405be1
cmp dword [ebp - 8], esi
jne 0x405ba3
inc dword [0x434fa8]
jmp 0x405be1
push edi
call fcn.00406577
test eax, eax
je 0x405be1
push edi
call fcn.00405be8
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059dd
test eax, eax
jne 0x405bd9
cmp dword [ebp - 4], esi
je 0x405b9b
push edi
push 0xfffffffffffffff1
call fcn.00405393
push esi
push edi
call fcn.004060d5
jmp 0x405be1
push edi
push 0xffffffffffffffe5
call fcn.00405393
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa90
push esi
call fcn.00406234
push esi
call fcn.00405c93
mov edi, eax
test edi, edi
jne 0x405d11
xor eax, eax
jmp 0x405d69
push edi
call fcn.004064c8
test byte [0x434f38], 0x80
je 0x405d2e
mov ax, word [edi]
test ax, ax
je 0x405d0d
cmp ax, 0x5c
je 0x405d0d
sub edi, esi
sar edi, 1
jmp 0x405d48
call fcn.00406577
test eax, eax
je 0x405d42
test byte [eax], 0x10
je 0x405d0d
push esi
call fcn.00405c34
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d34
call fcn.00405be8
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 0x405de4
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 0x405e03
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 0x405e09
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 0x405e38
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 [0x40a580]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a584]
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 0x405e88
test edi, edi
jne 0x405e45
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405e82
Function at 0x405f63
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x430928
push 0x40a5a4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405fb1
push 1
push 0
push esi
call fcn.00405e09
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4060d0
cmp eax, edi
jg 0x4060d0
mov esi, 0x431128
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4060d0
cmp eax, edi
jg 0x4060d0
push esi
push ebx
push str._ls_ls_r_n
push 0x430528
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406256
push 4
push 0xc0000000
push esi
call fcn.00405e09
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060d0
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 0x4060c9
push edi
push esi
push ebp
call fcn.00405e8c
test eax, eax
je 0x4060c9
push str._Rename__r_n
push esi
call fcn.00405d6e
test eax, eax
jne 0x406067
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40609c
add eax, 0xa
push 0x40a588
push eax
call fcn.00405d6e
mov ebp, eax
test ebp, ebp
je 0x406098
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406089
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406083
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40609e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430528
push eax
call fcn.00405dc4
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.00405ebb
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 0x4060d5
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 0x4060f8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f63
pop ecx
pop ecx
inc dword [0x434fb0]
ret 8
Function at 0x406101
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406175
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406162
cmp dword [ebp + 0x14], 1
je 0x406165
cmp dword [ebp + 0x14], 2
je 0x406165
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14