joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe63250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe77808
push 0xe67288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xe63329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xe63329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00e661d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xe63329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xe63329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xe6332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00e63351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xe63d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe63d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xe63d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xe63d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xe63d94
push eax
push esi
call fcn.00e6620b
add esp, 8
pop esi
ret 0x10

Function at 0xe63da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe63e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xe63e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xe7c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e65dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xe63dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xe63e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xe63ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xe63eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xe7c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e65dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xe63eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xe63e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xe64000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xe64131
push esi
call fcn.00e67145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00e56080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe64131
push 0
push ebp
call fcn.00e563a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00e56260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe6408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00e562f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe64121
push 0xe7c918
push edi
call fcn.00e653f0
push eax
push ebx
push esi
call fcn.00e63f60
push 0xe7c8f8
push edi
call fcn.00e653f0
push eax
push ebx
push esi
call fcn.00e63f60
push 0xe7c8d8
push edi
call fcn.00e653f0
push eax
push ebx
push esi
call fcn.00e63f60
push 0xe7c8c0
push edi
call fcn.00e653f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e63f60
push 0xe7c8a0
push edi
call fcn.00e653f0
push eax
push ebx
push esi
call fcn.00e63f60
push 0xe7c888
push edi
call fcn.00e653f0
push eax
push ebx
push esi
call fcn.00e63f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xe651b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e65140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e65140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e65140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e65140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe65bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe65c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe7787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe65c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe65c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403520
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40353c
jmp 0x4035b9
call dword [sym.imp.USER32.dll_EmptyClipboard]
cmp dword [ebp - 4], 0
je 0x4035b3
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4035b3
mov ecx, dword [ebp - 8]
push ecx
call 0x400000
add esp, 4
push eax
push 0x428a38
call 0x400000
add esp, 8
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
sar edx, 1
mov eax, dword [ebp - 0x14]
add eax, 1
imul eax, dword [ebp - 0x18]
cmp edx, eax
je 0x40359d
cmp dword [ebp - 0x10], 0
je 0x40359d
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push eax
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret
Function at 0x4035c0
Capabilities:
Log keystrokes
Log keystrokes via polling
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x94]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4035df
jmp 0x40376d
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403767
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403767
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, 0x14
imul edx, ecx, 0
mov eax, 1
mov word [ebp + edx - 0x40], ax
mov ecx, 0x14
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x38], ax
mov ecx, 0x14
imul edx, ecx, 0
mov dword [ebp + edx - 0x30], 0
mov eax, 0x14
imul ecx, eax, 0
mov dword [ebp + ecx - 0x3c], 1
mov dword [ebp - 8], 0
jmp 0x40366d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jae 0x40375d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + ecx*2]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov word [ebp - 4], ax
movsx ecx, word [ebp - 4]
and ecx, 0xff
mov edx, 0x14
imul eax, edx, 0
movzx cx, cl
mov word [ebp + eax - 0x36], cx
push 0
movsx edx, word [ebp - 4]
and edx, 0xff
movzx eax, dl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, 0x14
imul edx, ecx, 0
mov word [ebp + edx - 0x34], ax
mov eax, 0x14
imul ecx, eax, 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dx, word [eax + edx*2]
mov word [ebp + ecx - 0x32], dx
mov eax, 0x14
imul ecx, eax, 0
lea edx, [ebp + ecx - 0x40]
mov eax, 0x14
shl eax, 0
lea ecx, [ebp + eax - 0x40]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [edx + 0x10]
mov dword [ecx + 0x10], edx
mov eax, 0x14
shl eax, 0
mov dword [ebp + eax - 0x3c], 0
mov ecx, dword [ebp - 0x14]
sub ecx, 1
cmp dword [ebp - 8], ecx
jne 0x40373b
mov dword [ebp - 0x18], 1
jmp 0x403742
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
push edx
push 2
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call 0x400000
add esp, 0x10
jmp 0x403664
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esp, ebp
pop ebp
ret
Function at 0x406ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 0
je 0x406ebb
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10a4], 0
jne 0x406ebd
jmp 0x406f34
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa4
push ecx
call 0x400000
add esp, 8
push eax
push 0x4288e8
call 0x400000
add esp, 8
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xa4
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406f27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4288ec
call 0x400000
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10a4], 0
pop ebp
ret

Function at 0x406f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x406f55
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], 0
jne 0x406f5a
jmp 0x407020
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10a4]
add edx, dword [ebp + 0x10]
cmp edx, 0x1000
jbe 0x406f7a
mov eax, dword [ebp + 8]
push eax
call fcn.00406ea0
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10a4]
add edx, dword [ebp + 0x10]
cmp edx, 0x1000
ja 0x406fc9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10a4]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0xa4]
push edx
call fcn.0040e560
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10a4]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10a4], ecx
jmp 0x407020
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10a4], 0
je 0x406fec
push 0x993
push str.Source.c
push str._console__tty_buffer_count
call fcn.0040fb77
add esp, 0xc
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407020
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.write_failed:__u_n
call 0x400000
add esp, 8
pop ebp
ret

Function at 0x409540
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
mov eax, 1
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [edx + 4], eax
mov ecx, 1
mov edx, dword [ebp + 8]
mov word [edx + 8], cx
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0xc]
mov word [eax + 0xe], cx
mov edx, dword [ebp + 8]
mov ax, word [ebp + 0x10]
mov word [edx + 0xa], ax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edx, dword [ebp + 8]
mov word [edx + 0xc], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], ecx
pop ebp
ret
Function at 0x4097b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movsx ecx, ax
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0xffffffff
jne 0x4097d2
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
and edx, 0x100
je 0x4097e6
mov eax, dword [ebp + 0x10]
or eax, 0x10
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 4]
and ecx, 0x200
je 0x4097fa
mov edx, dword [ebp + 0x10]
or edx, 8
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 4]
and eax, 0x400
je 0x40980d
mov ecx, dword [ebp + 0x10]
or ecx, 2
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
and edx, 0xff
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
movzx edx, word [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004095a0
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x40a0b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9c], 0
jne 0x40a0c7
mov eax, 1
jmp 0x40a112
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x98], 0
jne 0x40a0f3
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0x409d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x98], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x98], 0
je 0x40a108
mov dword [ebp - 4], 1
jmp 0x40a10f
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x413af6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413a78

Function at 0x415dab
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415a28
Function at 0x407e22
Capabilities:
Terminate process

Disassembly:
push esi
push str.psftp:
mov esi, 0x4484d8
push esi
call fcn.0042bd3a
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push esi
call fcn.0042cfaa
push str._n_______try_typing__psftp__h__for_help_n
push esi
call fcn.0042bd3a
add esp, 0x1c
push 1
call fcn.0042cf6a
pop esi
cmp dword [0x448f70], 0
je 0x407e6f
push str.psftp:_already_connected_n
call fcn.0042c92d
pop ecx
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 4]
cmp eax, 2
jge 0x407e8b
push str.open:_expects_a_host_name_n
call fcn.0042c92d
pop ecx
xor eax, eax
pop esi
ret
jle 0x407ea3
mov eax, dword [esi]
push dword [eax + 8]
call fcn.0042a993
test eax, eax
pop ecx
jne 0x407ea5
push str.open:_invalid_port_number_n
jmp 0x407e81
xor eax, eax
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push 0
call fcn.00407b5b
test eax, eax
pop ecx
pop ecx
je 0x407ec4
and dword [0x448f70], 0
or eax, 0xffffffff
pop esi
ret
call fcn.00407698
xor eax, eax
inc eax
pop esi
ret
Function at 0x4185e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, eax
test bl, 0xf
push edi
mov edi, dword [ebp + 0xc]
je 0x418612
push 0x409
push str..._sshaes.c
push str._len__15___0
call fcn.0042ae3d
add esp, 0xc
lea eax, [edi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ab00
add esp, 0xc
test ebx, ebx
jle 0x4186bc
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp - 4], eax
lea eax, [ebx - 1]
shr eax, 4
inc eax
push esi
mov dword [ebp - 8], eax
jmp 0x41864b
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
xor eax, eax
movzx edx, byte [esi]
xor ecx, ecx
mov ch, byte [esi - 2]
add esi, 4
mov cl, byte [esi - 5]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi - 3]
shl ecx, 8
or ecx, edx
xor dword [ebp + eax*4 - 0x1c], ecx
inc eax
cmp eax, 4
jl 0x418650
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [edi + 0x3c0]
mov eax, dword [ebp - 4]
pop ecx
pop ecx
xor edx, edx
lea ecx, [ebp + edx*4 - 0x1c]
mov edi, dword [ecx]
mov cl, byte [ecx]
mov ebx, edi
shr ebx, 0x18
mov byte [eax - 2], bl
mov ebx, edi
shr ebx, 0x10
mov byte [eax - 1], bl
mov ebx, edi
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
inc edx
add eax, 4
cmp edx, 4
jl 0x418688
dec dword [ebp - 8]
mov dword [ebp - 4], esi
jne 0x418648
pop esi
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
call fcn.0042ab00
add esp, 0xc
pop edi
pop ebx
leave
ret

Function at 0x4186d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, eax
test bl, 0xf
push esi
mov esi, dword [ebp + 0xc]
je 0x4186fa
push 0x41f
push str..._sshaes.c
push str._len__15___0
call fcn.0042ae3d
add esp, 0xc
lea eax, [esi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042ab00
add esp, 0xc
test ebx, ebx
jle 0x4187cd
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx - 1]
shr eax, 4
add edi, 2
inc eax
mov dword [ebp - 4], eax
jmp 0x418730
mov esi, dword [ebp + 0xc]
mov eax, edi
xor ecx, ecx
movzx ebx, byte [eax]
xor edx, edx
mov dh, byte [eax - 2]
add ecx, 4
add eax, 4
mov dl, byte [eax - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 3]
shl edx, 8
or edx, ebx
cmp ecx, 0x10
mov dword [ebp + ecx - 0x40], edx
mov dword [ebp + ecx - 0x20], edx
jl 0x418734
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [esi + 0x3c4]
pop ecx
mov eax, edi
pop ecx
xor edi, edi
lea ecx, [ebp + edi - 0x1c]
mov edx, dword [ecx]
lea esi, [ebp + edi - 0x2c]
mov ebx, dword [esi]
shr edx, 0x18
shr ebx, 0x18
xor bl, dl
mov edx, dword [esi]
mov byte [eax - 2], bl
mov ebx, dword [ecx]
shr edx, 0x10
shr ebx, 0x10
xor dl, bl
mov ebx, dword [ecx]
mov cl, byte [ecx]
xor cl, byte [esi]
mov byte [eax - 1], dl
mov edx, dword [esi]
shr edx, 8
shr ebx, 8
xor dl, bl
mov byte [eax + 1], cl
mov ecx, dword [ebp + edi - 0x3c]
mov byte [eax], dl
add edi, 4
add eax, 4
cmp edi, 0x10
mov dword [esi], ecx
jl 0x418774
dec dword [ebp - 4]
mov edi, dword [ebp - 8]
jne 0x41872d
pop edi
push 0x10
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call fcn.0042ab00
add esp, 0xc
pop esi
pop ebx
leave
ret
Function at 0x4187e2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, eax
test bl, 0xf
push esi
mov esi, dword [ebp + 0xc]
je 0x41880b
push 0x437
push str..._sshaes.c
push str._len__15___0
call fcn.0042ae3d
add esp, 0xc
lea eax, [esi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ab00
add esp, 0xc
test ebx, ebx
jle 0x4188dc
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx - 1]
shr eax, 4
add edi, 2
inc eax
mov dword [ebp - 8], eax
jmp 0x418841
mov esi, dword [ebp + 0xc]
push 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0042ab00
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [esi + 0x3c0]
add esp, 0x14
xor ecx, ecx
mov eax, edi
movzx esi, byte [eax]
xor edx, edx
mov dh, byte [eax - 2]
mov dl, byte [eax - 1]
shl edx, 8
or edx, esi
movzx esi, byte [eax + 1]
shl edx, 8
or edx, esi
mov dword [ebp - 4], edx
mov ebx, dword [ebp - 4]
lea esi, [ebp + ecx*4 - 0x2c]
mov edi, dword [esi]
shr ebx, 0x18
mov edx, edi
shr edx, 0x18
xor dl, bl
mov ebx, dword [ebp - 4]
mov byte [eax - 2], dl
shr ebx, 0x10
mov edx, edi
shr edx, 0x10
xor dl, bl
mov ebx, dword [ebp - 4]
mov byte [eax - 1], dl
mov edx, edi
shr edx, 8
shr ebx, 8
xor dl, bl
mov byte [eax], dl
mov dl, byte [esi]
xor dl, byte [ebp - 4]
inc ecx
mov byte [eax + 1], dl
add eax, 4
cmp ecx, 4
jl 0x418862
push 3
pop ecx
inc dword [ebp + ecx*4 - 0x1c]
jne 0x4188d0
dec ecx
jns 0x4188c7
dec dword [ebp - 8]
mov edi, eax
jne 0x41883e
pop edi
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
call fcn.0042ab00
add esp, 0xc
pop esi
pop ebx
leave
ret

Function at 0x418a10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0xb], cl
mov cl, byte [eax + 1]
mov byte [ebp - 1], cl
jle 0x418a74
push ebx
push esi
push edi
inc byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xb]
lea esi, [ecx + eax + 2]
mov dl, byte [esi]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
mov edi, dword [ebp + 0xc]
lea ecx, [ecx + eax + 2]
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov bl, byte [esi]
add edi, ecx
add ebx, edx
and ebx, 0xff
mov dl, byte [ebx + eax + 2]
xor byte [edi], dl
inc ecx
cmp ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
jl 0x418a30
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0xb]
mov byte [eax], cl
mov cl, byte [ebp - 1]
mov byte [eax + 1], cl
leave
ret