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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x4826e4], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x415799
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x415a23
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.00415764
jne 0x415d37
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x415d2d
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x415c37
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415c52
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push esi
mov esi, str.ws2_32
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x415c95
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x415c91
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x415cec
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x415c97
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x415cb1
mov esi, str.wship6
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x415d2a
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x415ce8
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x415d2a
xor edi, edi
push dword [ebp + edi*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + edi*8 - 0x14], eax
test eax, eax
je 0x415d09
inc edi
cmp edi, 3
jl 0x415cee
jmp 0x415d12
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x415d2a
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x47a978], ecx
add eax, 8
cmp eax, 0x18
jl 0x415d18
pop esi
pop ebx
pop edi
mov dword [0x4826e4], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x47a978]
leave
ret 4
Function at 0x4168c2
Capabilities:
Create thread

Disassembly:
push ecx
push edi
push 0x4826a4
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor edi, edi
push str.DnsApi.dll
mov dword [0x4826d0], edi
mov dword [0x4826d4], 0x4826d0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x4826d8], eax
cmp eax, edi
je 0x41693a
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.DnsQuery_A
push eax
call esi
push str.DnsRecordListFree
push dword [0x4826d8]
mov dword [0x4826dc], eax
call esi
mov dword [0x4826e0], eax
pop esi
cmp dword [0x4826dc], edi
je 0x416928
cmp eax, edi
jne 0x41693a
push dword [0x4826d8]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x4826d8], edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [0x4826c0], eax
lea eax, [esp + 4]
push eax
push edi
push edi
push 0x4164bd
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop edi
pop ecx
ret

Function at 0x416a65
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
mov ebx, eax
and al, 1
movzx eax, al
push esi
push eax
call fcn.004351e1
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ebx, 1
mov esi, eax
and bl, 1
movzx eax, bl
push eax
call fcn.004351e1
and dword [ebp + 8], 0
mov ecx, esi
mov ebx, eax
call fcn.0043592e
test al, al
je 0x416adf
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_MoveFileW]
push ebx
push esi
call edi
test eax, eax
jne 0x416ade
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
cmp eax, 3
jne 0x416ade
and dword [ebp + 8], 0
mov ecx, ebx
call fcn.004361fc
test al, al
je 0x416ad5
push ebx
push esi
call edi
test eax, eax
jne 0x416ade
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 8], eax
pop edi
mov ecx, esi
call fcn.0043492c
mov ecx, ebx
call fcn.0043492c
mov eax, dword [ebp + 8]
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4170fa
Capabilities:
Delete directory
Delete file

Disassembly:
push ecx
push ebx
push ebp
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 8], ebp
cmp dword [ebx + 8], ebp
je 0x4171d2
push esi
push edi
mov esi, dword [ebx]
mov ecx, dword [ebx + 0x18]
add esi, ebp
mov edx, dword [esi + 0x14]
push 0
call fcn.004351e1
mov edi, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x417126
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [esi + 0x14]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x41713c
sub eax, edx
sar eax, 1
sub ecx, eax
lea esi, [edi + ecx*2 - 2]
jmp 0x4171a7
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4171a7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x4171a7
push 0
mov edx, str.thumbs.db
mov ecx, edi
call fcn.004351e1
mov ecx, eax
call fcn.0042d7aa
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x4171b5
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4171a7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x4171b5
push 0x5c
push edi
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, esi
jae 0x417152
mov ecx, edi
call fcn.0043492c
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add ebp, 0x24
cmp eax, dword [ebx + 8]
jne 0x417110
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4178c6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.00416fae
cmp byte [esi + 0x20], 0
push dword [ebp + 8]
lea edi, [esi + 0x18]
jne 0x41791d
mov ecx, dword [esi]
movzx eax, byte [ecx + 0x1d]
push dword [ecx + 0x14]
mov ecx, dword [edi]
shr eax, 3
and eax, 1
call fcn.00416a65
test eax, eax
jne 0x417916
call fcn.0041e600
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0042d1d5
mov ecx, esi
call fcn.004177f0
call fcn.0041e612
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [edi]
push str.Moving_files_from__s_to__s
call fcn.0045c3cd
mov ebx, dword [sym.imp.KERNEL32.DLL_MoveFileW]
add esp, 0xc
push dword [ebp + 8]
push dword [edi]
call ebx
test eax, eax
jne 0x4178f9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4179a8
mov eax, dword [esi + 8]
xor ebx, ebx
inc eax
je 0x41799c
test ebx, ebx
jne 0x41796d
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.uTorrentPartFile__LX.dat
call fcn.0042e9f5
add esp, 0xc
mov ecx, eax
xor al, al
jmp 0x417981
mov ecx, dword [esi]
mov eax, ebx
imul eax, eax, 0x24
add eax, ecx
mov ecx, dword [eax - 0x10]
mov al, byte [eax - 7]
shr al, 3
and al, 1
push dword [ebp + 8]
movzx eax, al
push ecx
mov ecx, dword [edi]
call fcn.00416a65
test eax, eax
jne 0x417916
mov eax, dword [esi + 8]
inc ebx
inc eax
cmp ebx, eax
jne 0x417950
mov ecx, esi
call fcn.004170fa
jmp 0x4178f9
mov ecx, dword [ebp + 8]
call fcn.004361fc
push dword [ebp + 8]
push dword [edi]
call ebx
test eax, eax
jne 0x4178f9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x417916
Function at 0x4188a7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, edx
cmp edx, 4
jb 0x4188c2
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
rol eax, 0xd
sub esi, 4
dec edx
jne 0x4188b4
test esi, esi
je 0x4188d2
movzx edx, byte [ecx]
xor eax, edx
rol eax, 8
inc ecx
dec esi
jne 0x4188c6
pop esi
ret

Function at 0x4188d4
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push esi
mov esi, edx
movzx edx, byte [ecx + 2]
xor eax, eax
push edi
cmp edx, 4
jb 0x4188f6
mov edi, edx
shr edi, 2
xor eax, dword [esi]
add esi, 4
rol eax, 0xd
sub edx, 4
dec edi
jne 0x4188e8
test edx, edx
je 0x418906
movzx edi, byte [esi]
xor eax, edi
rol eax, 8
inc esi
dec edx
jne 0x4188fa
movzx ecx, word [ecx]
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
ret

Function at 0x41c686
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0xc], 0
push ebx
push esi
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 0x20000013
push dword [esi]
mov dword [ebp - 4], ebx
call dword [0x48278c]
test eax, eax
je 0x41c6dc
cmp dword [ebp - 8], 0xc8
je 0x41c6dc
push dword [ebp - 8]
push str.HTTP_Reply__d
call fcn.0042e9f5
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0041c4b1
jmp 0x41c77e
push edi
xor eax, eax
mov byte [ebp - 0x28], 0
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1d
push dword [esi]
mov dword [ebp - 4], 0x14
call dword [0x48278c]
test eax, eax
je 0x41c726
lea eax, [ebp - 0x28]
push str.gzip
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x41c726
or byte [esi + 5], 1
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000005
push dword [esi]
mov dword [ebp - 0x10], ebx
call dword [0x48278c]
test eax, eax
je 0x41c74e
mov eax, dword [ebp - 0x14]
and dword [esi + 0x54], 0
mov dword [esi + 0x50], eax
lea edx, [esi + 0xc]
push 0xa
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x2000
mov ecx, edi
mov dword [edx], 0x28
call fcn.00434e42
mov ecx, esi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esi + 4], 1
call fcn.0041c643
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d1a4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x4827d4], 0
je 0x41d1ba
mov al, 1
leave
ret
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41d1f0
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x41d1ea
shr eax, 8
cmp al, 2
jne 0x41d1ea
mov byte [0x4827d4], 1
jmp 0x41d1b6
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret
Function at 0x41d2ce
Capabilities:
Reference l3 dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, edx
cmp cl, 2
jne 0x41d30e
test byte [0x4827f0], 1
jne 0x41d2ff
or dword [0x4827f0], 1
push str.4.2.2.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x4827ec], eax
push ebx
push dword [0x4827ec]
call dword [0x4827c0]
jmp 0x41d35b
cmp dword [0x4827c4], 0
jne 0x41d31e
mov eax, 0x2741
jmp 0x41d35b
test byte [0x4827f0], 2
push esi
mov esi, 0x4827d8
jne 0x41d342
or dword [0x4827f0], 2
push 0
mov edx, str.2001:db8::1428:57ab
mov ecx, esi
call fcn.0042cb3d
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, esi
call fcn.0041d243
push ebx
lea eax, [ebp - 0x80]
push eax
call dword [0x4827c4]
pop esi
pop ebx
leave
ret

Function at 0x41d35e
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
mov edi, ecx
mov bl, dl
mov dword [ebp - 4], edi
call fcn.0041cea4
test al, al
je 0x41d3b0
lea edx, [ebp - 8]
mov cl, bl
call fcn.0041d2ce
test eax, eax
jne 0x41d3b0
push dword [ebp - 8]
mov dl, bl
lea ecx, [ebp - 0x1c]
call fcn.0041d04e
lea ecx, [ebp - 0x1c]
call fcn.00405ccd
test al, al
jne 0x41d3b0
mov eax, dword [ebp - 4]
push esi
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop esi
jmp 0x41d40d
cmp bl, 2
jne 0x41d404
push 0x100
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41d404
cmp word [eax + 8], 2
jne 0x41d404
cmp word [eax + 0xa], 4
jne 0x41d404
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x41d404
mov eax, dword [eax]
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, edi
call fcn.0042c9fc
jmp 0x41d40b
mov ecx, edi
call fcn.0042c9c1
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x41d74d
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0
push 2
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebx + 4], eax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x41d78e
xor al, al
jmp 0x41d848
push edi
push 0x1a73
push 0
lea ecx, [ebp - 0x22]
call fcn.0042c9fc
push eax
mov ecx, ebx
call fcn.0041fe1e
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.192.152.143
call edi
push 0x462980
mov dword [ebp - 0x10], eax
call edi
push 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
push 0
push dword [ebx + 4]
call esi
test eax, eax
jne 0x41d83a
mov byte [ebp - 8], al
lea edi, [ebp - 7]
stosw word es:[edi], ax
push 4
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push 9
push 0
push dword [ebx + 4]
call esi
test eax, eax
jne 0x41d83a
push 4
lea eax, [ebp - 4]
push eax
push 0xb
push 0
push dword [ebx + 4]
mov dword [ebp - 4], 1
call esi
test eax, eax
jne 0x41d83a
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebx + 4]
mov edi, 0xff
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x41d83a
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push 0
push dword [ebx + 4]
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x41d83e
xor al, al
jmp 0x41d847
mov ecx, ebx
call fcn.0041e4f1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d9a0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x10]
push edi
push dword [ebp + 0xc]
mov ebx, ecx
push eax
push str.BT_SEARCH__HTTP_1.1_r_nHost:_239.192.152.143:6771_r_nPort:__u_r_nInfohash:__s_r_n_r_n_r_n
lea eax, [ebp - 0x194]
push 0x100
push eax
call fcn.0042e794
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]
mov eax, 0x1a73
movsw word es:[edi], word [esi]
mov word [ebp - 4], ax
add esp, 0x14
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x95], 0
call fcn.0041d243
lea eax, [ebp - 0x194]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41da07
push dword [ebp + 0xc]
lea ecx, [ebp - 0x94]
push ecx
push 0
sub eax, esi
push eax
lea eax, [ebp - 0x194]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop edi
setg cl
pop esi
mov al, cl
pop ebx
leave
ret 8
Function at 0x41db4a
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [esi + 4], eax
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x41db85
xor al, al
jmp 0x41dba9
push 0x14e7
call fcn.0041daff
push eax
lea ecx, [ebp - 0x16]
call fcn.0042c9fc
push eax
mov ecx, esi
call fcn.0041fe1e
mov ecx, esi
call fcn.0041e4f1
mov al, 1
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
mov eax, 0xe714
mov esi, ecx
mov byte [ebp - 4], 0
mov byte [ebp - 3], 0
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dl, byte [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x14]
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.0041db0e
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x1c], ax
mov eax, 0xe714
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xc
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ecx + 4]
mov dword [ebp - 4], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x41e597
or eax, eax
leave
ret
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x16]
call fcn.0042ca4d
movzx eax, word [eax + 0x10]
leave
ret
Function at 0x41f900
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41f9d1
cmp byte [ebp + 8], 0
je 0x41f93f
xor ecx, ecx
inc ecx
mov word [ebp + 8], cx
xor ecx, ecx
push 4
mov word [ebp + 0xa], cx
lea ecx, [ebp + 8]
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.0041e499
mov ecx, dword [esi + 4]
call fcn.0041e51b
or dword [esi + 4], 0xffffffff
test byte [esi + 0xe], 0x20
je 0x41f9d1
cmp byte [esi + 0xf], 6
jb 0x41f981
cmp byte [0x482cbd], 0
je 0x41f981
push 1
push 0x40
mov ecx, esi
call fcn.0041e29d
push 1
push 0x40
mov ecx, esi
call fcn.0041e27e
mov ecx, dword [esi + 0x41]
mov eax, dword [esi + 0x45]
cmp ecx, eax
jae 0x41f9a9
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x41f99d
fadd dword [0x461bf0]
fadd dword [0x482c40]
fstp dword [0x482c40]
mov ecx, dword [esi + 0x55]
mov eax, dword [esi + 0x59]
cmp ecx, eax
jae 0x41f9d1
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
test eax, eax
jge 0x41f9c5
fadd dword [0x461bf0]
fadd dword [0x482c38]
fstp dword [0x482c38]
and byte [esi + 0xe], 0xdf
test byte [esi + 0xe], 0x80
je 0x41f9ef
lea eax, [esi + 0x9d]
mov ecx, dword [eax]
and dword [eax], 0
test ecx, ecx
je 0x41f9ef
call fcn.004386ae
pop esi
leave
ret 4
Function at 0x42050f
Capabilities:
Check for time delay via gettickcount
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0xffffffff
push esi
push edi
je 0x42052a
push 0
call fcn.0041f900
lea ecx, [ebp - 0x14]
call fcn.0042c9c1
mov ecx, dword [ebp + 8]
call fcn.0040253f
push 0
lea ecx, [ebp - 0x26]
test al, al
jne 0x42054f
push 0x483204
call fcn.0042ca31
jmp 0x420556
push 0
call fcn.0042c9fc
mov ecx, 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]
push 0
push 1
movsw word es:[edi], word [esi]
call fcn.0040253f
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.0041f8b9
cmp dword [ebx + 4], 0xffffffff
jne 0x42059d
mov esi, dword [ebx]
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, ebx
call dword [esi + 0xc]
jmp 0x4206e2
mov si, word [ebp + 0xc]
test si, si
jbe 0x4205aa
mov word [ebp - 4], si
mov ecx, 0x482c88
call fcn.00405ccd
mov ecx, 0x482c88
test al, al
jne 0x4205cc
mov esi, ecx
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]
movsw word es:[edi], word [esi]
mov si, word [ebp + 0xc]
call fcn.00405ccd
test al, al
je 0x4205da
test si, si
jbe 0x420602
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0xffff
push dword [ebx + 4]
mov dword [ebp + 0xc], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0041fe1e
mov word [ebx + 0xb7], si
mov esi, dword [ebp + 8]
lea edi, [ebx + 0xa5]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ecx, dword [ebp + 8]
mov dword [ebx + 0xba], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.0041d243
push dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42068e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42067a
lea ecx, [ebx + 0xa5]
mov byte [ebx + 0xf], 3
mov byte [ebx + 0x10], 6
call fcn.0041fc6c
or byte [ebx + 0xb9], 2
jmp 0x4206ce
mov edx, dword [ebx]
xor esi, esi
inc esi
push esi
push eax
mov ecx, ebx
call dword [edx + 0xc]
mov dword [ebx + 0xba], esi
jmp 0x4206ce
mov byte [ebx + 0xf], 6
call esi
sub eax, dword [ebx + 0xba]
cmp eax, 0xffffffff
jbe 0x4206a2
or eax, 0xffffffff
xor esi, esi
inc esi
cmp eax, esi
jae 0x4206ab
mov eax, esi
mov dword [ebx + 0xba], eax
cmp byte [0x482cbd], 0
je 0x4206e2
push esi
push 0x40
mov ecx, ebx
call fcn.0041e29d
push esi
push 0x40
mov ecx, ebx
call fcn.0041e27e
cmp byte [0x482cbd], 0
je 0x4206e2
push 1
push 0x40
mov ecx, ebx
call fcn.0041e27e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4219f2
Capabilities:
Create thread

Disassembly:
push esi
push 0x482c28
xor eax, eax
push eax
mov esi, ecx
push esi
push 0x4219d2
push eax
push eax
mov byte [esi], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 4], eax
pop esi
ret

Function at 0x421f05
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x188]
push edi
mov dword [ebp + 0x74], esi
call fcn.00421e21
mov esi, dword [esi + 0xc4]
push 5
pop ecx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp + 0x5c], 0x32716572
add esi, 0x15c
lea edi, [ebp + 0x60]
push 0x18
rep movsd dword es:[edi], dword [esi]
pop edx
lea ecx, [ebp + 0x5c]
call fcn.0042c98a
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor eax, eax
mov ecx, dword [ebx + eax + 0x14]
xor dword [ebp + eax - 0xc], ecx
add eax, 4
cmp eax, 0x14
jb 0x421f4f
mov al, byte [0x47a188]
mov esi, dword [ebp + 0x74]
shr al, 2
not al
and al, 1
or al, 2
mov dword [ebp + 0x10], edi
mov byte [ebp + 0x13], al
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
mov byte [ebx], al
xor eax, eax
mov word [ebp + 0x14], ax
mov eax, 0x4400
mov word [ebp + 0x16], ax
lea eax, [ebp + 0x18]
push eax
mov ecx, esi
call fcn.00421dd7
mov eax, dword [esi + 0xc4]
push 0x14
add eax, 0x15c
push eax
mov ecx, esi
call fcn.00421e68
lea eax, [ebp + 8]
push eax
push eax
push 0x54
lea eax, [ebx + 9]
push eax
call fcn.00428ebd
lea eax, [ebx + 1]
push eax
push eax
mov dword [ebx + 5], edi
push 8
add ebx, 0x10b
push ebx
mov dword [eax], edi
call fcn.00428ebd
push 0x7c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0042040f
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret