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

Disassembly:
mov al, byte [0x432068]
test al, al
jne 0x406edb
push 0x104
push 0x432068
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
push 0x432068
call fcn.0040c710
add esp, 8
push str.GatorTrickler.log
push 0x432068
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x432068
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406f0d
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, esi
pop esi
ret

Function at 0x406f20
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 0x406f4b
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 0x406f73
lea ecx, [esp + 0x18]
push 0
push ecx
push 1
push 0x429bb4
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 0x42a7e0
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408330
Capabilities:
Copy file

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x46e0]
test eax, eax
je 0x4083ae
mov al, byte [edi + 0x26c0]
lea ebx, [edi + 0x26c0]
test al, al
je 0x4083ae
lea ebp, [edi + 0x2ec0]
push ebp
call fcn.0040c2a0
add esp, 4
test eax, eax
je 0x4083ae
push ebx
lea esi, [edi + 0x3edc]
call fcn.00409f30
push eax
push 0x400
push esi
call fcn.0040c810
add esp, 0x10
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4083ae
push esi
push str.StoredFile
mov ecx, edi
call fcn.00407b50
push esi
push str.Stored__s
call fcn.00406bc0
add esp, 8
mov ecx, edi
call fcn.00417ac0
mov ecx, edi
call fcn.00408570
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x408c00
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi]
test ecx, ecx
jne 0x408c10
nop
pop edi
xor eax, eax
pop esi
ret
call fcn.00408010
test eax, eax
jne 0x408c1c
pop edi
pop esi
ret
lea edi, [esi + 0x54]
push 0x42ad88
push 0x104
push edi
call fcn.00409830
add esp, 0xc
test eax, eax
jne 0x408c39
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 0x408c51
pop edi
pop esi
ret
mov ecx, dword [esi]
call fcn.00417ac0
pop edi
mov eax, 1
pop esi
ret
Function at 0x408c60
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.0040a430
mov ecx, dword [esp + 0x118]
push ecx
push str.TI_map_AIC___s_
call fcn.00406bc0
push 0x8000
call fcn.0041a915
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0xc], edi
je 0x408e47
push ebx
push ebp
lea ebp, [esi + 0x54]
push ebp
push 0x8000
push edi
push 0x432578
push 0
push 0x42adf0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [edi]
mov ebx, edi
test al, al
je 0x408e07
mov eax, dword [esi + 0x5cc]
test eax, eax
jne 0x408e07
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp byte [esi + ebx - 1], 0x2a
jne 0x408d11
mov eax, dword [esp + 0x11c]
lea edx, [esi - 1]
push edx
push ebx
push eax
call fcn.00423b20
add esp, 0xc
jmp 0x408d22
mov ecx, dword [esp + 0x11c]
push ebx
push ecx
call fcn.0041b580
add esp, 8
test eax, eax
je 0x408d2f
lea ebx, [esi + ebx + 1]
jmp 0x408df9
test ebx, ebx
mov eax, ebx
jne 0x408d3a
mov eax, 0x431aa4
push eax
push str.TI_map_to___s_
call fcn.00406bc0
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 0x42adf0
push ebp
stosb byte es:[edi], al
call fcn.00409d60
mov esi, eax
add esp, 0x18
test esi, esi
je 0x408d90
push esi
push str.brand_
lea edx, [esp + 0x20]
push 0x42add0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.0041a842
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.00409d60
mov edi, eax
add esp, 0x10
test edi, edi
je 0x408dd8
push 1
push edi
push ebp
mov ecx, esi
call fcn.004015d0
push edi
call fcn.0041a842
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 0x408cdc
mov eax, dword [esi + 0x5cc]
pop ebp
test eax, eax
pop ebx
jne 0x408e3c
mov eax, dword [esp + 0x118]
test eax, eax
je 0x408e3c
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x11c]
push ecx
push str.AIC__s_
push edx
push eax
call fcn.0041acfa
add esp, 0x10
push edi
call fcn.0041a842
add esp, 4
jmp 0x408e70
mov eax, dword [esp + 0x118]
test eax, eax
je 0x408e70
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.0041acfa
add esp, 0x10
mov eax, dword [esi + 0x5cc]
test eax, eax
jne 0x408e87
push str.TI_nomap
call fcn.00406bc0
add esp, 4
mov eax, dword [esi + 0x5cc]
pop edi
pop esi
add esp, 0x108
ret 0xc
Function at 0x409830
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x409867
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x409867
cmp dword [esp + 8], 0x104
jl 0x409867
push eax
push 0
push ecx
mov byte [eax], 0
call fcn.00409ee0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x409867
mov eax, 1
ret
xor eax, eax
ret

Function at 0x409870
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x348
push ebx
push ebp
push esi
push edi
call fcn.00409ee0
mov esi, eax
mov eax, dword [esp + 0x35c]
test eax, eax
push esi
je 0x40994f
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.0040c710
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 8
lea edx, [esp + 0x114]
push 0x42b0ec
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 0x409957
test byte [esp + 0x218], 0x10
jne 0x40992a
lea edx, [esp + 0x10]
push esi
push edx
call edi
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040c710
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.0040c2d0
add esp, 8
lea ecx, [esp + 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4098e8
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret
call fcn.0040c340
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x348
ret

Function at 0x409d60
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.0041b0a0
add esp, 8
test eax, eax
pop edi
je 0x409de5
lea ecx, [esp]
cmp eax, ecx
jb 0x409de5
mov cl, byte [eax]
cmp cl, 0x3b
je 0x409dd9
cmp cl, 0x20
je 0x409dd9
cmp cl, 9
jne 0x409de5
mov byte [eax], 0
dec eax
lea edx, [esp]
cmp eax, edx
jae 0x409dc8
lea eax, [esp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0041a915
mov esi, eax
add esp, 4
test esi, esi
je 0x409e0d
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 0x409ee0
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x4329b8]
test al, al
jne 0x409f2a
push 0x4329b8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
push 0x4329b8
call fcn.0040c710
add esp, 8
push str.fsg_tmp
push 0x4329b8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x4329b8
call fcn.0040c490
add esp, 8
mov eax, 0x4329b8
ret
Function at 0x40a260
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 0x40a275
call fcn.0040a140
mov ebx, eax
mov esi, dword [esp + 0x14]
push ebx
push esi
push str.StartWithWindows:__d__s
call fcn.00406bc0
add esp, 0xc
test esi, esi
push 0
je 0x40a300
push str.NeverStartWithWindows
call fcn.00409970
add esp, 8
test eax, eax
jne 0x40a2ec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x32
push eax
call fcn.0041a915
mov esi, eax
add esp, 4
test esi, esi
je 0x40a2f9
push ebx
push 0x42b2f4
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str.Trickler
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call fcn.0040ad40
push esi
mov edi, eax
call fcn.0041a842
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push str._t__Inhibited_by_test_setting
call fcn.00406bc0
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.00409d00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40a395
mov al, byte [edi]
mov esi, edi
cmp al, 0x22
jne 0x40a328
lea esi, [edi + 1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x40a340
cmp byte [eax + esi - 1], 0x22
jne 0x40a340
mov byte [eax + esi - 1], 0
push esi
push ebx
call fcn.0041b580
add esp, 8
test eax, eax
jne 0x40a377
push str.Trickler
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call fcn.0040aec0
add esp, 0xc
mov ebp, eax
push edi
call fcn.0041a842
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.00406bc0
add esp, 8
push edi
call fcn.0041a842
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 0x40a480
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.0040ad40
add esp, 0x24
pop edi
pop esi
add esp, 0x610
ret
Function at 0x40a980
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 0x40a997
mov dword [esi], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40ab23
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x40ab23
cmp byte [eax], 0
je 0x40ab23
cmp esi, ebx
je 0x40ab23
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 0x40ab23
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 0x40ab0e
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041a915
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40ab0e
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 0x40ab05
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x40aa90
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
call fcn.0041a915
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
je 0x40ab05
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 0x40ab05
cmp eax, 2
jne 0x40ab05
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 0x40ab05
inc eax
push eax
call fcn.0041a915
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
je 0x40ab05
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 0x40aafd
test eax, eax
mov dword [esp + 0x10], 1
ja 0x40ab05
mov dword [esp + 0x10], 0
push ebp
call fcn.0041a842
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 0x40ab70
mov ebx, eax
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40ab66
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0041a915
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi], edx
je 0x40ab66
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 0x40ab80
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 0x40abfd
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x40abfd
cmp byte [eax], 0
je 0x40abfd
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 0x40abfd
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 0x40abf2
cmp dword [esp + 0x18], 4
jne 0x40abf2
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 0x40ac10
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 0x40ac26
mov dword [ebx], esi
mov ecx, dword [esp + 0x14]
cmp ecx, esi
je 0x40ad31
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40ad31
cmp byte [eax], 0
je 0x40ad31
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 0x40ad31
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 0x40ad1e
mov eax, dword [esp + 0x24]
push eax
call fcn.0041a915
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40ad1a
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 0x40ad11
cmp dword [esp + 0x18], 3
jne 0x40ad11
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0041a915
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x40ad11
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.0041a842
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 0x40ad40
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
xor edi, edi
test ecx, ecx
je 0x40adb7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40adb7
cmp byte [eax], 0
je 0x40adb7
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40adb7
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x4331d8]
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 0x40adb7
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 0x40adac
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 0x40adc0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40ae2b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ae2b
cmp byte [eax], 0
je 0x40ae2b
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x4331d8]
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 0x40ae2b
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 0x40ae20
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 0x40ae30
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor esi, esi
test ecx, ecx
push edi
je 0x40aeac
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40aeac
cmp byte [eax], 0
je 0x40aeac
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40aeac
mov ebx, dword [esp + 0x20]
cmp ebx, 0x3fac
ja 0x40aeac
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x4331d8]
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 0x40aeac
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 0x40aea1
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 0x40aec0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40af11
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40af11
cmp byte [eax], 0
je 0x40af11
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 0x40af11
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
Function at 0x40b2c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x40b331
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b331
cmp byte [eax], 0
je 0x40b331
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40b331
cmp byte [edi], 0
je 0x40b331
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b331
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]
test eax, eax
jne 0x40b326
mov eax, dword [esp + 0xc]
xor edx, edx
test eax, eax
setne dl
mov esi, edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40b3a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 8]
push edi
xor eax, eax
mov ecx, 6
mov edi, edx
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 0x40b3e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push esi
xor esi, esi
test eax, eax
je 0x40b4c6
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40b4c6
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 0x40b4c6
mov ecx, dword [esp + 4]
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0040b3a0
add esp, 8
test eax, eax
je 0x40b4b2
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
push ebx
call fcn.0041a915
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40b4b2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push edi
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov esi, 1
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]
test eax, eax
jne 0x40b4a8
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
test esi, esi
jne 0x40b46b
push ebp
call fcn.0041a842
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 0x34
ret
mov eax, esi
pop esi
add esp, 0x34
ret