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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4775
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x618300], 0
jne 0x4bf135
lea eax, [ebp - 0x2e8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4bf1fe
mov byte [0x618300], 1
mov eax, dword [0x617e20]
test eax, eax
jne 0x4bf16c
push 0x11c
call fcn.0054450d
add esp, 4
mov dword [ebp - 0x2ec], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4bf165
mov ecx, eax
call fcn.00492370
jmp 0x4bf167
xor eax, eax
mov dword [0x617e20], eax
cmp dword [eax + 4], 6
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
ja 0x4bf187
jne 0x4bf19e
mov eax, dword [eax + 8]
cmp eax, 1
ja 0x4bf187
jne 0x4bf19e
push 0x81
push 0
push 0
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
jne 0x4bf1e2
push esi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x4bf1e0
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
setne bl
test eax, eax
jne 0x4bf1d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test bl, bl
jne 0x4bf1e0
or eax, 0xffffffff
jmp 0x4bf1e2
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
push str.unable_to_initialise_Winsock2
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x4bf310
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a47eb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
push dword [ebp + 0xc]
call fcn.00481270
push eax
call fcn.004bf0e0
mov esi, eax
mov byte [ebp - 0x160], 1
add esp, 0xc
mov dword [ebp - 0x164], esi
mov dword [ebp - 4], 0
test esi, esi
js 0x4bf436
cmp byte [ebp + 0x10], 0
jne 0x4bf3ab
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4bf3ab
call sub.KERNEL32.dll_GetLastError
push eax
push str.setBlocking
jmp 0x4bf441
push 0
push 0
push 0
push 0
push dword [ebx]
push dword [ebx + 4]
push esi
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x4bf3fa
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
call edi
cmp eax, 0x2733
je 0x4bf3fa
call edi
cmp eax, 0x2714
jne 0x4bf429
push 0
push 0
push 0
push 0
push dword [ebx]
push dword [ebx + 4]
push esi
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
jne 0x4bf3d0
cmp dword [ebp + 0xc], 1
je 0x4bf40b
push 0
push esi
call fcn.004bee10
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
push str.connect
jmp 0x4bf441
call sub.KERNEL32.dll_GetLastError
push eax
push str.socket
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x4bf460
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x154]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x158], ebx
push eax
push esi
push 0xffff
push edi
mov dword [ebp - 0x154], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4bf55b
mov ecx, dword [ebp - 0x150]
cmp dword [ebp + 0xc], ecx
jle 0x4bf548
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test ecx, ecx
jle 0x4bf548
push 4
lea eax, [ebp + 0xc]
push eax
push esi
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4bf523
call ebx
cmp eax, 0x2747
jne 0x4bf587
mov ecx, dword [ebp - 0x150]
mov eax, 0x66666667
imul dword [ebp + 0xc]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
mov dword [ebp + 0xc], eax
cmp eax, ecx
jg 0x4bf4c7
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x150]
push eax
push esi
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4bf5b8
mov ecx, dword [ebp - 0x150]
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push ebx
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [ebp - 0x14c]
push str.getsockopt__s_
push eax
call fcn.0045c7b0
add esp, 0x10
lea eax, [ebp - 0x14c]
push 0x5fe430
push eax
call fcn.005461fc
push dword [ebp - 0x158]
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [ebp - 0x14c]
push str.setsockopt__s_
push eax
call fcn.0045c7b0
add esp, 0x10
lea eax, [ebp - 0x14c]
push 0x5fe430
push eax
call fcn.005461fc
push dword [ebp - 0x158]
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [ebp - 0x14c]
push str.getsockopt__s_
push eax
call fcn.0045c7b0
add esp, 0x10
lea eax, [ebp - 0x14c]
push 0x5fe430
push eax
call fcn.005461fc
int3

Function at 0x4bf810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x618300], 0
jne 0x4bf846
lea eax, [ebp - 0x2dc]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4bf854
mov byte [0x618300], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
push str.unable_to_initialise_Winsock2
lea ecx, [ebp - 0x14c]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x14c]
push eax
call fcn.005461fc
int3
Function at 0x4c0450
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4868
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x44], edi
mov dword [edi], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4c04ac
mov word [ebp - 0x30], ax
push 1
push 0xffffffffffffffff
push 0xfde9
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call fcn.0046c430
mov esi, dword [ebp - 0x3c]
push dword [edi]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
call fcn.0054454b
add esp, 4
mov dword [edi], esi
cmp byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
je 0x4c04fe
test eax, eax
je 0x4c04fe
push dword [ebp - 0x40]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x3c]
add esp, 8
push eax
call fcn.0054454b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret

Function at 0x4c0a10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a48eb
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x15c], edi
lea edx, [ebp - 0x15c]
mov dword [ebp - 4], 0
push edx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x15c], 0
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4c0b3d
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x15c]
lea ecx, [ebp - 0x168]
call fcn.0046c430
mov esi, dword [ebp - 0x164]
push 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x168], 0
mov dword [edi], 0
call fcn.0054454b
add esp, 4
mov dword [edi], esi
cmp byte [ebp - 0x160], 0
mov eax, dword [ebp - 0x164]
mov byte [ebp - 4], 1
je 0x4c0ae8
test eax, eax
je 0x4c0ae8
push dword [ebp - 0x168]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x164]
add esp, 8
push eax
call fcn.0054454b
mov ecx, dword [ebp - 0x15c]
add esp, 4
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x15c], 0
test ecx, ecx
je 0x4c0b20
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push eax
push 0x5c3068
lea ecx, [ebp - 0x158]
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x158]
push eax
call fcn.005461fc
int3
Function at 0x4cce70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4fc0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x14]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x2c], 0
lea ebx, [edi + 4]
mov dword [ebp - 4], 0
jne 0x4ccebf
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [edi + 0x30], 0
jne 0x4ccfcf
mov eax, dword [edi + 0x2c]
cmp eax, 4
je 0x4ccfcf
cmp eax, 3
jne 0x4ccee1
mov bl, 1
jmp 0x4ccfd1
push 0x5abcc7
push 0x5abcc7
push dword [edi + 0xc]
push dword [edi + 8]
push str.join
push str.__9s__s__x_s_s
push dword [0x6132b0]
push 0x618344
call fcn.00450430
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
mov ecx, ebx
call fcn.004cd570
test al, al
jne 0x4ccf6d
push 0x5abcc7
push 0x5abcc7
push dword [edi + 0xc]
push dword [edi + 8]
push str.timeout
push str.__9s__s__x_s_s
push dword [0x6132b0]
push 0x618344
call fcn.00450430
add esp, 0x20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5abcc7
push 0x5abcc7
push dword [edi + 0xc]
mov dword [ebp - 4], 1
push dword [edi + 8]
mov dword [edi + 0x2c], 3
push str.joined
push str.__9s__s__x_s_s
push dword [0x6132b4]
push 0x618344
call fcn.00450430
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4cd200
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x2c], 0
jne 0x4cd224
push dword [edi + 4]
mov dword [edi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x4cd230
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5040
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push edi
push dword [0x618360]
mov dword [ebp - 0x118], edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x5abcc7
push 0x5abcc7
push dword [edi + 0xc]
push dword [edi + 8]
push str.started
push str.__9s__s__x_s_s
push dword [0x6132b0]
push 0x618344
call fcn.00450430
mov eax, dword [edi]
add esp, 0x20
mov ecx, edi
mov dword [ebp - 4], 0
call dword [eax + 4]
push 0x5abcc7
push 0x5abcc7
push dword [edi + 0xc]
push dword [edi + 8]
push str.stopped
push str.__9s__s__x_s_s
push dword [0x6132b0]
push 0x618344
call fcn.00450430
add esp, 0x20
jmp 0x4cd314
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [edi + 0x30], 0
mov dword [edi + 0x2c], 2
push esi
jne 0x4cd334
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4cd342
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret

Function at 0x4ce140
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5292
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0xa0
mov dword [ebp - 4], 0
call fcn.0054450d
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4ce1e1
cmp dword [0x618394], 0x64
lea ebx, [esi + 0x34]
jge 0x4ce1a6
cmp byte [0x617568], 0
jne 0x4ce1c0
mov ecx, ebx
call fcn.00481210
push eax
push str.Trying_TCP_to__s
push 0x61838c
call fcn.00406750
add esp, 0xc
push 0
push 1
push ebx
call fcn.004bf310
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 1
push eax
call fcn.004d93f0
mov edi, eax
jmp 0x4ce1e3
xor edi, edi
push dword [esi + 0x4c]
lea ecx, [edi + 0x90]
mov byte [ebp - 4], 0
call fcn.00408590
mov dword [esi + 0x48], edi
lea eax, [esi + 0x30]
mov edx, dword [edi]
mov ecx, edi
push 0
push eax
call dword [edx]
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 0x4d3410
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0x55555556
push edi
mov edi, dword [0x6132d0]
mov dword [ebp - 0x18], 0
lea ecx, [esi + 2]
mov dword [ebp - 0x14], 0
imul ecx
mov eax, 0x55555556
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul esi
mov dword [ebp - 0x10], ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
sub esi, eax
mov al, byte [ebp + 0x14]
test al, al
mov dword [ebp - 0xc], esi
setne dl
dec dl
and dl, 0x3d
test al, al
lea eax, [ecx*4]
mov byte [ebp + 0x17], dl
cmovne edi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
lea ecx, [ebp - 0x18]
mov dword [ebp - 8], eax
inc eax
push eax
call fcn.00449300
mov edx, dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp + 0xc], 3
mov dword [ebp - 4], edx
jl 0x4d350a
xor ecx, ecx
lea esi, [edx + 2]
nop word [eax + eax]
mov edx, dword [ebp + 0x10]
lea ebx, [ebx + 1]
add edx, ecx
lea esi, [esi + 4]
movzx eax, byte [edx]
shr eax, 2
movzx eax, byte [eax + edi]
mov byte [esi - 6], al
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + edi]
mov byte [esi - 5], al
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + edi]
lea ecx, [ebx + ebx*2]
mov byte [esi - 4], al
movzx eax, byte [edx + 2]
and eax, 0x3f
movzx eax, byte [eax + edi]
mov byte [esi - 3], al
lea eax, [ecx + 3]
cmp eax, dword [ebp + 0xc]
jle 0x4d34a0
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
test esi, esi
je 0x4d3578
mov eax, dword [ebp - 0x10]
dec eax
lea ecx, [eax + eax*2]
mov eax, dword [ebp + 0x10]
mov dl, byte [eax + ecx]
cmp esi, 2
jne 0x4d3526
mov cl, byte [eax + ecx + 1]
jmp 0x4d3528
xor cl, cl
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
movzx edx, dl
mov eax, edx
movzx ecx, cl
shr eax, 2
and edx, 3
shl edx, 4
movzx eax, byte [eax + edi]
mov byte [ebx + esi - 4], al
mov eax, ecx
shr eax, 4
and ecx, 0xf
or edx, eax
cmp dword [ebp - 0xc], 1
movzx eax, byte [edx + edi]
mov edx, ebx
mov ebx, esi
mov byte [edx + ebx - 3], al
movzx eax, byte [edi + ecx*4]
mov byte [edx + ebx - 2], al
mov al, byte [ebp + 0x17]
mov byte [edx + ebx - 1], al
jne 0x4d357b
mov byte [edx + ebx - 2], al
jmp 0x4d357b
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov byte [ebx + edx], 0
mov esi, dword [ebp - 0x18]
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [edi], 0
call fcn.0054454b
push dword [ebp - 0x18]
mov dword [edi], esi
call fcn.0054454b
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d44f0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6303
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x164], edi
mov eax, dword [ebp + 8]
lea esi, [edi + 0xc]
mov dword [ebp - 0x16c], edi
mov ecx, esi
mov dword [edi], vtable.io::Io.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x168], eax
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00414550
mov dword [esi], eax
lea eax, [edi + 0x14]
mov dword [ebp - 4], 0
lea ebx, [edi + 0x18]
mov dword [eax], vtable.plat::Timer::Callback.0
mov dword [ebx], vtable.os::HandleInStream::Callback.0
mov dword [edi + 0x1c], vtable.os::HandleOutStream::Callback.0
mov dword [edi], vtable.os::HandleIo.1.0
mov dword [eax], vtable.os::HandleIo.2.0
mov dword [ebx], vtable.os::HandleIo.3.0
mov dword [edi + 0x1c], vtable.os::HandleIo.0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov word [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], eax
mov dword [edi + 0x68], 0
lea esi, [edi + 0x70]
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebp - 0x168]
mov byte [ebp - 4], 6
test eax, eax
je 0x4d46ac
cmp dword [edi + 0x20], 0
jne 0x4d46cc
push 0x5c
mov dword [edi + 0x20], eax
call fcn.0054450d
add esp, 4
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4d4663
push 0
push 0xffffffffffffffff
push ebx
push dword [edi + 0x20]
mov ecx, eax
call fcn.004e2bf0
jmp 0x4d4665
xor eax, eax
push 0x64
mov byte [ebp - 4], 6
mov dword [edi + 4], eax
call fcn.0054450d
add esp, 4
mov dword [ebp - 0x164], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x4d4696
push 0xffffffffffffffff
lea ecx, [edi + 0x1c]
push ecx
push dword [edi + 0x20]
mov ecx, eax
call fcn.004b9800
jmp 0x4d4698
xor eax, eax
push dword [edi + 0x20]
mov dword [edi + 8], eax
push str._handle__p_
push esi
call fcn.004493c0
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret 4
push 0x1c
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcore_baseoswinhandleio.cxx
push 0x5c4920
lea ecx, [ebp - 0x160]
call fcn.00465850
push eax
call fcn.004658d0
int3
Function at 0x4d72b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a691d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0
mov dword [edi + 4], vtable.os::RegKeyExistsCallback.0
lea ecx, [edi + 8]
push 1
mov dword [ebp - 4], 0
mov dword [edi], vtable.os::RegMonitor.0
mov dword [edi + 4], vtable.os::RegMonitor.1.0
call fcn.004cc720
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf003f
mov dword [edi + 0x18], 0
mov byte [edi + 0x1c], 0
lea esi, [edi + 0x20]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4580
mov dword [esi], eax
lea esi, [edi + 0x2c]
mov byte [edi + 0x28], 0
mov dword [ebp - 0x18], esi
mov dword [esi + 4], vtable.os::RegKeyExistsCallback.0
mov dword [esi], vtable.os::RegKeyExistsMonitor.0
mov dword [esi + 4], vtable.os::RegKeyExistsMonitor.1.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xf003f
mov dword [esi + 0x10], 0
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf003f
mov dword [esi + 0x28], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
push 0
push 1
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 8
mov byte [esi + 0x34], 0
call fcn.004cc720
mov byte [esi + 0x3c], 0
mov dword [ebp - 4], 9
mov dword [edi], vtable.os::RegMonitorProduct.0
mov dword [edi + 4], vtable.os::RegMonitorProduct.1.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
mov byte [ebp - 4], 0xa
call fcn.00470b50
mov bl, byte [ebp + 0x14]
mov ecx, 0x5abcc7
push eax
test bl, bl
mov eax, str.Policies_
cmove eax, ecx
push eax
lea eax, [ebp - 0x20]
push str.Software_s_s
push eax
call fcn.004493c0
mov esi, dword [ebp + 0x10]
add esp, 0x14
test esi, esi
je 0x4d7443
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4d7438
cmp byte [eax], 0
je 0x4d7438
push 0xffffffffffffffff
push 0x5ae25c
lea ecx, [ebp - 0x20]
call fcn.004491e0
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x20]
call fcn.004491e0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf003f
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 0xd
test bl, bl
jne 0x4d7496
lea ecx, [ebp - 0x30]
cmp byte [ebp + 0x18], bl
je 0x4d747e
push 1
push dword [ebp + 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.004715a0
jmp 0x4d7496
push 0
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00471420
jmp 0x4d7496
push dword [ebp + 0x20]
mov ecx, edi
mov dword [ebp - 4], 0xc
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.004d7ed0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xf
call fcn.00471020
push dword [ebp - 0x28]
call fcn.0054454b
push dword [ebp - 0x20]
call fcn.0054454b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c