joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ef30
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5dd6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.00506990
test eax, eax
je 0x51f0d6
push edi
call fcn.00514170
add esp, 4
test eax, eax
je 0x51f0d6
xor ebx, ebx
mov eax, edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x51efb0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.00408ea0
push 1
push 0x60114c
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
call fcn.004078e0
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x51efe0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004078e0
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
je 0x51f04f
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x51f04f
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x51f015
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00514300
add esp, 8
push ebx
push esi
lea ecx, [esp + 0x40]
call fcn.00425320
cmp eax, 0xffffffff
lea ecx, [esp + 0x38]
je 0x51f04a
call fcn.0040b640
lea ecx, [esp + 0x1c]
call fcn.0040b640
jmp 0x51f0d6
call fcn.0040b640
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
and eax, 0xfffffff8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp ebp, ebx
mov eax, dword [esp + 0x20]
je 0x51f083
cmp dword [esp + 0x34], 0x10
jae 0x51f076
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.00514230
jmp 0x51f0b4
mov ebx, 0x10
cmp dword [esp + 0x34], ebx
jae 0x51f092
lea eax, [esp + 0x20]
push eax
call fcn.0050ba00
mov eax, dword [esp + 0x24]
add esp, 4
cmp dword [esp + 0x34], ebx
jae 0x51f0a9
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.005141a0
add esp, 8
or esi, 7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x34], 0x10
jb 0x51f0d6
mov eax, dword [esp + 0x20]
push eax
call fcn.005a1b1d
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x50
ret
Function at 0x51f510
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5dd746
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x10c]
xor ebx, ebx
xor edi, edi
cmp esi, ebx
je 0x51f60f
cmp byte [esi], bl
je 0x51f60f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x51f6c3
push 0x40
lea eax, [esp + 0xbc]
push ebx
push eax
call fcn.005c0cf0
movsx ecx, byte [esi]
push ecx
lea edx, [esp + 0xc8]
push 0x602b18
push edx
call fcn.005bd49b
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x51f6c3
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 8
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push 0x2d0c14
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x51f603
cmp byte [esp + 0x14], bl
jne 0x51f5fe
cmp byte [esp + 0x16], bl
je 0x51f603
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x51f6c3
push 1
push 2
lea ecx, [esp + 0x40]
call fcn.0040a750
lea eax, [esp + 0x38]
push 0x602b08
push eax
mov dword [esp + 0x10c], ebx
call fcn.00409270
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x104], 1
jb 0x51f65a
mov eax, dword [eax + 4]
jmp 0x51f65d
add eax, 4
push eax
push str.IsUSBHardDrives
push 0x1ba
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x34], esi
jb 0x51f691
mov edx, dword [esp + 0x20]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x104], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.005bd2d7
add esp, 0xf8
ret
Function at 0x521e53
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x521e99
mov eax, dword [esp + 0x20]
pop esi
add esp, 0x14
ret 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xea
jne 0x521eb5
mov eax, dword [esp + 0x24]
pop edi
pop esi
add esp, 0x14
ret 0x10
call edi
cmp eax, 0x3e5
jne 0x521f04
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x521ecd
call fcn.00536c50
jmp 0x521ed0
or eax, 0xffffffff
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x521f04
mov esi, dword [esi + 4]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x521f04
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x521f07
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x14
ret 0x10

Function at 0x521f30
Capabilities:
Create pipe

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x238]
mov ecx, dword [esi + 0x234]
push eax
push 0
push 0xa000
push 0xa000
push 0xff
push ecx
push 0x40000003
lea edx, [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi + 4], eax
pop esi
sub ecx, 1
mov eax, ecx
ret 4

Function at 0x5226b0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
mov ecx, dword [eax + 4]
push esi
push edi
mov dword [ebx + 0x10], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x14], edx
lea esi, [eax + 0xc]
mov eax, dword [esp + 0x20]
lea edi, [ebx + 0x18]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0xa000
push 0xa000
push 0xff
movsb byte es:[edi], byte [esi]
push eax
mov dword [ebx + 0x234], eax
push 0x40000003
lea eax, [ebx + 0x18]
push eax
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
mov dword [ebx + 4], eax
pop esi
pop ebx
sub ecx, 1
mov eax, ecx
ret 0x14
Function at 0x5234c0
Capabilities:
Connect pipe

Disassembly:
push 0xffffffffffffffff
push 0x5ddd96
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0xac]
mov dword fs:[0], eax
mov ebp, ecx
mov ecx, dword [esp + 0xc4]
test ecx, ecx
je 0x523517
mov edx, dword [esp + 0xc8]
mov eax, dword [ebp + 4]
push edx
push ecx
push eax
call fcn.00536f90
add esp, 0xc
cmp eax, 0xffffffff
je 0x523644
mov eax, dword [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x52353f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
xor ecx, ecx
cmp eax, 0x217
sete cl
mov eax, ecx
test eax, eax
je 0x523576
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0xbc]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x14], edx
lea edi, [eax + 0x18]
lea esi, [ebp + 0x18]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, ebp
movsb byte es:[edi], byte [esi]
call fcn.00521f30
xor eax, eax
jmp 0x523647
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.0040a750
mov dword [esp + 0xb4], 0
call esi
push eax
lea eax, [esp + 0x30]
push str.ConnectNamedPipe:
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.00408c00
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0xb4], 1
jb 0x5235cf
mov eax, dword [eax + 4]
jmp 0x5235d2
add eax, 4
push eax
push str.BaseLib::CSPIPEAcceptor::Accept
push 0x703
push str..common_socket.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x28], esi
jb 0x523606
mov edx, dword [esp + 0x14]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x78]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0xb4], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0xac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xa8
ret 0x14
Function at 0x5237f0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x100c
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x1008], eax
mov eax, dword [esp + 0x1010]
push esi
push edi
mov edi, dword [esp + 0x101c]
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x52384e
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52390f
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5238fb
push 0xfff
push eax
lea ecx, [esp + 0x19]
push ecx
mov byte [esp + 0x1c], al
call fcn.005c0cf0
add esp, 0xc
cmp dword [esi + 0x34], 0x10
jb 0x5238a0
mov ecx, dword [esi + 0x20]
jmp 0x5238a3
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x5238b0
mov eax, dword [edi]
jmp 0x5238b2
mov eax, edi
push ecx
push eax
push str._s::Enabled:_s
lea edx, [esp + 0x1c]
push 0x1000
push edx
call fcn.005bd516
lea eax, [esp + 0x24]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5238d2
sub eax, edx
cmp dword [esi + 0x18], 0x10
jb 0x5238e5
mov edi, dword [edi]
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
xor ecx, esp
call fcn.005bd2d7
add esp, 0x100c
ret 8
Function at 0x523930
Capabilities:
Set registry value

Disassembly:
mov eax, 0x200c
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
push edi
mov edi, dword [esp + 0x2020]
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
xor ebx, ebx
push ebx
push eax
push reloc.WS2_32.dll_bind
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x52398c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x523a8b
mov ecx, dword [esp + 0xc]
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x523a77
push 0xfff
lea ecx, [esp + 0x1019]
push ebx
push ecx
mov byte [esp + 0x1020], bl
call fcn.005c0cf0
add esp, 0xc
cmp dword [esp + 0x2028], ebx
mov edi, 0x602e1c
jne 0x5239e3
mov edi, 0x602e18
push ebp
mov ebp, dword [esp + 0x2028]
push edi
push ebp
push str._d:_s
lea edx, [esp + 0x1024]
push 0x1000
push edx
call fcn.005bd516
push 0xfff
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.005c0cf0
add esp, 0x20
cmp dword [esi + 0x34], 0x10
jb 0x523a26
mov esi, dword [esi + 0x20]
jmp 0x523a29
add esi, 0x20
push esi
push edi
push ebp
push str._d:_s::Enabled:_s
lea ecx, [esp + 0x28]
push 0x1000
push ecx
call fcn.005bd516
add esp, 0x18
lea eax, [esp + 0x18]
lea edx, [eax + 1]
pop ebp
jmp 0x523a50
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x523a50
mov ecx, dword [esp + 0x10]
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push 1
push ebx
lea eax, [esp + 0x1024]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005bd2d7
add esp, 0x200c
ret 0x10
Function at 0x523ab0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x523b03
lea ecx, [esp + 4]
push ecx
push esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x523b03
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.DoNotAllowExceptions
mov esi, 4
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x523b43
cmp dword [esp + 0x14], eax
je 0x523b64
mov edx, dword [esp + 4]
push esi
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
push str.DoNotAllowExceptions
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret 4

Function at 0x523d70
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x601d18
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x523dc7
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x114
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.005c0cf0
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x103
call ebp
mov esi, eax
test esi, esi
jne 0x523e41
lea eax, [esp + 0x18]
push eax
call fcn.005da96c
lea ecx, [esp + 0x1c]
push str.controlset
push ecx
call fcn.005c4121
add esp, 0xc
test eax, eax
je 0x523e41
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
call fcn.00523b80
add edi, 1
test esi, esi
je 0x523dd2
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005bd2d7
add esp, 0x114
ret
Function at 0x523e70
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x601d18
push reloc.WS2_32.dll_bind
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x523ec9
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x114
ret 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push edi
xor edi, edi
push 0x103
lea edx, [esp + 0x1d]
push 0
push edx
mov byte [esp + 0x24], 0
call fcn.005c0cf0
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x103
call ebp
mov esi, eax
test esi, esi
jne 0x523f53
lea eax, [esp + 0x18]
push eax
call fcn.005da96c
lea ecx, [esp + 0x1c]
push str.controlset
push ecx
call fcn.005c4121
add esp, 0xc
test eax, eax
je 0x523f53
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00523c70
add edi, 1
test esi, esi
je 0x523ed4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005bd2d7
add esp, 0x114
ret 8
Function at 0x524180
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push 0xffffffffffffffff
push 0x5dde58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x10]
push eax
push 0x602f40
push 1
push edi
push 0x602f30
call ebx
test eax, eax
jl 0x524243
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x524243
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x524237
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x524237
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x524237
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x524237
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jge 0x52425a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
lea eax, [esp + 0x14]
push eax
push 0x602f60
push 1
push edi
push 0x602f50
mov dword [esp + 0x28], edi
call ebx
cmp eax, edi
jl 0x52422b
lea ecx, [esp + 0x24]
call fcn.00534620
cmp dword [esi + 0x34], 0x10
mov dword [esp + 0x3c], edi
jb 0x52428e
mov eax, dword [esi + 0x20]
jmp 0x524291
lea eax, [esi + 0x20]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00534870
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [esp + 0x44]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
neg edx
sbb edx, edx
and edx, 0xfffffff5
add edx, 0x11
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
push esi
push eax
call edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x52430a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x52431a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00534630
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret 8
Function at 0x526600
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x5de196
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x474]
mov esi, ecx
mov edi, 0x20019
call fcn.00506a50
test eax, eax
je 0x526657
mov edi, 0x20119
push 0x49
xor ebx, ebx
push str.SYSTEMCurrentControlSetServicesMsLbfoProviderParametersNdisAdapters_
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00408ea0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x478], ebx
call fcn.004079f0
mov eax, dword [esp + 0x48]
mov esi, 0x10
cmp dword [esp + 0x5c], esi
jae 0x5266a0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x5266d1
cmp dword [esp + 0x5c], esi
jb 0x5266ca
mov edx, dword [esp + 0x48]
push edx
call fcn.005a1b1d
add esp, 4
xor eax, eax
jmp 0x5267ae
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
xor esi, esi
lea esp, [esp]
push 0x400
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.005c0cf0
mov eax, dword [esp + 0x20]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x74]
push edx
push esi
push eax
mov dword [esp + 0x38], 0x400
call edi
cmp eax, ebx
jne 0x52678a
lea eax, [esp + 0x60]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x526730
sub eax, edx
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408ea0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
mov byte [esp + 0x474], 1
call fcn.0045b100
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0x46c], bl
jb 0x52677e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005a1b1d
add esp, 4
add esi, 1
cmp esi, 0x20
jl 0x5266e0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x5c], 0x10
jb 0x5267a9
mov eax, dword [esp + 0x48]
push eax
call fcn.005a1b1d
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x45c
ret