joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e49
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004037b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405ee4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46f3c0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405ee4
cmp eax, 1
je 0x405f05
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405ee4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405eb1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405ee0
xor eax, eax
inc eax
jmp 0x405f24
cmp edi, eax
jae 0x405ee8
xor eax, eax
jmp 0x405f24
cmp eax, esi
jae 0x405eef
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46f3c0]
jmp 0x405f08
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a30
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push 0x32
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.00437130
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, 1
imul eax, edx, 0
add eax, str.VJBOLTWCUDMLSWAZ
push eax
push str._s:__d_n
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x104
push 0
lea edx, [ebp - 0x140]
push edx
call fcn.00437130
add esp, 0xc
push 0x104
lea eax, [ebp - 0x140]
push eax
push str._APPDATA_Result.txt
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0x80
push 4
push 0
push 2
push 4
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402ac1
jmp 0x402af1
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x409ed0
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 0x409f13
mov al, byte [esi]
push eax
call fcn.004156d5
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 0x409ef6
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x40a4f0
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 0x40a520
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 0x40a520
xor al, al
leave
ret
mov al, 1
leave
ret
Function at 0x412d9c
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.00413131
add esp, 0xc
test eax, eax
je 0x412dd4
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x1b
or eax, 0xffffffff
jmp 0x412e3e
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 0x412e3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x412e0b
xor edi, edi
mov dword [ebx], 0x51
jmp 0x412e3b
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push eax
call fcn.0042c76d
push eax
push str.Send_failure:__s
push esi
call fcn.00412b10
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 0x413131
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 0x4131e6
cmp dword [ecx + edx*4 + 0x160], 0x412cfa
jne 0x4131e6
xor eax, eax
cmp dword [esi], eax
je 0x413172
test edi, edi
je 0x4131e6
mov ebx, dword [ecx + edx*4 + 0x148]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0041e4c7
add esp, 0x14
cmp eax, 0xffffffff
je 0x4131e6
test al, 1
je 0x4131e6
mov ecx, dword [esi]
test ecx, ecx
jne 0x4131c9
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 0x4131ba
push 0x1b
pop eax
jmp 0x4131e8
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x4131e2
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 0x4131e6
add dword [esi + 8], eax
jmp 0x4131e6
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4134d2
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.00437130
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 0x41353c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.0042c76d
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.00412b10
add esp, 0x1c
jmp 0x41358d
push dword [ebp + 0x14]
lea eax, [ebp - 0x84]
push dword [ebp + 0x10]
push dword [ebp - 4]
push eax
call fcn.004131ed
add esp, 0x10
test al, al
jne 0x41358d
push edi
call fcn.0044102b
mov esi, dword [eax]
call fcn.0044102b
mov edi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.0042c76d
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.00412b10
add esp, 0x1c
pop edi
pop esi
leave
ret

Function at 0x413b58
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 0x413b9f
push 3
push esi
push eax
push 6
call fcn.0042d489
add esp, 0x10
test al, al
je 0x413b97
mov dword [0x46cc44], esi
jmp 0x413bdf
xor eax, eax
inc eax
mov dword [0x46cc44], eax
cmp eax, esi
je 0x413bdf
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 0x413bcd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x413bde
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 0x4146de
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 0x414723
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00412ba4
add esp, 0xc
jmp 0x414794
push dword [esi + 0x698]
mov dword [ebp - 0x10], 1
call fcn.004148b8
push dword [esi + 0x69c]
imul eax, eax, 0x3e8
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], eax
call fcn.004148b8
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 0x414794
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.00412ba4
add esp, 0x10
pop esi
leave
ret

Function at 0x414797
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 0x4147e5
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0042c76d
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push dword [ebp + 8]
call fcn.00412ba4
add esp, 0x18
leave
ret
Function at 0x414abc
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 0x414bbf
push ebx
push edi
push 0x45aa3c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x45aa4c
push edi
call fcn.00442f6c
pop ecx
pop ecx
test eax, eax
je 0x414b0e
test ebx, ebx
je 0x414b05
push 8
jmp 0x414b29
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x414b2d
test ebx, ebx
je 0x414b34
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414b34
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x414bbb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x414bbb
push edi
call fcn.00442c94
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 0x414bb3
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x414bb3
push 0x45aa64
push edi
call fcn.00442c94
pop ecx
lea eax, [edi + eax*2]
push eax
call fcn.00442b50
pop ecx
pop ecx
push dword [ebp + 8]
push edi
call fcn.00442c94
pop ecx
lea eax, [edi + eax*2]
push eax
call fcn.00442b50
pop ecx
pop ecx
test ebx, ebx
je 0x414baa
push 8
push esi
push edi
call ebx
jmp 0x414bb1
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 0x414bf7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x414c3a
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x414c21
push 2
pop eax
leave
ret
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x414c32
shr eax, 8
cmp al, 2
je 0x414c3a
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x414c1c
call fcn.0042dddd
test eax, eax
jne 0x414c9a
push str.iphlpapi.dll
call fcn.00414abc
mov dword [0x46cc4c], eax
pop ecx
test eax, eax
je 0x414c74
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.0042d489
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 0x4165ef
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41660d
cmp dword [esi + 0x78], 0
je 0x41660d
push 2
push 3
push esi
call fcn.00415bb6
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00416174
pop ecx
test esi, esi
je 0x41662a
cmp dword [esi + 0x78], 0
je 0x41662a
push 3
push esi
call fcn.00415bef
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x416adb
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 0x416b0f
push 2
push 3
push edi
call fcn.00415bb6
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00416f3f
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x416b3e
push dword [ebp + 0xc]
push str.Hostname__s_was_found_in_DNS_cache_n
push edi
call fcn.00412ba4
mov eax, dword [ebp + 8]
add esp, 0xc
inc dword [eax + 0x10]
xor ebx, ebx
cmp dword [edi + 0x78], 0
je 0x416b4e
push 3
push edi
call fcn.00415bef
pop ecx
pop ecx
cmp dword [ebp + 8], 0
jne 0x416c5e
and dword [ebp - 4], 0
cmp dword [edi + 0x6b4], 0
je 0x416b96
push 1
push edi
call fcn.0040652c
push dword [edi + 0x6b8]
push 0
push dword [edi + 0x99c]
call dword [edi + 0x6b4]
push 0
push edi
mov esi, eax
call fcn.0040652c
add esp, 0x1c
test esi, esi
jne 0x416cb6
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 0x416bc7
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push 2
call fcn.004221a3
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x416c6d
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 0x416bf4
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xc]
push eax
push 0x17
call fcn.004221a3
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x416c6d
push dword [ebp - 0xc]
push edi
call fcn.004164d0
pop ecx
pop ecx
test al, al
je 0x416cb6
cmp byte [ebp + 0x14], 0
je 0x416c28
cmp byte [edi + 0x70c], 0
je 0x416c28
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042e218
jmp 0x416c38
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0042231c
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x416c6d
cmp dword [ebp - 4], eax
je 0x416c5e
lea eax, [ebp + 8]
push eax
push edi
call fcn.00416cbb
pop ecx
pop ecx
test eax, eax
jne 0x416cb6
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 0x416c80
push 2
push 3
push edi
call fcn.00415bb6
add esp, 0xc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
call fcn.004164ee
add esp, 0x10
mov dword [ebp + 8], eax
cmp dword [edi + 0x78], 0
je 0x416ca3
push 3
push edi
call fcn.00415bef
pop ecx
pop ecx
cmp dword [ebp + 8], 0
jne 0x416cb2
push esi
call fcn.00421efc
pop ecx
jmp 0x416c5e
xor ebx, ebx
jmp 0x416c5e
or eax, 0xffffffff
jmp 0x416c68
Function at 0x41b544
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 0x41b6b7
push edi
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00437130
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 0x41b6a5
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41b6a5
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 0x41b6a5
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41b6a5
push 0
push 1
push 2
pop eax
push eax
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x41b6a5
push 0x10
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41b6a5
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x41b6a5
push edi
push 0x45bbe0
lea eax, [ebp - 0x30]
push 0xc
push eax
call sym.knocker.exe_curl_msnprintf
lea eax, [ebp - 0x30]
push eax
call fcn.0043b900
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 0x41b6a5
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 0x41b6a5
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00437ff7
add esp, 0xc
test eax, eax
jne 0x41b6a5
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x41b6ba
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 0x421e3c
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.00415e6c
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.00421428
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.00421428
add esp, 0xc
mov ebx, eax
jmp 0x421eb3
lea eax, [ebp - 0x24]
push eax
call fcn.00415e6c
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.00415efc
add esp, 0x20
test edx, edx
ja 0x421ede
jb 0x421ea8
cmp eax, 0x3e8
ja 0x421ede
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 0x421e73
test esi, esi
je 0x421ecc
push esi
call fcn.0043b161
pop ecx
test ebx, ebx
je 0x421ed7
push ebx
call fcn.0043b161
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x421eec
push eax
call fcn.0043b161
pop ecx
test ebx, ebx
je 0x421ef7
push ebx
call fcn.0043b161
pop ecx
xor eax, eax
inc eax
jmp 0x421ed9
Function at 0x421f1b
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 0x42206e
push esi
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x42205a
cmp dword [esi + 0x14], 0
je 0x421f68
push dword [esi + 0x14]
call fcn.0043b900
pop ecx
inc eax
jmp 0x421f6a
xor eax, eax
cmp dword [esi + 4], 2
mov dword [ebp - 8], eax
jne 0x421f77
push 0x10
jmp 0x421f83
cmp dword [esi + 4], 0x17
jne 0x422028
push 0x1c
cmp dword [esi + 0x18], 0
pop ecx
mov dword [ebp - 4], ecx
je 0x422028
cmp dword [esi + 0x10], 0
jbe 0x422028
cmp dword [esi + 0x10], ecx
jb 0x422028
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 0x422035
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.00437290
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x422013
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.00437290
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
mov ecx, dword [ebp - 0x14]
cmove edi, eax
test ecx, ecx
je 0x422025
mov dword [ecx + 0x1c], eax
mov dword [ebp - 0x14], eax
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x421f56
jmp 0x422038
push 8
pop ebx
cmp dword [ebp - 0xc], 0
je 0x422047
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x422056
push edi
call fcn.00421efc
pop ecx
xor edi, edi
jmp 0x422066
test edi, edi
jne 0x422066
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 0x42224a
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 0x422279
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
push 2
call fcn.004221a3
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 0x42229a
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push dword [ebp + 8]
push eax
push 0x17
jmp 0x42226f
xor eax, eax
leave
ret