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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ccc
xor eax, eax
push ebp
push 0x409871
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40968c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4096a6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40985b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409880
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409775
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409880
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409775
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409775
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409775
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4098f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409775
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409924
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40985b
xor eax, eax
push ebp
push 0x409854
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409458
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4097e4
mov eax, dword [ebp - 0x10]
call fcn.004044ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407788
jmp 0x40982f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409964
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40982f
mov eax, dword [ebp - 0x10]
call fcn.004044ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409964
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40985b
cmp dword [ebp - 8], 0
je 0x40984a
mov eax, dword [ebp - 8]
call fcn.00404508
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409878
lea eax, [ebp - 4]
call fcn.00406be8
ret
Function at 0x409b54
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406ccc
xor eax, eax
push ebp
push 0x409c14
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004077c4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407974
mov eax, dword [ebx]
call fcn.00409a1c
test al, al
jne 0x409bf1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004077c4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407974
mov eax, dword [ebx]
call fcn.00409a1c
test al, al
jne 0x409bf1
mov eax, ebx
call fcn.00406be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c1b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406c48
lea eax, [ebp - 4]
call fcn.00406be8
ret

Function at 0x40a5d8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41d7c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d81d
test eax, edx
je 0x41d820
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d7db
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d802
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41d803
add ecx, 4
js 0x41d7f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d800
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d802
xor eax, eax
ret
test eax, eax
je 0x41d82c
test edx, edx
jne 0x41d7cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41dea0
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 0x41deb8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41dec0
mov al, 1
jmp 0x41dedd
movzx esi, word [ebp]
mov eax, esi
call fcn.0040f010
test al, al
jne 0x41ded9
cmp si, 0x5f
je 0x41ded9
xor eax, eax
jmp 0x41dedb
mov al, 1
xor al, 1
test al, al
jne 0x41df6d
test bl, bl
je 0x41df2d
mov eax, ebp
test eax, eax
je 0x41def4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41df69
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f09c
test al, al
jne 0x41df21
cmp di, 0x5f
je 0x41df21
cmp di, 0x2e
je 0x41df21
xor eax, eax
jmp 0x41df23
mov al, 1
test al, al
je 0x41df6d
inc esi
dec ebx
jne 0x41df01
jmp 0x41df69
mov eax, ebp
test eax, eax
je 0x41df38
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41df69
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f09c
test al, al
jne 0x41df5f
cmp di, 0x5f
je 0x41df5f
xor eax, eax
jmp 0x41df61
mov al, 1
test al, al
je 0x41df6d
inc esi
dec ebx
jne 0x41df45
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41eb18
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.00407730
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41eb82
test ah, 4
je 0x41eb7b
test bl, bl
jne 0x41eb40
mov al, 1
jmp 0x41eba9
test al, 0x10
je 0x41eb48
xor eax, eax
jmp 0x41eba9
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41eb6c
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41eba9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41eba9
test al, 0x10
sete al
jmp 0x41eba9
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41eba3
cmp ebx, 3
je 0x41eba3
cmp ebx, 0x7b
je 0x41eba3
mov eax, esi
call fcn.0041ead8
test al, al
jne 0x41eba7
xor eax, eax
jmp 0x41eba9
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4228d0
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 0x422909
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406d70
jmp 0x422912
mov eax, ebx
mov edx, esi
call fcn.00406fc8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42291c
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 0x42293e
movzx eax, word [esp]
jmp 0x422940
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423614
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x423739
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042341c
mov esi, eax
mov eax, dword [0x533354]
cmp byte [eax], 0
je 0x4236e1
mov eax, dword [0x533070]
call fcn.004049cc
call fcn.00404660
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4235e4]
call fcn.00408a4c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x423754
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42371d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x532ff4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x536c50]
call fcn.00408b40
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423740
lea eax, [ebp - 4]
mov edx, dword [0x4235e4]
call fcn.00408a58
ret

Function at 0x424798
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 0x42486e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407010
lea eax, [ebp - 4]
call fcn.004071a4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x424858
mov eax, ebx
call fcn.004044ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x424851
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.00407730
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42483b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x424880
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42483b
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 0x424858
mov eax, dword [ebp - 0x10]
call fcn.00404508
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424875
lea eax, [ebp - 4]
call fcn.00406be8
ret
Function at 0x425288
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.004070e4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a5b8
mov edi, eax
cmp edi, 0x104
jbe 0x42522f
mov eax, edi
add eax, eax
call fcn.004044ec
mov esi, eax
jmp 0x425231
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a5b8
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42526c
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 0x425256
mov eax, esp
cmp esi, eax
je 0x425279
mov eax, esi
call fcn.00404508
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 0x4252b4
cmp bl, 0
je 0x4252b0
cmp bl, 0x41
jl 0x4252ab
cmp bl, 0x5a
jg 0x4252ab
or bl, 0x20
xor al, bl
inc esi
jmp 0x42528f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4251f0

Function at 0x425abc
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.004077c4
add esp, 0x800
pop ebx
ret

Function at 0x4507a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x45083e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x450802
cmp byte [ebx + 0x10], 0
jne 0x450802
cmp byte [ebx + 0x3c], 0
jne 0x450802
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 0x450823
lea edx, [ebp - 4]
mov eax, dword [0x5332d8]
call fcn.0040a524
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43ea68]
call fcn.00423764
call fcn.0040629c
jmp 0x450823
lea edx, [ebp - 8]
mov eax, dword [0x5332d8]
call fcn.0040a524
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43ea68]
call fcn.00423764
call fcn.0040629c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450845
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406c48
ret

Function at 0x451140
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 0x45118e
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.004506d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4511a7
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4511b0
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.004506d8
dec esi
jne 0x4511d2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x453454
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x538fc4
cmp dword [edi], 0
jne 0x4534d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x538fc0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x530994
mov ecx, 2
call fcn.004046b0
mov edx, 0x45342c
lea eax, [esi + 5]
call fcn.0045344c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0045344c
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 0x4534a5
mov dword [0x538fc0], 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 0x457ffc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45804e
test eax, edx
je 0x458051
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x458011
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 0x458037
add ecx, 4
js 0x458027
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x458034
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 0x45805d
test edx, edx
jne 0x458004
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x45b6a0
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 0x45b85b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407010
mov eax, dword [ebp - 4]
call fcn.0045aff0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x45b6f2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407b2c
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.0045c2dc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45b7d1
xor eax, eax
push ebp
push 0x45b7ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0045b290
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0045b890
test al, al
je 0x45b7a8
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406d70
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x45b7a8
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.00407730
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.0045b1f0
test al, al
je 0x45b7a2
mov eax, dword [ebp - 8]
call fcn.00407730
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407788
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0045b6a0
dec ebx
cmp ebx, 0xffffffff
jne 0x45b751
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b7d1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0045b290
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x539028], 0
je 0x45b811
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0045b27c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045b1f0
mov ebx, eax
jmp 0x45b838
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0045b27c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0045b1f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b862
lea eax, [ebp - 0x3c]
call fcn.00406be8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406c48
ret
Function at 0x45c1b8
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.0045b008
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.00407730
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0045b1f0
test al, al
jne 0x45c220
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5331ec]
mov dl, 1
mov eax, dword [0x459ddc]
call fcn.00423968
call fcn.0040629c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45c22c
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.00407730
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0045b1f0
test al, al
jne 0x45c28d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x533500]
mov dl, 1
mov eax, dword [0x459ddc]
call fcn.00423968
call fcn.0040629c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045b038
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 0x45c88c
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 0x45c9b4
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.0045b290
xor eax, eax
push ebp
push 0x45c98f
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.0045b890
test al, al
je 0x45c973
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0045c76c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406d70
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x45c973
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.00407730
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.0045b1f0
test al, al
je 0x45c96f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407730
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00407788
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0045c76c
pop ecx
inc edi
dec ebx
jne 0x45c917
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c996
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0045b290
ret