joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8f9
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
push 0x2c
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x105], cl
mov dword [ebp - 0x110], eax
call fcn.00420790
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40aa04
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40aa10
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40a8ce
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x105]
add ecx, 0xffffffcf
cmp ecx, 3
ja case.default.0x40a8dd
jmp dword [ecx*4 + 0x40aa38]
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40a902
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa10
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a959
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
add esp, 0xc
lea eax, [ebp - 0x114]
push 4
push eax
push 4
jmp 0x40a9cb
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a97f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a970
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40a9cb
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40aa04
push 0x448bc8
push str.r32infi.bin
call fcn.00422887
mov edi, eax
lea eax, [ebp - 0x104]
push edi
push 0x100
push 1
push eax
call fcn.0042963d
push edi
mov esi, eax
call fcn.00422ada
add esp, 0x1c
lea eax, [ebp - 0x104]
push esi
push eax
push 3
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40aa04
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40aa04
pop edi
pop esi
mov eax, 1
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 - 0x110]
push str.Unable_to_set_key_value___s_
call fcn.0040a700
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40aa50
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push closesocket
mov edi, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aaf2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40aaa6
test edi, edi
jle 0x40aaf2
xor eax, eax
jmp 0x40aaa9
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 8], eax
jne 0x40aacc
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b390
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b3b0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0041f375
mov ebx, eax
add esp, 4
mov edx, ebx
mov dword [ebp - 0x11c], ebx
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x40b3d1
mov al, byte [ebx]
lea edi, [ebx + 1]
push 0x3a
push edi
mov byte [ebp - 0x10d], al
call fcn.00420790
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b530
mov cl, byte [ebp - 0x10d]
mov byte [ebx], 0x5c
sub ebx, edi
call fcn.0040a760
mov dword [ebp - 0x118], eax
nop word [eax + eax]
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b538
lea eax, [ebp - 0x124]
mov dword [ebp - 0x114], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40b530
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40b538
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push 0
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b538
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40b530
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x40b538
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b505
sub eax, edx
cmp eax, ebx
jl 0x40b538
cmp byte [eax + edi], 0x5c
lea ecx, [eax + edi]
je 0x40b522
dec eax
cmp eax, ebx
jge 0x40b512
jmp 0x40b538
mov eax, dword [ebp - 0x118]
mov byte [ecx], 0
jmp 0x40b420
push dword [ebp - 0x10c]
call esi
push 1
push dword [ebp - 0x11c]
call fcn.0041f367
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40ba90
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
mov dword [ebp - 0x60], 1
call fcn.004231d0
mov ecx, eax
push 0x3a
mov dword [ebp - 0x68], ecx
mov al, byte [ecx]
lea edi, [ecx + 1]
push edi
mov byte [ebp - 0x55], al
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40badd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebp - 0x55]
mov byte [ebx], 0x5c
add eax, 0xffffffcf
sub ebx, edi
cmp eax, 3
ja case.default.0x40baee
jmp dword [eax*4 + 0x40bc60]
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bb13
xor eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 4
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb78
sub dword [ebp - 0x60], 1
je 0x40bb9f
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bc2e
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call fcn.00427f49
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
call fcn.0040a760
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], 0x50
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bc2e
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40bb81
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc10
sub eax, edx
cmp eax, ebx
jl 0x40bc2e
nop dword [eax]
cmp byte [eax + edi], 0x5c
lea ecx, [eax + edi]
je 0x40bc4f
dec eax
cmp eax, ebx
jge 0x40bc20
push dword [ebp - 0x68]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop edi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ecx], 0
jmp 0x40bbb3
Function at 0x40baf5
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
mov dword [ebp - 0x60], 1
call fcn.004231d0
mov ecx, eax
push 0x3a
mov dword [ebp - 0x68], ecx
mov al, byte [ecx]
lea edi, [ecx + 1]
push edi
mov byte [ebp - 0x55], al
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40badd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebp - 0x55]
mov byte [ebx], 0x5c
add eax, 0xffffffcf
sub ebx, edi
cmp eax, 3
ja case.default.0x40baee
jmp dword [eax*4 + 0x40bc60]
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bb13
xor eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 4
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb78
sub dword [ebp - 0x60], 1
je 0x40bb9f
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bc2e
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call fcn.00427f49
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
call fcn.0040a760
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], 0x50
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bc2e
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40bb81
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc10
sub eax, edx
cmp eax, ebx
jl 0x40bc2e
nop dword [eax]
cmp byte [eax + edi], 0x5c
lea ecx, [eax + edi]
je 0x40bc4f
dec eax
cmp eax, ebx
jge 0x40bc20
push dword [ebp - 0x68]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop edi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ecx], 0
jmp 0x40bbb3
Function at 0x40bafc
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
mov dword [ebp - 0x60], 1
call fcn.004231d0
mov ecx, eax
push 0x3a
mov dword [ebp - 0x68], ecx
mov al, byte [ecx]
lea edi, [ecx + 1]
push edi
mov byte [ebp - 0x55], al
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40badd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebp - 0x55]
mov byte [ebx], 0x5c
add eax, 0xffffffcf
sub ebx, edi
cmp eax, 3
ja case.default.0x40baee
jmp dword [eax*4 + 0x40bc60]
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bb13
xor eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 4
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb78
sub dword [ebp - 0x60], 1
je 0x40bb9f
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bc2e
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call fcn.00427f49
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
call fcn.0040a760
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], 0x50
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bc2e
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40bb81
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc10
sub eax, edx
cmp eax, ebx
jl 0x40bc2e
nop dword [eax]
cmp byte [eax + edi], 0x5c
lea ecx, [eax + edi]
je 0x40bc4f
dec eax
cmp eax, ebx
jge 0x40bc20
push dword [ebp - 0x68]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop edi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ecx], 0
jmp 0x40bbb3
Function at 0x40bb03
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
mov dword [ebp - 0x60], 1
call fcn.004231d0
mov ecx, eax
push 0x3a
mov dword [ebp - 0x68], ecx
mov al, byte [ecx]
lea edi, [ecx + 1]
push edi
mov byte [ebp - 0x55], al
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40badd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebp - 0x55]
mov byte [ebx], 0x5c
add eax, 0xffffffcf
sub ebx, edi
cmp eax, 3
ja case.default.0x40baee
jmp dword [eax*4 + 0x40bc60]
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bb13
xor eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 4
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb78
sub dword [ebp - 0x60], 1
je 0x40bb9f
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bc2e
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call fcn.00427f49
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
call fcn.0040a760
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], 0x50
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bc2e
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40bb81
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc10
sub eax, edx
cmp eax, ebx
jl 0x40bc2e
nop dword [eax]
cmp byte [eax + edi], 0x5c
lea ecx, [eax + edi]
je 0x40bc4f
dec eax
cmp eax, ebx
jge 0x40bc20
push dword [ebp - 0x68]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop edi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ecx], 0
jmp 0x40bbb3
Function at 0x40bb0a
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
mov dword [ebp - 0x60], 1
call fcn.004231d0
mov ecx, eax
push 0x3a
mov dword [ebp - 0x68], ecx
mov al, byte [ecx]
lea edi, [ecx + 1]
push edi
mov byte [ebp - 0x55], al
call fcn.00420790
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40badd
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebp - 0x55]
mov byte [ebx], 0x5c
add eax, 0xffffffcf
sub ebx, edi
cmp eax, 3
ja case.default.0x40baee
jmp dword [eax*4 + 0x40bc60]
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, closesocket
jmp 0x40bb13
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40bb13
xor eax, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 4
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb78
sub dword [ebp - 0x60], 1
je 0x40bb9f
push 4
lea eax, [ebp - 0x60]
push eax
push 4
push 0
push str.SharedCounter
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40bc2e
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x68]
call fcn.00427f49
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x55]
call fcn.0040a760
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0xf003f
push 0
push edi
push eax
call esi
test eax, eax
jne 0x40bb81
lea eax, [ebp - 0x78]
mov dword [ebp - 0x70], 0x50
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 0x5c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bc2e
push edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40bb81
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bc10
sub eax, edx
cmp eax, ebx
jl 0x40bc2e
nop dword [eax]
cmp byte [eax + edi], 0x5c
lea ecx, [eax + edi]
je 0x40bc4f
dec eax
cmp eax, ebx
jge 0x40bc20
push dword [ebp - 0x68]
call fcn.00427f49
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop edi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [ecx], 0
jmp 0x40bbb3
Function at 0x40bc70
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