joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415950
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a377
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x45d780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x64]
mov dword [esi], vtable.CPortProxyTask.0
mov dword [esi + 4], ebx
mov word [esi + 8], bx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x60], ebx
call fcn.004144f0
mov dword [ebp - 4], ebx
lea ecx, [esi + 0xd8]
call fcn.004144f0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x14c]
call fcn.004144f0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
mov dword [esi + 0x1c8], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
push ebx
mov dword [esi + 0x4c], eax
push ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
push 1
mov dword [esi + 0x58], eax
push ebx
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x1c8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
test esi, esi
je 0x415f2d
mov eax, esi
lea ecx, [edi + 0x70]
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x415f17
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00403750
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x415f56
mov eax, esi
lea ecx, [edi + 0xe4]
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x415f40
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00403750
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
test edx, edx
je 0x415f8e
test esi, esi
jle 0x415f8e
xor eax, eax
test esi, esi
jle 0x415f88
lea ecx, [edi + 0x38]
lea ecx, [ecx]
cmp eax, 0xa
jae 0x415f88
mov ebx, dword [edx + eax*4]
mov dword [ecx - 0x2c], ebx
mov ebx, dword [edx + eax*4]
mov dword [ecx], ebx
inc eax
add ecx, 4
cmp eax, esi
jl 0x415f70
mov dword [edi + 0x60], esi
mov dword [edi + 0x34], esi
mov ebx, dword [ebp + 0x20]
test ebx, ebx
je 0x415fbf
cmp dword [ebp + 0x24], 0
jle 0x415fbf
xor eax, eax
test esi, esi
jle 0x415fbf
lea edx, [edi + 0x38]
cmp eax, 0xa
jae 0x415fbf
cmp eax, dword [edi + 0x34]
jge 0x415fbf
mov ecx, dword [ebx + eax*4]
test ecx, ecx
jle 0x415fb7
mov dword [edx], ecx
inc eax
add edx, 4
cmp eax, esi
jl 0x415fa4
mov eax, dword [edi + 0x70]
cmp dword [eax - 0xc], 0
lea ecx, [edi + 0x70]
jne 0x415fd7
push 7
push 0x44ee84
call fcn.00403750
mov eax, dword [edi + 0x1c8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x1c0], ecx
mov dword [edi + 0x1c4], edx
mov dword [edi + 4], 1
mov byte [edi + 8], 0
mov dword [ebp + 0x10], 0
test eax, eax
je 0x41600c
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push 0x415ef0
push 0
push 0
call fcn.0043141f
add esp, 0x18
test eax, eax
jne 0x416066
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41603c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [edi + 0x1c0]
test eax, eax
je 0x41605d
mov edi, dword [edi + 0x1c4]
test edi, edi
je 0x41605d
push 0
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x1c0], 0
jne 0x416089
mov edi, dword [edi + 0x1c8]
test edi, edi
je 0x416089
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x20
Function at 0x4160a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x1c0], eax
mov eax, dword [esi + 0x1c8]
push edi
xor edi, edi
mov dword [esi + 0x1c4], ecx
mov dword [esi + 4], 2
mov dword [ebp + 8], edi
test eax, eax
je 0x4160d6
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [ebp + 8]
push edx
push 0
push esi
push 0x415ef0
push 0
push 0
call fcn.0043141f
add esp, 0x18
test eax, eax
jne 0x41612f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x416106
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [esi + 0x1c0]
test eax, eax
je 0x416151
mov esi, dword [esi + 0x1c4]
test esi, esi
je 0x416151
push 0
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x1c0], edi
jne 0x416151
mov esi, dword [esi + 0x1c8]
test esi, esi
je 0x416151
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x41a9c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a58b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x45d780]
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 eax, dword [ebp + 8]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
push eax
push edx
lea ecx, [ebp - 0x21c]
call fcn.00414140
mov ebx, eax
cmp ebx, esi
je 0x41aa54
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x41aa4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x21c], esi
mov eax, ebx
jmp 0x41ab27
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x21c]
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x210]
push edx
push esi
push eax
mov dword [ebp - 0x220], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41aadc
jmp 0x41aa90
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0041a9c0
mov ebx, eax
cmp ebx, esi
jne 0x41aa2f
lea edx, [ebp - 0x22c]
push edx
mov edx, dword [ebp - 0x21c]
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x210]
push ecx
push esi
push edx
mov dword [ebp - 0x220], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41aa90
mov eax, dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x41aaf5
push eax
call ebx
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x224]
push eax
mov ecx, edi
mov dword [ebp - 0x218], esi
call fcn.0041a1e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
cmp eax, esi
je 0x41ab25
push eax
call ebx
mov dword [ebp - 0x21c], esi
mov eax, edi
mov dword [ebp - 0x218], 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.00430215
mov esp, ebp
pop ebp
ret 4
Function at 0x41c9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44aa46
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x45d780]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
mov byte [ebp - 4], 1
push 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x41ca1d
call fcn.00419fd0
mov edi, eax
jmp 0x41cb02
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41ca36
call fcn.00419fd0
jmp 0x41caf9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x41ca54
call fcn.00419fd0
jmp 0x41caf9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41ca75
mov edi, 0x8007000e
jmp 0x41cafb
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.0041b590
mov dword [ebp - 4], 1
jmp 0x41caad
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x41cabe
mov edi, 0x8007000e
jmp 0x41cafb
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41cad7
call fcn.00419fd0
jmp 0x41caf9
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.0041c550
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x41cb1f
lea ecx, [ebp - 0x418]
call fcn.0041a9b0
mov dword [ebp - 4], 0xffffffff
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 - 0x14]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41ec50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ad36
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x45d780]
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 eax, dword [ebp + 8]
mov ebx, ecx
test eax, eax
js 0x41ee32
push 0
push eax
mov eax, dword [ebx + 4]
push 0x199
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41ee32
test edi, edi
je 0x41ee32
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [ebp - 0x454]
push ecx
call esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x464]
push edx
call esi
cmp dword [ebx + 0x14c], 0
mov esi, 0x80004001
je 0x41ed7a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0042fa50
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
add esp, 0xc
push 0x104
mov ecx, edi
call eax
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp word [ebp - 0x218], 0
je 0x41ed7a
lea ecx, [ebp - 0x444]
call fcn.0040bba0
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 0x14c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
call edx
mov esi, eax
test esi, esi
js 0x41ed67
mov eax, dword [ebp - 0x438]
push eax
lea ecx, [ebp - 0x454]
call fcn.00410620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x444]
call fcn.004030c0
test esi, esi
jns 0x41edac
mov edx, dword [edi]
mov edx, dword [edx + 0x38]
lea eax, [ebp - 0x464]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x41eda8
push 8
push 0
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x454]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
mov esi, eax
test esi, esi
js 0x41ee13
cmp dword [ebp - 0x44c], 0
je 0x41ee13
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41ee13
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea edi, [eax + eax + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0x44c]
push edi
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.0042fad0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp - 0x464]
push edx
call esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x454]
push eax
call 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.00430215
mov esp, ebp
pop ebp
ret 4
Function at 0x41ee50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
add eax, 0xfffffff7
push esi
mov esi, ecx
cmp eax, 0x68
ja case.default.0x41ee6f
movzx eax, byte [eax + 0x41efbc]
push ebx
push edi
jmp dword [eax*4 + 0x41efac]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x188
push ecx
call edi
cmp eax, 0xffffffff
je case.0x41ee6f.12
mov edx, dword [esi + 4]
push 0
push eax
push 0x199
push edx
call edi
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 0x2c]
push 6
call eax
mov ecx, dword [ebp + 0x14]
pop edi
pop ebx
mov dword [ecx], 0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x188
push ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je case.0x41ee6f.12
mov edx, dword [esi + 4]
push 0
push edi
push 0x199
push edx
call ebx
mov ebx, eax
cmp edi, dword [esi + 0x128]
je 0x41ef02
push edi
push ebx
mov ecx, esi
call fcn.004108d0
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
mov ecx, ebx
call edx
test eax, eax
je case.0x41ee6f.12
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
push 0
push 7
mov ecx, ebx
call edx
mov ecx, dword [ebp + 0x14]
pop edi
pop ebx
mov dword [ecx], 0
xor eax, eax
pop esi
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je case.0x41ee6f.12
mov edx, dword [esi + 4]
push 0
push 0
push 0x188
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je case.0x41ee6f.12
push edi
lea ecx, [esi + 4]
call fcn.00410210
test eax, eax
je case.0x41ee6f.12
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
cmp al, 1
je 0x41ef92
push edi
mov ecx, esi
call fcn.0041ec50
mov ecx, dword [ebp + 0x14]
pop edi
pop ebx
mov dword [ecx], 0
xor eax, eax
pop esi
pop ebp
ret 0x10
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop ebx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x4202c0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b0eb
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x45d780]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0x50]
lea edi, [esi + 0x4c]
mov dword [ebp - 0xe8], eax
mov dword [edi], 7
mov dword [ebp - 0xec], ecx
call fcn.00402920
lea ecx, [esi + 0x54]
mov dword [ebp - 0xf0], ecx
call fcn.00402920
lea ecx, [esi + 0x58]
call fcn.00402920
lea ecx, [esi + 0x5c]
mov dword [ebp - 0xf4], ecx
call fcn.00402920
xor eax, eax
mov byte [esi + 0x48], 0
cmp ebx, eax
je 0x4204db
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea ecx, [ebp - 0xd8]
call fcn.0041ffe0
mov eax, dword [ebp - 0xd8]
push edi
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0xe8]
push eax
lea edx, [ebp - 0xdc]
push edx
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe4], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x420417
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x420488
cmp dword [ebp - 0xdc], 0x44
jbe 0x4203c6
push 0x80004005
call fcn.00401770
mov eax, dword [ebp - 0xe4]
cmp eax, 0x80
jbe 0x4203eb
push eax
lea ecx, [ebp - 0xd8]
call fcn.00420010
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], edx
mov ecx, dword [ebp - 0xe0]
push edi
lea eax, [ebp - 0xe4]
push eax
push ecx
mov ecx, dword [ebp - 0xe8]
lea edx, [ebp - 0xdc]
push edx
lea eax, [ebp - 0x54]
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x420488
mov ecx, dword [ebp - 0xdc]
lea edx, [ebp - 0x54]
push edx
lea eax, [esi + 4]
push eax
push ecx
mov byte [esi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x420488
mov edx, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xf0]
push edx
call fcn.00403e50
mov ecx, dword [ebp - 0xec]
push ebx
call fcn.00403e50
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xf4]
push eax
call fcn.00403e50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
cmp dword [ebp - 0xd8], ecx
je 0x420484
lea ecx, [ebp - 0xd8]
call fcn.0041a9b0
mov al, 1
jmp 0x4204dd
mov ecx, dword [ebp - 0xec]
mov dword [edi], 7
call fcn.00402920
mov ecx, dword [ebp - 0xf0]
call fcn.00402920
lea ecx, [esi + 0x58]
call fcn.00402920
mov ecx, dword [ebp - 0xf4]
call fcn.00402920
mov byte [esi + 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0xd4]
cmp dword [ebp - 0xd8], edx
je 0x4204db
lea ecx, [ebp - 0xd8]
call fcn.0041a9b0
xor al, al
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.00430215
mov esp, ebp
pop ebp
ret 8
Function at 0x421730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b1f6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d780]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi], vtable.CSharedMemory.0
mov dword [esi + 0x10], edi
mov eax, dword [vtable.ATL::CAtlStringMgr.0]
mov edx, dword [eax + 0xc]
lea ebx, [esi + 0x14]
mov ecx, 0x45d708
mov dword [ebp - 0x14], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 1
mov eax, dword [vtable.ATL::CAtlStringMgr.0]
mov edx, dword [eax + 0xc]
lea ebx, [esi + 0x24]
mov ecx, 0x45d708
mov dword [ebp - 0x14], ebx
call edx
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 3
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 4], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], 1
mov dword [ebp - 4], 0xffffffff
mov eax, esi
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 0x4219d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b228
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x45d780]
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 esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
mov eax, str.Owner
jne 0x421a0e
mov eax, str.User
lea edx, [ebp - 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x421a13
cmp dword [esi + 0x1c], 0
mov edx, dword [str.GBxn3p1HggI]
jne 0x421a2f
mov edx, dword [str.W6Did7Jz2kxHEcahTIf_Q]
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x2c]
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 8]
push ebx
push ecx
mov ecx, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [esi + 0x1c]
push ecx
push eax
push str.__S___d___s___map_p__buf_p___p__mutex_p__size_d__adjust_d__locks_d
push edx
push 0x45f250
call fcn.004046d0
add esp, 0x34
xor ebx, ebx
push ebx
push 0x44d664
lea ecx, [esi + 0x14]
mov dword [esi + 8], ebx
call fcn.00403750
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x421aa8
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp eax, ebx
je 0x421a9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], ebx
push edi
call fcn.0042f970
add esp, 4
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], ebx
cmp eax, ebx
je 0x421ab5
push eax
jmp 0x421ab9
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x421ad8
cmp eax, 0xffffffff
je 0x421ad8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
mov eax, 1
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.00430215
mov esp, ebp
pop ebp
ret
Function at 0x422cd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0xffffffffffffffff
mov esi, ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
lea ecx, [esi + 4]
setne bl
call fcn.00401f30
test al, al
je 0x422d13
mov eax, dword [esi]
mov edx, dword [str.mzRkDcUhfbI]
push eax
movzx ecx, bl
push ecx
push str.__d__socket___d
push edx
lea eax, [esi + 8]
push eax
call fcn.00404720
add esp, 0x14
test bl, bl
je 0x422d55
mov eax, dword [ebp + 8]
mov esi, dword [esi]
xor ecx, ecx
cmp word [eax], 2
lea edx, [ebp + 8]
setne cl
push edx
push eax
push esi
dec ecx
and ecx, 0xffffff90
sub ecx, 0xffffff80
mov dword [ebp + 8], ecx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x422d48
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
pop ebp
ret 4