joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435590
Capabilities:
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x618], eax
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x115]
push 0
push eax
mov byte [esp + 0x11c], 0
call fcn.00446e10
push 0x40f
lea ecx, [esp + 0x225]
push 0
push ecx
mov byte [esp + 0x22c], 0
call fcn.00446e10
mov edx, dword [esp + 0x644]
push 0x47321c
push edx
call fcn.00442f26
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x64c]
add esp, 0x20
lea eax, [esp + 0x110]
push eax
call edi
lea ecx, [esp + 0x110]
mov esi, 0x103
push ecx
sub esi, eax
call edi
lea edi, [esp + eax + 0x110]
test esi, esi
je 0x435651
cmp esi, 0x7fffffff
ja 0x435651
lea edx, [esp + 0x630]
push edx
push ebp
dec esi
push esi
push edi
call fcn.00443456
add esp, 0x10
test eax, eax
jl 0x43564d
cmp eax, esi
ja 0x43564d
jne 0x435651
mov byte [esi + edi], 0
mov ecx, 6
mov esi, str._RAPInstall__install.exe_
lea edi, [esp + 0x214]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x110]
movsw word es:[edi], word [esi]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x435670
lea edi, [esp + 0x214]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x435681
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x103
lea eax, [esp + 0x11]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x18], 0
call fcn.00446e10
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
pop esi
pop ebp
test eax, eax
jne 0x4356de
push 0x104
push str.C:Temp
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp]
push 0x5c
push eax
call fcn.00443381
add esp, 8
test eax, eax
je 0x4356f9
cmp byte [eax + 1], 0
jne 0x4356f9
mov byte [eax], 0
lea eax, [esp]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x435700
mov ecx, dword [str.RsInstall.log]
mov edx, dword [0x4732dc]
mov dword [eax], ecx
mov ecx, dword [0x4732e0]
mov dword [eax + 4], edx
mov dx, word [0x4732e4]
mov dword [eax + 8], ecx
mov cl, byte [0x4732e6]
mov word [eax + 0xc], dx
lea edx, [esp + 0x208]
push edx
mov byte [eax + 0xe], cl
lea eax, [esp + 4]
push eax
push 1
push 0x80
call fcn.00401ad0
mov ecx, dword [esp + 0x628]
add esp, 0x10
xor ecx, esp
call fcn.004426a0
add esp, 0x61c
ret
Function at 0x43b2b0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x43c500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43c569
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x43c568
mov esi, dword [esp + 0xc]
cmp esi, 0x104
ja 0x43c568
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x43c578
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x43c6c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x6c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
call fcn.0043c650
test eax, eax
je 0x43c728
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43c728
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 2
push 0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x43c73d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004426a0
add esp, 0x6c
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
jne 0x43c777
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004426a0
add esp, 0x6c
ret
lea eax, [esp + 0x18]
call fcn.0043b2b0
test esi, esi
jle 0x43c7a6
mov ecx, dword [esp + 0x18]
shr ecx, 3
and ecx, 0x3f
push ecx
lea ecx, [esp + 0x1c]
push esi
push ecx
lea eax, [esi*8]
mov ecx, esi
call fcn.0043b2e0
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0043b390
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push ebx
call esi
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004426a0
add esp, 0x6c
ret
Function at 0x43c870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x324
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x320], eax
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x225]
push 0
push eax
mov byte [esp + 0x22c], 0
call fcn.00446e10
add esp, 0xc
push 0x103
lea ecx, [esp + 0x11d]
push 0
push ecx
mov byte [esp + 0x124], 0
call fcn.00446e10
mov edx, dword [esp + 0x340]
add esp, 0xc
push 0x47321c
push edx
call fcn.00442f26
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x33c]
add esp, 8
lea eax, [esp + 0x220]
push eax
call edi
lea ecx, [esp + 0x220]
mov esi, 0x103
push ecx
sub esi, eax
call edi
lea edi, [esp + eax + 0x220]
test esi, esi
je 0x43c937
cmp esi, 0x7fffffff
ja 0x43c937
lea edx, [esp + 0x338]
push edx
push ebp
dec esi
push esi
push edi
call fcn.00443456
add esp, 0x10
test eax, eax
jl 0x43c933
cmp eax, esi
ja 0x43c933
jne 0x43c937
mov byte [esi + edi], 0
mov eax, dword [str._RsInstall_]
mov edx, dword [0x4774c4]
mov ecx, dword [0x4774c0]
mov dword [esp + 0x118], eax
lea eax, [esp + 0x220]
mov dword [esp + 0x120], edx
mov dword [esp + 0x11c], ecx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c966
lea edi, [esp + 0x118]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x43c977
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x103
lea eax, [esp + 0x15]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov byte [esp + 0x1c], 0
call fcn.00446e10
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x43c9d1
push 0x104
push str.C:Temp
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x10]
push 0x5c
push eax
call fcn.00443381
add esp, 8
test eax, eax
je 0x43c9ed
cmp byte [eax + 1], 0
jne 0x43c9ed
mov byte [eax], 0
lea eax, [esp + 0x10]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c9f2
mov ecx, dword [str.RsInstall.log]
mov edx, dword [0x4732dc]
mov dword [eax], ecx
mov ecx, dword [0x4732e0]
mov dword [eax + 4], edx
mov dx, word [0x4732e4]
mov dword [eax + 8], ecx
mov cl, byte [0x4732e6]
mov word [eax + 0xc], dx
lea edx, [esp + 0x118]
push edx
mov byte [eax + 0xe], cl
lea eax, [esp + 0x14]
push eax
push 1
push 0x80
call fcn.00401ad0
mov ecx, dword [esp + 0x33c]
add esp, 0x10
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004426a0
add esp, 0x324
ret
Function at 0x43cdb0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x46c91d
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CRAPCloudWorker.0
xor ebx, ebx
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], ebx
mov byte [esi + 8], bl
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.0043c470
mov dword [esi + 0x94], 0xf
mov dword [esi + 0x90], ebx
mov byte [esi + 0x80], bl
mov byte [esp + 0x14], 2
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0x9c], eax
mov byte [esp + 0x14], 3
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esi + 0xa0], eax
push ebx
push ebx
push esi
push 0x43ce90
push ebx
mov byte [esp + 0x28], 4
push ebx
mov dword [esi + 0x98], ebx
call fcn.00444702
mov dword [esi + 0xa4], eax
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x43f7c0
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47d630
push 0x446ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x483390]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
cmp dword [ebp + 0x10], ebx
jne 0x43f82c
lea eax, [ebx + 0x57]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [0x5876e8], 1
jne 0x43f85a
or dword [0x5876e8], 1
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5876e4], eax
jmp 0x43f85f
mov eax, dword [0x5876e4]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x43f872
mov dword [ebp - 0x20], 1
jmp 0x43f981
push ebx
push 0x18
lea ecx, [ebp - 0x44]
push ecx
push ebx
mov esi, dword [ebp + 8]
push esi
call eax
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x43f895
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
jmp 0x43f981
push 0x1d8
call fcn.00444537
mov edi, eax
mov dword [ebp - 0x24], edi
push 0x1d8
push ebx
push edi
call fcn.00446e10
add esp, 0x10
cmp edi, ebx
jne 0x43f8c3
mov dword [ebp - 0x20], 0xe
jmp 0x43f981
push ebx
push 0x1d8
push edi
mov edx, dword [ebp - 0x40]
push edx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call ebx
test eax, eax
je 0x43f887
push 0x48
call fcn.00444537
mov esi, eax
push 0x48
push 0
push esi
call fcn.00446e10
add esp, 0x10
push 0
push 0x48
push esi
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call ebx
test eax, eax
je 0x43f887
movzx eax, word [esi + 0x40]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx]
jb 0x43f91b
inc eax
mov dword [ecx], eax
mov dword [ebp - 0x20], 0x7a
jmp 0x43f981
add eax, 2
push eax
call fcn.00444537
mov edi, eax
movzx edx, word [esi + 0x40]
add edx, 2
push edx
push 0
push edi
call fcn.00446e10
add esp, 0x10
test edi, edi
jne 0x43f946
mov dword [ebp - 0x20], 0x8007000e
jmp 0x43f981
push 0
movzx eax, word [esi + 0x40]
push eax
push edi
mov ecx, dword [esi + 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call ebx
test eax, eax
je 0x43f887
movzx eax, word [esi + 0x40]
shr eax, 1
push eax
push edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004460c0
add esp, 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xfffffffe
call fcn.0043f9a2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f9e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x90
lea eax, [esp + 8]
push 0
push eax
call fcn.00446e10
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
neg eax
call fcn.004426a0
add esp, 0x98
ret
Function at 0x4426a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x483390]
jne 0x4426aa
repz ret
jmp fcn.0044a25d

Function at 0x458356
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.0044aab8
and dword [ebp - 4], 0
cmp dword [0x48707c], 0
mov ebx, eax
jne 0x458407
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4584b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4727b8
push edi
call esi
test eax, eax
je 0x4584b8
push eax
call fcn.0044aa46
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48707c], eax
call esi
push eax
call fcn.0044aa46
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x487080], eax
call esi
push eax
call fcn.0044aa46
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x487084], eax
call esi
push eax
call fcn.0044aa46
pop ecx
mov dword [0x48708c], eax
test eax, eax
je 0x458407
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044aa46
pop ecx
mov dword [0x487088], eax
mov eax, dword [0x487088]
cmp eax, ebx
je 0x45845f
cmp dword [0x48708c], ebx
je 0x45845f
push eax
call fcn.0044aac1
push dword [0x48708c]
mov esi, eax
call fcn.0044aac1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45845f
test edi, edi
je 0x45845f
call esi
test eax, eax
je 0x458456
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x458456
test byte [ebp - 0xc], 1
jne 0x45845f
or dword [ebp + 0x10], 0x200000
jmp 0x458498
mov eax, dword [0x487080]
cmp eax, ebx
je 0x458498
push eax
call fcn.0044aac1
pop ecx
test eax, eax
je 0x458498
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x458498
mov eax, dword [0x487084]
cmp eax, ebx
je 0x458498
push eax
call fcn.0044aac1
pop ecx
test eax, eax
je 0x458498
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48707c]
call fcn.0044aac1
pop ecx
test eax, eax
je 0x4584b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4584ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xef51c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x923000]
push edi
or ebp, 0xffffffff
jmp 0xef51e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xef51e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xef51d8
mov eax, 1
add ebx, ebx
jne 0xef51fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xef520c
jne 0xef522b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xef522b
dec eax
add ebx, ebx
jne 0xef5218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xef51f0
add ebx, ebx
jne 0xef5227
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xef527d
xor ecx, ecx
sub eax, 3
jb 0xef5243
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xef52b2
sar eax, 1
mov ebp, eax
jmp 0xef524e
add ebx, ebx
jne 0xef524e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xef521c
inc ecx
add ebx, ebx
jne 0xef525c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xef521c
add ebx, ebx
jne 0xef5269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xef525e
jne 0xef527a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xef525e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xef529c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xef528e
jmp 0xef51de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xef529c
add edi, ecx
jmp 0xef51de
pop esi
mov edi, esi
mov ecx, 0x12962
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xef52ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xef52bf
lea edi, [esi + 0xaf3000]
mov eax, dword [edi]
or eax, eax
je 0xef5330
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xafa0c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xafa104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xef52e5
mov ecx, edi
jns 0xef5314
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xafa108]
or eax, eax
je 0xef532a
mov dword [ebx], eax
add ebx, 4
jmp 0xef5302
call dword [esi + 0xafa110]
mov ebp, dword [esi + 0xafa10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xef5364
sub esp, 0xffffff80
jmp 0x425c28
Function at 0x401523
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00408a45
sub esp, 0x10
test eax, eax
jne 0x40169b
test byte [ebp + 0x10], 2
je 0x4015cd
lea eax, [ebp - 0x228]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x222]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x40163a
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015f5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401523
sub esp, 0xc
test eax, eax
jne 0x401651
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401651
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015db
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x40169b
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00409327
push edx
test eax, eax
jne 0x401683
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
jmp 0x40169b
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4043ef
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4341a0]
cmp dword [ebp + 8], 0
je 0x40441a
test eax, eax
je 0x40440e
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x4341a0], 0
jmp 0x404484
test eax, eax
je 0x40442d
mov dword [esp], 0
call fcn.00409c4a
push edx
jmp 0x404484
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x420140]
jbe 0x404484
mov eax, dword [0x43dda8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x404334
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x4341a0], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
leave
ret
Function at 0x4083ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x45cd40], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x45cd40
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x40846c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x408470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x4086e8
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x408716
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.004086e8
push ecx
cmp eax, 0xffffffff
jne 0x408742
xor edi, edi
jmp 0x40877f
mov dword [esp], ebx
mov esi, eax
test edi, 1
je 0x408777
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x408770
and edi, 4
jne 0x40873e
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x40877f
mov edi, 1
jmp 0x40877f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408755
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x40878b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x4087a6
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc