joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003228d
Capabilities:
Encode data using xor

Disassembly:
ret
jnp 0x1003220d
scasb al, byte es:[edi]
in eax, dx
jl 0x10032293
ret
in eax, dx
mov dl, 0x59
scasb al, byte es:[edi]
neg dword [ebp + 0xf]
mov ah, 0x46
dec edx
lfs eax, [esi + 0x4a]
push ebp
dec ebp
add byte [edi + edx*4 - 0x2c], dl
push edi
push ds
add al, 0x72
sbb bl, bl
test eax, 0xd5e58717
test byte [edx + 0x32751d9f], bl
push 0xfffffffffffffff7
ja 0x10032254
daa
mov ebx, 0xf8948516
push es
adc al, 0xdf
mov ecx, 0x61463a31
wait
outsb dx, byte [esi]
xor eax, 0x73945940
push ds
fistp dword ds:[edi + 0x1d]
stosb byte es:[edi], al
outsd dx, dword [esi]
sahf
jle 0x1003232b
xchg esi, eax
salc
rcl byte [esi], cl
or al, byte [eax - 0x16346528]
adc byte [ecx + 0x52c3a778], ch
push ecx
jge 0x100322e4
invalid
mov ch, 0xca
push eax
mov al, 0x10
adc dword [ecx + 0x46393f76], ecx
jecxz 0x100322c8
mov ebp, dword [edx - 0x1566eb06]
fucomp st(6)
push esi
iretd

Function at 0x100327eb
Capabilities:
Encode data using xor

Disassembly:
outsd dx, dword [esi]
jge 0x1003284c
mov cl, byte [esi + 0x15]
inc ebp
push eax
dec ebp
pushal
push ecx
cmpsd dword [esi], dword es:[edi]
push esi
sub al, 0x53
and eax, 0x6ab4c1fb
lea eax, [0x5fae9696]
jo 0x10032867
pop ebx
scasd eax, dword es:[edi]
mov ah, 0xd4
cmp cl, byte [edx - 0x2b]
mov al, byte [0x44c2a260]
inc esp
xor byte [edx], ah
sub eax, 0x9a870600
sub ch, byte [ecx - 0x11]
cmp edi, edx
cmpsb byte [esi], byte es:[edi]
aaa
push edi
out 0x49, eax
je 0x100327f4
fcomp qword [ecx]
inc ecx
add dword [eax + 0x52e5515a], ebx
stosb byte es:[edi], al
mov ah, byte [edi + 1]
pop ebp
cmpsb byte gs:[esi], byte es:[edi]
lodsb al, byte [esi]
jae 0x10032815
add al, 0xe3
xor al, 0xdf
aad 0xed
push esi
out 0xd7, eax
out dx, eax
cmp eax, 0x2d0c1a5b
xor eax, 0xa6999763
sal byte [ebx + 0x30520658], 1
pop edx
dec ebp
jp 0x100327cd
hlt
mov ch, 0xac
mov esi, 0x2c76b6c7
aad 0x3c
push edx
pop edx
push ebx
call 0xc4a8c541
mov ch, 0x5f
aas
fnstenv [edi]
aas
jmp 0xd704808f
fsub dword [esi + esi - 0xa4aece4]
dec ecx
xchg edi, eax
push ebx
aas
or al, 0xd5
mov ecx, dword [ebx + 0x5d545122]
or al, 0xd5
jecxz 0x100328ce
scasd eax, dword es:[edi]
adc ebx, esp
into
sbb eax, 0xca620755
aas
in eax, 0xd9
out dx, al
in eax, dx
sti
dec esi
lodsb al, byte [esi]
inc eax
add bl, byte [eax + 0x133da52a]
in eax, dx
loope 0x10032843
fsubr qword [ecx - 0x65]
sub bh, byte [ebp + 0x25]
int1
lcall 0xf363, 0xd5d5d5cd
popfd
adc dword [edx], ecx
adc al, 0x55
sub dword [ebx - 0x69], esp
xor al, 0x1a
js 0x100328d1
inc esi
test eax, 0xfaeb63eb
pop gs
jbe 0x10032888
invalid
pop ss
pop es
and eax, 0xb7ad4e6b
imul ecx, dword [esi - 0x53], 0xffffffb7
neg byte [edi - 0x77f2ff34]
test dword [eax - 0x4c], ebp
cmpsb byte [esi], byte es:[edi]
mov eax, dword [0xd939ba03]
lodsb al, byte [esi]
pop ebx
mov bh, 0xe5
in eax, 0x76
invalid
push ds
ret
mov ebp, 0x238ada99
dec edx
xchg byte [esi - 0x793b226d], dl
ret
Function at 0x10033539
Capabilities:
Encode data using xor

Disassembly:
pop ss
pop edi
dec esi
mov ch, 8
loop 0x1003358c
pop edx
push ecx
push ss
pop ebp
adc eax, 0x7cedd437
sbb al, 0xd5
imul ecx, dword [edx], 0xfffffff9
cmp eax, 0x5b6c1808
lds esi, [eax + 0x2a42560e]
pop ecx
inc edi
sub bl, byte [ecx + 0x47]
sub byte [edi - 0x80], dh
cmp dword [edx + ebp*4 - 0x16e05938], edx
mov eax, dword [0xa13fc267]
lea edi, [ebx]
daa
pop ebp
mov edi, 0x2bbc6bd1
adc edi, dword [edi - 0x3f2a54b5]
add al, 0x37
mov eax, 0x43003c56
stc
int3
in eax, 0x2c
js 0x10033558
adc eax, 0xd0e29221
add dword [ebp + 0x8578b6e], esp
fnstenv [esi + eax*4]
xor al, 0x35
invalid
Function at 0x40c304
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov eax, 0x4c8320
call fcn.004a44b4
xor edx, edx
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x570]
mov edx, dword [eax]
call dword [edx + 0xc4]
cmp al, 1
jne 0x40c3ea
push 0
push closesocket
push 3
push 0
push 0
push closesocket
mov eax, dword [ebp - 0x30]
add eax, 0x40941
call fcn.004091cc
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
cmp edx, 0xffffffff
jne 0x40c379
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40c4c8
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, 0x10000
jl 0x40c3ab
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40c4c8
push 0
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x44]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
mov byte [eax + edx], 0
mov edx, dword [ebp - 0x30]
add edx, 0x30941
mov eax, dword [ebp - 0x30]
call fcn.0040c2b0
mov dword [ebp - 0x44], eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40c4bb
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x570]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x40c4bb
mov word [ebp - 0x1c], 8
lea eax, [ebp - 4]
call fcn.00401ed0
mov edx, eax
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x4ec]
call fcn.00476a10
lea eax, [ebp - 4]
call fcn.0040b3d8
cmp eax, 0x10000
setge dl
and edx, 1
push edx
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004af354
pop ecx
test cl, cl
je 0x40c45b
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40c4c8
mov word [ebp - 0x1c], 0x14
lea eax, [ebp - 8]
call fcn.00401ed0
mov edx, eax
inc dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + 0x4ec]
call fcn.00476a10
lea eax, [ebp - 8]
call fcn.004091cc
push eax
mov edx, dword [ebp - 0x30]
add edx, 0x30941
push edx
call fcn.004a41dc
add esp, 8
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004af354
mov edx, dword [ebp - 0x30]
add edx, 0x30941
mov eax, dword [ebp - 0x30]
call fcn.0040c2b0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x412ba0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push 0
push closesocket
push 3
push 0
push 0
push closesocket
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, 0xffffffff
jne 0x412bda
mov eax, 4
jmp 0x412cf6
lea edx, [ebp - 8]
push edx
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
inc ecx
push ecx
call fcn.004a3a40
pop ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x412c10
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov eax, 4
jmp 0x412cf6
push 0
lea edx, [ebp - 8]
push edx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 4]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov byte [ecx + eax], 0
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
push dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
shl eax, 2
add eax, 0x4cb1c4
push eax
push str.DOWNLOAD__s__s___d_
lea edx, [ebp - 0x418]
push edx
call fcn.004a604c
add esp, 0x14
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
push dword [ebp + 8]
call fcn.00410538
pop ecx
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x412c85
mov dword [ebp - 0x18], 1
jmp 0x412cdc
push dword [ebp - 0x10]
lea edx, [ebp - 0x418]
push edx
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00410670
add esp, 0x10
test al, al
jne 0x412caa
mov dword [ebp - 0x18], 2
jmp 0x412cdc
push 3
push 3
push 1
call fcn.004101f8
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00410670
add esp, 0x10
test al, al
jne 0x412cd7
mov dword [ebp - 0x18], 2
call fcn.00410308
push dword [ebp - 0x14]
call fcn.004a3a50
pop ecx
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0041064c
add esp, 8
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x413a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
mov esi, 0x4cb884
lea edi, [ebp - 0x1c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x413a55
xor eax, eax
jmp 0x413b12
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x413af8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
jne 0x413af1
push 0xffffffffffffffff
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
sub eax, 0xffffffff
je 0x413ae2
dec eax
je 0x413aa3
dec eax
je 0x413ae2
sub eax, 0x101
je 0x413ae2
jmp 0x413ae2
push 0
call sub.KERNEL32.DLL_SetLastError
push 0
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x413ad1
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e3
jne 0x413ad1
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp edx, ecx
je 0x413b07
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x413b07
push dword [ebp + 8]
call sub.KERNEL32.DLL_CancelIo
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x413b07
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x413b07
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
cmp eax, edx
je 0x413b07
xor ecx, ecx
mov dword [ebp - 4], ecx
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413b18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push esi
push edi
mov esi, 0x4cb898
lea edi, [ebp - 0x24]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x413b52
xor eax, eax
jmp 0x413c40
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 9], dl
mov cl, byte [ebp - 9]
test cl, cl
jne 0x413bd1
push dword [0x4cb880]
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xffffffff
je 0x413bbc
dec eax
je 0x413b9f
sub eax, 0x102
je 0x413bbc
jmp 0x413bbc
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x413bd1
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x413bd1
mov dl, byte [ebp + 0xc]
cmp dl, 1
jne 0x413bcc
push dword [ebp + 8]
call sub.KERNEL32.DLL_CancelIo
xor ecx, ecx
mov dword [ebp - 8], ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp edx, ecx
jae 0x413c1a
mov eax, dword [ebp - 4]
mov dl, byte [ebp + eax - 0x64]
mov ecx, dword [0x4e45d8]
mov byte [ecx + 0x4d45d8], dl
inc dword [0x4e45d8]
mov eax, dword [0x4e45d8]
cmp eax, 0x10000
jle 0x413c0d
xor edx, edx
mov dword [0x4e45d8], edx
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ecx, eax
jb 0x413be0
mov edx, dword [0x4e45e0]
mov ecx, dword [ebp - 8]
add edx, ecx
mov dword [0x4e45e0], edx
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 8]
test eax, eax
jne 0x413c3e
xor eax, eax
jmp 0x413c40
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41401c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push esi
push edi
mov esi, 0x4cb8b0
lea edi, [ebp - 0x24]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x414051
xor eax, eax
jmp 0x414103
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x24]
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4140ea
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
jne 0x4140e6
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x10]
push edx
push 1
call sub.KERNEL32.DLL_WaitForMultipleObjects
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0xffffffff
je 0x4140e2
dec ecx
je 0x4140a7
dec ecx
je 0x4140f8
sub ecx, 0x101
je 0x4140e2
jmp 0x4140e2
push 0
call sub.KERNEL32.DLL_SetLastError
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x24]
push edx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x4140d4
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e3
jne 0x4140d4
xor eax, eax
jmp 0x414103
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp edx, ecx
je 0x4140f8
xor eax, eax
jmp 0x414103
xor eax, eax
jmp 0x414103
xor eax, eax
jmp 0x414103
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp edx, ecx
je 0x4140f8
xor eax, eax
jmp 0x414103
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41410c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push esi
push edi
mov esi, 0x4cb8c4
lea edi, [ebp - 0x28]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 8], eax
push 0
push 0
push 1
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x414146
xor eax, eax
jmp 0x41422a
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 8]
push ecx
push 1
lea eax, [ebp - 0x11]
push eax
push dword [ebp + 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 9], dl
mov cl, byte [ebp - 9]
test cl, cl
jne 0x4141bc
push 0x1388
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xffffffff
je 0x4141af
dec eax
je 0x414192
sub eax, 0x102
je 0x4141af
jmp 0x4141af
push 0
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetOverlappedResult
test eax, eax
jne 0x4141bc
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4141bc
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp eax, edx
jae 0x414206
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x11]
mov edx, dword [0x4f45e4]
mov byte [edx + 0x4e45e4], al
inc dword [0x4f45e4]
mov ecx, dword [0x4f45e4]
cmp ecx, 0x10000
jle 0x4141f9
xor eax, eax
mov dword [0x4f45e4], eax
inc dword [ebp - 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp edx, ecx
jb 0x4141cb
mov eax, dword [0x4f45ec]
mov edx, dword [ebp - 8]
add eax, edx
mov dword [0x4f45ec], eax
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x414228
xor eax, eax
jmp 0x41422a
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415514
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0043ab60
mov eax, dword [ebp - 8]
call fcn.0043ab60
xor eax, eax
push ebp
push 0x4155a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [esi], 2
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004155b8
mov eax, dword [ebp - 0xc]
call fcn.0043ab70
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [esi + 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00415690
push eax
call sub.WSOCK32.DLL_htons
mov word [esi + 2], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4155b0
lea eax, [ebp - 0xc]
call fcn.0043a6c0
lea eax, [ebp - 8]
call fcn.0043a6c0
lea eax, [ebp - 4]
call fcn.0043a6c0
ret
Function at 0x4155b8
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.0043a6c0
test ebx, ebx
je 0x415659
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4155f4
mov eax, ebx
call fcn.0043ab70
push eax
call sub.WSOCK32.DLL_inet_addr
inc eax
je 0x415665
mov eax, esi
mov edx, ebx
call fcn.0043a714
jmp 0x415665
mov eax, ebx
call fcn.0043ab70
push eax
call sub.WSOCK32.DLL_gethostbyname
test eax, eax
je 0x415665
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x415674
call fcn.0042997c
jmp 0x415665
mov eax, esi
mov edx, 0x415688
call fcn.0043a714
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4178ac
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x417935
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f4858
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x41791f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0042bc08
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x41794c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4d3cb0]
mov dl, 1
mov eax, dword [0x4170e4]
call fcn.0042c558
call fcn.0043a320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41793c
lea eax, [ebp - 0x1c]
call fcn.0043a6c0
ret
Function at 0x417fdc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00417f00
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00439d70
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x418040
call fcn.004177f4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x418032
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00439d70
pop esi
pop ebx
ret

Function at 0x418064
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0043ab70
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00439430
test ebx, ebx
je 0x4180af
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4180f4
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x41811c
mov edx, edi
mov eax, esi
call fcn.00418064
mov dword [ebx + 4], eax
jmp 0x418159
cmp dword [ebp - 4], 0
je 0x418135
mov eax, dword [ebp - 4]
call fcn.0043ab70
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x418159
cmp byte [ebp + 0xc], 0
jne 0x418142
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x418159
mov ecx, dword [0x4d3cb4]
mov dl, 1
mov eax, dword [0x4170e4]
call fcn.0042c51c
call fcn.0043a320
cmp dword [ebp + 0x14], 0
je 0x418175
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.004180c0
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x418183
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x41818c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4181bd
mov ecx, dword [0x4d3cc0]
mov dl, 1
mov eax, dword [0x4170e4]
call fcn.0042c51c
call fcn.0043a320
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4181ea
mov ecx, dword [0x4d3cbc]
mov dl, 1
mov eax, dword [0x4170e4]
call fcn.0042c51c
call fcn.0043a320
xor eax, eax
push ebp
push 0x418266
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00439d70
cmp byte [ebp + 8], 0
je 0x418242
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004180f4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
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, dword [ebp - 4]
call fcn.00417fdc
jmp 0x41825c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00417ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x418283
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc