joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd44
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 0x41bd5c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41bd64
mov al, 1
jmp 0x41bd81
movzx esi, word [ebp]
mov eax, esi
call fcn.0040d6f4
test al, al
jne 0x41bd7d
cmp si, 0x5f
je 0x41bd7d
xor eax, eax
jmp 0x41bd7f
mov al, 1
xor al, 1
test al, al
jne 0x41be11
test bl, bl
je 0x41bdd1
mov eax, ebp
test eax, eax
je 0x41bd98
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41be0d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040d780
test al, al
jne 0x41bdc5
cmp di, 0x5f
je 0x41bdc5
cmp di, 0x2e
je 0x41bdc5
xor eax, eax
jmp 0x41bdc7
mov al, 1
test al, al
je 0x41be11
inc esi
dec ebx
jne 0x41bda5
jmp 0x41be0d
mov eax, ebp
test eax, eax
je 0x41bddc
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41be0d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040d780
test al, al
jne 0x41be03
cmp di, 0x5f
je 0x41be03
xor eax, eax
jmp 0x41be05
mov al, 1
test al, al
je 0x41be11
inc esi
dec ebx
jne 0x41bde9
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c784
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 0x41c8b8
push dword fs:[eax]
mov dword fs:[eax], esp
movzx ebx, byte [0x41c8c8]
mov dl, 1
mov eax, esi
call fcn.0041cc1c
test al, al
jne 0x41c7d5
mov dl, 1
mov eax, esi
call fcn.0041cb84
test al, al
je 0x41c86b
lea edx, [ebp - 0x424]
mov eax, esi
call fcn.0041d1ac
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 4]
call fcn.00422f78
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.00407984
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x41c866
test byte [ebp - 0xc], 1
je 0x41c831
or bl, 1
test byte [ebp - 0xc], 2
je 0x41c83a
or bl, 2
test byte [ebp - 0xc], 0x80
je 0x41c843
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x41c857
dec eax
je 0x41c85c
dec eax
je 0x41c861
dec eax
jne 0x41c892
or bl, 0x10
jmp 0x41c892
or bl, 4
jmp 0x41c892
or bl, 8
jmp 0x41c892
call fcn.0042391c
lea edx, [ebp - 0x428]
mov eax, dword [0x4b73a4]
call fcn.0040a84c
mov ecx, dword [ebp - 0x428]
mov dl, 1
mov eax, dword [0x417b4c]
call fcn.00421e58
call fcn.004061b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c8bf
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b40
ret
Function at 0x41cb84
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.00407984
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41cbee
test ah, 4
je 0x41cbe7
test bl, bl
jne 0x41cbac
mov al, 1
jmp 0x41cc15
test al, 0x10
je 0x41cbb4
xor eax, eax
jmp 0x41cc15
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cbd8
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41cc15
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41cc15
test al, 0x10
sete al
jmp 0x41cc15
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41cc0f
cmp ebx, 3
je 0x41cc0f
cmp ebx, 0x7b
je 0x41cc0f
mov eax, esi
call fcn.0041cb44
test al, al
jne 0x41cc13
xor eax, eax
jmp 0x41cc15
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41cc1c
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.00407984
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41ccc3
test esi, 0x400
jne 0x41cc58
test esi, 0x10
setne bl
jmp 0x41cce2
cmp byte [esp], 0
je 0x41cc8c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cce2
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41cce2
test esi, 0x10
je 0x41cc98
mov bl, 1
jmp 0x41cce2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ccbf
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41cce2
mov bl, 1
jmp 0x41cce2
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41ccdc
cmp eax, 3
je 0x41ccdc
cmp eax, 0x7b
je 0x41ccdc
cmp eax, 0x35
jne 0x41cce0
xor ebx, ebx
jmp 0x41cce2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41cf00
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407984
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41cf55
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41cf4f
test ah, 4
je 0x41cf4f
test al, 0x10
je 0x41cf4f
mov eax, esi
call fcn.00407984
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41cf55
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x420fd4
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 0x42100d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cc8
jmp 0x421016
mov eax, ebx
mov edx, esi
call fcn.00406f20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421020
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 0x421042
movzx eax, word [esp]
jmp 0x421044
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x421d08
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 0x421e2d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421b10
mov esi, eax
mov eax, dword [0x4b731c]
cmp byte [eax], 0
je 0x421dd5
mov eax, dword [0x4b710c]
call fcn.00404a00
call fcn.00404644
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 [0x421cd8]
call fcn.00408c00
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 0x421e48
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x421e11
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4b70c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bac50]
call fcn.00408cc4
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 0x421e34
lea eax, [ebp - 4]
mov edx, dword [0x421cd8]
call fcn.00408c0c
ret
Function at 0x4237c0
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.00407044
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a8e0
mov edi, eax
cmp edi, 0x104
jbe 0x423767
mov eax, edi
add eax, eax
call fcn.004044f0
mov esi, eax
jmp 0x423769
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a8e0
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4237a4
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 0x42378e
mov eax, esp
cmp esi, eax
je 0x4237b1
mov eax, esi
call fcn.0040450c
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 0x4237ec
cmp bl, 0
je 0x4237e8
cmp bl, 0x41
jl 0x4237e3
cmp bl, 0x5a
jg 0x4237e3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4237c7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x423728

Function at 0x423fec
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.00407a18
add esp, 0x800
pop ebx
ret

Function at 0x4475e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44767e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x447642
cmp byte [ebx + 0x10], 0
jne 0x447642
cmp byte [ebx + 0x3c], 0
jne 0x447642
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 0x447663
lea edx, [ebp - 4]
mov eax, dword [0x4b72c4]
call fcn.0040a84c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x439704]
call fcn.00421e58
call fcn.004061b8
jmp 0x447663
lea edx, [ebp - 8]
mov eax, dword [0x4b72c4]
call fcn.0040a84c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x439704]
call fcn.00421e58
call fcn.004061b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447685
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x4479a4
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 0x4479f2
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.00447518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x447a0b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x447a14
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.00447518
dec esi
jne 0x447a36
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44d33c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x44d3d8
push 0
mov eax, ebx
call fcn.00407984
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x44d3b3
mov ebx, esi
test ebx, ebx
je 0x44d385
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.00407984
push eax
push 1
push 0
mov eax, edi
call fcn.00407984
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x44d3ce
mov ecx, dword [0x4b7124]
mov dl, 1
mov eax, dword [0x44b7a4]
call fcn.00421f14
call fcn.004061b8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x44d3f4
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 dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00406b40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.00407984
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x44d4b0
xor eax, eax
push ebp
push 0x44d4a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407af0
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00407984
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d48b
mov edx, dword [ebp - 8]
shr edx, 1
dec edx
mov eax, ebx
call fcn.00407af0
jmp 0x44d492
mov eax, ebx
call fcn.00406b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d4b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x453284
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4532d6
test eax, edx
je 0x4532d9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x453299
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 0x4532bf
add ecx, 4
js 0x4532af
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4532bc
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 0x4532e5
test edx, edx
jne 0x45328c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4577f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406c24
mov eax, dword [ebp - 8]
call fcn.00406c24
xor eax, eax
push ebp
push 0x457903
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x4b7044]
cmp byte [eax], 0
je 0x457856
call fcn.0040ab50
cmp byte [eax + 0x15], 0
je 0x457843
mov ebx, pe_nt_image_headers32
jmp 0x457856
call fcn.0040ab50
cmp byte [eax + 0x14], 0
je 0x457856
mov ebx, 0x200
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
or ebx, 0x20006
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x4578e8
cmp dword [ebp - 8], 0
jne 0x4578b1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
jmp 0x4578d9
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45790a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x457918
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00406c24
mov eax, dword [ebp - 8]
call fcn.00406c24
xor eax, eax
push ebp
push 0x457a58
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [edi], eax
xor ebx, ebx
mov eax, dword [0x4b7044]
cmp byte [eax], 0
je 0x45798e
call fcn.0040ab50
cmp byte [eax + 0x15], 0
je 0x45797b
mov ebx, pe_nt_image_headers32
jmp 0x45798e
call fcn.0040ab50
cmp byte [eax + 0x14], 0
je 0x45798e
mov ebx, 0x200
lea eax, [ebp - 0x18]
push eax
or ebx, 0x20019
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x457a3d
cmp dword [ebp - 8], 0
jne 0x4579bf
xor ebx, ebx
jmp 0x4579c9
mov eax, dword [ebp - 8]
call fcn.00407984
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x457a34
mov eax, dword [ebp - 0x20]
call fcn.004044f0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x457a2c
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x457a22
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x457a34
mov eax, dword [ebp - 0x1c]
call fcn.0040450c
jmp 0x457a34
mov eax, dword [ebp - 0x1c]
call fcn.0040450c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a5f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x457d94
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov edi, edx
mov esi, eax
mov byte [esp], 0
xor ebx, ebx
mov eax, dword [0x4b7044]
cmp byte [eax], 0
je 0x457dd9
call fcn.0040ab50
cmp byte [eax + 0x15], 0
je 0x457dc6
mov ebx, pe_nt_image_headers32
jmp 0x457dd9
call fcn.0040ab50
cmp byte [eax + 0x14], 0
je 0x457dd9
mov ebx, 0x200
lea eax, [esp + 4]
push eax
or ebx, 0x20006
push ebx
push 0
mov eax, edi
call fcn.00407984
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x457e23
mov eax, ebp
call fcn.00407984
push eax
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete byte [esp]
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
movzx eax, byte [esp]
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x457e30
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x4b7044]
cmp byte [eax], 0
jne 0x457e62
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov ebx, eax
jmp 0x457ee3
xor eax, eax
push ebp
push 0x457ec5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4b7044]
cmp byte [eax], 0
je 0x457ea4
call fcn.0040ab50
cmp byte [eax + 0x15], 0
je 0x457e91
mov ebx, pe_nt_image_headers32
jmp 0x457ea4
call fcn.0040ab50
cmp byte [eax + 0x14], 0
je 0x457ea4
mov ebx, 0x200
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x457ee3
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x458000
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4581f0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, 0x45820c
call fcn.00407e24
test eax, eax
je 0x4581cd
cmp byte [ebp - 0x11], 0
je 0x4581c0
xor edx, edx
push ebp
push 0x4581b6
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [0x4b7044]
cmp byte [eax], 0
je 0x45808e
call fcn.0040ab50
cmp byte [eax + 0x15], 0
je 0x45807b
mov esi, pe_nt_image_headers32
jmp 0x45808e
call fcn.0040ab50
cmp byte [eax + 0x14], 0
je 0x45808e
mov esi, 0x200
lea eax, [ebp - 0x18]
push eax
or esi, 0x2000f
push esi
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407984
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
xor edx, edx
push ebp
push 0x4581a5
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x458184
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x458184
mov esi, dword [ebp - 0x20]
dec esi
cmp esi, 0
jl 0x458184
mov eax, dword [0x4b5e94]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407af0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.004070f4
push eax
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x45817a
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407af0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00422f78
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00407bc8
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00458000
test al, al
jne 0x45817a
call fcn.004062ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4581cd
dec esi
cmp esi, 0xffffffff
jne 0x4580fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4581ac
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407af0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00457eec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4581f7
lea eax, [ebp - 0x24]
call fcn.00406b40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret