joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d093
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d094e
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
mov edi, vtable.micro::utils::QString.0
xor ebx, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
push 0x26
lea ecx, [esp + 0x18]
mov dword [esp + 0x104], ebx
call fcn.004ba61f
push 0xffffffffffffffff
push str.LogOff
lea ecx, [esp + 0x24]
call fcn.004b9d49
push 0x11
push 9
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0x10c], 1
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 8]
push eax
push dword [0x520a38]
lea ecx, [esp + 0x40]
call fcn.004c0d28
mov esi, vtable.mc::MyAskDialog.0
mov dword [esp + 0x24], esi
mov byte [esp + 0x100], 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004b9e50
lea ecx, [esp + 0x24]
call fcn.004c11ff
cmp eax, 1
jne 0x46d15b
push ebx
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne bl
mov byte [esp + 0x100], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004c0e60
or dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
call fcn.004b9e50
mov al, bl
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d19d
Capabilities:
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d094e
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov esi, ecx
and dword [esp + 0x18], 0
mov edi, vtable.micro::utils::QString.0
mov dword [esp + 0x14], edi
and dword [esp + 0x100], 0
lea ecx, [esp + 0x14]
push 0x27
call fcn.004ba61f
push 0xffffffffffffffff
push 0x4eb328
lea ecx, [esp + 0x24]
call fcn.004b9d49
push 0x11
push 9
push esi
lea eax, [esp + 0x28]
mov byte [esp + 0x10c], 1
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 8]
push eax
push dword [0x520a38]
lea ecx, [esp + 0x40]
call fcn.004c0d28
mov esi, vtable.mc::MyAskDialog.0
mov dword [esp + 0x24], esi
mov byte [esp + 0x100], 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004b9e50
lea ecx, [esp + 0x24]
call fcn.004c11ff
cmp eax, 1
je 0x46d25c
xor bl, bl
jmp 0x46d267
call dword [sym.imp.USER32.dll_LockWorkStation]
test eax, eax
setne bl
mov byte [esp + 0x100], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.004c0e60
or dword [esp + 0x100], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
call fcn.004b9e50
mov al, bl
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46dd47
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cabbd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [esp + 0x44]
push eax
call fcn.004333d1
lea eax, [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.004334ae
and dword [esp + 0x88], 0
cmp byte [ebp + 0xc], 0
mov ecx, dword [0x520a3c]
mov eax, dword [ecx]
je 0x46de2e
call dword [eax + 0x30]
mov ecx, dword [0x520a3c]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x34]
push eax
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push esi
push dword [esp + 0x5c]
call ebx
push edi
push dword [esp + 0x5c]
mov dword [esp + 0x18], eax
call ebx
mov ebx, eax
lea ecx, [esp + 0x54]
lea eax, [esp + 0x44]
push eax
call fcn.004c14f4
push ebx
push dword [esp + 0x5c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
call ebx
push dword [esp + 0x10]
push dword [esp + 0x5c]
call ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
je 0x46de25
push edi
call ebx
test esi, esi
je 0x46de40
push esi
call ebx
jmp 0x46de40
call dword [eax + 8]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
call fcn.004c15bc
mov eax, dword [esp + 0x4c]
push 8
pop ecx
mov dword [esp + 0x14], ecx
add eax, 0xfffffff8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [0x520a3c]
mov dword [esp + 0x18], 9
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], 0xe
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x11
mov dword [esp + 0x38], 0x13
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x16
mov eax, dword [ecx]
call dword [eax + 0x98]
mov esi, eax
lea ecx, [esp + 0x54]
push esi
lea eax, [esp + 0x18]
push eax
call fcn.004c15bc
push esi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.004c15bc
push esi
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004c15bc
lea ecx, [esp + 0x54]
call fcn.004333f6
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret 8
Function at 0x46e5b8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0a05
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x46e5ff
and dword [ebx + 0x24], 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
lea ecx, [ebx + 0x34]
push dword [ecx + 8]
mov eax, dword [ecx]
push 0
call dword [eax + 4]
lea ecx, [ebx + 0x28]
call fcn.004beaf2
sub esp, 0x10
lea esi, [esp + 0x34]
mov edi, esp
lea ecx, [ebx + 0x28]
xor eax, eax
sub esp, 0x14
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00439409
push 0x78
push 0
push 0x403
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0xd
push 0x20
pop esi
push esi
push 0x18
push 0x18
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
test eax, eax
je 0x46e66a
mov dword [ebx + 0x24], eax
mov ecx, 0x8e
call fcn.004c141d
mov ebx, eax
mov dword [esp + 0x1c], ebx
and dword [esp + 0x88], 0
push 0
push ebx
mov ebx, dword [esp + 0x20]
push dword [ebx + 0x24]
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
lea ecx, [esp + 0x34]
call fcn.0046e1ab
and dword [esp + 0x10], 0
mov ecx, 0x50f3b8
mov byte [esp + 0x88], 1
and dword [esp + 0x28], 0
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov eax, dword [ecx - 8]
lea esi, [esp + 0x24]
and dword [esp + 0x48], 0
lea edi, [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [ecx - 4]
mov dword [esp + 0x58], eax
lea eax, [edx + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
mov dword [esp + 0x24], edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
je 0x46e6fc
push eax
lea ecx, [esp + 0x50]
call fcn.004ba61f
jmp 0x46e708
push dword [ecx + 4]
lea ecx, [esp + 0x50]
call fcn.004ba70a
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0x34]
call fcn.0046f621
push ecx
push ecx
lea eax, [esp + 0x54]
mov ecx, esp
push eax
call fcn.004b9cf7
mov eax, dword [esp + 0x18]
lea ecx, [ebx + 0x28]
inc eax
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x44]
push eax
push dword [ebx + 4]
call fcn.0043939b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, 0x10
add edx, 0x20
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
cmp ecx, 0x50f488
jl 0x46e6c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], 0
call fcn.00434244
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x46e77f
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x470456
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
lea ecx, [edi + 0x20]
call fcn.004ba6d4
mov eax, dword [ebp + 0x1c]
mov ecx, 0x4ef644
mov dword [edi + 0x28], eax
cmp dword [esi + 4], 0
mov eax, dword [edi]
cmovne ecx, dword [esi + 4]
push ecx
mov ecx, edi
call dword [eax + 0x1a8]
push 0
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0043507f
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp word [0x520bbe], 0
jne 0x4704db
push 0x2e
lea ecx, [edi + 0x20]
call fcn.004ba474
test eax, eax
jle 0x4704db
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0xb1
push dword [edi + 4]
call esi
push 0
push 0
push 0xb7
push dword [edi + 4]
call esi
jmp 0x4704e3
push ecx
mov ecx, edi
call fcn.00472eed
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x471b91
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
add dword [esi + 0x3c], eax
push dword [esi + 0x3c]
call dword [sym.imp.msvcrt.dll_abs]
pop ecx
cmp eax, 0x78
jl 0x471c20
mov eax, dword [esi + 0x3c]
push edi
push 0xffffffffffffff88
cdq
pop ecx
idiv ecx
and dword [esi + 0x3c], 0
imul eax, dword [esi + 0x38]
mov edi, dword [esi + 0x54]
test eax, eax
jns 0x471bdc
xor ecx, ecx
add eax, edi
cmovs eax, ecx
jmp 0x471be5
add eax, edi
cmp dword [esi + 0x58], eax
cmovl eax, dword [esi + 0x58]
push dword [ebp + 0x10]
and dword [ebp + 0xc], 0
push dword [esi + 4]
mov dword [esi + 0x54], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00472673
test al, al
je 0x471c13
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x84], eax
cmp edi, dword [esi + 0x54]
pop edi
je 0x471c20
mov ecx, esi
call fcn.00472239
mov al, 1
pop esi
pop ebp
ret 0xc

Function at 0x471e12
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push 0
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0047257f
test al, al
je 0x471eac
mov ecx, dword [esi + 0x50]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
cmp byte [eax + 0x10], 0
jne 0x471e84
test byte [ebp - 8], 1
je 0x471e84
push dword [esi + 4]
mov byte [esi + 0x6c], 1
mov dword [esi + 0x70], edx
mov eax, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [esi + 0x74], eax
mov eax, dword [ebx]
mov dword [esi + 0x78], eax
mov byte [esi + 0x68], 1
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x471f1f
mov ecx, dword [esi + 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
call dword [eax + 0x3c]
push eax
mov ecx, esi
call fcn.004710fc
test al, al
je 0x471f1f
push 1
mov ecx, esi
call fcn.00430a7d
jmp 0x471f1f
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push ebx
mov ecx, esi
mov byte [esi + 0x68], 1
call fcn.00472673
test al, al
je 0x471f07
test byte [ebp + 8], 8
push edi
mov edi, dword [ebp - 8]
mov byte [ebp + 0xc], 0
je 0x471ee0
mov ecx, dword [esi + 0x20]
push edi
mov eax, dword [ecx]
call dword [eax + 0x80]
jmp 0x471ef1
test byte [ebp + 8], 4
je 0x471ef5
mov ecx, dword [esi + 0x20]
push 1
push edi
mov eax, dword [ecx]
call dword [eax + 0x78]
mov byte [ebp + 0xc], 1
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00470ec0
mov dword [esi + 0x9c], edi
pop edi
mov byte [esi + 0x90], 0
mov eax, dword [ebx]
mov dword [esi + 0x94], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x98], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x472182
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jle 0x4721b7
cmp dword [ebp + 0x10], 0
jle 0x4721b7
push 0
push dword [esi + 0xa8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00470bd3
mov ecx, esi
call fcn.004721be
mov ecx, esi
call fcn.00472239
mov al, 1
pop esi
pop ebp
ret 0xc

Function at 0x472453
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, 0x3ec
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4724b9
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x3eb
push dword [edi + 4]
call esi
push ebx
push dword [edi + 4]
call esi
lea eax, [ebp - 8]
xor esi, esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x8c]
cmp eax, 0xffffffff
je 0x4724a3
push ecx
push eax
mov ecx, edi
call fcn.00470f2a
mov ecx, dword [edi + 0x20]
lea edx, [ebp - 8]
or dword [edi + 0x8c], 0xffffffff
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x47250a
mov eax, 0x3eb
cmp dword [ebp + 8], eax
jne 0x47250a
cmp byte [edi + 0x69], 0
jne 0x4724d5
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x47250a
lea eax, [ebp - 8]
xor esi, esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 8]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 8]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ecx, edi
call fcn.00470dda
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x472cd5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 0x11
or dword [esi + 0x7c], 0xffffffff
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp + 8]
movzx ebx, ax
lea eax, [esp + 0x10]
push eax
push dword [esi - 0x20]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
shr ebx, 0xf
and bl, 1
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
or dword [esp + 0xc], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
lea eax, [esi - 0x24]
push ecx
mov ecx, eax
call fcn.00472673
cmp byte [esi + 0x6c], 0
je 0x472d8d
test al, al
je 0x472d87
mov edi, dword [esp + 0xc]
lea ecx, [esi - 0x24]
push 0
push edi
call fcn.00470ec0
mov ecx, dword [esi - 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x9c]
test al, al
je 0x472d87
cmp edi, dword [esi + 0x78]
jne 0x472d60
xor eax, eax
inc eax
jmp 0x472dc6
mov ecx, dword [esi - 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x94]
test al, al
jne 0x472d5b
mov ecx, dword [esi - 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0xe8]
test al, al
je 0x472d5b
mov dword [esi + 0x7c], edi
xor eax, eax
jmp 0x472dc6
test bl, bl
jne 0x472db0
jmp 0x472d5b
test al, al
je 0x472db0
mov edi, dword [esp + 0xc]
lea ecx, [esi - 0x24]
push 0
push edi
call fcn.00470ec0
mov ecx, dword [esi - 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x9c]
test al, al
jne 0x472d70
mov ecx, dword [esi - 4]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0xe8]
xor ecx, ecx
test al, al
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47776e
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [0x5164a4]
shr eax, 0x18
mov byte [ebp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0x11], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x12], al
mov eax, dword [ebp + 0x24]
push 0x14
mov byte [ebp + 0x13], cl
lea ecx, [ebp - 0x10]
push dword [eax]
push 0x14
call fcn.0047e20c
add esp, 0xc
lea eax, [ebp + 0x10]
push 0
push 4
push eax
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.0047e2ac
mov edx, dword [ebp + 0x1c]
pop ecx
test edx, edx
je 0x4777e5
cmp dword [ebp + 0x20], 0
je 0x4777e5
push dword [ebp + 0x20]
lea ecx, [ebp - 0x10]
call fcn.0047e2ac
pop ecx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0047e308
lea ecx, [ebp - 0x10]
call fcn.0047e321
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x477854
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
mov eax, ecx
mov edx, dword [0x5164a0]
shr eax, 0x18
mov byte [ebp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 0x11], al
mov eax, ecx
shr eax, 8
mov byte [ebp + 0x12], al
mov eax, dword [ebp + 0x24]
push 0x10
mov byte [ebp + 0x13], cl
lea ecx, [ebp - 0x10]
push dword [eax]
push 0x10
call fcn.0047e20c
add esp, 0xc
lea eax, [ebp + 0x10]
push 0
push 4
push eax
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
push dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.0047e2ac
mov edx, dword [ebp + 0x1c]
pop ecx
test edx, edx
je 0x4778cb
cmp dword [ebp + 0x20], 0
je 0x4778cb
push dword [ebp + 0x20]
lea ecx, [ebp - 0x10]
call fcn.0047e2ac
pop ecx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0047e308
lea ecx, [ebp - 0x10]
call fcn.0047e321
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x479b52
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x21c]
push edi
and dword [esi + 0x130], 0
call fcn.00475731
test eax, eax
js 0x479ca7
mov eax, dword [ebp - 0x21c]
mov ebx, 0x3e8
mov edx, dword [esi + 0x124]
imul ecx, eax, 0x3e8
test edx, edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], ebx
cmove ecx, ebx
cmp dword [esi + 0x54], 0
jle 0x479bfc
test eax, eax
je 0x479bbb
cmp eax, dword [esi + 0x54]
jle 0x479bfc
push 0
call dword [sym.imp.msvcrt.dll__time64]
pop ecx
push edx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__difftime64]
fmul qword [0x4f5bf0]
add esp, 0x10
call sub.msvcrt.dll__ftol2_sse
mov ecx, dword [esi + 0x54]
cmp eax, ecx
jle 0x479bf5
push 0xfffffffffffffff7
pop eax
mov dword [esi + 0x130], eax
jmp 0x479ca7
xor ebx, ebx
sub ecx, eax
inc ebx
jmp 0x479c03
xor ebx, ebx
test ecx, ecx
setg bl
mov eax, ecx
xor edi, edi
cdq
idiv dword [ebp - 0x21c]
and dword [ebp - 0x224], edi
mov dword [ebp - 0x220], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x21c], eax
test cl, 1
je 0x479c57
mov eax, dword [esi + 0x11c]
lea edx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
jmp 0x479c5d
mov edx, dword [ebp - 0x224]
test cl, 2
je 0x479c7e
mov eax, dword [esi + 0x11c]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 1
xor ecx, ecx
lea eax, [ebp - 0x220]
test ebx, ebx
cmove eax, ecx
push eax
mov eax, dword [esi + 0x11c]
push ecx
push edi
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x479be7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x479cb8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 4
pop edi
cmp dword [esi + 0xcb38], ebx
jne 0x479d4c
cmp edx, 0xffffffff
jne 0x479cec
mov dword [esi + 0x12c], str.Bad_socket_provided
push 0xffffffffffffffd3
pop eax
mov dword [esi + 0x130], eax
jmp 0x479f00
lea eax, [ebp - 4]
mov dword [esi + 0x11c], edx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], edi
push eax
push 0x1007
push 0xffff
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
mov ecx, dword [ebp - 8]
xor edx, edx
inc edx
test eax, eax
cmovne ecx, edx
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x128], eax
test eax, eax
je 0x479d42
lea eax, [ebp - 8]
mov dword [ebp - 8], edx
push eax
push 0x8004667e
push dword [esi + 0x11c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esi + 0xcb38], 2
cmp dword [esi + 0xcb38], 2
jne 0x479d7f
mov ecx, esi
call fcn.00479a0e
test eax, eax
je 0x479d6f
mov dword [esi + 0x12c], str.Failed_sending_banner
jmp 0x479ce1
mov dword [esi + 0xcb38], 3
mov dword [esi + 0xca24], ebx
cmp dword [esi + 0xcb38], 3
jne 0x479db2
mov ecx, esi
call fcn.004798ca
test eax, eax
jne 0x479dde
push edi
push dword [esi + 0x90]
push str.SSH_
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x479d88
mov dword [esi + 0xcb38], edi
cmp dword [esi + 0xcb38], edi
jne 0x479df7
lea eax, [esi + 0xcb70]
xor edx, edx
push eax
mov ecx, esi
call fcn.00477570
pop ecx
test eax, eax
je 0x479ded
mov dword [esi + 0x12c], str.Unable_to_exchange_encryption_keys
jmp 0x479ce1
mov dword [esi + 0x12c], str.Failed_getting_banner
jmp 0x479ce1
mov dword [esi + 0xcb38], 5
cmp dword [esi + 0xcb38], 5
jne 0x479e32
push 0xc
lea eax, [esi + 0xcb49]
mov dword [esi + 0xcb44], 5
push str.ssh_userauth
push eax
mov byte [esi + 0xcb48], 0xc
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
mov dword [esi + 0xcb38], 6
cmp dword [esi + 0xcb38], 6
push 7
pop edi
jne 0x479e6b
push ebx
push ebx
push 0x11
lea edx, [esi + 0xcb44]
mov ecx, esi
call fcn.0047d218
add esp, 0xc
test eax, eax
je 0x479e65
mov dword [esi + 0x12c], str.Unable_to_ask_for_ssh_userauth_service
jmp 0x479ce1
mov dword [esi + 0xcb38], edi
cmp dword [esi + 0xcb38], edi
jne 0x479efd
lea eax, [esi + 0xcb60]
mov dl, 6
push eax
sub esp, 0xc
lea eax, [esi + 0xcb40]
lea edi, [esi + 0xcb3c]
mov ecx, esi
push eax
push edi
call fcn.004788e3
add esp, 0x18
test eax, eax
jne 0x479f00
mov ebx, dword [edi]
lea ecx, [ebx + 1]
call fcn.004779a5
mov dword [esi + 0xcb58], eax
cmp eax, 0xc
jne 0x479ee1
push eax
lea eax, [ebx + 5]
push eax
push str.ssh_userauth
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x479ee1
push esi
push dword [edi]
call dword [esi + 0xc]
and dword [edi], 0
and dword [esi + 0xcb38], 0
xor eax, eax
pop ecx
pop ecx
jmp 0x479f00
push esi
push dword [edi]
call dword [esi + 0xc]
and dword [edi], 0
pop ecx
pop ecx
mov dword [esi + 0x12c], str.Invalid_response_received_from_server
push 0xfffffffffffffff2
jmp 0x479ce0
push 0xffffffffffffffde
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47e9c9
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov eax, edx
push ebx
mov dword [ebp - 0xc], eax
test eax, eax
lea eax, [ebp - 4]
mov edi, ecx
push eax
push ebx
push ebx
push dword [edi + 0x10]
push dword [edi + 8]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [edi]
je 0x47e9fd
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
jmp 0x47ea03
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov esi, eax
test esi, esi
js 0x47ea6d
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 8], eax
pop ecx
test eax, eax
je 0x47ea68
cmp dword [ebp - 0xc], 0
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp - 4]
push eax
push dword [edi + 0x10]
push dword [edi + 8]
push ebx
push dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
push ebx
push dword [edi]
je 0x47ea41
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
jmp 0x47ea47
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov edi, dword [ebp - 8]
mov esi, eax
test esi, esi
js 0x47ea5e
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x47ea6d
mov esi, 0xc0000017
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret