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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov edi, eax
mov bh, byte [edi + 1]
lea esi, [edi + 1]
inc esi
push 0x2c
mov bl, byte [edi]
push esi
call fcn.00420790
add esp, 0xc
test eax, eax
je 0x40bca9
mov byte [eax], 0
movsx eax, bl
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40bcb4
jmp dword [eax*4 + 0x40bdf0]
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bcd9
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdd2
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bdc6
movsx eax, bh
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00420790
mov edx, eax
add esp, 8
test edx, edx
je 0x40bdc6
lea esi, [edx + 1]
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd51
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push esi
push edx
call fcn.00422210
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd71
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40bdc6
push edi
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40bcc2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov edi, eax
mov bh, byte [edi + 1]
lea esi, [edi + 1]
inc esi
push 0x2c
mov bl, byte [edi]
push esi
call fcn.00420790
add esp, 0xc
test eax, eax
je 0x40bca9
mov byte [eax], 0
movsx eax, bl
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40bcb4
jmp dword [eax*4 + 0x40bdf0]
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bcd9
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdd2
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bdc6
movsx eax, bh
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00420790
mov edx, eax
add esp, 8
test edx, edx
je 0x40bdc6
lea esi, [edx + 1]
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd51
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push esi
push edx
call fcn.00422210
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd71
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40bdc6
push edi
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40bcc9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov edi, eax
mov bh, byte [edi + 1]
lea esi, [edi + 1]
inc esi
push 0x2c
mov bl, byte [edi]
push esi
call fcn.00420790
add esp, 0xc
test eax, eax
je 0x40bca9
mov byte [eax], 0
movsx eax, bl
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40bcb4
jmp dword [eax*4 + 0x40bdf0]
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bcd9
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdd2
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bdc6
movsx eax, bh
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00420790
mov edx, eax
add esp, 8
test edx, edx
je 0x40bdc6
lea esi, [edx + 1]
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd51
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push esi
push edx
call fcn.00422210
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd71
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40bdc6
push edi
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov edi, eax
mov bh, byte [edi + 1]
lea esi, [edi + 1]
inc esi
push 0x2c
mov bl, byte [edi]
push esi
call fcn.00420790
add esp, 0xc
test eax, eax
je 0x40bca9
mov byte [eax], 0
movsx eax, bl
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40bcb4
jmp dword [eax*4 + 0x40bdf0]
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, closesocket
jmp 0x40bcd9
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bcd9
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bdd2
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bdc6
movsx eax, bh
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00420790
mov edx, eax
add esp, 8
test edx, edx
je 0x40bdc6
lea esi, [edx + 1]
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd51
sub ecx, ebx
lea eax, [ecx + 1]
push eax
push esi
push edx
call fcn.00422210
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd71
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push str.SignatureOrder
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40bdc6
push edi
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40be00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov ecx, eax
mov dword [ebp - 0x118], ecx
push 0x2c
mov al, byte [ecx]
mov byte [ebp - 0x10e], al
lea eax, [ecx + 1]
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x10d], cl
mov dword [ebp - 0x11c], eax
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c022
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40c02e
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40be85
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x10d]
lea eax, [ebp - 0x108]
push ebx
push ecx
push str._c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movsx eax, byte [ebp - 0x10e]
add esp, 0x10
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40beb2
jmp dword [eax*4 + 0x40c050]
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bed7
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c02e
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bf55
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x114]
add esp, 0xc
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push 4
lea eax, [ebp - 0x114]
push eax
push 4
jmp 0x40bfdd
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bfaf
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf70
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
push ecx
push edi
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bfa0
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40bfdd
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40c022
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push eax
push 3
push eax
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push eax
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push dword [ebp - 0x118]
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x118]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40beb9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov ecx, eax
mov dword [ebp - 0x118], ecx
push 0x2c
mov al, byte [ecx]
mov byte [ebp - 0x10e], al
lea eax, [ecx + 1]
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x10d], cl
mov dword [ebp - 0x11c], eax
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c022
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40c02e
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40be85
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x10d]
lea eax, [ebp - 0x108]
push ebx
push ecx
push str._c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movsx eax, byte [ebp - 0x10e]
add esp, 0x10
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40beb2
jmp dword [eax*4 + 0x40c050]
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bed7
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c02e
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bf55
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x114]
add esp, 0xc
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push 4
lea eax, [ebp - 0x114]
push eax
push 4
jmp 0x40bfdd
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bfaf
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf70
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
push ecx
push edi
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bfa0
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40bfdd
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40c022
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push eax
push 3
push eax
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push eax
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push dword [ebp - 0x118]
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x118]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40bec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov ecx, eax
mov dword [ebp - 0x118], ecx
push 0x2c
mov al, byte [ecx]
mov byte [ebp - 0x10e], al
lea eax, [ecx + 1]
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x10d], cl
mov dword [ebp - 0x11c], eax
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c022
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40c02e
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40be85
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x10d]
lea eax, [ebp - 0x108]
push ebx
push ecx
push str._c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movsx eax, byte [ebp - 0x10e]
add esp, 0x10
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40beb2
jmp dword [eax*4 + 0x40c050]
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bed7
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c02e
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bf55
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x114]
add esp, 0xc
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push 4
lea eax, [ebp - 0x114]
push eax
push 4
jmp 0x40bfdd
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bfaf
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf70
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
push ecx
push edi
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bfa0
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40bfdd
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40c022
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push eax
push 3
push eax
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push eax
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push dword [ebp - 0x118]
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x118]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40bec7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov ecx, eax
mov dword [ebp - 0x118], ecx
push 0x2c
mov al, byte [ecx]
mov byte [ebp - 0x10e], al
lea eax, [ecx + 1]
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x10d], cl
mov dword [ebp - 0x11c], eax
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c022
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40c02e
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40be85
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x10d]
lea eax, [ebp - 0x108]
push ebx
push ecx
push str._c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movsx eax, byte [ebp - 0x10e]
add esp, 0x10
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40beb2
jmp dword [eax*4 + 0x40c050]
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bed7
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c02e
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bf55
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x114]
add esp, 0xc
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push 4
lea eax, [ebp - 0x114]
push eax
push 4
jmp 0x40bfdd
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bfaf
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf70
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
push ecx
push edi
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bfa0
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40bfdd
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40c022
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push eax
push 3
push eax
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push eax
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push dword [ebp - 0x118]
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x118]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40bece
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
call fcn.004231d0
mov ecx, eax
mov dword [ebp - 0x118], ecx
push 0x2c
mov al, byte [ecx]
mov byte [ebp - 0x10e], al
lea eax, [ecx + 1]
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x10d], cl
mov dword [ebp - 0x11c], eax
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40c022
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40c02e
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40be85
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x10d]
lea eax, [ebp - 0x108]
push ebx
push ecx
push str._c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
movsx eax, byte [ebp - 0x10e]
add esp, 0x10
add eax, 0xffffffcf
cmp eax, 3
ja case.default.0x40beb2
jmp dword [eax*4 + 0x40c050]
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, closesocket
jmp 0x40bed7
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bed7
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c02e
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bf55
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x114]
add esp, 0xc
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push 4
lea eax, [ebp - 0x114]
push eax
push 4
jmp 0x40bfdd
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40bfaf
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf70
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
push ecx
push edi
push 1
push 0
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bfa0
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40bfdd
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40c022
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push eax
push 3
push eax
push ebx
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push eax
push eax
push 3
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40c022
push dword [ebp - 0x118]
call fcn.00427f49
add esp, 4
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x118]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret