joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500c50
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ceb36
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2a0]
test edi, edi
mov esi, dword [esp + 0x2a4]
je 0x500e4a
cmp byte [edi], 0
je 0x500e4a
test esi, esi
je 0x500e4a
cmp byte [esi], 0
je 0x500e4a
push 1
push 2
lea ecx, [esp + 0xd4]
call fcn.0040b160
push esi
push 0x5f3230
lea eax, [esp + 0xd4]
push edi
push eax
mov dword [esp + 0x2a8], 0
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xd0]
call fcn.00409610
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x500d1f
mov eax, dword [eax + 4]
jmp 0x500d22
add eax, 4
lea edx, [esp + 0x14c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.0040c050
cmp esi, 0xffffffff
je 0x500e2c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x500d50
push 1
call ebp
push 1
push 2
lea ecx, [esp + 0x54]
call fcn.0040b160
lea eax, [esp + 0x178]
push eax
lea ecx, [esp + 0x50]
push edi
push ecx
mov byte [esp + 0x2a4], 1
call fcn.00409c80
add esp, 8
push eax
call fcn.00409c80
mov edx, dword [esp + 0x154]
and edx, ebx
add esp, 8
cmp dl, bl
je 0x500ddf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x50]
call fcn.00409610
cmp dword [eax + 0x18], ebx
jb 0x500dad
mov eax, dword [eax + 4]
jmp 0x500db0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x2c], ebx
jb 0x500dca
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00594e98
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x98]
mov byte [esp + 0x298], 0
call fcn.00409f20
lea edx, [esp + 0x98]
push edx
mov dword [esp + 0x9c], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
lea eax, [esp + 0x14c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x500d50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xcc]
mov dword [esp + 0x298], 0xffffffff
call fcn.00409ef0
mov eax, 1
jmp 0x500e4c
xor eax, eax
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.005b0968
add esp, 0x288
ret
Function at 0x503060
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5cef4c
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push esi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x503176
test al, 1
je 0x503176
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x503176
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.0040b160
mov dword [esp + 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x28]
push str.setAttr_false___err
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x12c], 1
jb 0x503119
mov eax, dword [eax + 4]
jmp 0x50311c
add eax, 4
push eax
push str.BaseLib::CxxDeleteFile
push 0x95e
push str..common_function.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x20], esi
jb 0x503150
mov edx, dword [esp + 0xc]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00409f20
lea eax, [esp + 0x70]
mov dword [esp + 0x70], vtable.std::ios_base.0
push eax
jmp 0x503283
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x50319d
mov eax, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x128
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x50328b
push 1
push 2
lea ecx, [esp + 0xac]
call fcn.0040b160
mov dword [esp + 0x12c], 2
call esi
push eax
lea ecx, [esp + 0xa8]
push str.deletefile_false___err
push ecx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0xa8]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x12c], 3
jb 0x503210
mov eax, dword [eax + 4]
jmp 0x503213
add eax, 4
push eax
push str.BaseLib::CxxDeleteFile
push 0x967
push str..common_function.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x20], esi
jb 0x503247
mov eax, dword [esp + 0xc]
push eax
call fcn.00594e98
add esp, 4
xor eax, eax
lea ecx, [esp + 0xf0]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x12c], 0xffffffff
call fcn.00409f20
lea ecx, [esp + 0xf0]
mov dword [esp + 0xf0], vtable.std::ios_base.0
push ecx
call fcn.005cccbe
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x128
ret
Function at 0x503c80
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c]
sub esp, 0x1c
push 0xffffffffffffffff
push 0x5cf0c1
mov eax, dword fs:[0]
push eax
sub esp, 0x104
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x24]
xor esi, esi
cmp eax, esi
je 0x503eb9
cmp byte [eax], 0
je 0x503eb9
mov ebx, 2
push 0x40000
mov dword [ebp - 4], ebx
call fcn.00594e9d
mov edi, eax
add esp, 4
cmp edi, esi
jne 0x503d79
push 1
push ebx
lea ecx, [ebp - 0x90]
call fcn.0040b160
lea eax, [ebp - 0x90]
push 0x5f3658
push eax
mov byte [ebp - 4], 3
call fcn.00409c80
add esp, 8
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x90]
call fcn.00409610
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [ebp - 4], 4
jb 0x503d30
mov esi, dword [eax + 4]
jmp 0x503d33
lea esi, [eax + 4]
call fcn.00409980
push esi
push str.BaseLib::CRC32File
push 0xb9a
push str..common_function.cpp
push 0xf0000000
mov ecx, eax
call fcn.004fa910
cmp dword [ebp + 0x18], edi
jb 0x503d65
mov edx, dword [ebp + 4]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.00409f20
lea eax, [ebp - 0x44]
push eax
jmp 0x503f49
mov ecx, dword [ebp + 0x24]
push 0x62b408
push ecx
or ebx, 0xffffffff
call fcn.005b0ac9
add esp, 8
mov dword [ebp + 0x24], eax
test eax, eax
mov dword [ebp - 4], 8
je 0x503e13
push eax
call fcn.005b2590
add esp, 4
test eax, eax
jne 0x503e11
jmp 0x503db0
mov edx, dword [ebp + 0x24]
push edx
mov eax, 0x40000
push eax
push 1
push edi
call fcn.005b1816
add esp, 0x10
test eax, eax
jle 0x503e01
push ebx
push eax
push edi
call fcn.004fe1b0
mov ebx, eax
add esi, 1
mov eax, 0x66666667
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
mov ecx, esi
add esp, 0xc
sub ecx, eax
jne 0x503e01
push 1
call fcn.00506ab0
add esp, 4
mov edx, dword [ebp + 0x24]
push edx
call fcn.005b2590
add esp, 4
test eax, eax
je 0x503db0
not ebx
push edi
call fcn.00594e98
mov eax, dword [ebp + 0x24]
add esp, 4
test eax, eax
je 0x503e2c
push eax
call fcn.005b0f84
add esp, 4
mov eax, ebx
jmp 0x503f5a
push 1
push 2
lea ecx, [ebp - 0x90]
call fcn.0040b160
lea edx, [ebp - 0x90]
push 0x62a1a0
push edx
mov dword [ebp - 4], esi
call fcn.00409c80
add esp, 8
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x90]
call fcn.00409610
mov edi, 0x10
cmp dword [eax + 0x18], edi
mov byte [ebp - 4], 1
jb 0x503f01
mov eax, dword [eax + 4]
jmp 0x503f04
add eax, 4
push eax
push str.BaseLib::CRC32File
push 0xb8f
push str..common_function.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [ebp + 0x18], edi
jb 0x503f36
mov ecx, dword [ebp + 4]
push ecx
call fcn.00594e98
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f20
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x506890
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5068be
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x5068f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x50691e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x5069d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x506a0d
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x506a10
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x506a48
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x506a80
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x506aae
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.005b2629
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x506af0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x506b15
mov eax, dword [esp + 0xc]
ret
or eax, 0xffffffff
ret
Function at 0x506b20
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [esp + 8]
test al, 1
push esi
mov esi, closesocket
je 0x506b35
mov esi, 0x40000000
jmp 0x506b3e
test al, 2
je 0x506b3e
mov esi, 0xc0000000
mov ecx, eax
and ecx, 0x500
cmp ecx, 0x500
mov edx, 3
jne 0x506b5a
mov edx, 1
jmp 0x506b8b
mov ecx, eax
and ecx, 0x300
cmp ecx, 0x300
jne 0x506b71
mov edx, 2
jmp 0x506b8b
test eax, 0x100
je 0x506b7f
mov edx, 4
jmp 0x506b8b
test eax, 0x200
je 0x506b8b
mov edx, 5
xor ecx, ecx
test al, 0x40
je 0x506b96
mov ecx, 0x4000100
test eax, eax
jns 0x506ba0
or ecx, 0x80000000
test eax, 0x40000000
je 0x506bad
or ecx, 0x40000000
test eax, 0x20000000
je 0x506bba
or ecx, 0x20000000
test eax, 0x10000000
je 0x506bc7
or ecx, 0x10000000
test eax, 0x8000000
je 0x506bd4
or ecx, 0x8000000
test eax, 0x4000000
je 0x506be1
or ecx, 0x4000000
test eax, 0x2000000
je 0x506bee
or ecx, 0x2000000
test eax, 0x1000000
je 0x506bfb
or ecx, 0x1000000
mov eax, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop esi
ret

Function at 0x506c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x506c76
push esi
call fcn.005b2629
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
call fcn.005b2629
cmp dword [eax], 0x2738
pop esi
jne 0x506c73
test bl, 2
je 0x506c73
mov eax, edi
pop edi
pop ebx
ret
or eax, 0xffffffff
pop edi
pop ebx
ret

Function at 0x506c80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0x5f39a4
push 0x5f3994
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x506cff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 5
push esi
mov byte [esp + 0x20], 0x33
mov byte [esp + 0x21], 0xc0
mov byte [esp + 0x22], 0xc2
mov byte [esp + 0x23], 4
mov byte [esp + 0x24], 0
call edi
push 0
push 5
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
push 5
push esi
call edi
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.005b0968
add esp, 0x1c
ret
Function at 0x508f33
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 0x508f79
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 0x508f95
mov eax, dword [esp + 0x24]
pop edi
pop esi
add esp, 0x14
ret 0x10
call edi
cmp eax, 0x3e5
jne 0x508fe4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x508fad
call fcn.0052a1d0
jmp 0x508fb0
or eax, 0xffffffff
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x508fe4
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 0x508fe4
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x508fe7
or eax, 0xffffffff
pop edi
pop esi
add esp, 0x14
ret 0x10

Function at 0x509010
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 0x509730
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 0x50a500
Capabilities:
Connect pipe

Disassembly:
push 0xffffffffffffffff
push 0x5cfb86
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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 0x50a557
mov edx, dword [esp + 0xc8]
mov eax, dword [ebp + 4]
push edx
push ecx
push eax
call fcn.0052a510
add esp, 0xc
cmp eax, 0xffffffff
je 0x50a684
mov eax, dword [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x50a57f
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 0x50a5b6
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.00509010
xor eax, eax
jmp 0x50a687
push 1
push 2
lea ecx, [esp + 0x34]
call fcn.0040b160
mov dword [esp + 0xb4], 0
call esi
push eax
lea eax, [esp + 0x30]
push str.ConnectNamedPipe:
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0xb4], 1
jb 0x50a60f
mov eax, dword [eax + 4]
jmp 0x50a612
add eax, 4
push eax
push str.BaseLib::CSPIPEAcceptor::Accept
push 0x703
push str..common_socket.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x28], esi
jb 0x50a646
mov edx, dword [esp + 0x14]
push edx
call fcn.00594e98
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.00409f20
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x7c], vtable.std::ios_base.0
call fcn.005cccbe
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 0x50a830
Capabilities:
Set registry value

Disassembly:
mov eax, 0x100c
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
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 0x50a88e
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50a94f
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 0x50a93b
push 0xfff
push eax
lea ecx, [esp + 0x19]
push ecx
mov byte [esp + 0x1c], al
call fcn.005b4520
add esp, 0xc
cmp dword [esi + 0x34], 0x10
jb 0x50a8e0
mov ecx, dword [esi + 0x20]
jmp 0x50a8e3
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x50a8f0
mov eax, dword [edi]
jmp 0x50a8f2
mov eax, edi
push ecx
push eax
push str._s::Enabled:_s
lea edx, [esp + 0x1c]
push 0x1000
push edx
call fcn.005b0ba7
lea eax, [esp + 0x24]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x50a912
sub eax, edx
cmp dword [esi + 0x18], 0x10
jb 0x50a925
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.005b0968
add esp, 0x100c
ret 8
Function at 0x50a970
Capabilities:
Set registry value

Disassembly:
mov eax, 0x200c
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
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 0x50a9cc
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x50aacb
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 0x50aab7
push 0xfff
lea ecx, [esp + 0x1019]
push ebx
push ecx
mov byte [esp + 0x1020], bl
call fcn.005b4520
add esp, 0xc
cmp dword [esp + 0x2028], ebx
mov edi, 0x5f3d60
jne 0x50aa23
mov edi, 0x5f3d5c
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.005b0ba7
push 0xfff
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call fcn.005b4520
add esp, 0x20
cmp dword [esi + 0x34], 0x10
jb 0x50aa66
mov esi, dword [esi + 0x20]
jmp 0x50aa69
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.005b0ba7
add esp, 0x18
lea eax, [esp + 0x18]
lea edx, [eax + 1]
pop ebp
jmp 0x50aa90
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50aa90
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.005b0968
add esp, 0x200c
ret 0x10