joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451f20
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46bbb0]
cmp dword [eax + 0x30], 0
je 0x451fca
cmp dword [ebx + 0x94], 0
jne 0x451fc4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451eb0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451fc4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451f8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451fc4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413fac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451f99
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452b2c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x452b61
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004045e4
jmp 0x452b6e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404548
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453bd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453c19
mov eax, esi
call fcn.0043a100
test al, al
je 0x453c19
mov eax, dword [ebx + 0x84]
call fcn.00439dfc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453c19
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439dfc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4572e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45730e
mov eax, ebx
call fcn.00457d94
cmp dword [ebx + 0x40], 0
je 0x457307
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45737f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x457371
cmp dword [ebx + 8], 0
je 0x457330
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x457342
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x457371
cmp dword [ebx + 8], 0
je 0x457323
cmp eax, 3
je 0x457355
dec eax
jne 0x457323
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x457323
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x457323
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45739d
cmp dword [ebx + 0x14], 0xcc
je 0x45739d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004573a8
pop ebx
ret
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x447d10]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040591c
cmp eax, ebx
je 0x401533
push ebx
push dword [0x447d10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x447d10], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402d80
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 0x402d9d
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402dac
mov ebx, 0x4188f8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402dc1
mov ecx, dword [0x447c78]
add ecx, eax
push ecx
call fcn.00402d69
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402d37
test eax, eax
jne 0x402dd8
push 0xfffffffffffffffd
pop eax
jmp 0x402f31
test dword [ebp + 0x14], 0x80000000
je 0x402f10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x428900
mov dword [ebp - 0xc], eax
call fcn.004067e6
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x402f2e
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402e18
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x4148f8
push edi
call fcn.00402d37
test eax, eax
je 0x402dd0
sub dword [ebp + 0x14], esi
mov dword [0x428918], edi
mov dword [0x42891c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x428900
mov dword [0x428920], ebx
mov dword [0x428924], eax
call fcn.00406806
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x402f02
mov esi, dword [0x428920]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x447d14], 1
mov edi, eax
je 0x402eb6
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402e83
cmp dword [ebp + 0x14], 0
jne 0x402eb6
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040485c
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402ef7
cmp dword [ebp + 0x10], eax
jne 0x402edf
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 0x402f09
cmp dword [ebp - 0x10], esi
jne 0x402f09
add dword [ebp - 4], esi
jmp 0x402eeb
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x428920]
cmp dword [ebp - 0x14], 1
jne 0x402e37
jmp 0x402f2e
cmp dword [ebp + 0x14], eax
jg 0x402e0b
jmp 0x402f2e
push 0xfffffffffffffffc
jmp 0x402dd2
push 0xfffffffffffffffe
jmp 0x402dd2
test edi, edi
je 0x402f77
cmp dword [ebp + 0x14], esi
jge 0x402f1c
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402d37
test eax, eax
je 0x402dd0
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402f43
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x4148f8
push edi
call fcn.00402d37
test eax, eax
je 0x402dd0
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f09
cmp esi, dword [ebp + 0x10]
jne 0x402f09
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402f38
jmp 0x402f2e
Function at 0x4054a0
Capabilities:
Create process on windows

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

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

Function at 0x40569c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40570f
test edi, edi
jne 0x4056d6
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405709

Function at 0x405713
Capabilities:
Query or enumerate registry value

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43aa40
push esi
call fcn.0040582c
push esi
call fcn.004055ad
mov edi, eax
test edi, edi
jne 0x405d6c
xor eax, eax
jmp 0x405dc4
push edi
call fcn.0040585b
test byte [0x447c88], 0x80
je 0x405d85
mov al, byte [edi]
test al, al
je 0x405d68
cmp al, 0x5c
je 0x405d68
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405da5
push esi
call fcn.004058f5
test eax, eax
je 0x405d9f
test byte [eax], 0x10
je 0x405dc9
push esi
call fcn.00405d24
push esi
call ebx
cmp eax, edi
jg 0x405d90
push esi
call fcn.00405cf7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405dc3
Function at 0x40602b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408708
mov edi, 0x43ca48
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x400
test esi, esi
je 0x40607a
push 1
push 0
push esi
call fcn.0040569c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x4061b3
cmp eax, ebx
jg 0x4061b3
push ebx
mov esi, 0x43f390
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x4061b3
cmp eax, ebx
jg 0x4061b3
push esi
push edi
push str._s_s_r_n
push 0x43cf88
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x447c34]
push dword [eax + 0x128]
push esi
call fcn.00405dcd
push 4
push 0xc0000000
push esi
call fcn.0040569c
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
je 0x4061b3
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 0x4061ac
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4061ac
cmp edi, dword [esp + 0x10]
jne 0x4061ac
push str._Rename__r_n
push esi
call fcn.00405602
test eax, eax
jne 0x406142
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406177
push 0x4086fc
add eax, 0xa
push eax
call fcn.00405602
mov ebp, eax
test ebp, ebp
je 0x406173
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406164
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40615e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x406179
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
push 0x43cf88
add eax, esi
push eax
call fcn.00405658
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4061ec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405d4b
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x406221
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x447ce8], eax
jmp 0x4063b3
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x40623c
test eax, eax
je 0x40635e
test cl, 2
je 0x40635e
push edi
push ebx
mov esi, 0x43d388
push esi
call fcn.0040582c
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40625f
push str..
push esi
call edi
jmp 0x406265
push ebx
call fcn.00405d24
cmp byte [ebx], 0
jne 0x406273
cmp byte [0x43d388], 0x5c
jne 0x40627b
push 0x4082a8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x406353
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405567
cmp byte [eax], 0
je 0x4062be
cmp byte [ebp - 0x18], 0
je 0x4062be
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4062d4
mov al, byte [esi + 1]
test al, al
je 0x406332
cmp al, 0x2e
jne 0x4062d4
cmp byte [esi + 2], 0
je 0x406332
push esi
push edi
call fcn.0040582c
test byte [ebp - 0x148], 0x10
je 0x4062f9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406332
push dword [ebp + 0xc]
push ebx
call fcn.004061ec
jmp 0x406332
push ebx
call fcn.0040567c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40632a
test byte [ebp + 0xc], 4
je 0x406322
push ebx
push 0xfffffffffffffff1
call fcn.0040485c
push 0
push ebx
call fcn.004061b9
jmp 0x406332
inc dword [0x447ce8]
jmp 0x406332
push ebx
push 0xfffffffffffffff2
call fcn.0040485c
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4062a0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40635d
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4063b2
cmp dword [ebp - 8], esi
je 0x4063a2
push ebx
call fcn.004058f5
test eax, eax
je 0x4063b2
push ebx
call fcn.00405cf7
push ebx
call fcn.0040567c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4063aa
test byte [ebp + 0xc], 4
je 0x4063a2
push ebx
push 0xfffffffffffffff1
call fcn.0040485c
push esi
push ebx
call fcn.004061b9
jmp 0x4063b2
inc dword [0x447ce8]
jmp 0x4063b2
push ebx
push 0xffffffffffffffe5
call fcn.0040485c
pop esi
pop ebx
leave
ret 8
Function at 0x406775
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f794], 0
jne 0x4067b3
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406789
mov dword [ecx*4 + 0x43f790], eax
inc ecx
cmp ecx, 0x100
jl 0x406784
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067e0
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f790]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4067c1
not eax
pop ebp
ret 0xc
Function at 0x401b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x42a0d4]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x128]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x1c]
push edi
mov ebx, ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401b80
mov eax, esi
mov edx, esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401b90
lea edi, [esp + 0x20]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401ba2
mov edx, dword [ebx + 0x310]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
neg edx
sbb edx, edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
and edx, 0x100
add edx, 0xf003f
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c55
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x28], al
lea eax, [esp + 0x24]
push eax
push 0
push ebp
push ecx
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401c55
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401c30
sub eax, edx
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00406642
add esp, 0xc
test eax, eax
jne 0x401c55
mov eax, 1
jmp 0x401c57
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405d7a
add esp, 0x114
ret 0x10
Function at 0x401c80
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0x42a0d4]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x130]
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [esp + 0x138]
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], eax
sub edx, ebp
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], esi
mov eax, ebp
xor ebx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x401cc3
cmp esi, ebx
je 0x401d08
mov eax, esi
mov edx, esi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401cd7
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x401cf0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x310]
neg eax
sbb eax, eax
lea ecx, [esp + 0x10]
push ecx
and eax, 0x100
add eax, 0xf003f
push eax
push ebx
lea ecx, [esp + 0x3c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e38
nop
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401e2d
xor edi, edi
cmp dword [esp + 0x1c], ebx
jbe 0x401e2d
mov esi, dword [esp + 0x14]
add esi, 0x104
jmp 0x401d80
mov eax, 0x100
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x34]
push eax
push ebx
lea ecx, [esp + 0x38]
push ecx
push esi
push edi
push edx
mov byte [esi], bl
mov byte [esp + 0x50], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401e2d
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x401dc0
sub eax, edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.00406642
add esp, 0xc
test eax, eax
jne 0x401e20
mov ecx, dword [esp + 0x24]
push esi
push ecx
push ebp
push str.DELETING__s_s__s__n
call fcn.0040669e
mov edx, dword [esp + 0x24]
add esp, 0x10
cmp dword [edx + 0x304], ebx
je 0x401e20
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x401d40
push esi
push str.cant_delete_value__s_n
call fcn.0040669e
add esp, 8
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x401d80
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405d7a
add esp, 0x124
ret 0xc
Function at 0x401e60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42a0d4]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x128]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x130]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x310]
neg ecx
sbb ecx, ecx
lea edx, [esp + 8]
push edx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fa3
push esi
push eax
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
test esi, esi
je 0x401ef4
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401fa0
push ebx
xor ebx, ebx
cmp dword [esp + 0x14], ebx
mov esi, 0xe8
jbe 0x401f94
add edi, 0x104
lea esp, [esp]
mov eax, 0x100
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x28]
push edx
push edi
push ebx
push eax
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x401f94
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401f50
sub eax, edx
push eax
push ebp
push edi
call fcn.00406642
add esp, 0xc
test eax, eax
je 0x401f7a
add ebx, 1
cmp ebx, dword [esp + 0x14]
mov esi, 0xe8
jb 0x401f10
jmp 0x401f94
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401f86
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
pop esi
mov ecx, dword [esp + 0x120]
pop edi
pop ebp
xor ecx, esp
call fcn.00405d7a
add esp, 0x11c
ret 0xc

Function at 0x401fc0
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
push str.DELETING_FILE__s_n
mov edi, ecx
call fcn.0040669e
add esp, 8
cmp dword [edi + 0x304], 0
je 0x402001
push esi
call fcn.004067f2
add esp, 4
test eax, eax
je 0x402001
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.004067f2
add esp, 4
pop edi
xor eax, eax
pop esi
ret 4