joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ca24
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.00407794
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ca8e
test ah, 4
je 0x41ca87
test bl, bl
jne 0x41ca4c
mov al, 1
jmp 0x41cab5
test al, 0x10
je 0x41ca54
xor eax, eax
jmp 0x41cab5
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ca78
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41cab5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41cab5
test al, 0x10
sete al
jmp 0x41cab5
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41caaf
cmp ebx, 3
je 0x41caaf
cmp ebx, 0x7b
je 0x41caaf
mov eax, esi
call fcn.0041c9e4
test al, al
jne 0x41cab3
xor eax, eax
jmp 0x41cab5
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41cabc
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.00407794
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41cb63
test esi, 0x400
jne 0x41caf8
test esi, 0x10
setne bl
jmp 0x41cb82
cmp byte [esp], 0
je 0x41cb2c
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cb82
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41cb82
test esi, 0x10
je 0x41cb38
mov bl, 1
jmp 0x41cb82
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cb5f
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41cb82
mov bl, 1
jmp 0x41cb82
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41cb7c
cmp eax, 3
je 0x41cb7c
cmp eax, 0x7b
je 0x41cb7c
cmp eax, 0x35
jne 0x41cb80
xor ebx, ebx
jmp 0x41cb82
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41cc88
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41cd2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00407794
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x41cd12
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.0041b11c
test al, al
je 0x41cd12
mov eax, dword [ebp - 4]
call fcn.0041d3cc
test al, al
je 0x41cd02
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0041d14c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004230bc
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.004079f0
mov eax, dword [ebp - 4]
call fcn.00407794
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cd34
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406b88
ret
Function at 0x41cd40
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 0x41ce13
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406f50
cmp byte [ebp - 9], 0
je 0x41cdd1
mov eax, ebx
call fcn.00407794
push eax
call sub.kernel32.dll_GetFileAttributesW
test ah, 4
je 0x41cdd1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0041b11c
test al, al
je 0x41cdd1
mov eax, dword [ebp - 8]
call fcn.0041d3cc
test al, al
je 0x41cdc6
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0041d14c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004230bc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.004079f0
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406f50
push edi
mov eax, dword [ebp - 4]
call fcn.00407794
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x41cdeb
call sub.kernel32.dll_GetLastError_2
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ce1a
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x41cf3c
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.00407794
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41cf91
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41cf8b
test ah, 4
je 0x41cf8b
test al, 0x10
je 0x41cf8b
mov eax, esi
call fcn.00407794
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41cf91
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421118
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 0x421151
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cb0
jmp 0x42115a
mov eax, ebx
mov edx, esi
call fcn.00406f08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x421164
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 0x421186
movzx eax, word [esp]
jmp 0x421188
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x421e4c
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 0x421f71
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421c54
mov esi, eax
mov eax, dword [0x4bf7c0]
cmp byte [eax], 0
je 0x421f19
mov eax, dword [0x4bf56c]
call fcn.004049e8
call fcn.0040462c
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 [0x421e1c]
call fcn.00408ab8
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 0x421f8c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x421f55
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4bf51c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c2c50]
call fcn.00408b7c
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 0x421f78
lea eax, [ebp - 4]
mov edx, dword [0x421e1c]
call fcn.00408ac4
ret

Function at 0x423904
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.0040702c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a608
mov edi, eax
cmp edi, 0x104
jbe 0x4238ab
mov eax, edi
add eax, eax
call fcn.004044d8
mov esi, eax
jmp 0x4238ad
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a608
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4238e8
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 0x4238d2
mov eax, esp
cmp esi, eax
je 0x4238f5
mov eax, esi
call fcn.004044f4
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 0x423930
cmp bl, 0
je 0x42392c
cmp bl, 0x41
jl 0x423927
cmp bl, 0x5a
jg 0x423927
or bl, 0x20
xor al, bl
inc esi
jmp 0x42390b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42386c

Function at 0x424130
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.00407840
add esp, 0x800
pop ebx
ret
Function at 0x4476e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44777e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x447742
cmp byte [ebx + 0x10], 0
jne 0x447742
cmp byte [ebx + 0x3c], 0
jne 0x447742
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 0x447763
lea edx, [ebp - 4]
mov eax, dword [0x4bf75c]
call fcn.0040a574
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x439804]
call fcn.00421f9c
call fcn.004061a0
jmp 0x447763
lea edx, [ebp - 8]
mov eax, dword [0x4bf75c]
call fcn.0040a574
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x439804]
call fcn.00421f9c
call fcn.004061a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447785
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x447a9c
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 0x447aea
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.00447618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x447b03
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x447b0c
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.00447618
dec esi
jne 0x447b2e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44d434
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 0x44d4d0
push 0
mov eax, ebx
call fcn.00407794
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x44d4ab
mov ebx, esi
test ebx, ebx
je 0x44d47d
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.00407794
push eax
push 1
push 0
mov eax, edi
call fcn.00407794
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 0x44d4c6
mov ecx, dword [0x4bf588]
mov dl, 1
mov eax, dword [0x44b89c]
call fcn.00422058
call fcn.004061a0
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x44d4ec
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.00406b28
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.00407794
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x44d5a8
xor eax, eax
push ebp
push 0x44d5a1
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.00407918
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.00407794
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407794
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d583
mov edx, dword [ebp - 8]
shr edx, 1
dec edx
mov eax, ebx
call fcn.00407918
jmp 0x44d58a
mov eax, ebx
call fcn.00406b28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d5a8
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 0x450924
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x450976
test eax, edx
je 0x450979
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x450939
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 0x45095f
add ecx, 4
js 0x45094f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x45095c
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 0x450985
test edx, edx
jne 0x45092c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x456064
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.00407794
push eax
push 0x800
lea eax, [ebp - 0x1000]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00407794
push eax
mov eax, edi
call fcn.00407794
push eax
mov eax, esi
call fcn.00407794
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
mov ecx, eax
lea edx, [ebp - 0x1000]
mov eax, dword [ebp + 8]
call fcn.00406cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x456c28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x456cfe
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor esi, esi
push ebp
push 0x456cd1
push dword fs:[esi]
mov dword fs:[esi], esp
test dl, dl
je 0x456c82
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00407890
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0041b864
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0xfde9
call fcn.004072b8
jmp 0x456c91
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0xfde9
call fcn.00407404
mov eax, 1
mov edx, dword [ebp - 4]
test edx, edx
je 0x456ca2
sub edx, 4
mov edx, dword [edx]
test edx, edx
jle 0x456cc4
mov ecx, 1
imul eax, eax, 0x5517e877
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + ecx - 1]
xor eax, dword [ebx*4 + 0x4bde4c]
inc ecx
dec edx
jne 0x456cab
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x456cdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456d05
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406be8
lea eax, [ebp - 4]
call fcn.00406b4c
ret
Function at 0x456d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x456e30
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor ecx, ecx
push ebp
push 0x456e03
push dword fs:[ecx]
mov dword fs:[ecx], esp
test dl, dl
je 0x456d7b
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00407890
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041b864
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0xfde9
call fcn.004072b8
jmp 0x456d8a
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0xfde9
call fcn.00407404
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x456da4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x456ded
mov esi, 1
push 0
push 0x5517e877
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00408588
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
mov edx, dword [eax*8 + 0x4be254]
mov eax, dword [eax*8 + 0x4be250]
xor eax, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc esi
dec ebx
jne 0x456daf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x456e0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456e37
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406be8
lea eax, [ebp - 4]
call fcn.00406b4c
ret
Function at 0x459ed8
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.00406c0c
mov eax, dword [ebp - 8]
call fcn.00406c0c
xor eax, eax
push ebp
push 0x459feb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x4bf48c]
cmp byte [eax], 0
je 0x459f3e
call fcn.0040a878
cmp byte [eax + 0x15], 0
je 0x459f2b
mov ebx, pe_nt_image_headers32
jmp 0x459f3e
call fcn.0040a878
cmp byte [eax + 0x14], 0
je 0x459f3e
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.00407794
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x459fd0
cmp dword [ebp - 8], 0
jne 0x459f99
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 0x459fc1
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.00407794
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 0x459ff2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret
Function at 0x45a000
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.00406c0c
mov eax, dword [ebp - 8]
call fcn.00406c0c
xor eax, eax
push ebp
push 0x45a140
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 [0x4bf48c]
cmp byte [eax], 0
je 0x45a076
call fcn.0040a878
cmp byte [eax + 0x15], 0
je 0x45a063
mov ebx, pe_nt_image_headers32
jmp 0x45a076
call fcn.0040a878
cmp byte [eax + 0x14], 0
je 0x45a076
mov ebx, 0x200
lea eax, [ebp - 0x18]
push eax
or ebx, 0x20019
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00407794
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x45a125
cmp dword [ebp - 8], 0
jne 0x45a0a7
xor ebx, ebx
jmp 0x45a0b1
mov eax, dword [ebp - 8]
call fcn.00407794
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 0x45a11c
mov eax, dword [ebp - 0x20]
call fcn.004044d8
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 0x45a114
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x45a10a
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x45a11c
mov eax, dword [ebp - 0x1c]
call fcn.004044f4
jmp 0x45a11c
mov eax, dword [ebp - 0x1c]
call fcn.004044f4
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 0x45a147
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x45a428
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 [0x4bf48c]
cmp byte [eax], 0
je 0x45a46d
call fcn.0040a878
cmp byte [eax + 0x15], 0
je 0x45a45a
mov ebx, pe_nt_image_headers32
jmp 0x45a46d
call fcn.0040a878
cmp byte [eax + 0x14], 0
je 0x45a46d
mov ebx, 0x200
lea eax, [esp + 4]
push eax
or ebx, 0x20006
push ebx
push 0
mov eax, edi
call fcn.00407794
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x45a4b7
mov eax, ebp
call fcn.00407794
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 0x45a4c4
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 [0x4bf48c]
cmp byte [eax], 0
jne 0x45a4f6
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov ebx, eax
jmp 0x45a577
xor eax, eax
push ebp
push 0x45a559
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4bf48c]
cmp byte [eax], 0
je 0x45a538
call fcn.0040a878
cmp byte [eax + 0x15], 0
je 0x45a525
mov ebx, pe_nt_image_headers32
jmp 0x45a538
call fcn.0040a878
cmp byte [eax + 0x14], 0
je 0x45a538
mov ebx, 0x200
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00407794
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 0x45a577
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret