joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496bc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c630
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [eax]
mov edi, dword [ebp + 8]
test eax, eax
je 0x496d74
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x529c34
push eax
call esi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x80]
push 0x529c44
push dword [eax]
call esi
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x80]
push 0x529c58
push dword [eax]
call esi
cmp dword [ebp - 0x60], 0
mov esi, eax
je 0x496d74
cmp dword [ebp - 0x84], 0
je 0x496d74
test esi, esi
je 0x496d74
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x48], 0x65004b
mov dword [ebp - 0x44], 0x620079
mov dword [ebp - 0x40], 0x61006f
mov dword [ebp - 0x3c], 0x640072
mov dword [ebp - 0x38], 0x4c0020
mov dword [ebp - 0x34], 0x790061
mov dword [ebp - 0x30], 0x75006f
mov dword [ebp - 0x2c], 0x5c0074
mov dword [ebp - 0x28], 0x750053
mov dword [ebp - 0x24], 0x730062
mov dword [ebp - 0x20], 0x690074
mov dword [ebp - 0x1c], 0x750074
mov dword [ebp - 0x18], 0x650074
mov dword [ebp - 0x14], 0x73
mov dword [ebp - 0x80], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x7c], 0
push eax
push 0x20019
lea ecx, [ebp - 0x80]
call fcn.0042f9b0
push eax
call dword [ebp - 0x60]
test eax, eax
je 0x496d65
lea ecx, [ebp - 0x78]
call fcn.0040a8b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x78]
push edi
push str._08x
push eax
call fcn.00413400
add esp, 0xc
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x14
xorps xmm0, xmm0
lea ecx, [ebp - 0x78]
movups xmmword [ebp - 0x5c], xmm0
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
call fcn.0040a680
push eax
push dword [ebp - 0x7c]
call dword [ebp - 0x84]
test eax, eax
jne 0x496d54
push 0x10
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004e212b
add esp, 0xc
mov edi, eax
push dword [ebp - 0x7c]
call esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.0040a7e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0042fb40
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 4

Function at 0x496da0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d4650
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x496dfc
cmp dword [esp + 4], 6
jb 0x496dfc
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret
Function at 0x497710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x230
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
mov ebx, dword [esp + 0x240]
push ebp
mov ebp, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x240]
test edi, edi
je 0x497848
mov eax, dword [ecx]
test eax, eax
je 0x497848
push esi
push 0x529c44
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x497847
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call fcn.004d4650
add esp, 0xc
mov dword [esp + 0x10], 0x208
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
call fcn.0040a680
push eax
push edi
call esi
lea eax, [esp + 0x34]
push eax
call fcn.0040b080
add esp, 4
lea ecx, [ebx + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040af20
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x208
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push str.Profile
push edi
call esi
lea eax, [esp + 0x34]
push eax
call fcn.0040b080
add esp, 4
lea ecx, [ebx + 0x50]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040af20
xor eax, eax
mov dword [esp + 0x14], 0x65004b
mov word [esp + 0x30], ax
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0x620079
push eax
push edi
mov dword [esp + 0x34], 0x61006f
mov dword [esp + 0x38], 0x640072
mov dword [esp + 0x3c], 0x61004c
mov dword [esp + 0x40], 0x6f0079
mov dword [esp + 0x44], 0x740075
mov dword [esp + 0x28], 4
call esi
pop esi
mov ecx, dword [esp + 0x238]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d1486
add esp, 0x230
ret 0xc
Function at 0x498ea0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x124
push 0xffffffffffffffff
push 0x50cb4b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
mov dword [ebp + 0x11c], 0
call fcn.004d1497
mov dword [ebp + 0x11c], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.004d4650
add esp, 0x10
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x498f2a
cmp dword [ebp + 4], 6
mov eax, dword [ebp + 0x11c]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp + 0x11c]
call fcn.00422280
test al, al
je 0x498f5d
lea ecx, [ebp + 0x11c]
call fcn.00421af0
test al, al
jne 0x498f5d
xor bl, bl
jmp 0x499052
lea edi, [esi + 4]
push edi
push 0
call fcn.00435b70
add esp, 8
test al, al
jne 0x498f99
mov ecx, edi
call fcn.0040ad00
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x498f8c
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0040b430
add esp, 8
lea edi, [esi + 0x1c]
push edi
push 0x1a
call fcn.00435b70
add esp, 8
test al, al
jne 0x498fd5
mov ecx, edi
call fcn.0040ad00
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x498fc8
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0040b430
add esp, 8
lea edi, [esi + 0x34]
push edi
push 2
call fcn.00435b70
add esp, 8
test al, al
jne 0x499011
mov ecx, edi
call fcn.0040ad00
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x499004
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0040b430
add esp, 8
lea edi, [esi + 0x4c]
push edi
push 0xb
call fcn.00435b70
add esp, 8
test al, al
jne 0x49904d
mov ecx, edi
call fcn.0040ad00
mov dword [ebp - 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x499040
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0040b430
add esp, 8
mov byte [esi], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
call fcn.004214f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.004d1486
lea esp, [ebp + 0x124]
pop ebp
ret
Function at 0x499110
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cba1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, edi
push 0
mov dword [ebp - 0x34], esi
push 0x25
mov dword [ebp - 0x2c], 0
call fcn.0040a5e0
push edi
cmp eax, 0xffffffff
jne 0x499176
mov ecx, esi
call fcn.0040a8d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
jmp 0x499223
lea ecx, [ebp - 0x28]
call fcn.0040a8d0
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.0040a680
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4991a8
push edi
mov ecx, esi
call fcn.0040a8d0
jmp 0x499210
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d1fdb
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.0040a680
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4991fc
cmp eax, dword [ebp - 0x30]
ja 0x4991fc
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.0040b080
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.0040af20
push ebx
call fcn.004d166f
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040a830
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a7e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 8
Function at 0x499d40
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cd2c
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004d4650
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.0040a870
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0040a870
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.00421270
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.0040a7e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c4]
call fcn.0040a7e0
lea eax, [ebp - 0x294]
push eax
call fcn.00414390
add esp, 4
test al, al
jne 0x499ea4
xor bl, bl
jmp 0x499f0b
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00438160
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.0040a670
test al, al
je 0x499ed1
xor bl, bl
jmp 0x499efc
lea ecx, [ebp - 0x27c]
call fcn.0040ad00
cmp esi, eax
je 0x499efa
call fcn.0040ad00
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x499eef
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.0040af20
mov bl, 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x27c]
call fcn.0040a7e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.0040a7e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 4
Function at 0x499f40
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cd9e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x264]
push 0x208
push 0
push eax
mov dword [ebp - 0x5c], 0x61004d
mov ebx, 0x6c
mov dword [ebp - 0x58], 0x720063
mov dword [ebp - 0x54], 0x6d006f
mov dword [ebp - 0x50], 0x640065
mov dword [ebp - 0x4c], 0x46005c
mov dword [ebp - 0x48], 0x61006c
mov dword [ebp - 0x44], 0x680073
mov dword [ebp - 0x40], 0x46005c
mov dword [ebp - 0x3c], 0x61006c
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x650048
mov dword [ebp - 0x30], 0x70006c
mov dword [ebp - 0x2c], 0x720065
mov dword [ebp - 0x28], 0x650053
mov dword [ebp - 0x24], 0x760072
mov dword [ebp - 0x20], 0x630069
mov dword [ebp - 0x1c], 0x2e0065
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.004d4650
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0
push 0
push 0x29
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.0040a870
mov dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x29c]
call fcn.0040a870
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00421270
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x29c]
call fcn.0040a7e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2b4]
call fcn.0040a7e0
lea eax, [ebp - 0x27c]
push eax
call fcn.00414390
add esp, 4
test al, al
je 0x49a148
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x280], 0
call fcn.004d1497
add esp, 4
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 4
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x27c]
push 0x80
push 4
push 1
push 0x80000000
push eax
lea ecx, [ebp - 0x280]
call fcn.004258e0
test al, al
jne 0x49a14c
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x49a148
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49a133
test eax, eax
je 0x49a133
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004d15c5
add esp, 8
mov dword [ebp - 0x280], 0
xor bl, bl
jmp 0x49a195
push esi
lea ecx, [ebp - 0x280]
call fcn.00425ac0
mov bl, al
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x280]
test esi, esi
je 0x49a195
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49a180
test eax, eax
je 0x49a180
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.004d15c5
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call fcn.0040a7e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 4
Function at 0x49ee80
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x49ee8b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0049eea0
Function at 0x4b20e0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x41c
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x42c]
push edi
mov edi, ecx
test ebx, ebx
jne 0x4b210f
xor al, al
jmp 0x4b2147
mov eax, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
or eax, 0x20019
mov dword [esp + 0x10], 0
push eax
push esi
push ebx
mov ecx, edi
call fcn.004b2420
test al, al
je 0x4b2145
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0
je 0x4b2161
mov byte [edi + 1], 1
mov al, 1
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d1486
add esp, 0x41c
ret 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4b216b
mov eax, dword [esi]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x4b2145
cmp dword [esi + 0x14], 8
jb 0x4b217f
mov esi, dword [esi]
push 0x412
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004d4650
lea ecx, [esp + 0x1c]
add esp, 0xc
mov eax, ecx
mov edx, 0x208
sub esi, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x4b21be
movzx eax, word [esi + ecx]
test ax, ax
je 0x4b21be
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4b21a0
push dword [edi + 4]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004b2730
add esp, 0xc
test eax, eax
setne al
jmp 0x4b2147
Function at 0x4b2260
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ef60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ebx
test ebx, ebx
jne 0x4b22a1
xor al, al
jmp 0x4b235c
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x4b22d0
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], 0
lea eax, [ecx + 2]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x44], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2300
sub ecx, dword [ebp - 0x44]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040af20
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push ebx
call fcn.004b2520
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040a7e0
test bl, bl
je 0x4b2349
cmp byte [edi], 0
je 0x4b237a
mov byte [edi + 1], 1
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040a7e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x14], 8
jb 0x4b2382
mov esi, dword [esi]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4b2349
xor bl, bl
jmp 0x4b234b
Function at 0x4b2730
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x228]
push 0x208
push 0
push eax
call fcn.004d4650
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4b279d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x234]
or eax, 0x20019
push eax
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b27b9
cmp eax, 2
jne 0x4b28bf
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004d1486
add esp, 0x21c
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x4b27dc
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4b289e
push esi
lea esi, [esp + 0x20]
sub esi, edi
nop dword [eax]
nop dword [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x4b284e
movzx ecx, word [esi + eax]
test cx, cx
je 0x4b284e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4b2830
push dword [esp + 0x238]
lea ecx, [eax - 2]
test edx, edx
push ebx
cmovne ecx, eax
xor eax, eax
push ebp
mov word [ecx], ax
call fcn.004b2730
add esp, 0xc
test eax, eax
je 0x4b289d
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4b2820
pop esi
xor eax, eax
mov word [edi - 2], ax
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
je 0x4b279d
mov ecx, dword [esp + 0x220]
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
call fcn.004d1486
add esp, 0x21c
ret
Function at 0x4b2900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50efc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4b2947
xor al, al
jmp 0x4b2a27
xor ecx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x28]
push ecx
push ebx
push edi
mov ecx, eax
call fcn.004b2520
test al, al
je 0x4b29d8
cmp byte [ebp + 0x14], 0
je 0x4b299b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00412c70
add esp, 8
test al, al
je 0x4b29d8
mov bl, 1
jmp 0x4b2a16
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4b29a5
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae edi, dword [ebp - 0x28]
cmp edx, dword [esi + 0x10]
jne 0x4b29d5
test edx, edx
je 0x4b29d1
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4b29d5
add ecx, 2
sub edx, 1
jne 0x4b29c0
mov bl, 1
jmp 0x4b2a16
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
cmp byte [eax], 0
je 0x4b29e8
mov byte [eax + 1], 1
mov bl, 1
jmp 0x4b2a16
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4b29f3
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x4b29fb
mov ebx, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4b29d1
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040a7e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret 0x10