joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e9d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov dword [esp + 8], eax
mov eax, dword [0x42a7fc]
push esi
xor esi, esi
push edi
test eax, eax
mov word [esp + 0x14], 2
jne 0x40ea87
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esp + 0x28], eax
jmp 0x40ea19
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.0040ef30
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x40ea41
call ebp
cmp eax, 0x2733
je 0x40ea7a
call ebp
cmp eax, 0x2733
je 0x40ea7a
cmp edi, 1
jl 0x40ea91
mov eax, dword [esp + 0x20]
mov edx, ebx
sub edx, esi
push 0
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esi + eax]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x40ea78
call ebp
cmp eax, 0x2733
je 0x40ea7a
call ebp
cmp eax, 0x2733
jne 0x40ea91
jmp 0x40ea7a
add esi, eax
cmp esi, ebx
jge 0x40ea91
mov eax, dword [0x42a7fc]
test eax, eax
je 0x40ea15
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

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

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov dword [esp + 8], eax
mov eax, dword [0x42a7fc]
push esi
xor esi, esi
push edi
test eax, eax
jne 0x40eb45
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push 1
push edx
mov word [esp + 0x20], 2
call fcn.0040ef30
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x40eb01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40eb38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40eb38
cmp edi, 1
jl 0x40eb4f
mov eax, dword [esp + 0x20]
mov ecx, ebx
push 0x10
push eax
mov eax, dword [esp + 0x24]
sub ecx, esi
push 0
lea edx, [esi + ebp]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x40eb36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40eb4f
jmp 0x40eb38
add esi, eax
cmp esi, ebx
jge 0x40eb4f
mov eax, dword [0x42a7fc]
test eax, eax
je 0x40eac6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40eb60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov word [esp + 4], 1
mov dword [esp], eax
mov eax, dword [0x42a7fc]
test eax, eax
je 0x40eb82
or eax, 0xffffffff
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
lea edx, [esp]
push ecx
push 1
push edx
call fcn.0040ef30
add esp, 0xc
cmp eax, 1
jge 0x40eba1
xor eax, eax
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push ebp
push 0
push edi
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
jge 0x40ebee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40ebb9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40ebb9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40eed0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [0x426a54]
cdq
sub eax, edx
mov dword [esp], ecx
sar eax, 1
test eax, eax
jle 0x40ef05
mov ecx, dword [esp + 8]
mov edx, eax
mov ax, word [esp]
xor ax, word [ecx]
add ecx, 2
dec edx
mov word [esp], ax
jne 0x40eef3
mov ecx, dword [esp]
and ecx, 0xffff
push ecx
call fcn.004160f8
call fcn.00416105
mov dword [0x426a54], eax
call fcn.00416105
add esp, 8
ret
Function at 0x40ef30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x31c
mov ecx, dword [esp + 0x328]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
push ebx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, 0x3e8
cdq
idiv ecx
mov eax, dword [esp + 0x328]
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x228], ebp
mov dword [esp + 0x1c], edx
jbe 0x40f083
mov esi, dword [esp + 0x330]
mov dword [esp + 0x14], eax
mov bx, word [esi + 4]
test bl, 1
je 0x40efdb
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jbe 0x40efbf
mov edx, dword [esi]
lea ecx, [esp + 0x24]
cmp dword [ecx], edx
je 0x40efbf
inc eax
add ecx, 4
cmp eax, dword [esp + 0x20]
jb 0x40efb1
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x40efdb
cmp ecx, 0x40
jae 0x40efdb
mov edx, dword [esi]
mov dword [esp + eax*4 + 0x24], edx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
test bl, 2
je 0x40f01c
xor eax, eax
test edi, edi
jbe 0x40effb
mov edx, dword [esi]
lea ecx, [esp + 0x128]
cmp dword [ecx], edx
je 0x40effb
inc eax
add ecx, 4
cmp eax, edi
jb 0x40efef
cmp eax, edi
jne 0x40f01c
cmp edi, 0x40
jae 0x40f01c
mov ecx, dword [esi]
mov dword [esp + eax*4 + 0x128], ecx
mov edi, dword [esp + 0x124]
inc edi
mov dword [esp + 0x124], edi
test bl, 4
je 0x40f05d
xor eax, eax
test ebp, ebp
jbe 0x40f03c
mov edx, dword [esi]
lea ecx, [esp + 0x22c]
cmp dword [ecx], edx
je 0x40f03c
inc eax
add ecx, 4
cmp eax, ebp
jb 0x40f030
cmp eax, ebp
jne 0x40f05d
cmp ebp, 0x40
jae 0x40f05d
mov edx, dword [esi]
mov dword [esp + eax*4 + 0x22c], edx
mov ebp, dword [esp + 0x228]
inc ebp
mov dword [esp + 0x228], ebp
mov ecx, dword [esp + 0x10]
mov word [esi + 6], 0
mov eax, dword [esi]
cmp eax, ecx
jbe 0x40f071
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
add esi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x40ef98
lea eax, [esp + 0x18]
lea ecx, [esp + 0x228]
push eax
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x12c]
lea eax, [esp + 0x28]
push edx
inc ecx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp ebx, 1
jl 0x40f110
mov edi, dword [esp + 0x334]
test edi, edi
jbe 0x40f110
mov edx, dword [esp + 0x330]
lea esi, [edx + 6]
mov ecx, dword [esi - 6]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40f0da
or byte [esi], 1
mov eax, dword [esi - 6]
lea edx, [esp + 0x124]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40f0f2
or byte [esi], 2
mov edx, dword [esi - 6]
lea ecx, [esp + 0x228]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40f10a
or byte [esi], 4
add esi, 8
dec edi
jne 0x40f0c5
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x40fdb0
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
Set socket configuration

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov dword [esp + 8], 0x10
cmp dword [esi + 0x34], 0xffffffff
jne 0x40ff5b
mov eax, dword [esi + 0x4c]
cmp eax, 0x100000
je 0x40ff5b
cmp eax, 0x1000000
je 0x40ff5b
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x28], 1
test eax, eax
je 0x40fe1b
mov ecx, dword [esi + 0xb8]
test ecx, ecx
jne 0x40fe1b
push eax
call fcn.00410170
add esp, 4
mov dword [esi + 0xb8], eax
test eax, eax
jne 0x40fe1b
pop edi
mov eax, 0x64
pop esi
add esp, 0x1c
ret
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x34], eax
jne 0x40fe40
pop edi
mov eax, 0xb
pop esi
add esp, 0x1c
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x80
push 0xffff
push eax
call edi
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x28]
push 4
push edx
push 0x100
push 0xffff
push eax
call edi
mov ax, word [esi + 0x66]
mov ecx, dword [esi + 0x60]
cmp word [esi + 0x54], 0
mov word [esp + 0x14], 2
mov word [esp + 0x16], ax
mov dword [esp + 0x18], ecx
je 0x40feb4
test ax, ax
jne 0x40feb4
mov dx, word [esi + 0xa6]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0x3ff
jbe 0x40feb4
mov ax, word [esi + 0xa6]
mov word [esp + 0x16], ax
mov edx, dword [esi + 0x34]
mov edi, dword [sym.imp.WS2_32.dll_bind]
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x40fef0
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
mov word [esp + 0x22], 0
call edi
cmp eax, 0xffffffff
jne 0x40fef0
pop edi
mov eax, 0xc
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 0x4c]
lea eax, [esi + 0xb4]
cmp ecx, 0x100
mov word [eax], 2
jge 0x40ff2b
test cl, 1
jne 0x40ff2b
lea edx, [esp + 8]
push edx
push eax
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x40ff5b
pop edi
mov eax, 0xf
pop esi
add esp, 0x1c
ret
mov ecx, dword [esi + 0x34]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40ff47
pop edi
mov eax, 0xd
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x10]
push edx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x410170
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xff
jbe 0x410192
mov byte [esi + 0xff], al
mov al, byte [esi]
xor ecx, ecx
test al, al
je 0x4101b7
cmp al, 0x2e
jne 0x4101a6
inc edx
cmp edx, 3
jg 0x4101b7
jmp 0x4101ae
cmp al, 0x30
jb 0x4101b7
cmp al, 0x39
ja 0x4101b7
mov al, byte [ecx + esi + 1]
inc ecx
test al, al
jne 0x41019a
cmp byte [ecx + esi], 0
jne 0x4101de
cmp edx, 3
jne 0x4101de
lea eax, [esp + 0xc]
push 0
push eax
push esi
call fcn.004100d0
add esp, 0xc
cmp eax, 4
jne 0x4101de
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret
mov eax, dword [0x42a808]
push esi
test eax, eax
je 0x410210
call eax
add esp, 4
test eax, eax
jne 0x410241
mov eax, dword [0x42a804]
test eax, eax
je 0x410203
push eax
call fcn.004154c6
add esp, 4
push esi
call dword [0x42a808]
add esp, 4
pop edi
pop esi
ret
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
call edi
test eax, eax
jne 0x410235
mov eax, dword [0x42a804]
test eax, eax
je 0x41023f
push eax
call fcn.004154c6
add esp, 4
push esi
call edi
test eax, eax
je 0x41023f
mov ecx, dword [eax + 0xc]
pop edi
pop esi
mov edx, dword [ecx]
mov eax, dword [edx]
ret
xor eax, eax
pop edi
pop esi
ret

Function at 0x4107d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4113a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x411c60
Capabilities:
Encode data using base64

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x411d10
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
mov cl, byte [esi]
shr ecx, 2
inc eax
cmp edi, 1
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], dl
jle 0x411c96
xor ecx, ecx
mov cl, byte [esi + 1]
shr ecx, 4
jmp 0x411c98
xor ecx, ecx
mov dl, byte [esi]
and edx, 3
shl edx, 4
or edx, ecx
inc eax
cmp edi, 1
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax - 1], cl
jle 0x411cd7
cmp edi, 2
jle 0x411cc0
xor ecx, ecx
mov cl, byte [esi + 2]
shr ecx, 6
jmp 0x411cc2
xor ecx, ecx
mov dl, byte [esi + 1]
and edx, 0xf
shl edx, 2
or edx, ecx
xor ecx, ecx
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x411cdc
mov ecx, 0x3d
mov byte [eax], cl
inc eax
cmp edi, 2
jle 0x411cf4
mov dl, byte [esi + 2]
and edx, 0x3f
xor ecx, ecx
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x411cf9
mov ecx, 0x3d
mov byte [eax], cl
sub edi, 3
inc eax
add esi, 3
test edi, edi
jg 0x411c76
pop esi
mov byte [eax], 0
pop edi
ret
mov eax, dword [esp + 0xc]
pop edi
mov byte [eax], 0
ret
Function at 0x412e40
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x55c
lea ecx, [esp + 0x10c]
push ebx
push ebp
push esi
push edi
push 0x38
push str.91__
push eax
push ecx
call fcn.004130e0
mov ecx, 7
lea esi, [esp + 0x12c]
lea edi, [esp + 0x64]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x138]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea edi, [esp + 0x26c]
xor edx, edx
push 0x1c
mov dl, byte [esi + 0x4239f0]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.00413110
xor ecx, ecx
push 0x1c
mov cl, byte [esi + 0x4239f0]
lea edx, [esp + 0x80]
push ecx
push edx
call fcn.00413110
push 0x1c
lea eax, [esp + 0x8c]
push 0x1c
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00413170
push 0x30
lea eax, [esp + 0x224]
push 0x4238f0
push eax
push edi
call fcn.004130e0
add esp, 0x3c
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x412e93
mov ecx, dword [esp + 0x574]
push 0x40
push 0x423920
lea edx, [esp + 0x15c]
push ecx
push edx
call fcn.004130e0
mov ecx, 8
lea esi, [esp + 0x184]
lea edi, [esp + 0x24]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [esp + 0x154]
lea edi, [esp + 0x34]
lea ebx, [esp + 0x26c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], 0x10
push 0x30
lea eax, [esp + 0x18]
push 0x423960
lea ecx, [esp + 0x1cc]
push eax
push ecx
call fcn.004130e0
push 0x30
lea edx, [esp + 0x1d8]
push ebx
lea eax, [esp + 0x1ac]
push edx
push eax
call fcn.004131c0
mov ecx, 0xc
lea esi, [esp + 0x1b4]
lea edi, [esp + 0xcc]
add esp, 0x20
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
lea edx, [esp + 0xad]
movsx eax, byte [edx - 1]
movsx ecx, byte [edx + 4]
lea esi, [edx - 1]
movsx edi, byte [edx]
shl eax, 1
or ecx, eax
movsx eax, byte [edx + 1]
shl edi, 1
or eax, edi
movsx edi, byte [edx + 2]
shl eax, 1
or eax, edi
movsx edi, byte [edx + 3]
shl eax, 1
or eax, edi
lea edi, [ecx + ebp]
shl edi, 4
xor ecx, ecx
mov cl, byte [edi + eax + 0x423a00]
mov edi, ecx
mov ecx, 3
mov eax, 1
shl eax, cl
test edi, eax
setne al
mov byte [esi], al
dec ecx
inc esi
cmp ecx, 0xffffffff
jg 0x412fe3
add ebp, 4
add edx, 6
cmp ebp, 0x20
jl 0x412fa3
lea ecx, [esp + 0xac]
lea eax, [esp + 0xdc]
mov edx, 8
mov esi, dword [ecx]
add ecx, 6
mov dword [eax], esi
add eax, 4
dec edx
jne 0x413016
push 0x20
lea ecx, [esp + 0xe0]
push 0x423990
lea edx, [esp + 0x104]
push ecx
push edx
call fcn.004130e0
lea eax, [esp + 0x10c]
push 0x20
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
call fcn.004131c0
mov eax, dword [esp + 0x30]
mov ecx, 8
lea esi, [esp + 0x34]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
add esp, 0x20
add ebx, 0x30
mov ecx, 8
lea esi, [esp + 0x8c]
lea edi, [esp + 0x14]
dec eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
jne 0x412f51
push 0x20
lea eax, [esp + 0x38]
push 0x20
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x238]
push ecx
push edx
call fcn.00413170
mov ecx, dword [esp + 0x584]
push 0x40
lea eax, [esp + 0x244]
push 0x4239b0
push eax
push ecx
call fcn.004130e0
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x55c
ret
Function at 0x4131c0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x4131eb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x4131db
pop esi
pop ebx
pop edi
ret

Function at 0x413390
Capabilities:
Encode data using xor
Get hostname

Disassembly:
sub esp, 0x480
push ebx
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
mov eax, dword [str.NTLMSSP]
mov ecx, dword [0x423420]
lea edx, [esp + 0xc]
push 0x80
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov byte [esp + 0x9c], 2
call dword [sym.imp.WS2_32.dll_gethostname]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1b], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xbc]
mov ebx, ecx
push 0x40
lea ecx, [esp + 0x10]
push eax
shl ebx, 1
push ecx
mov byte [esp + 0xa4], bl
mov byte [esp + 0xa6], bl
mov byte [esp + 0xa8], 0x30
mov byte [esp + 0xac], 3
mov byte [esp + 0xad], 0x82
mov byte [esp + 0xae], 0x81
mov byte [esp + 0xaf], 0xa0
call fcn.00413310
mov esi, dword [esp + 0x4a0]
push esi
call fcn.004159a3
mov eax, dword [esp + 0x4a0]
mov cl, byte [esi + 1]
add esp, 0x10
mov edx, dword [eax + 0xa8]
mov dword [esi + 4], edx
mov al, byte [eax + 0xa6]
xor cl, al
xor edi, edi
mov byte [esi + 1], cl
push 8
push esi
call fcn.0040eed0
mov dl, byte [edi + esi]
add esp, 8
xor dl, al
mov byte [edi + esi], dl
inc edi
cmp edi, 8
jl 0x41346b
mov ecx, dword [esi]
mov eax, dword [esp + 0x498]
mov edx, dword [esi + 4]
add ebx, 0x30
mov dword [esp + 0xa4], ecx
push ebx
lea ecx, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0xb4], edx
call fcn.00411c60
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x480
ret

Function at 0x41a25a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a27a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041862c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41a29d
test byte [esp + 8], 2
je 0x41a29d
call fcn.0041869f
mov dword [eax], 0xd
call fcn.004186a8
mov dword [eax], 5
jmp 0x41a276
xor eax, eax
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x40a080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
cmovae eax, dword [ebp + 8]
sub esp, 0x14
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004016c0
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x40a109
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
push ebx
cmovae edx, dword [ebp + 0x38]
lea ebx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
cmovae ebx, dword [ebp + 0x20]
test edx, edx
je 0x40a108
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a0e3
sub ecx, dword [ebp - 0x14]
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov ecx, 1
cmove edi, ecx
pop ebx
test esi, esi
je 0x40a114
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40a148
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a13e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a1de
push ecx
push edx
call fcn.0045b012
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x40a18a
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a180
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a1de
push ecx
push edx
call fcn.0045b012
add esp, 8
mov ecx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp ecx, 0x10
jb 0x40a1cc
mov edx, dword [ebp + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a1c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a1de
push ecx
push edx
call fcn.0045b012
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0045a978
mov esp, ebp
pop ebp
ret
call fcn.0045eee7
int3
Function at 0x414cb0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0x414ce6
mov al, byte [esi]
push eax
call fcn.004232e0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x414cc8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x41ee70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x108], eax
mov eax, dword [eax + 0xc]
push edi
push ecx
push eax
mov edx, dword [eax + ecx*4 + 0x128]
mov dword [ebp - 0x10c], edx
call fcn.0041f350
add esp, 0x10
test eax, eax
jle 0x41eed2
pop edi
mov dword [esi], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push 0
push ebx
push edi
push dword [ebp - 0x10c]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov dword [esi], 0
cmp ebx, 0xffffffff
jne 0x41ef50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x41ef18
pop edi
mov dword [esi], 0x51
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00430280
push eax
push str.Recv_failure:__s
push dword [ebp - 0x108]
call fcn.0041ec20
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [eax + 0x938], edi
mov dword [esi], 0x38
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a978
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [eax + ecx*4 + 0x128]
push ebx
mov dword [ebp - 0x108], edx
call fcn.0041f480
add esp, 0xc
test eax, eax
je 0x41efcb
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x108], eax
mov dword [esi], 0
cmp eax, 0xffffffff
jne 0x41f04e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x41f01b
mov eax, dword [ebp - 0x108]
pop edi
mov dword [esi], 0x51
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a978
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.00430280
push eax
push str.Send_failure:__s
push ebx
call fcn.0041ec20
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [ebx + 0x938], edi
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a978
mov esp, ebp
pop ebp
ret