joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480730
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x1a4]
cmp dword [eax + 8], 0
jne 0x4807ba
mov ecx, 0x101
mov word [ebp - 0x1a0], cx
lea edx, [ebp - 0x198]
push edx
movzx eax, word [ebp - 0x1a0]
push eax
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
je 0x48078f
mov byte [ebp - 1], 0
jmp 0x4807ba
movzx ecx, word [ebp - 0x198]
movzx edx, word [ebp - 0x1a0]
cmp ecx, edx
je 0x4807ad
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov byte [ebp - 1], 0
jmp 0x4807ba
mov eax, dword [ebp - 0x1a4]
mov dword [eax + 8], 1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret

Function at 0x482360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x482380
xor al, al
jmp 0x48241d
mov dword [ebp - 0x414], 0x20019
call fcn.0047aef0
movzx eax, al
test eax, eax
je 0x4823a8
mov ecx, dword [ebp - 0x414]
or ecx, 0x100
mov dword [ebp - 0x414], ecx
mov byte [ebp - 1], 0
mov edx, dword [ebp + 8]
push edx
push 0x5f8138
push 0x400
lea eax, [ebp - 0x410]
push eax
call fcn.005a0885
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x414]
push edx
push 0
lea eax, [ebp - 0x410]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48241a
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x482410
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x4829a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4829a9
xor ecx, ecx
jne 0x4829a9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4829ee
mov eax, dword [ebp - 0xc]
jmp 0x482a44
cmp dword [ebp - 4], 1
je 0x482a01
cmp dword [ebp - 4], 2
je 0x482a01
mov eax, 0xd
jmp 0x482a44
cmp dword [ebp + 0xc], 0
je 0x482a3a
cmp dword [ebp - 8], 0
je 0x482a34
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 1
div ecx
test edx, edx
jne 0x482a2b
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movsx eax, byte [edx - 1]
test eax, eax
je 0x482a32
mov eax, 0xd
jmp 0x482a44
jmp 0x482a3a
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x484590
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd400
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x66e8b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0xc], 0
jne 0x4845cc
mov eax, 0x80004003
jmp 0x48470a
cmp dword [ebp + 8], 0
jne 0x4845dc
mov eax, 0x80070057
jmp 0x48470a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x7a
jne 0x4846f8
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.0059cee6
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
jmp 0x48465a
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x4846ef
mov edx, dword [ebp - 0x24]
push edx
call fcn.0059df02
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4846d4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x4846b3
mov dword [ebp - 0x20], 0
jmp 0x4846d2
call fcn.00483f70
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0059de25
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x4846db
mov dword [ebp - 0x20], 0x8007000e
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.005a03f1
add esp, 4
jmp 0x4846f6
mov dword [ebp - 0x20], 0x8007000e
jmp 0x484707
mov eax, dword [ebp - 0x14]
push eax
call fcn.00484570
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484a90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 0xe]
test ecx, ecx
je 0x484ac9
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0
je 0x484ac9
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 0xc]
test ecx, ecx
je 0x484ac9
xor eax, eax
jmp 0x484b58
mov dword [ebp - 4], 0x10
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0
jne 0x484ae0
mov eax, 3
jmp 0x484b58
push 0x64
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
call fcn.0045df80
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 8], 0xffffffff
jne 0x484b0d
mov eax, 3
jmp 0x484b58
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x484b2d
mov eax, 3
jmp 0x484b58
movzx ecx, word [ebp - 0x18]
cmp ecx, 2
je 0x484b3d
mov eax, 3
jmp 0x484b58
movzx edx, word [ebp - 0x16]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp - 0x1c]
mov word [ecx + 0xc], ax
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0xe], 1
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4
Function at 0x484c50
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
je 0x484c87
xor al, al
jmp 0x484e0a
movzx eax, word [ebp - 0x2c]
cmp eax, 2
je 0x484c97
xor al, al
jmp 0x484e0a
mov cx, word [ebp - 0x2a]
mov word [ebp - 0x30], cx
mov edx, dword [ebp - 0x50]
movzx eax, word [edx + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0xc], ax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
push 0x1c
call fcn.0059cee6
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x484ce6
xor al, al
jmp 0x484e0a
mov dword [ebp - 4], 0x1c
push 0
push 5
push 2
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x7a
jne 0x484d46
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.005a03f1
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call fcn.0059cee6
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x484d46
xor al, al
jmp 0x484e0a
push 0
push 5
push 2
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.IPHLPAPI.DLL_GetExtendedTcpTable
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x484dba
mov dword [ebp - 0x10], 0
jmp 0x484d76
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx]
jge 0x484db8
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
movzx edx, word [ebp - 0x30]
mov eax, dword [ebp - 0x14]
cmp dword [eax + ecx + 0xc], edx
jne 0x484db6
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x14]
cmp dword [eax + ecx + 0x14], edx
jne 0x484db6
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 0x18]
mov dword [ebp - 8], eax
jmp 0x484d6d
jmp 0x484dd0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.005a03f1
add esp, 4
xor al, al
jmp 0x484e0a
cmp dword [ebp - 8], 0
jne 0x484dec
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.005a03f1
add esp, 4
xor al, al
jmp 0x484e0a
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.005a03f1
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.00484e20
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret 4
Function at 0x484e20
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x484e68
xor al, al
jmp 0x484f43
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
push 1
push 0x30
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x484e99
cmp dword [ebp - 0x1c], 1
jae 0x484eaa
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x484f43
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0059cee6
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
push 0
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0x30
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExA]
mov dword [ebp - 0xc], eax
mov byte [ebp - 5], 0
mov dword [ebp - 0x24], 0
jmp 0x484f02
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jae 0x484f24
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x2c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax + 0x24]
cmp edx, dword [ebp + 8]
jne 0x484f22
mov byte [ebp - 5], 1
jmp 0x484f24
jmp 0x484ef9
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005a03f1
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x48f740
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x20]
push edx
movzx eax, word [ebp + 0x18]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 8]
push edx
movzx eax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x48fa60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x48fa69
xor ecx, ecx
jne 0x48fa69
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x48fa8a
mov eax, 0xd
jmp 0x48fab6
xor eax, eax
jne 0x48fa71
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48fb50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x21c], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0059e330
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0059e330
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x208
jb 0x48fb9b
xor eax, eax
jmp 0x48fc90
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00491030
add esp, 8
push 0x5f97b8
lea edx, [ebp - 0x218]
push edx
call fcn.00491050
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00491050
add esp, 8
mov dword [ebp - 0x220], 0
mov dword [ebp - 8], 0
call fcn.0047aef0
movzx edx, al
test edx, edx
je 0x48fc21
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xffffffff
je 0x48fc21
push str.RegDeleteKeyExA
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x48fc49
push 0
push 0x100
lea ecx, [ebp - 0x218]
push ecx
push reloc.WSOCK32.dll_bind
call dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x48fc5e
lea edx, [ebp - 0x218]
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x220], 0
je 0x48fc74
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], 0
je 0x48fc8a
cmp dword [ebp - 4], 2
je 0x48fc8a
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x21c]
pop esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x48fca0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de230
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
call fcn.00490d90
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00490e40
push 0x5f97dc
lea ecx, [ebp - 0x30]
call fcn.00490e10
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00490de0
mov dword [ebp - 0x38], 0xf003f
call fcn.0047aef0
movzx edx, al
test edx, edx
je 0x48fd25
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
lea ecx, [ebp - 0x30]
call fcn.0040f680
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48fd7a
lea ecx, [ebp + 0x40]
call fcn.0040f680
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x48fd70
cmp dword [ebp - 0x3c], 2
je 0x48fd70
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00490dc0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00490dc0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00490dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x40]
call fcn.00490dc0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x48fdd0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x214], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0059e330
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0059e330
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x208
jb 0x48fe1b
xor eax, eax
jmp 0x48fedf
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00491030
add esp, 8
push 0x5f97e0
lea edx, [ebp - 0x210]
push edx
call fcn.00491050
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00491050
add esp, 8
mov dword [ebp - 0x218], 0xf003f
call fcn.0047aef0
movzx edx, al
test edx, edx
je 0x48fe7c
mov eax, dword [ebp - 0x218]
or eax, 0x100
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x218]
push edx
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48fed9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x48fecf
cmp dword [ebp - 0x21c], 2
je 0x48fecf
mov dword [ebp - 0x214], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x490000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x214], 1
mov eax, dword [ebp + 0x14]
push eax
call fcn.0059e330
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0059e330
add esp, 4
lea edx, [esi + eax + 1]
cmp edx, 0x208
jb 0x49004b
xor eax, eax
jmp 0x490183
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00490b10
add esp, 0x18
movzx eax, al
cmp eax, 1
jne 0x49007d
mov eax, 1
jmp 0x490183
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00491030
add esp, 8
push 0x5f97e8
lea eax, [ebp - 0x210]
push eax
call fcn.00491050
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00491050
add esp, 8
mov dword [ebp - 0x218], 0x20019
call fcn.0047aef0
movzx eax, al
test eax, eax
je 0x4900df
mov ecx, dword [ebp - 0x218]
or ecx, 0x100
mov dword [ebp - 0x218], ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x218]
push eax
push 0
lea ecx, [ebp - 0x210]
push ecx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x490138
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x49012c
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x490142
mov dword [ebp - 0x214], 0
xor edx, edx
jne 0x49001e
cmp dword [ebp - 0x214], 1
jne 0x49017d
cmp dword [ebp + 8], 0
je 0x49017d
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00490c70
add esp, 0x18
mov eax, dword [ebp - 0x214]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret
Function at 0x4901a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5de275
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x66e8b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
call fcn.00490d90
mov byte [ebp - 4], 3
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.00490e40
push 0x5f97ec
lea ecx, [ebp - 0x30]
call fcn.00490e10
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00490de0
mov dword [ebp - 0x38], 0x20019
call fcn.0047aef0
movzx edx, al
test edx, edx
je 0x490225
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0
lea ecx, [ebp - 0x30]
call fcn.0040f680
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49027f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
lea ecx, [ebp + 0x4c]
call fcn.0040f680
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x490273
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x490286
mov dword [ebp - 0x34], 0
xor edx, edx
jne 0x4901e2
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00490dc0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.00490dc0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.00490dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x4c]
call fcn.00490dc0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e318
mov esp, ebp
pop ebp
ret