joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1043c
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x108aa
lea eax, [ebp - 0xc]
push eax
call esi
push 0x1089e
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
xor esi, esi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x104b6
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
leave
ret 4

Function at 0x10788
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push ebx
push 0x1068c
push esi
push esi
push esi
mov edi, 0x1f03ff
push edi
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, esi
jl 0x107d7
push esi
add ebx, 0x10
push ebx
push esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10c3e
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00010c05
pop ebp
jmp fcn.000107e4
Function at 0x409da0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
and dword [ebp + 8], 0
add eax, esi
push edi
mov edi, eax
sub edi, esi
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x409de3
mov al, byte [esi]
push eax
call fcn.004155a4
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x409dc6
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x40a3c0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x40a3f0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jne 0x40a3f0
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x412c6b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
push eax
mov ecx, dword [esi + 0xc]
push ecx
push esi
mov edi, dword [ecx + eax*4 + 0x148]
call fcn.00413000
add esp, 0xc
test eax, eax
je 0x412ca3
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x1b
or eax, 0xffffffff
jmp 0x412d0d
push ebx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
and dword [ebx], 0
cmp edi, 0xffffffff
jne 0x412d0a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x412cda
xor edi, edi
mov dword [ebx], 0x51
jmp 0x412d0a
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push eax
call fcn.0042c63f
push eax
push str.Send_failure:__s
push esi
call fcn.004129df
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [esi + 0x93c], eax
mov dword [ebx], 0x37
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x413000
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x288]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4130b5
cmp dword [ecx + edx*4 + 0x160], 0x412bc9
jne 0x4130b5
xor eax, eax
cmp dword [esi], eax
je 0x413041
test edi, edi
je 0x4130b5
mov ebx, dword [ecx + edx*4 + 0x148]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0041e396
add esp, 0x14
cmp eax, 0xffffffff
je 0x4130b5
test al, 1
je 0x4130b5
mov ecx, dword [esi]
test ecx, ecx
jne 0x413098
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x413089
push 0x1b
pop eax
jmp 0x4130b7
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x4130b1
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4130b5
add dword [esi + 8], eax
jmp 0x4130b5
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4133a1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
mov eax, 0x80
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00437000
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x41340b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.0042c63f
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.004129df
add esp, 0x1c
jmp 0x41345c
push dword [ebp + 0x14]
lea eax, [ebp - 0x84]
push dword [ebp + 0x10]
push dword [ebp - 4]
push eax
call fcn.004130bc
add esp, 0x10
test al, al
jne 0x41345c
push edi
call fcn.00440eeb
mov esi, dword [eax]
call fcn.00440eeb
mov edi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.0042c63f
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.004129df
add esp, 0x1c
pop edi
pop esi
leave
ret

Function at 0x413a27
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x46cc44]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x413a6e
push 3
push esi
push eax
push 6
call fcn.0042d35b
add esp, 0x10
test al, al
je 0x413a66
mov dword [0x46cc44], esi
jmp 0x413aae
xor eax, eax
inc eax
mov dword [0x46cc44], eax
cmp eax, esi
je 0x413aae
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x413a9c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x413aad
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
leave
ret
Function at 0x4145ad
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 4
cmp byte [esi + 0x700], al
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4145f2
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00412a73
add esp, 0xc
jmp 0x414663
push dword [esi + 0x698]
mov dword [ebp - 0x10], 1
call fcn.00414787
push dword [esi + 0x69c]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
call fcn.00414787
pop ecx
pop ecx
imul eax, eax, 0x3e8
xor ecx, ecx
push ecx
push ecx
mov dword [ebp + 8], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x414663
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00412a73
add esp, 0x10
pop esi
leave
ret

Function at 0x414666
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 4
xor ecx, ecx
lea eax, [ebp - 4]
push eax
inc ecx
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4146b4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042c63f
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push dword [ebp + 8]
call fcn.00412a73
add esp, 0x18
leave
ret
Function at 0x41498b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x414a8e
push ebx
push edi
push 0x45aa2c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x45aa3c
push edi
call fcn.00442e2c
pop ecx
pop ecx
test eax, eax
je 0x4149dd
test ebx, ebx
je 0x4149d4
push 8
jmp 0x4149f8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4149fc
test ebx, ebx
je 0x414a03
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414a03
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x414a8a
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x414a8a
push edi
call fcn.00442b54
mov ecx, dword [ebp - 4]
add ecx, eax
lea ecx, [ecx*2 + 2]
push ecx
call dword [section..data]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x414a82
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x414a82
push 0x45aa54
push edi
call fcn.00442b54
pop ecx
lea eax, [edi + eax*2]
push eax
call fcn.00442a10
pop ecx
pop ecx
push dword [ebp + 8]
push edi
call fcn.00442b54
pop ecx
lea eax, [edi + eax*2]
push eax
call fcn.00442a10
pop ecx
pop ecx
test ebx, ebx
je 0x414a79
push 8
push esi
push edi
call ebx
jmp 0x414a80
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push edi
call dword [0x46c004]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x414ac6
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x414b09
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x414af0
push 2
pop eax
leave
ret
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x414b01
shr eax, 8
cmp al, 2
je 0x414b09
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x414aeb
call fcn.0042dcaf
test eax, eax
jne 0x414b69
push str.iphlpapi.dll
call fcn.0041498b
mov dword [0x46cc4c], eax
pop ecx
test eax, eax
je 0x414b43
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x46cc48]
test eax, eax
cmovne ecx, eax
mov dword [0x46cc48], ecx
push 3
push 2
push 0
push 6
call fcn.0042d35b
add esp, 0x10
test al, al
setne byte [0x46d830]
push 0x46d838
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
leave
ret

Function at 0x4164be
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4164dc
cmp dword [esi + 0x78], 0
je 0x4164dc
push 2
push 3
push esi
call fcn.00415a85
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00416043
pop ecx
test esi, esi
je 0x4164f9
cmp dword [esi + 0x78], 0
je 0x4164f9
push 3
push esi
call fcn.00415abe
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x4169aa
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x18]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov eax, dword [edi + 0xc]
mov dword [ecx], edx
mov dword [ebp - 0xc], eax
mov byte [eax + 0x25e], dl
cmp dword [edi + 0x78], edx
je 0x4169de
push 2
push 3
push edi
call fcn.00415a85
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00416e0e
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x416a0d
push dword [ebp + 0xc]
push str.Hostname__s_was_found_in_DNS_cache_n
push edi
call fcn.00412a73
mov eax, dword [ebp + 8]
add esp, 0xc
inc dword [eax + 0x10]
xor ebx, ebx
cmp dword [edi + 0x78], 0
je 0x416a1d
push 3
push edi
call fcn.00415abe
pop ecx
pop ecx
cmp dword [ebp + 8], 0
jne 0x416b2d
and dword [ebp - 4], 0
cmp dword [edi + 0x6b4], 0
je 0x416a65
push 1
push edi
call fcn.004063fc
push dword [edi + 0x6b8]
push 0
push dword [edi + 0x99c]
call dword [edi + 0x6b4]
push 0
push edi
mov esi, eax
call fcn.004063fc
add esp, 0x1c
test esi, esi
jne 0x416b85
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x416a96
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push 2
call fcn.00422072
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x416b3c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x416ac3
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xc]
push eax
push 0x17
call fcn.00422072
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x416b3c
push dword [ebp - 0xc]
push edi
call fcn.0041639f
pop ecx
pop ecx
test al, al
je 0x416b85
cmp byte [ebp + 0x14], 0
je 0x416af7
cmp byte [edi + 0x70c], 0
je 0x416af7
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042e0ea
jmp 0x416b07
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004221eb
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x416b3c
cmp dword [ebp - 4], eax
je 0x416b2d
lea eax, [ebp + 8]
push eax
push edi
call fcn.00416b8a
pop ecx
pop ecx
test eax, eax
jne 0x416b85
xor ebx, ebx
cmp dword [ebp + 8], ebx
sete bl
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
cmp dword [edi + 0x78], 0
je 0x416b4f
push 2
push 3
push edi
call fcn.00415a85
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
call fcn.004163bd
add esp, 0x10
mov dword [ebp + 8], eax
cmp dword [edi + 0x78], 0
je 0x416b72
push 3
push edi
call fcn.00415abe
pop ecx
pop ecx
cmp dword [ebp + 8], 0
jne 0x416b81
push esi
call fcn.00421dcb
pop ecx
jmp 0x416b2d
xor ebx, ebx
jmp 0x416b2d
or eax, 0xffffffff
jmp 0x416b37
Function at 0x41b413
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
xor eax, eax
push esi
push edi
push 0x10
pop edi
push 6
inc eax
mov dword [ebp - 8], edi
push eax
push 2
mov dword [ebp - 4], eax
pop eax
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41b586
push edi
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00437000
add esp, 0xc
push 2
pop eax
push 0x7f000001
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
push 4
mov word [ebp - 0x16], ax
lea eax, [ebp - 4]
or dword [edi + 4], 0xffffffff
or dword [edi], 0xffffffff
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41b574
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41b574
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41b574
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41b574
push 0
push 1
push 2
pop eax
push eax
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x41b574
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41b574
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x41b574
push edi
push 0x45bbd0
lea eax, [ebp - 0x30]
push 0xc
push eax
call sym.knocker.exe_curl_msnprintf
lea eax, [ebp - 0x30]
push eax
call fcn.0043b7c0
add esp, 0x14
mov ebx, eax
lea eax, [ebp - 0x30]
push 0
push ebx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
jne 0x41b574
push 0
push 0xc
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jne 0x41b574
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00437ec7
add esp, 0xc
test eax, eax
jne 0x41b574
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x41b589
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421d0b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00415d3b
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004212f7
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.004212f7
add esp, 0xc
mov ebx, eax
jmp 0x421d82
lea eax, [ebp - 0x24]
push eax
call fcn.00415d3b
sub esp, 0xc
lea esi, [ebp - 0x14]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00415dcb
add esp, 0x20
test edx, edx
ja 0x421dad
jb 0x421d77
cmp eax, 0x3e8
ja 0x421dad
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x421d42
test esi, esi
je 0x421d9b
push esi
call fcn.0043b021
pop ecx
test ebx, ebx
je 0x421da6
push ebx
call fcn.0043b021
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x421dbb
push eax
call fcn.0043b021
pop ecx
test ebx, ebx
je 0x421dc6
push ebx
call fcn.0043b021
pop ecx
xor eax, eax
inc eax
jmp 0x421da8
Function at 0x421dea
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
push edi
xor edi, edi
and dword [eax], edi
lea eax, [ebp - 0xc]
and dword [ebp - 0x14], edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test ebx, ebx
jne 0x421f3d
push esi
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x421f29
cmp dword [esi + 0x14], 0
je 0x421e37
push dword [esi + 0x14]
call fcn.0043b7c0
pop ecx
inc eax
jmp 0x421e39
xor eax, eax
cmp dword [esi + 4], 2
mov dword [ebp - 8], eax
jne 0x421e46
push 0x10
jmp 0x421e52
cmp dword [esi + 4], 0x17
jne 0x421ef7
push 0x1c
cmp dword [esi + 0x18], 0
pop ecx
mov dword [ebp - 4], ecx
je 0x421ef7
cmp dword [esi + 0x10], 0
jbe 0x421ef7
cmp dword [esi + 0x10], ecx
jb 0x421ef7
add ecx, 0x20
add eax, ecx
push eax
call dword [section..data]
mov edx, eax
mov dword [ebp - 0x10], edx
pop ecx
test edx, edx
je 0x421f04
mov ecx, dword [esi]
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
and dword [edx + 0x14], 0
and dword [edx + 0x1c], 0
mov dword [edx + 0xc], eax
lea eax, [edx + 0x20]
push ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00437160
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x421ee2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0x18]
add eax, dword [ebp - 4]
mov dword [ecx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00437160
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
mov ecx, dword [ebp - 0x14]
cmove edi, eax
test ecx, ecx
je 0x421ef4
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x14], eax
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x421e25
jmp 0x421f07
push 8
pop ebx
cmp dword [ebp - 0xc], 0
je 0x421f16
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x421f25
push edi
call fcn.00421dcb
pop ecx
xor edi, edi
jmp 0x421f35
test edi, edi
jne 0x421f35
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
pop esi
mov dword [eax], edi
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x422119
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x422148
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
push 2
call fcn.00422072
add esp, 0x10
leave
ret
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x422169
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
push 0x17
jmp 0x42213e
xor eax, eax
leave
ret
Function at 0x4221f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00446a2d
add esp, 0x18
test eax, eax
je 0x422214
cmp eax, 0xffffffff
jne 0x422216
xor eax, eax
pop ebp
ret

Function at 0x422e61
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.00437000
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x422f1a
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x422efd
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x422efd
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x422efd
cmp esi, dword [ebp - 0xc]
jb 0x422efd
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x422f0b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x422f1a
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret