joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b7b0
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push esi
xor esi, esi
cmp eax, 8
push edi
mov byte [esp + 0xc], 0
je 0x40b807
cmp eax, 0x10
jne 0x40b7d7
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
mov ax, word [ecx]
pop ebx
pop ecx
ret
cmp eax, 0x20
jne 0x40b7e7
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov eax, dword [edx]
pop ecx
ret
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.getBgColour:_bpp__d__n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov ecx, 0x100
xor eax, eax
mov edi, 0x41e368
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x40b852
mov edx, dword [esp + 0x14]
xor eax, eax
mov al, byte [ecx + edx]
cmp eax, 0x100
jge 0x40b860
mov ebx, dword [eax*4 + 0x41e368]
inc ebx
mov dword [eax*4 + 0x41e368], ebx
mov eax, ebx
cmp eax, esi
jle 0x40b84d
mov esi, eax
mov al, byte [ecx + edx]
mov byte [esp + 0xc], al
inc ecx
cmp ecx, edi
jl 0x40b823
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebx
pop ecx
ret
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
push str.getBgColour
add ecx, 0x40
push str._s:_unusual_colour___d_n
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov dword [ecx + 0x54], 0
call sub.omnithread_rt.dll_protected:_void___thiscall_omni_thread::start_undetached_void_
mov eax, 1
ret 8

Function at 0x40bfc0
Capabilities:
Check mutex on windows

Disassembly:
push str.WinVNC_Win32_Instance_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x40bfd4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret

Function at 0x40c030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
mov edi, ebx
and edi, 0xff
push edi
call ebp
mov esi, dword [esp + 0x18]
shr eax, 0xf
and eax, 1
je 0x40c0c1
test esi, esi
jne 0x40c0bc
mov ecx, 0x41bd50
test eax, eax
mov eax, str.down
jne 0x40c06c
mov eax, 0x41bd50
push ecx
push eax
push edi
push str.E:Work_vnc_3.3.3r7_winsrcwinvnc_vncKeymap.cpp_:_setshiftstate__d_____s___s__n
push 9
push 0x41df18
call fcn.004018c0
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
push esi
push ebx
call fcn.0040c000
add esp, 0x20
push edi
call ebp
test ah, 0x80
mov eax, str.down
jne 0x40c0a6
mov eax, 0x41bd50
push eax
push edi
push str.E:Work_vnc_3.3.3r7_winsrcwinvnc_vncKeymap.cpp_:_new_state__d___s__n
push 9
push 0x41df18
call fcn.004018c0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
je 0x40c0bc
mov ecx, str.down
jmp 0x40c05e
Function at 0x40c890
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10c
lea eax, [esp + 0xc]
push ebx
push ebp
push 0x100
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x40c8d3
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push str.Host_name_unavailable
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
pop ebp
pop ebx
add esp, 0x10c
ret
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x40c90b
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push str.IP_address_unavailable
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
pop ebp
pop ebx
add esp, 0x10c
ret
mov ebp, dword [esp + 0x118]
mov byte [ebp], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax], 0
je 0x40c9e2
push esi
push edi
mov dword [esp + 0x10], 0
xor esi, esi
cmp word [ebx + 0xa], si
jle 0x40c983
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
xor ecx, ecx
lea edx, [esp + 0x14]
mov cl, byte [eax + esi]
push ecx
push 0x41bed0
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x130]
not ecx
dec ecx
sub eax, ecx
lea ecx, [esp + 0x20]
dec eax
push eax
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strncat]
movsx edx, word [ebx + 0xa]
add esp, 0x18
inc esi
cmp esi, edx
jl 0x40c934
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp - 1], al
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + eax + 4]
test edx, edx
je 0x40c9c8
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x124]
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
dec edx
push edx
push 0x41becc
push ebp
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xc]
add eax, 4
mov dword [esp + 0x10], eax
cmp dword [eax + ecx], 0
jne 0x40c92c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret

Function at 0x40ded0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
mov esi, 4
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40df11
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
cmp dword [esp + 4], esi
je 0x40df22
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 8]
cmp eax, esi
mov eax, dword [esp + 0x18]
jne 0x40df32
mov eax, dword [esp + 0x14]
pop esi
add esp, 8
ret 0xc
Function at 0x40df40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
push edx
push 0
push str.Password
push eax
mov dword [esp + 0x1c], 3
mov dword [esp + 0x18], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40df90
cmp dword [esp], 8
jg 0x40df90
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 0x10
ret 8

Function at 0x40dfa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
mov esi, 1
push edi
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
call ebp
test eax, eax
je 0x40dfe8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
cmp dword [esp + 0x10], esi
je 0x40dffa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edx, dword [esp + 0x14]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x40e017
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push esi
push ecx
push 0
push edi
push ebx
call ebp
test eax, eax
je 0x40e041
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
cmp dword [esp + 0x10], 1
je 0x40e05d
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x40e730
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x40ecc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41403b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xc
mov dword [esp + 0x18], esi
mov byte [esi + 0x68], al
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor ebp, ebp
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ebp
mov cl, byte [esp + 0x17]
push 0xc
mov dword [esp + 0x30], ebp
mov byte [esi + 0x74], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 8
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], ebp
mov ebx, 1
lea ecx, [esi + 0x284]
mov byte [esp + 0x28], bl
call sub.omnithread_rt.dll_public:_void___thiscall_omni_mutex::constructor_void_
lea ecx, [esi + 0x29c]
mov byte [esp + 0x28], 2
call sub.omnithread_rt.dll_public:_void___thiscall_omni_mutex::constructor_void_
mov dl, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x2c], 3
mov byte [esi + 0x2b8], dl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x2bc], eax
mov dword [esi + 0x2c0], ebp
push str.E:Work_vnc_3.3.3r7_winsrcwinvnc_vncPasswd.h_:_PASSWD_:_FromClear_called_n
push 9
push 0x41df18
mov byte [esp + 0x38], 4
mov dword [esi], 0x415e58
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x14], 0x170c
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], ebp
mov dword [esi + 0x64], ebp
call fcn.004018c0
lea eax, [esp + 0x28]
push eax
push 0x41e788
call fcn.00403380
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x44], 2
mov dword [esi + 0x48], 0xa
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x80]
mov ecx, 0x80
xor eax, eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebp
push 0x24
rep stosd dword es:[edi], eax
mov word [esi + 0x280], bp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x1c
mov dword [esp + 0x18], eax
cmp eax, ebp
mov byte [esp + 0x28], 5
je 0x40ee48
lea ecx, [esi + 0x284]
push ecx
mov ecx, eax
call sub.omnithread_rt.dll_public:_void___thiscall_omni_condition::constructor_class_omni_mutex__
mov dword [esi + 0x2b4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x2b4], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x411640
Capabilities:
Get session user name

Disassembly:
push ecx
mov eax, dword [0x41ebbc]
push ebx
push esi
cmp eax, 2
push edi
jne 0x411726
call fcn.00411c50
test eax, eax
je 0x411721
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x4117b2
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4116cf
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov edi, 0x41e788
or ecx, 0xffffffff
xor eax, eax
mov dword [0x41ebc4], 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x4117b2
mov edi, 0x41e788
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
jmp 0x411785
mov eax, dword [0x41ebc4]
test eax, eax
jne 0x411721
mov edi, 0x41e788
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
cmp ecx, eax
jae 0x4117b2
mov edi, 0x41e788
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x41ebbc]
test eax, eax
jbe 0x4117b2
cmp eax, 2
ja 0x4117b2
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x411791
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x4dd
jne 0x41179b
mov edi, 0x41e788
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x4117b2
mov edi, 0x41e788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
call edi
push eax
push str.E:Work_vnc_3.3.3r7_winsrcwinvnc_vncService.cpp_:_getusername_error__d_n
push 0
push 0x41df18
call fcn.004018c0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x411e50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x41ebbc]
sub esp, 0x10
dec eax
mov dword [0x41ebd0], 1
push esi
push edi
je 0x411eb2
dec eax
jne 0x411ef8
lea eax, [esp + 8]
mov dword [esp + 8], str.winvnc
push eax
mov dword [esp + 0x10], 0x411f00
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x411ef8
push str.StartServiceCtrlDispatcher_failed.
call fcn.00412640
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x10
ret
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411ef8
push str.RegisterServiceProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x411ef8
push 1
push 0
call esi
call fcn.00413470
push 0
push 0
call esi
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x412640
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x108
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.winvnc
push 0
mov dword [0x41ebc8], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x41ebc8]
push eax
push str.winvnc
lea ecx, [esp + 0x14]
push str._s_error:__d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x120]
add esp, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 8], eax
test esi, esi
mov dword [esp + 4], edx
je 0x4126bf
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x108
ret

Function at 0x412aa0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x412aca
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x190
ret
mov cx, word [esp + 4]
mov eax, esi
mov word [0x41ebdc], cx
mov dword [esi], 0xffffffff
pop esi
add esp, 0x190
ret

Function at 0x412b40
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 1
mov eax, dword [esi + 4]
test eax, eax
jl 0x412b59
call fcn.00412bb0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
test eax, eax
mov dword [esi + 4], eax
jge 0x412b72
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push eax
call edi
test eax, eax
je 0x412b93
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push 4
push edx
push 1
push 6
push eax
call edi
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
pop ecx
ret

Function at 0x412d40
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jge 0x412d58
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x412da7
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x412d4e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x412da1
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
pop edi
neg eax
dec eax
pop esi
add esp, 0x10
ret 8
Function at 0x412e00
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [ecx + 4]
push edi
test eax, eax
mov dword [esp + 4], 1
jge 0x412e16
xor eax, eax
pop edi
pop ecx
ret
push 0
push 0
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
test edi, edi
jge 0x412e2c
xor eax, eax
pop edi
pop ecx
ret
push esi
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x412e4d
mov ecx, eax
call fcn.00412b00
mov esi, eax
test esi, esi
je 0x412e4f
mov dword [esi + 4], edi
jmp 0x412e5f
xor esi, esi
push 2
push edi
call dword [sym.imp.WSOCK32.dll_shutdown]
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push 4
push eax
push 1
push 6
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, esi
pop esi
pop edi
pop ecx
ret

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

Disassembly:
sub esp, 0x14
lea eax, [esp]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x412ef3
mov eax, str._unavailable_
add esp, 0x14
ret

Function at 0x412f00
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x412f2b
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x412f29
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x412f29
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x412f30
Capabilities:
Set socket configuration

Disassembly:
mov al, byte [0x41ebdc]
push esi
cmp al, 2
push edi
mov esi, ecx
jae 0x412f44
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x20], eax
call edi
cmp eax, 0xffffffff
jne 0x412f75
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 0x1005
push 0xffff
push ecx
call edi
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
ret 4
Function at 0x401d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e639
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 2
lea eax, [esi + 0x30]
call fcn.00401f30
mov byte [esp + 0x14], 1
lea edi, [esi + 0x2c]
call fcn.00401ee0
mov byte [esp + 0x14], 0
lea ecx, [esi + 4]
call fcn.004065d0
mov dword [esp + 0x14], 0xffffffff
mov ecx, esi
call fcn.004065d0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x410f00
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f4b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4ad980]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ad980]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
mov edi, ecx
xor eax, eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov word [edi + 4], ax
push ebx
mov eax, 0x48d76c
mov esi, edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x20], 0x40
mov byte [esp + 0x21], 0x23
mov byte [esp + 0x22], 0x25
mov byte [esp + 0x23], 0x2a
mov byte [esp + 0x24], 0x3a
mov byte [esp + 0x25], 0x3b
mov byte [esp + 0x26], 0x2d
mov byte [esp + 0x27], 0x5f
mov byte [esp + 0x28], 0x2b
call fcn.0040bfd0
mov dword [esp + 0x34], ebx
push 0x490a38
push ebp
mov dword [esp + 0x20], 1
call fcn.00465096
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x41108e
push ebx
push ebx
push esi
call fcn.00465c38
push 2
push ebx
push esi
call fcn.00465c38
push esi
call fcn.00465e5a
push ebx
push ebx
push esi
mov edi, eax
call fcn.00465c38
push edi
call fcn.00444919
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.00466168
add esp, 0x3c
xor ecx, ecx
cmp edi, ebx
jle 0x411009
mov eax, ecx
cdq
mov ebx, 9
idiv ebx
inc ecx
mov dl, byte [esp + edx + 0x1c]
xor byte [ecx + ebp - 1], dl
cmp ecx, edi
jl 0x410ff0
xor ebx, ebx
push esi
call fcn.0046535b
add esp, 4
push ebx
push ebx
push edi
push ebp
push ebx
push 0xfde9
call dword [0x4853bc]
mov esi, eax
xor ecx, ecx
lea eax, [esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444919
add esp, 4
push esi
mov ebx, eax
push ebx
push edi
push ebp
push 0
push 0xfde9
call dword [0x4853bc]
xor eax, eax
mov word [ebx + esi*2], ax
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411060
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.0040bfd0
push ebx
call fcn.00444924
push ebp
call fcn.00444924
add esp, 8
mov eax, esi
jmp 0x411090
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004644a2
add esp, 0x24
ret