joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40434d
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x4111b4]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x14
mov eax, 0x40a7ca
call fcn.00409b4c
mov ecx, dword [ebp + 0x234]
mov edi, dword [ebp + 0x230]
xor ebx, ebx
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x4043af
push 0x40c360
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov eax, edi
jmp 0x40448d
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push esi
mov dword [ebp - 4], 1
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0x10]
add esp, 0x10
push edi
push esi
push ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404463
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40bd84
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call sub.VERSION.dll_VerQueryValueW
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x40bd30
lea eax, [ebp + 0x1c]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x20
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404463
cmp dword [ebp - 0x14], ebx
je 0x404463
push dword [ebp - 0x14]
lea ecx, [ebp]
call dword [0x40b104]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp]
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00409ade
add ebp, 0x228
leave
ret
Function at 0x4047e0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x1a0
push esi
mov esi, dword [esp + 0x1b8]
lea eax, [esp + 0x14]
push eax
push 0x101
mov dword [esi], 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x404812
or eax, 0xffffffff
pop esi
add esp, 0x1a0
ret
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x404836
call fcn.0041017e
mov eax, 0xfffffffe
pop esi
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1ac]
test ecx, ecx
je 0x404878
lea ecx, [esp + 0x1ac]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x404878
mov edx, dword [esi]
push edx
call sub.WSOCK32.dll_closesocket
call fcn.0041017e
mov dword [esi], 0xffffffff
mov eax, 0xfffffffe
pop esi
add esp, 0x1a0
ret
cmp dword [esp + 0x1a8], 1
jne 0x404913
mov eax, dword [esp + 0x1b4]
push eax
mov word [esp + 8], 2
call sub.WSOCK32.dll_htons
push 0
mov word [esp + 0xa], ax
call sub.WSOCK32.dll_htonl
mov edx, dword [esi]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4048de
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
call fcn.0041017e
mov dword [esi], 0xffffffff
mov eax, 0xfffffff9
pop esi
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esi]
push ecx
push edx
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x404913
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
call fcn.0041017e
mov dword [esi], 0xffffffff
mov eax, 0xfffffff8
pop esi
add esp, 0x1a0
ret
xor eax, eax
pop esi
add esp, 0x1a0
ret
Function at 0x404b80
Capabilities:
Check mutex on windows
Send data
Send data on socket

Disassembly:
sub esp, 0x424
push ebx
mov ebx, dword [esp + 0x434]
push ebp
push esi
xor esi, esi
cmp ebx, 0x400
lea eax, [ebx + 8]
lea ebp, [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
jle 0x404bcb
push eax
call fcn.00410c85
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x404bcb
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x424
ret
mov esi, dword [esp + 0x438]
mov ecx, ebx
shr ecx, 0x10
mov byte [ebp + 5], cl
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 4], al
mov ecx, ebx
mov eax, ecx
push edi
mov edx, ebx
shr ecx, 2
shr edx, 8
mov byte [ebp + 7], bl
mov ebx, dword [esp + 0x1c]
mov byte [ebp], 0x4a
mov byte [ebp + 1], 0x5e
mov byte [ebp + 2], 0x7a
mov byte [ebp + 3], 4
mov byte [ebp + 6], dl
lea edi, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
mov esi, 0x40000000
jle 0x404ce9
mov eax, ebx
sub eax, edi
cmp eax, esi
jle 0x404c32
mov eax, esi
mov edx, dword [esp + 0x438]
push 0
push eax
lea ecx, [edi + ebp]
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x404cab
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2747
jne 0x404c82
sar esi, 1
cmp esi, 0x400000
jle 0x404c70
mov esi, 0x400000
mov dword [esp + 0x14], 0
jmp 0x404cd7
cmp esi, 0x100
jl 0x404ca1
mov dword [esp + 0x14], 0
jmp 0x404cd7
cmp eax, 0x2733
jne 0x404ca1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x14], eax
jle 0x404cd7
mov dword [esp + 0x10], 0xfffffff4
jmp 0x404ce9
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], ecx
jne 0x404ccf
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x18], eax
jg 0x404ca1
jmp 0x404cd7
jle 0x404ce1
add edi, eax
mov dword [esp + 0x18], ecx
cmp edi, ebx
jl 0x404c28
jmp 0x404ce9
mov dword [esp + 0x10], 0xffffff9d
lea eax, [esp + 0x2c]
cmp ebp, eax
je 0x404cfa
push ebp
call fcn.00410b6d
add esp, 4
test edi, edi
jle 0x404d82
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push str.KASC_STAT_MUTEX
push ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x404d4b
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
jmp 0x404d4f
mov ebp, dword [esp + 0x1c]
mov ebx, 0x4244f0
mov eax, 0x4244c0
call fcn.00404750
mov ecx, dword [0x4244c0]
add ecx, edi
test esi, esi
mov dword [0x4244c0], ecx
je 0x404d82
test ebp, ebp
jne 0x404d7b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x406620
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
push esi
push edi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push 0x4065e0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x406673
xor esi, esi
test eax, eax
jne 0x406673
cmp esi, 0x19
jge 0x406673
push 0xa
call edi
mov eax, dword [esp + 0x10]
inc esi
test eax, eax
je 0x406661
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jne 0x406693
push 0x1f4
mov dword [esp + 0xc], eax
call edi
pop edi
mov eax, 2
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x406ec0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call fcn.00406c00
add esp, 4
cmp eax, 0xffffffec
mov dword [esp + 4], eax
jl 0x406efe
test eax, eax
jg 0x406efe
mov eax, 1
add esp, 0xc
ret
push esi
push edi
lea edx, [esp + 8]
push edx
push 0x4065e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x406f36
xor esi, esi
test eax, eax
jne 0x406f36
cmp esi, 0x19
jge 0x406f36
push 0xa
call edi
mov eax, dword [esp + 0x10]
inc esi
test eax, eax
je 0x406f24
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jne 0x406f56
push 0x1f4
mov dword [esp + 0xc], eax
call edi
pop edi
mov eax, 2
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x406f60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
mov ecx, 0x42
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x4070c7
cmp byte [eax], 0
je 0x4070c7
push 0x104
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00410340
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406fb4
sub eax, edx
mov cl, byte [esp + eax + 0x14]
cmp cl, 0x2e
lea eax, [esp + eax + 0x18]
jne 0x406fe9
mov cl, byte [eax - 3]
or cl, 0x20
cmp cl, 0x65
jne 0x406fe9
mov dl, byte [eax - 2]
or dl, 0x20
cmp dl, 0x78
jne 0x406fe9
mov al, byte [eax - 1]
or al, 0x20
cmp al, cl
je 0x407009
lea edi, [esp + 0x18]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406ff0
mov ecx, dword [str..exe]
mov dl, byte [0x41d7d4]
mov dword [edi], ecx
mov byte [edi + 4], dl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406ec0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x407080
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push 0xf060
push 0x112
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40705d
push 0
push 0
push 0x10
push esi
call edi
push 0x32
call ebx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4070bc
push 0
push 0
push 2
push esi
call edi
push 0x32
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x4070bc
lea edx, [esp + 0x18]
push edx
call fcn.00406c00
add esp, 4
cmp eax, ebx
jbe 0x4070bc
push eax
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4070bc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407180
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x1000
call fcn.00410740
push esi
mov esi, dword [esp + 0x100c]
cmp esi, 0xffffffff
jne 0x4071a1
or eax, esi
pop esi
add esp, 0x1000
ret
push ebx
mov ebx, dword [esp + 0x100c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
push ebp
push edi
mov edi, dword [ebx + 4]
add eax, edi
cmp eax, ecx
jle 0x40721b
cmp edi, 0x1000
jbe 0x407231
push edi
call fcn.00410c85
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x407214
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov esi, dword [ebx + 0xc]
sub ecx, eax
mov edx, ecx
shr ecx, 2
add esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
sub ecx, edi
add ecx, eax
sub edi, eax
mov eax, ecx
shr ecx, 2
add edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1018]
test ebp, ebp
mov edi, dword [ebx + 4]
jne 0x407237
mov ecx, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
push 0
push edi
add ecx, ebp
push ecx
push esi
call sub.WSOCK32.dll_send
mov esi, eax
jmp 0x407254
lea ebp, [esp + 0x10]
jmp 0x4071d0
push 0
push edi
push ebp
push esi
call sub.WSOCK32.dll_send
lea edx, [esp + 0x10]
cmp ebp, edx
mov esi, eax
je 0x407254
push ebp
call fcn.00410b6d
add esp, 4
cmp esi, 0xffffffff
je 0x407280
mov eax, dword [ebx + 8]
add eax, esi
cdq
idiv dword [ebx]
mov ebp, dword [ebx + 4]
mov ecx, dword [ebx + 0x10]
sub ebp, esi
add ecx, esi
cmp esi, edi
mov dword [ebx + 4], ebp
mov dword [ebx + 0x10], ecx
mov dword [ebx + 8], edx
jge 0x407280
sub edi, esi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x1000
ret

Function at 0x407960
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1a4
push esi
mov esi, dword [esp + 0x1ac]
xor eax, eax
test esi, esi
je 0x407a23
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0xb]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1a]
push edx
lea eax, [esp + 0x28]
push eax
push str._d_c_d_c_d_c_d
push esi
call fcn.00411057
add esp, 0x24
cmp eax, 7
jl 0x4079d5
mov cl, byte [esp + 6]
mov al, 0x2e
cmp cl, al
jne 0x4079d5
cmp byte [esp + 5], al
jne 0x4079d5
cmp byte [esp + 7], al
jne 0x4079d5
push esi
call fcn.0041b329
add esp, 4
pop esi
add esp, 0x1a4
ret
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x407a19
push esi
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
call fcn.0041017e
test edi, edi
je 0x407a19
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
call fcn.0041b329
add esp, 4
pop edi
pop esi
add esp, 0x1a4
ret
push esi
call fcn.0041b329
add esp, 4
pop edi
pop esi
add esp, 0x1a4
ret
Function at 0x407ba0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x124
xor eax, eax
mov dword [esp + 5], eax
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
push ecx
push 0x4d000001
xor esi, esi
mov byte [esp + 0x10], 0
mov dword [esp + 0x1d], eax
mov dword [esp + 0xc], eax
call fcn.00405230
lea edx, [esp + 0x18]
push edx
push 1
call fcn.00405230
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00405230
add esp, 0x18
push 0xff
lea edx, [esp + 0x2c]
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x407d4e
lea eax, [esp + 0x28]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x407c20
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov esi, dword [edx]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00405230
mov edx, dword [esp + 0x134]
push 0x11
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x2c], 2
call fcn.00404b80
add esp, 0x14
test eax, eax
je 0x407c58
mov eax, 0xe40001
pop esi
add esp, 0x124
ret
push ebx
push ebp
lea eax, [esp + 0x24]
push edi
push eax
or ebx, 0xffffffff
call fcn.004104bc
add esp, 4
xor ebp, ebp
lea ecx, [ecx]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push eax
call fcn.00404da0
add esp, 0x10
test eax, eax
jne 0x407d15
mov esi, dword [esp + 0x10]
push esi
call fcn.00405200
add esp, 4
cmp eax, 0x4d000003
jne 0x407cf3
lea ecx, [esi + 4]
push ecx
call fcn.00405200
add esi, 8
push esi
mov edi, eax
call fcn.00405200
mov ecx, dword [esp + 0x144]
add esp, 8
cmp edi, ecx
jne 0x407cf3
cmp eax, 0x1000f
jne 0x407cda
mov ebx, 1
jmp 0x407cee
cmp eax, 0x10001
jne 0x407ce5
xor ebx, ebx
jmp 0x407cee
cmp eax, 0x2bad2bad
jne 0x407cf3
mov ebx, eax
mov ebp, 1
mov edx, dword [esp + 0x10]
push edx
call fcn.004051c0
add esp, 4
test ebp, ebp
je 0x407c70
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
cmp eax, 0xfffffff4
je 0x407d08
cmp eax, 0xfffffff5
je 0x407d08
cmp eax, 0xffffff9d
je 0x407d08
lea eax, [esp + 0x2c]
push eax
call fcn.004104bc
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, esi
jle 0x407c70
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
or eax, 0xffffffff
pop esi
add esp, 0x124
ret
Function at 0x407d60
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x124
xor eax, eax
mov dword [esp + 5], eax
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
push ecx
push 0x4d000001
xor esi, esi
mov byte [esp + 0x10], 0
mov dword [esp + 0x1d], eax
mov dword [esp + 0xc], eax
call fcn.00405230
lea edx, [esp + 0x18]
push edx
push 1
call fcn.00405230
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00405230
add esp, 0x18
push 0xff
lea edx, [esp + 0x2c]
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x407f00
lea eax, [esp + 0x28]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x407de0
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov esi, dword [edx]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00405230
mov edx, dword [esp + 0x134]
push 0x11
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x2c], 1
call fcn.00404b80
add esp, 0x14
test eax, eax
je 0x407e18
mov eax, 0xe40001
pop esi
add esp, 0x124
ret
push ebx
push ebp
lea eax, [esp + 0x24]
push edi
push eax
or ebx, 0xffffffff
call fcn.004104bc
add esp, 4
xor ebp, ebp
lea ecx, [ecx]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push eax
call fcn.00404da0
add esp, 0x10
test eax, eax
jne 0x407ec7
mov esi, dword [esp + 0x10]
push esi
call fcn.00405200
add esp, 4
cmp eax, 0x4d000003
jne 0x407ea5
lea ecx, [esi + 4]
push ecx
call fcn.00405200
add esi, 8
push esi
mov edi, eax
call fcn.00405200
mov ecx, dword [esp + 0x144]
add esp, 8
cmp edi, ecx
jne 0x407ea5
cmp eax, 0x10000
jne 0x407e97
xor ebx, ebx
jmp 0x407ea0
cmp eax, 0x2bad2bad
jne 0x407ea5
mov ebx, eax
mov ebp, 1
mov edx, dword [esp + 0x10]
push edx
call fcn.004051c0
add esp, 4
test ebp, ebp
je 0x407e30
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
cmp eax, 0xfffffff4
je 0x407eba
cmp eax, 0xfffffff5
je 0x407eba
cmp eax, 0xffffff9d
je 0x407eba
lea eax, [esp + 0x2c]
push eax
call fcn.004104bc
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, esi
jle 0x407e30
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
or eax, 0xffffffff
pop esi
add esp, 0x124
ret
Function at 0x407f10
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x2b0
mov eax, dword [esp + 0x2b4]
push ebx
push ebp
mov ebp, 1
xor ebx, ebx
test eax, eax
mov dword [esp + 8], ebp
je 0x408086
cmp byte [eax], 0
je 0x408086
push esi
push edi
push eax
call sub.WSOCK32.dll_inet_addr
push ebx
push ebp
push 2
mov edi, eax
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f8d
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x276d
jne 0x407ff3
lea eax, [esp + 0x130]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x407ff3
push eax
push ebp
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x407fee
mov ebx, ebp
lea ecx, [esp + 0x10]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x1c], ebp
call sub.WSOCK32.dll_ioctlsocket
mov edx, dword [esp + 0x2c8]
push edx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], edi
call sub.WSOCK32.dll_htons
mov word [esp + 0x1e], ax
push 0x10
lea eax, [esp + 0x20]
push eax
push esi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x408001
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x408001
push 2
push esi
call sub.WSOCK32.dll_shutdown
push esi
call sub.WSOCK32.dll_closesocket
test ebx, ebx
je 0x407ff3
call fcn.0041017e
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2b0
ret
mov eax, dword [esp + 0x2cc]
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jge 0x408026
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
call sub.WSOCK32.dll_select
push 2
push esi
mov edi, eax
call sub.WSOCK32.dll_shutdown
push esi
call sub.WSOCK32.dll_closesocket
test ebx, ebx
je 0x408054
call fcn.0041017e
cmp edi, 0xffffffff
je 0x407ff3
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x408079
test edi, edi
jle 0x408079
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2b0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2b0
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2b0
ret
Function at 0x409850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
push esi
push edi
mov ecx, 0xb
mov esi, str.SystemCurrentControlSetServicesVxDKaseya
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x20]
push ecx
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40995a
mov eax, dword [0x41d8b4]
mov ecx, dword [0x41d8b8]
mov edx, dword [str.ConfigurationFile]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x18], eax
mov ax, word [0x41d8c0]
mov dword [esp + 0x1c], ecx
mov word [esp + 0x24], ax
mov dword [esp + 0x14], edx
mov edx, dword [0x41d8bc]
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push esi
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
push edx
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x24], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40992e
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409920
sub eax, edx
cmp eax, 1
jae 0x409984
mov eax, dword [str..kaseyad.ini]
mov dword [esi], eax
mov ecx, dword [0x41d8a4]
mov dword [esi + 4], ecx
mov edx, dword [0x41d8a8]
mov dword [esi + 8], edx
mov ax, word [0x41d8ac]
pop edi
mov word [esi + 0xc], ax
pop esi
add esp, 0x8c
ret
mov edx, dword [str..kaseyad.ini]
mov ecx, dword [esp + 0x98]
mov dword [ecx], edx
mov eax, dword [0x41d8a4]
mov dword [ecx + 4], eax
mov edx, dword [0x41d8a8]
mov dword [ecx + 8], edx
mov ax, word [0x41d8ac]
mov word [ecx + 0xc], ax
pop edi
pop esi
add esp, 0x8c
ret