joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa70
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x40aa8b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
xor ebp, ebp
xor ebx, ebx
mov edi, dword [eax]
mov dword [esp + 0x10], ebx
mov edx, dword [edi - 8]
add edx, edi
cmp edi, edx
mov dword [esp + 0x14], edx
jae 0x40abb0
xor eax, eax
mov dword [esp + 0x1c], eax
cmp edi, edx
jae 0x40ab61
mov cl, byte [edi]
inc edi
movsx edx, cl
lea esi, [edx - 9]
cmp esi, 0x17
ja case.default.0x40aace
xor ebx, ebx
mov bl, byte [esi + 0x40abc4]
jmp dword [ebx*4 + 0x40abbc]
mov ebx, dword [esp + 0x10]
shl eax, 6
cmp cl, 0x60
jle 0x40aaf1
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffb9
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40ab50
cmp cl, 0x40
jle 0x40ab06
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffbf
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40ab50
cmp cl, 0x3d
jne 0x40ab1b
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jmp 0x40ab50
cmp cl, 0x2f
jle 0x40ab30
mov ecx, dword [esp + 0x1c]
add edx, 4
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40ab50
jne 0x40ab3f
mov ecx, dword [esp + 0x1c]
or al, 0x3f
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40ab50
cmp cl, 0x2b
jne 0x40ab46
or al, 0x3e
inc dword [esp + 0x1c]
jmp 0x40ab50
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, 4
jb 0x40aab0
cmp dword [esp + 0x1c], 4
jne 0x40aa7f
lea ecx, [ebp + 3]
mov esi, ecx
sub esi, ebx
cmp esi, dword [esp + 0x24]
ja 0x40aa7f
cmp ecx, ebp
je 0x40ab9f
dec ecx
test ebx, ebx
je 0x40ab91
mov esi, ebp
sub esi, ebx
add esi, 3
cmp ecx, esi
jae 0x40ab98
mov esi, dword [esp + 0x20]
mov byte [ecx + esi], al
shr eax, 8
cmp ecx, ebp
jne 0x40ab81
mov ecx, 3
sub ecx, ebx
add ebp, ecx
cmp edi, edx
jb 0x40aaaa
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x40e470
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5adfa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x5c
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], esi
mov ebp, 1
call fcn.005958b4
push 0x60b360
lea ecx, [esp + 0x234]
call fcn.00598c3b
lea eax, [esp + 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x230]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov ebx, dword [edx - 8]
cmp ebx, 2
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
jle 0x40e5e2
cmp byte [edx + 1], 0x3a
jne 0x40e54b
test ebx, ebx
jle 0x40e5e4
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40e510
mov edx, dword [esp + 0x230]
test ebp, ebp
je 0x40e5e4
mov al, byte [esi + edx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40e541
cmp esi, 2
je 0x40e541
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40e541
lea edx, [esp + 0x18]
push eax
push edx
call edi
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x40e509
jmp 0x40e5e4
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x238]
call fcn.0059542e
mov eax, dword [eax]
push 0x60ce60
push eax
call fcn.0057d2d3
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0059885f
test bl, bl
je 0x40e5e2
push 2
push 0x60b360
lea ecx, [esp + 0x238]
call fcn.005954d6
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
mov ebx, eax
jle 0x40e5e4
test ebp, ebp
je 0x40e5e4
cmp ebx, 0xffffffff
je 0x40e5e4
mov ecx, dword [esp + 0x230]
mov al, byte [esi + ecx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40e5db
cmp esi, ebx
jle 0x40e5db
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40e5db
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
inc esi
cmp esi, edi
jl 0x40e59f
jmp 0x40e5e4
xor ebp, ebp
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x220]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40f090
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f0df
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
test eax, eax
je 0x40f127
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40f127
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mul dword [esp + 4]
push 0
push ecx
push edx
push eax
call fcn.0057d500
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, 1
add esp, 0x28
ret

Function at 0x40f150
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40f1ae
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mul dword [esp + 8]
push esi
push ecx
push edx
push eax
call fcn.0057d500
mov ecx, dword [esp + 0x1c]
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x40f1d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ae1ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x633828]
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, 0x14
mov eax, esi
mov byte [esp + 0x38], 3
call fcn.0057e3e0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x20]
push 0x60dbf4
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005989e8
and esi, 0xfffff
lea edx, [esp + 0x1c]
lea eax, [esi + esi*4]
shl eax, 1
shr eax, 0x14
push eax
push 0x60dbf4
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.005989e8
lea ecx, [esp + 0x10]
push 0x60ce54
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00598af4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x44], 4
call fcn.00598a8e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 5
call fcn.00598998
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.0059885f
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.0059885f
mov esi, dword [esp + 0x40]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.005985d4
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x38], 2
call fcn.0059885f
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0059885f
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x10]
call fcn.0059885f
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f56a
test al, 0x10
jne 0x40f56a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40fc10
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x5ae2a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x633828]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [ecx], 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 0
mov dword [edx], 0
call fcn.0044cf00
push str.ClassesRoot
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 1
call fcn.0044d1d0
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
lea ecx, [esp + 0x20]
call fcn.0044d200
push 0
push 0
push 0
push 0
push 0x20019
push 0
lea ecx, [esp + 0x34]
call fcn.0044d340
test eax, eax
je 0x40fdd7
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x638420
call fcn.005988cd
push 1
push 1
lea eax, [esp + 0x70]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.0044d700
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
call fcn.00598998
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 1
call fcn.0059885f
lea ecx, [esp + 0x60]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.00598c8f
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00598cde
test edi, edi
je 0x40fda0
push edi
call fcn.0057ca98
mov esi, eax
add esp, 4
test esi, esi
je 0x40fdd7
mov edx, dword [esp + 0x60]
push esi
push edi
push edx
push 1
lea ecx, [esp + 0x20]
call fcn.00598c8f
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00598cde
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x60b360
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
push esi
mov edx, dword [eax + 8]
shr edx, 0x10
mov dword [ecx], edx
mov ecx, dword [esp + 0x60]
xor edx, edx
mov dx, word [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
shr edx, 0x10
xor ecx, ecx
mov dword [ebx], edx
mov cx, word [eax + 0xc]
mov dword [ebp], ecx
call fcn.0057c9af
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.0044e440
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.0059885f
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.0044e440
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fe6c
test al, 0x10
jne 0x40fe6c
mov eax, 1
ret 4
xor eax, eax
ret 4
Function at 0x410d40
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5ae47b
push eax
mov eax, 0x8004
mov dword fs:[0], esp
call fcn.0057d9a0
mov eax, dword [0x633828]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, 1
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x8024]
mov dword [esp + 0x801c], 0
test ebx, ebx
jne 0x410d8d
xor ebp, ebp
jmp 0x410df4
mov ecx, ebx
call fcn.005972e4
mov esi, dword [esi + 4]
lea ecx, [esp + 0x14]
push esi
push 0x7fff
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov edi, eax
cmp edi, 0x7ffd
jne 0x410db6
xor ebp, ebp
jmp 0x410df4
lea ecx, [esp + 0x10]
call fcn.005987ea
xor esi, esi
dec edi
test edi, edi
jle 0x410df4
mov al, byte [esp + esi + 0x14]
test al, al
jne 0x410de5
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.00597491
lea ecx, [esp + 0x10]
call fcn.005987ea
jmp 0x410def
push eax
lea ecx, [esp + 0x14]
call fcn.00598c62
inc esi
cmp esi, edi
jl 0x410dc6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x410e0b
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00597491
lea ecx, [esp + 0x10]
mov dword [esp + 0x801c], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x8014]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8010
ret 4

Function at 0x410edf
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ae4ed
push eax
mov eax, 0x2008
mov dword fs:[0], esp
call fcn.0057d9a0
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x2014], 1
mov eax, dword [0x633828]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 4
call fcn.005987ea
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x2028]
mov eax, dword [esp + 0x2024]
push esi
lea ecx, [esp + 0x10]
push 0x2000
push ecx
mov ecx, dword [esp + 0x202c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
call fcn.005989e8
mov esi, dword [esp + 0x201c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005985d4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 3
call fcn.0059885f
lea ecx, [esp + 0x2020]
mov byte [esp + 0x2014], 2
call fcn.0059885f
lea ecx, [esp + 0x2024]
mov byte [esp + 0x2014], 1
call fcn.0059885f
lea ecx, [esp + 0x2028]
mov byte [esp + 0x2014], 0
call fcn.0059885f
mov ecx, dword [esp + 0x200c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2014
ret 0x10
Function at 0x411040
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x5ae549
push eax
mov eax, 0x8014
mov dword fs:[0], esp
call fcn.0057d9a0
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [0x633828]
xor esi, esi
mov dword [esp + 0x802c], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x8038]
mov byte [esp + 0x802c], 3
cmp ebx, esi
jne 0x4110eb
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.0059885f
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.0059885f
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.0059885f
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.0059885f
xor eax, eax
jmp 0x41121c
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x8034]
push eax
lea eax, [esp + 0x28]
push 0x7fff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, eax
cmp edi, 0x7ffd
je 0x411185
lea ecx, [esp + 0x14]
call fcn.005987ea
dec edi
test edi, edi
jle 0x411181
mov al, byte [esp + esi + 0x24]
test al, al
jne 0x411172
lea ecx, [esp + 0x10]
call fcn.005987ea
lea ecx, [esp + 0x18]
call fcn.005987ea
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005985d4
mov ecx, ebp
call fcn.00411240
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00597491
lea ecx, [esp + 0x14]
call fcn.005987ea
jmp 0x41117c
push eax
lea ecx, [esp + 0x18]
call fcn.00598c62
inc esi
cmp esi, edi
jl 0x41111f
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4111d0
lea ecx, [esp + 0x10]
call fcn.005987ea
lea ecx, [esp + 0x18]
call fcn.005987ea
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005985d4
mov ecx, ebp
call fcn.00411240
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.00597491
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.0059885f
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.0059885f
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.0059885f
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.0059885f
mov eax, esi
mov ecx, dword [esp + 0x8024]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8020
ret 8
Function at 0x411ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae7f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x1c], 0
push str..bak
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 2
call fcn.005988cd
mov eax, dword [0x633828]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x34], 4
call fcn.00598a8e
mov bl, 5
push 0x5c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], bl
xor esi, esi
call fcn.005958b4
push 0x60b360
lea ecx, [esp + 0x3c]
call fcn.00598c3b
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00598a8e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.00598998
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0059885f
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.0057cbd2
add esp, 8
cmp eax, 0xffffffff
je 0x411ffa
cmp esi, 0x7d0
jge 0x411ffa
inc esi
lea edx, [esp + 0x10]
push esi
push str..bak_d
push edx
call fcn.0059584e
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.00598a8e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 7
call fcn.00598998
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0059885f
lea eax, [esp + 8]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00598a8e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 8
call fcn.00598998
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0059885f
mov eax, dword [esp + 0xc]
push 0
push eax
call fcn.0057cbd2
add esp, 8
cmp eax, 0xffffffff
jne 0x411f62
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.005985d4
mov ebx, 1
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 4
call fcn.0059885f
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.0059885f
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0059885f
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.0059885f
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call fcn.0059885f
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x412070
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x2001f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4120f9
lea ecx, [esp + 0xc]
mov dword [esp + 4], eax
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
mov esi, 4
push ecx
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
inc eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push esi
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
lea ecx, [esp + 0x18]
call fcn.0059885f
mov eax, esi
pop esi
add esp, 0x10
ret 4
Function at 0x413750
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5aeba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413911
test al, 6
je 0x4137b9
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4137b9
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005985d4
mov ecx, esi
call fcn.00414030
sub dword [esi + 0x50], eax
jmp 0x413913
mov eax, dword [esp + 0x28]
push 0
push eax
call fcn.0057cbd2
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
jne 0x41385c
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4137fd
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005985d4
mov ecx, esi
call fcn.00414030
sub dword [esi + 0x50], eax
jmp 0x413913
mov eax, dword [esp + 0x28]
push 0x80
push eax
call ebp
test eax, eax
jne 0x41382d
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005985d4
mov ecx, esi
call fcn.00414030
sub dword [esi + 0x50], eax
jmp 0x413911
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41385c
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.005985d4
mov ecx, esi
call fcn.00414030
sub dword [esi + 0x50], eax
jmp 0x413911
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.005985d4
mov ecx, esi
call fcn.00414030
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
mov dword [esi + 0x5c], eax
call fcn.005985d4
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call fcn.005985d4
mov ecx, esi
mov byte [esp + 0x24], 1
call fcn.00413c00
test eax, eax
je 0x413911
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413913
mov ecx, dword [esp + 0x24]
push 0x80
push ecx
call ebp
test eax, eax
je 0x4138f9
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov ecx, esp
jne 0x4138e2
mov dword [esp + 0x14], esp
push str.Failed_to_delete_file_after_copy
jmp 0x413905
lea edx, [esp + 0x28]
mov dword [esp + 0x14], esp
push edx
call fcn.005985d4
mov ecx, esi
call fcn.00414110
jmp 0x413913
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.005988cd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor edi, edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.0059885f
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0059885f
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x14
ret 8