joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43101c
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.0040c824
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x431071
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x43106b
test ah, 4
je 0x43106b
test al, 0x10
je 0x43106b
mov eax, esi
call fcn.0040c824
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x431071
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x436a38
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
test eax, eax
jle 0x436a71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040ba4c
jmp 0x436a7a
mov eax, ebx
mov edx, esi
call fcn.0040bca4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x436a84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x436aa8
movzx eax, word [esp]
jmp 0x436aaa
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x438790
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 0x4388b7
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00438598
mov esi, eax
mov eax, dword [0x8dd784]
cmp byte [eax], 0
je 0x43885d
mov eax, dword [0x8dcaa0]
call fcn.004081d0
call fcn.00407348
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x438760]
call fcn.0040f1a0
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4388d0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x438899
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x8dc8e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8e163c]
call fcn.0040f8a0
push eax
call sub.user32.dll_LoadStringW
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 0x4388be
lea eax, [ebp - 4]
mov edx, dword [0x438760]
call fcn.0040f2c4
pop eax
jmp eax
Function at 0x439ac8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x439b0b
mov eax, dword [ebp - 0x10c]
mov dword [0x8f2500], eax
mov eax, 0x8f2504
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040c8d8
mov eax, 0x8f2508
call fcn.0040b8b4
xor eax, eax
mov dword [0x8f250c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x8f23c4], 0xa
jl 0x439c61
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x439c6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x439c61
xor eax, eax
push ebp
push 0x439c5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x439cc8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x439bba
cmp dword [ebp - 8], 2
jle 0x439bba
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x439b8d
adc edx, 0
mov eax, 0x8f2508
call fcn.0040c9b0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x8f2508]
call fcn.0040c824
push eax
push 0
push 0
push 0x439cc8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x439c14
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x439ce8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x439c14
cmp dword [ebp - 8], 2
jle 0x439c14
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x439be9
adc edx, 0
mov eax, 0x8f2508
call fcn.0040c9b0
lea eax, [ebp - 8]
push eax
mov eax, dword [0x8f2508]
call fcn.0040c824
push eax
push 0
push 0
push 0x439ce8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x8f250c
push 0
push 0
push 0x439cfc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x439c41
xor eax, eax
mov dword [0x8f250c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439c61
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x8c9480], 1
mov esp, ebp
pop ebp
ret
Function at 0x439e00
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 0x439eda
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bcec
lea eax, [ebp - 4]
call fcn.0040be90
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x439ec2
mov eax, ebx
call fcn.00407160
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x439ebb
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.0040c824
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x439ea3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x439eec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x439ea3
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 0x439ec2
mov eax, dword [ebp - 0x10]
call fcn.0040717c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439ee1
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x43bae0
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
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040c8d8
add esp, 0x800
pop ebx
ret

Function at 0x43be70
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040b8b4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040c824
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x43beb5
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040ba4c
jmp 0x43bece
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040c9b0
push ebx
mov eax, dword [esi]
call fcn.0040c824
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43ca20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x43ca3e
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x43ca56
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x43ca51
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x43ca5b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x43cac9
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x43cb12
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43ca87
inc dword [ebp - 0xc]
jmp 0x43ca9f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x43ca9f
cmp dword [ebp - 0xc], 0
jle 0x43ca9f
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x43cac1
xor eax, eax
jmp 0x43cabd
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43cabc
mov eax, esi
jmp 0x43cb15
inc eax
cmp eax, ecx
jle 0x43caa9
inc esi
cmp esi, dword [ebp - 8]
jl 0x43ca73
jmp 0x43cb12
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x43cb12
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43caea
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x43cb0c
xor eax, eax
jmp 0x43cb08
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x43cb07
mov eax, esi
jmp 0x43cb15
inc eax
cmp eax, ecx
jle 0x43caf4
inc esi
cmp esi, dword [ebp - 8]
jl 0x43cad2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43ccd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x43ccf1
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x43ccff
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x43ce21
test ebx, ebx
jl 0x43ce21
test esi, esi
jle 0x43ce21
mov eax, dword [ebp - 8]
call fcn.0040c824
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040c824
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x43cdbe
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x43ce21
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x43cda3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x43cd72
inc dword [ebp - 0x14]
jmp 0x43cd82
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x43cd82
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x43cd8d
or eax, 0xffffffff
jmp 0x43cda3
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x43cda0
inc eax
jmp 0x43cda3
or eax, 0xffffffff
test eax, eax
jl 0x43cdab
cmp esi, eax
jg 0x43cd60
cmp esi, eax
jg 0x43cdb6
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x43ce24
inc edx
dec dword [ebp - 0x1c]
jne 0x43cd5c
jmp 0x43ce21
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x43ce21
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x43ce08
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x43cde7
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x43cdf2
or eax, 0xffffffff
jmp 0x43ce08
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x43ce05
inc eax
jmp 0x43ce08
or eax, 0xffffffff
test eax, eax
jl 0x43ce10
cmp esi, eax
jg 0x43cdd0
cmp esi, eax
jg 0x43ce1b
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x43ce24
inc edx
dec dword [ebp - 0x1c]
jne 0x43cdcc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x450dbc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x450dc4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x454f90
Capabilities:
Encode data using xor

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x454fa7
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x454f97
mov eax, ecx
pop ebx
ret
Function at 0x467938
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x46794c
add esp, 0xfffffff0
call fcn.00409fb0
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x4618bc]
call fcn.004832b0
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x466908]
call fcn.004849cc
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x466908]
call fcn.004849cc
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x4679a1
call fcn.0040a008
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c7204
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4c7247
cmp byte [ebx + 0x11], 0
jne 0x4c7247
cmp byte [ebx + 0x24], 0
jne 0x4c7247
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c725e
mov ecx, dword [0x8dd584]
mov dl, 1
mov eax, dword [0x495a80]
call fcn.004389c0
call fcn.0040af20
pop ebx
ret
mov ecx, dword [0x8dd584]
mov dl, 1
mov eax, dword [0x495a80]
call fcn.004389c0
call fcn.0040af20
pop ebx
ret

Function at 0x4c78e4
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c7932
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c717c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c794b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c7954
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c717c
dec esi
jne 0x4c7976
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4ca438
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x8f54d4
cmp dword [edi], 0
jne 0x4ca4b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x8f54d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x8cae4c
mov ecx, 2
call fcn.00407720
mov edx, 0x4ca410
lea eax, [esi + 5]
call fcn.004ca430
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004ca430
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 0x4ca489
mov dword [0x8f54d0], 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 0x4f7938
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 0x4f7af7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040bcec
mov eax, dword [ebp - 4]
call fcn.004f72f4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4f798a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040cca4
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.004f81bc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4f7a6b
xor eax, eax
push ebp
push 0x4f7a64
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004f7524
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004f7b2c
test al, al
je 0x4f7a40
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040ba4c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4f7a40
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.0040c824
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.004f7484
test al, al
je 0x4f7a3a
mov eax, dword [ebp - 8]
call fcn.0040c824
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040c884
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004f7938
dec ebx
cmp ebx, 0xffffffff
jne 0x4f79e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7a6b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004f7524
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x8f55f4], 0
je 0x4f7aab
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004f7510
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f7484
mov ebx, eax
jmp 0x4f7ad2
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004f7510
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004f7484
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7afe
lea eax, [ebp - 0x3c]
call fcn.0040b8b4
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b914
pop eax
jmp eax
Function at 0x4f7b9c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f7c56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004f7b2c
test al, al
je 0x4f7c36
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040ba4c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4f7c36
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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.0040c824
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040c824
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040c884
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4f7bef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7c5d
lea eax, [ebp - 0x2c]
call fcn.0040b8b4
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax

Function at 0x4f7e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f7eca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004f7b2c
test al, al
je 0x4f7eaa
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040ba4c
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4f7eaa
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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.0040c824
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040c824
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040c884
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4f7e63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7ed1
lea eax, [ebp - 0x2c]
call fcn.0040b8b4
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax
Function at 0x4f80bc
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.004f730c
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.0040c824
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004f7484
test al, al
jne 0x4f8124
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8dd1a0]
mov dl, 1
mov eax, dword [0x4f59a8]
call fcn.004389fc
call fcn.0040af20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f8130
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.0040c824
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004f7484
test al, al
jne 0x4f8191
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x8dde40]
mov dl, 1
mov eax, dword [0x4f59a8]
call fcn.004389fc
call fcn.0040af20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004f737c
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 0x5047ac
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 0x5047b2
ret