joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404df0
Capabilities:
Persist via run registry key

Disassembly:
mov al, byte [0x42fb58]
sub esp, 0x108
test al, al
push ebp
mov ebp, ecx
je 0x404e49
push 0
push 0x42fb58
call fcn.0040ca30
add esp, 8
test eax, eax
je 0x404e33
push 0x42fb58
push str.DeletedSpud___s_
call fcn.00407160
add esp, 8
mov byte [0x42fb58], 0
jmp 0x405018
push 0
push 0x337
mov ecx, ebp
call fcn.004066e0
pop ebp
add esp, 0x108
ret
push 0x200
push 0x42fc5c
call fcn.00406a50
add esp, 8
test eax, eax
jne 0x404e78
push 0x42fc5c
push 0x32c
mov ecx, ebp
call fcn.004066e0
pop ebp
add esp, 0x108
ret
push 0x200
push 0x42fe5c
call fcn.00406b40
add esp, 8
test eax, eax
jne 0x404ea3
push eax
push 0x32e
mov ecx, ebp
call fcn.004066e0
pop ebp
add esp, 0x108
ret
push 1
mov ecx, ebp
call fcn.00406fb0
test eax, eax
je 0x405036
call fcn.0040a4f0
test eax, eax
push 0
je 0x404ed3
push 0x339
mov ecx, ebp
call fcn.004066e0
pop ebp
add esp, 0x108
ret
push str.Deleting
push str.softwareGator.comTrickler
push reloc.WSOCK32.DLL_bind
call fcn.0040a070
add esp, 0x10
test eax, eax
je 0x404f1b
push str.App_was_already_in_Deleting_mode
mov dword [ebp + 0x14c], 1
call fcn.00407160
add esp, 4
mov ecx, ebp
push 0
push 0x32b
call fcn.004066e0
pop ebp
add esp, 0x108
ret
push edi
call fcn.0040a4a0
push eax
call fcn.0040a700
push 0
push 1
call fcn.0040a5c0
push 0
push str.GetGator
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.DLL_bind
call fcn.0040a110
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x40500e
mov al, byte [edi]
push esi
cmp al, 0x22
mov esi, edi
jne 0x404f76
lea esi, [edi + 1]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov cl, byte [eax + esi - 1]
lea eax, [eax + esi - 1]
cmp cl, 0x22
jne 0x404f76
mov byte [eax], 0
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x42fb58
call esi
lea eax, [esp + 0x10]
push 0x42fb58
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea ecx, [esp + 0x10]
push 0x429c84
push ecx
call esi
lea edx, [esp + 0x10]
push str._remove
push edx
call esi
push 0x42fb58
push str.CSpudDelete___s_
call fcn.00407160
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x20], 0
call fcn.0040d5e0
add esp, 0x14
test eax, eax
pop esi
je 0x404ff0
push 1
push 0x1e
mov ecx, ebp
call fcn.004064e0
mov eax, 0x429578
jmp 0x404ff5
mov eax, str.Failed
mov edx, dword [esp + 8]
push edx
push eax
push str.CSpudDeleteExecRslt:__s__err_d_
call fcn.00407160
push edi
call fcn.0041b272
add esp, 0x10
mov al, byte [0x42fb58]
pop edi
test al, al
jne 0x405036
push 0x42fe5c
push 0x42fc5c
call fcn.00403cb0
add esp, 8
call fcn.00403cd0
mov ecx, ebp
call fcn.00406770
pop ebp
add esp, 0x108
ret
Function at 0x4074e0
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x43006c]
test al, al
jne 0x40751b
push 0x104
push 0x43006c
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x104
push 0x43006c
call fcn.0040ce70
add esp, 8
push str.GatorTrickler.log
push 0x43006c
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x43006c
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40754d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, esi
pop esi
ret

Function at 0x407560
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
test ebx, ebx
je 0x40758b
lea eax, [esp + 0x18]
push 0
push eax
push ebx
call ebp
push eax
push ebx
push esi
call edi
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4075b3
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push 0x429c84
push esi
call edi
lea edx, [esp + 0x18]
push 0
push edx
push ebx
call ebp
push eax
push ebx
push esi
call edi
lea eax, [esp + 0x18]
push 0
push eax
push 2
push 0x42a8b0
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408970
Capabilities:
Copy file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x46e0]
test eax, eax
je 0x4089ee
mov al, byte [edi + 0x26c0]
lea ebx, [edi + 0x26c0]
test al, al
je 0x4089ee
lea ebp, [edi + 0x2ec0]
push ebp
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x4089ee
push ebx
lea esi, [edi + 0x3edc]
call fcn.0040a390
push eax
push 0x400
push esi
call fcn.0040cf70
add esp, 0x10
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x4089ee
push esi
push str.StoredFile
mov ecx, edi
call fcn.00408190
push esi
push str.Stored__s
call fcn.00407160
add esp, 8
mov ecx, edi
call fcn.004180d0
mov ecx, edi
call fcn.00408bb0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x409250
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
test ecx, ecx
jne 0x409260
nop
pop edi
xor eax, eax
pop esi
ret
call fcn.00408650
test eax, eax
jne 0x40926c
pop edi
pop esi
ret
lea edi, [esi + 0x54]
push 0x42ae4c
push 0x104
push edi
call fcn.00409eb0
add esp, 0xc
test eax, eax
jne 0x409289
pop edi
pop esi
ret
mov eax, dword [esi]
push 0
add eax, 0x32c0
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
jne 0x4092a1
pop edi
pop esi
ret
mov ecx, dword [esi]
call fcn.004180d0
pop edi
mov eax, 1
pop esi
ret
Function at 0x4092b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
lea eax, [esp + 0x110]
push edi
push eax
mov dword [esp + 0xc], esi
mov dword [esi + 0x5cc], 0
call fcn.0040a790
mov ecx, dword [esp + 0x118]
push ecx
push str.TI_map_AIC___s_
call fcn.00407160
push 0x8000
call fcn.0041b345
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0xc], edi
je 0x409497
push ebx
push ebp
lea ebp, [esi + 0x54]
push ebp
push 0x8000
push edi
push 0x430d7c
push 0
push 0x42aeb4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov al, byte [edi]
mov ebx, edi
test al, al
je 0x409457
mov eax, dword [esi + 0x5cc]
test eax, eax
jne 0x409457
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
cmp byte [esi + ebx - 1], 0x2a
jne 0x409361
mov eax, dword [esp + 0x11c]
lea edx, [esi - 1]
push edx
push ebx
push eax
call fcn.00423630
add esp, 0xc
jmp 0x409372
mov ecx, dword [esp + 0x11c]
push ebx
push ecx
call fcn.0041bfb0
add esp, 8
test eax, eax
je 0x40937f
lea ebx, [esi + ebx + 1]
jmp 0x409449
test ebx, ebx
mov eax, ebx
jne 0x40938a
mov eax, 0x42fa7c
push eax
push str.TI_map_to___s_
call fcn.00407160
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push ebx
push 0x42aeb4
push ebp
stosb byte es:[edi], al
call fcn.0040a170
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4093e0
push esi
push str.brand_
lea edx, [esp + 0x20]
push 0x42ae94
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
push esi
call fcn.0041b272
add esp, 0x14
mov eax, dword [esp + 0x10]
push 0
push str._defaults
push ebp
lea esi, [eax + 0x158]
mov ecx, esi
call fcn.004015d0
push 0
lea ecx, [esp + 0x1c]
push str.Inherit
push ecx
push ebp
call fcn.0040a170
mov edi, eax
add esp, 0x10
test edi, edi
je 0x409428
push 1
push edi
push ebp
mov ecx, esi
call fcn.004015d0
push edi
call fcn.0041b272
add esp, 4
lea edx, [esp + 0x18]
push 2
push edx
push ebp
mov ecx, esi
call fcn.004015d0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dword [eax + 0x5cc], 1
mov al, byte [ebx]
mov esi, dword [esp + 0x10]
test al, al
jne 0x40932c
mov eax, dword [esi + 0x5cc]
pop ebp
test eax, eax
pop ebx
jne 0x40948c
mov eax, dword [esp + 0x118]
test eax, eax
je 0x40948c
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x11c]
push ecx
push str.AIC__s_
push edx
push eax
call fcn.0041b353
add esp, 0x10
push edi
call fcn.0041b272
add esp, 4
jmp 0x4094c0
mov eax, dword [esp + 0x118]
test eax, eax
je 0x4094c0
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x11c]
push ecx
push str.AIC__s___buf_alloc_err
push edx
push eax
call fcn.0041b353
add esp, 0x10
mov eax, dword [esi + 0x5cc]
test eax, eax
jne 0x4094d7
push str.TI_nomap
call fcn.00407160
add esp, 4
mov eax, dword [esi + 0x5cc]
pop edi
pop esi
add esp, 0x108
ret 0xc
Function at 0x409eb0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x409ee7
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x409ee7
cmp dword [esp + 8], 0x104
jl 0x409ee7
push eax
push 0
push ecx
mov byte [eax], 0
call fcn.0040a340
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
je 0x409ee7
mov eax, 1
ret
xor eax, eax
ret

Function at 0x409ef0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x348
push ebx
push ebp
push esi
push edi
call fcn.0040a340
mov esi, eax
mov eax, dword [esp + 0x35c]
test eax, eax
push esi
je 0x409fcf
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x118]
push eax
call edi
lea ecx, [esp + 0x114]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x114]
push 0x42b1bc
push edx
call ebp
lea eax, [esp + 0x218]
lea ecx, [esp + 0x114]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409fd7
test byte [esp + 0x218], 0x10
jne 0x409faa
lea edx, [esp + 0x10]
push esi
push edx
call edi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x244]
lea edx, [esp + 0x10]
push ecx
push edx
call ebp
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040ca30
add esp, 8
lea ecx, [esp + 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x409f68
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret
call fcn.0040caa0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret

Function at 0x40a170
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
mov edx, dword [esp + 0x414]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x408]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x414]
push 0x400
push ecx
mov ecx, dword [esp + 0x418]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea edx, [esp + 4]
push 0x3b
push edx
call fcn.0041bb90
add esp, 8
test eax, eax
pop edi
je 0x40a1f5
lea ecx, [esp]
cmp eax, ecx
jb 0x40a1f5
mov cl, byte [eax]
cmp cl, 0x3b
je 0x40a1e9
cmp cl, 0x20
je 0x40a1e9
cmp cl, 9
jne 0x40a1f5
mov byte [eax], 0
dec eax
lea edx, [esp]
cmp eax, edx
jae 0x40a1d8
lea eax, [esp]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call fcn.0041b345
mov esi, eax
add esp, 4
test esi, esi
je 0x40a21d
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov eax, esi
pop esi
add esp, 0x400
ret

Function at 0x40a340
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x4311b8]
test al, al
jne 0x40a38a
push 0x4311b8
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push 0x104
push 0x4311b8
call fcn.0040ce70
add esp, 8
push str.fsg_tmp
push 0x4311b8
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push 0
push 0x4311b8
call fcn.0040cbf0
add esp, 8
mov eax, 0x4311b8
ret
Function at 0x40a5c0
Capabilities:
Persist via run registry key

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
xor ebp, ebp
push esi
push edi
test ebx, ebx
jne 0x40a5d5
call fcn.0040a4a0
mov ebx, eax
mov esi, dword [esp + 0x14]
push ebx
push esi
push str.StartWithWindows:__d__s
call fcn.00407160
add esp, 0xc
test esi, esi
push 0
je 0x40a660
push str.DontStartWithWindows
call fcn.00409ff0
add esp, 8
test eax, eax
jne 0x40a64c
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
add eax, 0x32
push eax
call fcn.0041b345
mov esi, eax
add esp, 4
test esi, esi
je 0x40a659
push ebx
push 0x42b2c8
push esi
call dword [sym.imp.USER32.DLL_wsprintfA]
push esi
push str.Trickler
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.DLL_bind
call fcn.0040b170
push esi
mov edi, eax
call fcn.0041b272
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push str._t__Inhibited_by_test_setting
call fcn.00407160
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
push str.Trickler
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.DLL_bind
call fcn.0040a110
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40a6f5
mov al, byte [edi]
mov esi, edi
cmp al, 0x22
jne 0x40a688
lea esi, [edi + 1]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp eax, 1
jle 0x40a6a0
cmp byte [eax + esi - 1], 0x22
jne 0x40a6a0
mov byte [eax + esi - 1], 0
push esi
push ebx
call fcn.0041bfb0
add esp, 8
test eax, eax
jne 0x40a6d7
push str.Trickler
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.DLL_bind
call fcn.0040b2f0
add esp, 0xc
mov ebp, eax
push edi
call fcn.0041b272
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push str.StartWithWindows:_NOT_removing_app_startup:_Different_paths_____s_
call fcn.00407160
add esp, 8
push edi
call fcn.0041b272
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40a7e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x610
push esi
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x620]
push 0x200
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov edx, dword [esp + 0x61c]
lea ecx, [esp + 8]
push ecx
push esi
push edx
lea eax, [esp + 0x214]
push str._s_t_lu_t_s
push eax
call dword [sym.imp.USER32.DLL_wsprintfA]
lea ecx, [esp + 0x21c]
push ecx
push str.OldTrickler
push str.softwareGator.comTrickler
push reloc.WSOCK32.DLL_bind
call fcn.0040b170
add esp, 0x24
pop edi
pop esi
add esp, 0x610
ret
Function at 0x40adb0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [esp + 0x10], ebx
je 0x40adc7
mov dword [esi], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40af53
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40af53
cmp byte [eax], 0
je 0x40af53
cmp esi, ebx
je 0x40af53
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40af53
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ebx
push ecx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
push edi
push edx
call ebx
test eax, eax
jne 0x40af3e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40af3e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
push 0
push edi
push eax
call ebx
test eax, eax
jne 0x40af35
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x40aec0
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
call fcn.0041b345
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
je 0x40af35
mov edx, dword [esp + 0x1c]
xor eax, eax
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov dword [esp + 0x10], 1
jmp 0x40af35
cmp eax, 2
jne 0x40af35
mov ebx, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
push eax
mov eax, dword [esi]
lea edx, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
call ebx
cmp eax, 2
mov dword [esp + 0x1c], eax
jbe 0x40af35
inc eax
push eax
call fcn.0041b345
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
je 0x40af35
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
push eax
push ecx
push ebp
call ebx
cmp eax, dword [esp + 0x1c]
ja 0x40af2d
test eax, eax
mov dword [esp + 0x10], 1
ja 0x40af35
mov dword [esp + 0x10], 0
push ebp
call fcn.0041b272
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40afa0
mov ebx, eax
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40af96
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0041b345
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi], edx
je 0x40af96
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40afb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
cmp ecx, esi
mov dword [edi], eax
je 0x40b02d
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40b02d
cmp byte [eax], 0
je 0x40b02d
lea edx, [esp + 0x1c]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40b02d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
push edi
push ecx
push esi
push edx
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x40b022
cmp dword [esp + 0x18], 4
jne 0x40b022
mov esi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40b040
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp ebx, esi
mov dword [esp + 0xc], ebp
je 0x40b056
mov dword [ebx], esi
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x40b161
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40b161
cmp byte [eax], 0
je 0x40b161
lea edx, [esp + 0x18]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40b161
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edi
mov edi, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
push esi
mov esi, dword [esp + 0x30]
push esi
push edx
call edi
test eax, eax
jne 0x40b14e
mov eax, dword [esp + 0x24]
push eax
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40b14a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push 0
push esi
push eax
call edi
test eax, eax
jne 0x40b141
cmp dword [esp + 0x18], 3
jne 0x40b141
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041b345
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x40b141
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
xor eax, eax
mov esi, ebp
mov dword [edx], ecx
mov edi, dword [ebx]
mov edx, ecx
mov dword [esp + 0x10], 1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x24]
mov edi, dword [ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call fcn.0041b272
add esp, 4
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40b170
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
xor edi, edi
test ecx, ecx
je 0x40b1e7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b1e7
cmp byte [eax], 0
je 0x40b1e7
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40b1e7
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x431e18]
push edx
push 0x20006
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x40b1e7
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
test eax, eax
jne 0x40b1dc
mov edi, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40b1f0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40b25b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b25b
cmp byte [eax], 0
je 0x40b25b
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x431e18]
push edx
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x40b25b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
test eax, eax
jne 0x40b250
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x40b260
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor esi, esi
test ecx, ecx
push edi
je 0x40b2dc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b2dc
cmp byte [eax], 0
je 0x40b2dc
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40b2dc
mov ebx, dword [esp + 0x20]
cmp ebx, 0x3fac
ja 0x40b2dc
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x431e18]
push edx
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyExA]
test eax, eax
jne 0x40b2dc
mov ecx, dword [esp + 0x10]
push ebx
push edi
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
test eax, eax
jne 0x40b2d1
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40b2f0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40b341
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b341
cmp byte [eax], 0
je 0x40b341
lea edx, [esp + 8]
push edx
push 0x20006
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x40b341
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
ret