joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422028
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x422040
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x422048
mov al, 1
jmp 0x422065
movzx esi, word [ebp]
mov eax, esi
call fcn.00412a1c
test al, al
jne 0x422061
cmp si, 0x5f
je 0x422061
xor eax, eax
jmp 0x422063
mov al, 1
xor al, 1
test al, al
jne 0x4220f5
test bl, bl
je 0x4220b5
mov eax, ebp
test eax, eax
je 0x42207c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4220f1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412aa8
test al, al
jne 0x4220a9
cmp di, 0x5f
je 0x4220a9
cmp di, 0x2e
je 0x4220a9
xor eax, eax
jmp 0x4220ab
mov al, 1
test al, al
je 0x4220f5
inc esi
dec ebx
jne 0x422089
jmp 0x4220f1
mov eax, ebp
test eax, eax
je 0x4220c0
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x4220f1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.00412aa8
test al, al
jne 0x4220e7
cmp di, 0x5f
je 0x4220e7
xor eax, eax
jmp 0x4220e9
mov al, 1
test al, al
je 0x4220f5
inc esi
dec ebx
jne 0x4220cd
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422bb8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x422cec
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x422cfc]
mov dl, 1
mov eax, esi
call fcn.00422e80
test al, al
jne 0x422c09
mov dl, 1
mov eax, esi
call fcn.00422de8
test al, al
je 0x422c9f
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.004230fc
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.0042924c
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x422c9a
test byte [ebp - 0xc], 1
je 0x422c65
or bl, 1
test byte [ebp - 0xc], 2
je 0x422c6e
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x422c77
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x422c8b
dec eax
je 0x422c90
dec eax
je 0x422c95
dec eax
jne 0x422cc6
or bl, 0x10
jmp 0x422cc6
or bl, 4
jmp 0x422cc6
or bl, 8
jmp 0x422cc6
call fcn.00429a94
lea edx, [ebp - 0x428]
mov eax, dword [0x571ba8]
call fcn.0040d3a4
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x41cc2c]
call fcn.00427d78
call fcn.00408c2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422cf3
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00409558
lea eax, [ebp - 4]
call fcn.004094f8
ret
Function at 0x422de8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a2bc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422e52
test ah, 4
je 0x422e4b
test bl, bl
jne 0x422e10
mov al, 1
jmp 0x422e79
test al, 0x10
je 0x422e18
xor eax, eax
jmp 0x422e79
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422e3c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x422e79
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422e79
test al, 0x10
sete al
jmp 0x422e79
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x422e73
cmp ebx, 3
je 0x422e73
cmp ebx, 0x7b
je 0x422e73
mov eax, esi
call fcn.00422da8
test al, al
jne 0x422e77
xor eax, eax
jmp 0x422e79
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422e80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040a2bc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x422f27
test esi, 0x400
jne 0x422ebc
test esi, 0x10
setne bl
jmp 0x422f46
cmp byte [esp], 0
je 0x422ef0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422f46
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x422f46
test esi, 0x10
je 0x422efc
mov bl, 1
jmp 0x422f46
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x422f23
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x422f46
mov bl, 1
jmp 0x422f46
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x422f40
cmp eax, 3
je 0x422f40
cmp eax, 0x7b
je 0x422f40
cmp eax, 0x35
jne 0x422f44
xor ebx, ebx
jmp 0x422f46
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422f50
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423023
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409920
cmp byte [ebp - 9], 0
je 0x422fe1
mov eax, ebx
call fcn.0040a2bc
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x422fe1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00421450
test al, al
je 0x422fe1
mov eax, dword [ebp - 8]
call fcn.004232e0
test al, al
je 0x422fd6
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004230c0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0042924c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.0040a510
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00409920
push edi
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x422ffb
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42302a
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409558
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409558
ret

Function at 0x426ee4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x426f1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00409680
jmp 0x426f26
mov eax, ebx
mov edx, esi
call fcn.004098d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426f30
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x426f52
movzx eax, word [esp]
jmp 0x426f54
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428dac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428e82
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409920
lea eax, [ebp - 4]
call fcn.00409ac0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x428e6c
mov eax, ebx
call fcn.00404554
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x428e65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x428e4f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x428e94
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x428e4f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e6c
mov eax, dword [ebp - 0x10]
call fcn.00404570
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e89
lea eax, [ebp - 4]
call fcn.004094f8
ret

Function at 0x429938
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00409a00
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d438
mov edi, eax
cmp edi, 0x104
jbe 0x4298df
mov eax, edi
add eax, eax
call fcn.00404554
mov esi, eax
jmp 0x4298e1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040d438
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42991c
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x429906
mov eax, esp
cmp esi, eax
je 0x429929
mov eax, esi
call fcn.00404570
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x429964
cmp bl, 0
je 0x429960
cmp bl, 0x41
jl 0x42995b
cmp bl, 0x5a
jg 0x42995b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42993f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4298a0

Function at 0x42a16c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040a360
add esp, 0x800
pop ebx
ret
Function at 0x454868
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x454906
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4548ca
cmp byte [ebx + 0x10], 0
jne 0x4548ca
cmp byte [ebx + 0x3c], 0
jne 0x4548ca
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4548eb
lea edx, [ebp - 4]
mov eax, dword [0x5719dc]
call fcn.0040d3a4
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x442b30]
call fcn.00427d78
call fcn.00408c2c
jmp 0x4548eb
lea edx, [ebp - 8]
mov eax, dword [0x5719dc]
call fcn.0040d3a4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x442b30]
call fcn.00427d78
call fcn.00408c2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45490d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409558
ret

Function at 0x455208
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x455256
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004547a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45526f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x455278
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004547a0
dec esi
jne 0x45529a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x45751c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x577020
cmp dword [edi], 0
jne 0x457598
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x57701c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x56e9b4
mov ecx, 2
call fcn.004047a0
mov edx, 0x4574f4
lea eax, [esi + 5]
call fcn.00457514
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00457514
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x45756d
mov dword [0x57701c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45c1f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45c24a
test eax, edx
je 0x45c24d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x45c20d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x45c233
add ecx, 4
js 0x45c223
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x45c230
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x45c259
test edx, edx
jne 0x45c200
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x45f89c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45fa57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00409920
mov eax, dword [ebp - 4]
call fcn.0045f1ec
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x45f8ee
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a6c8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004604d8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45f9cd
xor eax, eax
push ebp
push 0x45f9c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0045f48c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0045fa8c
test al, al
je 0x45f9a4
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409680
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45f9a4
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040a2bc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045f3ec
test al, al
je 0x45f99e
mov eax, dword [ebp - 8]
call fcn.0040a2bc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a324
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0045f89c
dec ebx
cmp ebx, 0xffffffff
jne 0x45f94d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f9cd
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0045f48c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x577088], 0
je 0x45fa0d
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0045f478
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045f3ec
mov ebx, eax
jmp 0x45fa34
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0045f478
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045f3ec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa5e
lea eax, [ebp - 0x3c]
call fcn.004094f8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409558
ret
Function at 0x4603b4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0045f204
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040a2bc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0045f3ec
test al, al
jne 0x46041c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5718ac]
mov dl, 1
mov eax, dword [0x45dfd8]
call fcn.00427f7c
call fcn.00408c2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x460428
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040a2bc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0045f3ec
test al, al
jne 0x460489
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x571cf4]
mov dl, 1
mov eax, dword [0x45dfd8]
call fcn.00427f7c
call fcn.00408c2c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045f234
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x460a88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x460bb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0045f48c
xor eax, eax
push ebp
push 0x460b8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045fa8c
test al, al
je 0x460b6f
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00460968
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409680
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x460b6f
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045f3ec
test al, al
je 0x460b6b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040a324
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00460968
pop ecx
inc edi
dec ebx
jne 0x460b13
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460b92
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0045f48c
ret
Function at 0x460bc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x460e0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0045f48c
xor eax, eax
push ebp
push 0x460de4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045fa8c
test al, al
je 0x460dc8
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409680
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x460dc8
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a2bc
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045f3ec
test al, al
je 0x460dbc
mov eax, dword [ebp - 4]
call fcn.0040a2bc
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040a324
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004604d8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x460dbc
xor eax, eax
push ebp
push 0x460db5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0045f48c
xor eax, eax
push ebp
push 0x460d97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a2bc
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040a324
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0045f490
mov eax, dword [ebp - 4]
call fcn.0040a2bc
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040a324
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004604d8
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x460d74
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00460a88
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00460bc0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460d7b
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x460c4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460deb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0045f48c
ret
Function at 0x469550
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 0x469556
ret