joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e98
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
push edi
lea esi, [ebp - 0x118]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp + 0x10], 0
je 0x402ee8
mov eax, dword [ebp + 0x10]
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.00447a58
add esp, 8
lea ecx, [ebp - 4]
lea eax, [ebp - 0x118]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x403018
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], edx
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
jne 0x40300f
xor edi, edi
cmp edi, dword [ebp - 8]
jae 0x403005
mov dword [ebp - 0xc], 0x100
mov byte [ebx + 0x104], 0
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x118]
push eax
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
push 0
push eax
lea esi, [ebx + 0x104]
push esi
push edi
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
jne 0x403005
mov edx, dword [ebp + 0x14]
push edx
call fcn.00447ae8
pop ecx
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push esi
call fcn.00447ce4
add esp, 0xc
test eax, eax
jne 0x402ffb
push esi
lea ecx, [ebp - 0x218]
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
push str.DELETING__s_s__s_
push ecx
call sub.USER32.DLL_wsprintfA
add esp, 0x14
cmp dword [ebx + 0x304], 0
je 0x402ffb
push esi
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegDeleteValueA
test eax, eax
je 0x402ff2
push esi
push str.cant_delete_value__s
lea edx, [ebp - 0x218]
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
jmp 0x402ffb
mov dword [ebp - 0x18], 1
jmp 0x403005
inc edi
cmp edi, dword [ebp - 8]
jb 0x402f45
cmp dword [ebp - 0x18], 0
jne 0x402f0c
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403020
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test ebx, ebx
je 0x403055
mov eax, ebx
jmp 0x403145
push 0
push 0
push 0
lea edx, [ebp - 8]
push 0
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
mov ebx, eax
test ebx, ebx
je 0x40308c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
jmp 0x403145
xor esi, esi
mov ebx, 0xe8
cmp esi, dword [ebp - 8]
jae 0x40313a
mov dword [ebp - 0xc], 0x100
mov byte [edi + 0x104], 0
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x114]
push eax
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
push 0
push eax
lea edx, [edi + 0x104]
push edx
push esi
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x40313a
mov eax, dword [ebp + 0x10]
push eax
call fcn.00447ae8
pop ecx
push eax
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [edi + 0x104]
push ecx
call fcn.00447ce4
add esp, 0xc
test eax, eax
jne 0x40312b
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x114]
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
jmp 0x40313a
mov ebx, 0xe8
inc esi
cmp esi, dword [ebp - 8]
jb 0x40309c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40314c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, eax
xor eax, eax
push esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x100]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x100]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [ebp + 0x10]
push eax
push edx
call fcn.00447a58
add esp, 8
lea ecx, [ebp - 0x100]
push ecx
push str.DELETING__s
lea eax, [ebp - 0x200]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
cmp dword [esi + 0x304], 0
jne 0x4031c0
xor eax, eax
jmp 0x40321f
lea edx, [ebp - 0x100]
push edx
push 0x80000002
call sub.SHLWAPI.DLL_SHDeleteKeyA
mov ebx, eax
test ebx, ebx
je 0x4031fa
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.00403760
add esp, 8
lea edx, [ebp - 0x100]
push edx
push 0x80000002
call sub.SHLWAPI.DLL_SHDeleteKeyA
mov ebx, eax
test ebx, ebx
je 0x40321d
lea eax, [ebp - 0x100]
lea edx, [ebp - 0x200]
push eax
push str.cant_delete_key__s
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0xc
mov eax, ebx
jmp 0x40321f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403228
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb4
push ebx
push esi
push edi
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x10]
mov ebx, eax
jae 0x4033a6
mov eax, dword [ebx]
sub eax, 2
je 0x4032ba
dec eax
je 0x4032e1
dec eax
je 0x40327f
push 0x104
lea edx, [ebp - 0x24c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x456af5
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00447a58
add esp, 8
jmp 0x403306
push 0x104
lea eax, [ebp - 0x24c]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x456af7
lea edx, [ebp - 0x24c]
push edx
call fcn.00447a58
add esp, 8
push 0x456b02
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00447a58
add esp, 8
jmp 0x403306
push 0x104
lea eax, [ebp - 0x24c]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x456b04
lea edx, [ebp - 0x24c]
push edx
call fcn.00447a58
add esp, 8
jmp 0x403306
push 0x104
lea ecx, [ebp - 0x24c]
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x456b0a
lea eax, [ebp - 0x24c]
push eax
call fcn.00447a58
add esp, 8
lea edx, [ebp - 0x24c]
push edx
call fcn.00447ae8
pop ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 4]
push ecx
lea eax, [ebp - 0x24c]
push eax
call fcn.00447a58
add esp, 8
lea edx, [ebp - 0x144]
push edx
lea ecx, [ebp - 0x24c]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x403399
lea eax, [ebp - 0x24c]
add eax, dword [ebp - 4]
push esi
mov esi, eax
push edi
xor eax, eax
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x24c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004034e0
add esp, 8
lea ecx, [ebp - 0x144]
push ecx
push esi
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x403343
inc edi
add ebx, 8
cmp edi, dword [ebp + 0x10]
jb 0x403244
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x10c]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x456b16
lea edx, [ebp - 0x10c]
push edx
call fcn.00447a58
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00447ae8
pop ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + eax - 0x10c]
mov dword [ebp - 4], eax
jmp 0x4034cd
push 0x2c
push ebx
call fcn.00447be1
add esp, 8
mov esi, eax
test eax, eax
je 0x403417
mov byte [esi], 0
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
lea esi, [ebp - 0x18c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x18c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x456b1c
push eax
call fcn.00447a58
mov edx, dword [ebp - 4]
add esp, 8
lea ecx, [ebp - 0x18c]
lea eax, [ebp - 0x10c]
mov byte [edx], 0
push ecx
push eax
call fcn.00447a58
add esp, 8
lea edx, [ebp - 0x18c]
mov byte [ebp - 0x18c], 0
push edx
lea ecx, [ebp - 0x10c]
push ecx
push 0x456b21
push edi
call fcn.00403020
add esp, 0x10
cmp byte [ebp - 0x18c], 0
je 0x4034ac
lea eax, [ebp - 0x18c]
push eax
push edi
call fcn.004034e0
add esp, 8
lea edx, [ebp - 0x10c]
push edx
push 0x456ba3
push str.SoftwareMicrosoftWindowsCurrentVersionSetupSetupXCatalogs_
push edi
call fcn.00402e98
add esp, 0x10
test esi, esi
je 0x4034d6
lea ebx, [esi + 1]
cmp byte [ebx], 0
jne 0x403403
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4034e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ebx
push str.DELETING_FILE__s
lea eax, [ebp - 0x100]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
cmp dword [esi + 0x304], 0
je 0x40352c
push ebx
call fcn.0044a114
pop ecx
test eax, eax
je 0x40352c
push 0x80
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
push ebx
call fcn.0044a114
pop ecx
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403534
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8a8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 1
push 0x104
lea eax, [ebp - 0x250]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x456bd6
lea edx, [ebp - 0x250]
push edx
call fcn.00447a58
add esp, 8
push 0x456bd8
lea ecx, [ebp - 0x250]
push ecx
call fcn.00447a58
add esp, 8
lea eax, [ebp - 0x250]
push eax
call fcn.00447ae8
pop ecx
mov esi, eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x250]
or ecx, 0xffffffff
lea esi, [ebp - 0x358]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x250]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push str.OEM
push eax
call fcn.00447a58
add esp, 8
push 0x456be2
lea edx, [ebp - 0x250]
push edx
call fcn.00447a58
add esp, 8
lea ecx, [ebp - 0x148]
push ecx
lea eax, [ebp - 0x250]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
lea edx, [ebp + esi - 0x358]
mov dword [ebp - 8], edx
jmp 0x4036f9
test byte [ebp - 0x148], 0x10
jne 0x4036e7
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x358]
push edx
call fcn.00447a58
add esp, 8
push 0x456be7
lea ecx, [ebp - 0x358]
push ecx
call fcn.004498cc
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4036e7
xor esi, esi
jmp 0x403670
push edi
lea eax, [ebp - 0x758]
push eax
call fcn.00447bed
add esp, 8
test eax, eax
je 0x403670
mov esi, 1
jmp 0x403688
lea eax, [ebp - 0x758]
push eax
push 0x456be9
push ebx
call fcn.00449900
add esp, 0xc
inc eax
jne 0x403655
push ebx
call fcn.00449578
pop ecx
test esi, esi
je 0x4036e7
lea edx, [ebp - 0x358]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004034e0
add esp, 8
lea eax, [ebp - 0x358]
push eax
call fcn.00447ae8
pop ecx
sub eax, 3
mov dl, 0x50
movsx ecx, byte [ebp + eax - 0x358]
test byte [ecx*2 + str.________________________________H], 1
jne 0x4036cd
add edx, 0x20
mov byte [ebp + eax - 0x358], dl
lea eax, [ebp - 0x358]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004034e0
add esp, 8
lea ecx, [ebp - 0x148]
push ecx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FindNextFileA
mov ebx, eax
cmp dword [ebp - 4], 0xffffffff
je 0x403707
test ebx, ebx
jne 0x40360a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push str.STS:__s
lea eax, [ebp - 0x20c]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0xc
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push esi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4038a1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
jne 0x4038a1
cmp dword [ebp - 8], 0
jne 0x4037e5
push esi
push edi
call fcn.00403710
add esp, 8
xor eax, eax
jmp 0x4038a1
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x403896
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x10c], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x10c]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x403896
push esi
push edi
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
lea esi, [ebp - 0x20c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x20c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x456bf4
push eax
call fcn.00447a58
add esp, 8
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00447a58
add esp, 8
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00403760
add esp, 8
push esi
push edi
call fcn.00403710
add esp, 8
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4037f0
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038a8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
xor eax, eax
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffff
push edx
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x403906
push eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push eax
push 0x456bf6
push edx
call sub.USER32.DLL_wsprintfA
add esp, 0x10
mov eax, 1
jmp 0x403a31
xor edx, edx
lea eax, [edi + 0x204]
mov byte [eax], 0
inc edx
inc eax
cmp edx, 0x100
jb 0x40390e
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
cmp dword [ebp - 0x18], 0
jge 0x40394d
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 0
je 0x403a1c
test eax, eax
jne 0x403a1c
xor ebx, ebx
cmp ebx, dword [ebp - 8]
jae 0x403a12
mov dword [ebp - 0xc], 0x100
mov byte [ebp - 0x118], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x118]
push edx
push ebx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x403a12
push esi
call fcn.00447ae8
pop ecx
push eax
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.00447ce4
add esp, 0xc
test eax, eax
jne 0x403a08
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x218]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_s0000Device_Parameters
push eax
call fcn.0044ac0c
add esp, 0x10
lea edx, [ebp - 0x118]
lea ecx, [ebp - 0x218]
push edx
push str.PortName
push ecx
push edi
call fcn.00403020
add esp, 0x10
lea eax, [ebp - 0x115]
push eax
call fcn.0044e15c
pop ecx
mov byte [edi + eax + 0x203], 1
inc dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x40396a
cmp dword [ebp - 0x10], 0
jne 0x40391b
mov edx, dword [ebp - 4]
push edx
call sub.ADVAPI32.DLL_RegCloseKey
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
sete al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a38
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test ebx, ebx
je 0x403a83
push ebx
push edi
push str.cant_open_key__s_result0x_x
lea eax, [ebp - 0x21c]
push eax
call sub.USER32.DLL_wsprintfA
add esp, 0x10
mov eax, ebx
jmp 0x403bc9
push 0
push 0
push 0
lea edx, [ebp - 8]
push 0
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
mov ebx, eax
test ebx, ebx
je 0x403aba
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
jmp 0x403bc9
xor edi, edi
cmp edi, dword [ebp - 8]
jae 0x403bbe
mov dword [ebp - 0xc], 0x100
mov byte [esi + 0x104], 0
mov dword [ebp - 0x14], 0x100
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x11c]
push eax
push edx
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0xc]
push ecx
push 0
push eax
lea edx, [esi + 0x104]
push edx
push edi
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x403bbe
mov eax, dword [ebp + 0x10]
push eax
call fcn.00447ae8
pop ecx
push eax
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [esi + 0x104]
push ecx
call fcn.00447ce4
add esp, 0xc
test eax, eax
jne 0x403bb4
xor eax, eax
lea edx, [esi + 0x204]
movsx ecx, byte [edx]
dec ecx
jne 0x403b75
mov ebx, eax
test ebx, ebx
jns 0x403b47
add ebx, 7
sar ebx, 3
mov ecx, eax
and ecx, 0x80000007
jns 0x403b59
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
mov edi, 1
shl edi, cl
mov dword [ebp - 0x1c], edi
mov cl, byte [ebp - 0x1c]
not cl
and byte [ebp + ebx - 0x11c], cl
inc eax
inc edx
cmp eax, 0x100
jl 0x403b38
cmp dword [esi + 0x304], 0
je 0x403bac
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x11c]
push eax
push edx
mov eax, dword [ebp - 0x10]
add esi, 0x104
push eax
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov ebx, eax
jmp 0x403bae
xor ebx, ebx
test ebx, ebx
jne 0x403bbe
jmp 0x403bbe
inc edi
cmp edi, dword [ebp - 8]
jb 0x403ac5
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x456c57
lea edx, [ebp - 0x108]
push edx
call fcn.00447a58
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
call fcn.00447ae8
pop ecx
mov ebx, dword [ebp + 0xc]
lea esi, [ebp + eax - 0x108]
jmp 0x403d0a
push 0x2c
push ebx
call fcn.00447be1
add esp, 8
mov edi, eax
test eax, eax
je 0x403c31
mov byte [edi], 0
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
lea esi, [ebp - 0x188]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x188]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x456c5d
push eax
call fcn.00447a58
add esp, 8
mov byte [esi], 0
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0x108]
push ecx
call fcn.00447a58
add esp, 8
lea eax, [ebp - 0x108]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004034e0
add esp, 8
xor eax, eax
or ecx, 0xffffffff
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x188]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x188]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x456c62
push eax
call fcn.00447a58
add esp, 8
mov byte [esi], 0
lea edx, [ebp - 0x188]
push edx
lea ecx, [ebp - 0x108]
push ecx
call fcn.00447a58
add esp, 8
lea eax, [ebp - 0x108]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004034e0
add esp, 8
test edi, edi
je 0x403d13
lea ebx, [edi + 1]
cmp byte [ebx], 0
jne 0x403c1d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d1c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8a8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 1
push 0x104
lea eax, [ebp - 0x250]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x456c67
lea edx, [ebp - 0x250]
push edx
call fcn.00447a58
add esp, 8
lea ecx, [ebp - 0x250]
push ecx
call fcn.00447ae8
pop ecx
mov esi, eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x250]
or ecx, 0xffffffff
lea esi, [ebp - 0x358]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x250]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push str..inf
push eax
call fcn.00447a58
add esp, 8
lea edx, [ebp - 0x148]
push edx
lea ecx, [ebp - 0x250]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 4], eax
lea eax, [ebp + esi - 0x358]
mov dword [ebp - 8], eax
jmp 0x403e74
test byte [ebp - 0x148], 0x10
jne 0x403e62
mov edx, dword [ebp - 8]
mov byte [edx], 0
lea ecx, [ebp - 0x11c]
push ecx
lea eax, [ebp - 0x358]
push eax
call fcn.00447a58
add esp, 8
push 0x456c79
lea edx, [ebp - 0x358]
push edx
call fcn.004498cc
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x403e62
xor esi, esi
jmp 0x403e2c
push edi
lea eax, [ebp - 0x758]
push eax
call fcn.00447bed
add esp, 8
test eax, eax
je 0x403e2c
mov esi, 1
jmp 0x403e44
lea eax, [ebp - 0x758]
push eax
push 0x456c7b
push ebx
call fcn.00449900
add esp, 0xc
inc eax
jne 0x403e11
push ebx
call fcn.00449578
pop ecx
test esi, esi
je 0x403e62
lea edx, [ebp - 0x358]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004034e0
add esp, 8
lea eax, [ebp - 0x148]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_FindNextFileA
mov ebx, eax
cmp dword [ebp - 4], 0xffffffff
je 0x403e82
test ebx, ebx
jne 0x403dca
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bfd8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00445684
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40c039
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40c039
cmp byte [ebp - 0x102], 0
je 0x40c039
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004458b0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4113bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4113c2
ret
Function at 0x413818
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x413869
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413850
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x413840
jmp 0x413869
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x413851
pop ebx
mov esp, ebp
pop ebp
ret