joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c020
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x1002eef8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1003a2dc]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003a2dc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor edi, edi
mov dword [esp + 0x18], edi
push 0x288
mov dword [esp + 0x1c], 0x288
call fcn.1001b12b
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x1000c08a
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], edi
mov byte [ebp + 4], 0
jmp 0x1000c1df
lea eax, [esp + 0x18]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1000c0b3
push ebx
call fcn.1001c29b
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1001b12b
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x1000c077
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x4c], edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x1000c1a5
cmp ebx, edi
mov esi, ebx
je 0x1000c1a5
jmp 0x1000c0f0
lea eax, [esi + 0x10c]
push 0x10035abc
push eax
call fcn.1001b9b0
add esp, 8
test eax, eax
ja 0x1000c115
cmp dword [esi + 0x1a0], 0x47
jne 0x1000c19b
cmp dword [esi + 0x190], 0
jle 0x1000c199
mov edi, edi
movzx ecx, byte [esi + edi + 0x194]
mov eax, ecx
shr eax, 4
and ecx, reloc.WS2_32.dll_ntohs
jns 0x1000c13a
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp eax, 0xa
jge 0x1000c143
add al, 0x30
jmp 0x1000c145
add al, 0x37
cmp ecx, 0xa
mov byte [esp + 0x14], al
jge 0x1000c153
add cl, 0x30
jmp 0x1000c156
add cl, 0x37
mov byte [esp + 0x15], cl
push 2
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
call fcn.10003de0
mov edx, dword [esi + 0x190]
sub edx, 1
cmp edi, edx
push 1
lea eax, [esp + 0x20]
jge 0x1000c184
push 0x10035ac0
jmp 0x1000c189
push 0x10035ac4
call fcn.10003de0
add edi, 1
cmp edi, dword [esi + 0x190]
jl 0x1000c120
xor edi, edi
mov esi, dword [esi]
cmp esi, edi
jne 0x1000c0f0
push ebx
call fcn.1001c29b
add esp, 4
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x24]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], edi
push eax
mov ecx, ebp
mov byte [ebp + 4], 0
call fcn.10006b60
cmp dword [esp + 0x34], 0x10
jb 0x1000c1df
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1001c079
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1001b9a0
add esp, 0x34
ret
Function at 0x1000ed10
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [eax + 0xc]
test esi, esi
mov byte [esp + 8], 0
je 0x1000ed59
cmp byte [esi + 0x1fe], 1
jne 0x1000ed59
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x1000ed42
push 0
push 1
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x13c], 0xffffffff
mov byte [esi + 0x1fe], 0
xor eax, eax
pop esi
ret 8
mov eax, 3
pop esi
ret 8

Function at 0x1000ef90
Capabilities:
Parse pe header

Disassembly:
test eax, eax
jne 0x1000ef97
xor eax, eax
ret
cmp edi, 0x40
jb 0x1000ef94
cmp word [eax], 0x5a4d
jne 0x1000ef94
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 0xf8]
cmp edi, edx
jb 0x1000ef94
cmp dword [ecx + eax], 0x4550
jne 0x1000ef94
cmp word [ecx + eax + 4], 0x14c
jne 0x1000ef94
test byte [ecx + eax + 0x16], 2
je 0x1000ef94
movzx edx, word [ecx + eax + 0x14]
cmp dx, 0xe0
jb 0x1000ef94
add edx, 0xffffff20
movzx edx, dx
add edx, ecx
movzx ecx, word [ecx + eax + 6]
push ebx
push esi
lea esi, [edx + eax + 0xf8]
xor edx, edx
test cx, cx
jbe 0x1000f012
movzx eax, dx
lea eax, [eax + eax*4]
mov ebx, dword [esi + eax*8 + 0x14]
add ebx, dword [esi + eax*8 + 0x10]
lea eax, [esi + eax*8]
cmp ebx, edi
ja 0x1000f01a
add edx, 1
cmp dx, cx
jb 0x1000eff5
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
Function at 0x1000f780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edx + 0x3c]
sub esp, 0x10
push ebx
push ebp
add eax, edx
cmp dword [eax + 0x7c], 0
push esi
push edi
jbe 0x1000f817
mov eax, dword [eax + 0x78]
mov esi, dword [eax + edx + 0x1c]
mov edi, dword [eax + edx + 0x14]
add eax, edx
mov ecx, str.DllGetClassObject
sub ecx, dword [eax + 0x10]
add esi, edx
cmp ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
ja 0x1000f7c6
mov eax, dword [esi + ecx*4]
pop edi
pop esi
pop ebp
add eax, edx
pop ebx
add esp, 0x10
ret
mov ebp, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edx
add ebp, edx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jbe 0x1000f817
mov edi, dword [ebp + ebx*4]
add edi, edx
mov esi, str.DllGetClassObject
mov ecx, 0x12
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000f7fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000f80e
mov eax, dword [esp + 0x10]
movzx eax, word [eax + ebx*2]
cmp eax, dword [esp + 0x14]
jbe 0x1000f821
add ebx, 1
cmp ebx, dword [esp + 0x18]
jb 0x1000f7e1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
pop edi
pop esi
pop ebp
add eax, edx
pop ebx
add esp, 0x10
ret

Function at 0x10011690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x1001169f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x10011787
push ebp
mov ebp, edi
shr ebp, 3
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x10035198]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x100116b0
pop ebp
test edi, edi
je 0x100117ac
jmp 0x10011790
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x10035198]
add ecx, 1
sub edi, 1
jne 0x10011790
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x100117c0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [edx]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10035198]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10035198]
mov dword [edx + 8], ecx
ret

Function at 0x10011810
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
xor al, bl
movzx ebx, al
xor ebx, edx
shr edx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x10035198]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
add edx, 1
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x10035198]
pop ebx
mov dword [esi + 8], ecx
ret

Function at 0x10011f20
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x10011f52
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10011f48
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x10011f65
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.100205f0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x10011f80
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x10011fb3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10011fad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x10011fdf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x10011fc5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.100205f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x10011ff6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x10011ff0
cmp byte [esi + 8], 0
je 0x10011ff0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x100120e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x10012125
cmp byte [esi + 1], 0
je 0x1001212d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x10012142
cmp byte [esi + 1], 0
je 0x10012134
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x1001214b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x100120fe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x1001214b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x1001215f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.1001dc24
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001217d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x10012293
jmp 0x100121a0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x100121b1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x100121ca
mov ebp, 0x404
cmp byte [esi], 0
je 0x100121ef
cmp byte [esi + 1], 0
je 0x10012293
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x100121f2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x1001221a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10012214
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x10012240
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x1001222b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.100205f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x10012293
lea eax, [ebp - 3]
test eax, eax
jl 0x1001227e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x1001226e
cmp byte [eax + ebx + 1], 0x4b
jne 0x1001226e
cmp byte [eax + ebx + 2], 5
jne 0x1001226e
cmp byte [eax + ebx + 3], 6
je 0x10012274
test eax, eax
jge 0x10012250
jmp 0x1001227e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x10012293
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x10012194
push ebx
call fcn.1001d378
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x10012bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10012bd8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x10012bcd
cmp dword [edi + 0x7c], ebx
je 0x10012be7
call fcn.10012fb0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10012930
add esp, 0xc
test eax, eax
je 0x10012c0d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.1001dc24
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x10012c4f
push 0x4000
call fcn.1001dc24
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
jne 0x10012c5b
push ebp
call fcn.1001d378
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
cmp eax, ebx
mov dword [ebp + 0x18], ebx
jne 0x10012ca4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.10011a80
test eax, eax
jne 0x10012ca4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x10012cce
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x10012cd7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
mov al, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg al
lea edx, [ebp + 0x70]
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp esi, ebx
mov dword [ebp + 0x7c], eax
je 0x10012d13
mov cl, byte [esi]
cmp cl, bl
je 0x10012d13
call fcn.100117c0
add esi, 1
jne 0x10012d03
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x100130a0
Capabilities:
Get common file path

Disassembly:
cmp dword [edi], 0
push esi
jne 0x1001312f
cmp dword [edi + 4], 0xffffffff
jne 0x1001312f
lea esi, [edi + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100130c7
sub eax, edx
mov al, byte [eax + edi + 0x13f]
cmp al, 0x5c
je 0x100130f4
cmp al, 0x2f
je 0x100130f4
push 0x10035e24
push 0x104
push esi
call fcn.1001e54a
add esp, 0xc
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
lea esi, [esp + 0x14]
call fcn.10011ee0
add esp, 8
test eax, eax
jne 0x10013116
mov eax, dword [esp + 0xc]
pop esi
ret 8
call fcn.100122b0
mov dword [edi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop esi
ret 8
mov eax, 0x1000000
pop esi
ret 8
Function at 0x10015690
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x11c
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100156b8
push 0
push 1
lea ecx, [esp + 0x17]
push ecx
push eax
call edi
test eax, eax
jg 0x100156a0
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x128]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
je 0x100156eb
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 1
mov ecx, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea edx, [esp + 0x24]
push edx
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x10015731
call fcn.1001e4a1
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
call fcn.1001e4a1
mov eax, dword [eax]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xe
pop edi
pop esi
add esp, 0x11c
ret
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10015757
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10015757
mov eax, dword [esi + 4]
push 0
push 1
lea edx, [esp + 0x17]
push edx
push eax
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x11c
ret

Function at 0x10015e50
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov esi, 0xd
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10015e96
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
push 0x12
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x10015e89
xor esi, esi
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ecx
ret

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

Disassembly:
push ecx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0x10]
lea ebp, [edi + 0xdc]
push ebp
mov byte [esp + 0xf], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x6c], 0
je 0x100176cc
mov ecx, dword [edi + 0x200]
mov dword [ecx + 4], esi
jmp 0x100176cf
mov dword [edi + 0x6c], esi
add dword [edi + 0x80], 1
push ebp
mov dword [edi + 0x200], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x100176fb
push 0
push 1
lea edx, [esp + 0x13]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp byte [edi + 0x158], 0
jne 0x10017716
cmp byte [edi + 0x1fe], 0
jne 0x10017716
call fcn.10017790
pop edi
pop ebp
pop ecx
ret
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x100183f0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x10018484
cmp word [ebx + 8], 2
push edi
jne 0x10018455
cmp word [ebx + 0xa], 4
jne 0x10018455
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x10018455
jmp 0x10018430
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.10018380
test eax, eax
mov dword [esi], eax
je 0x10018478
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x10018430
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.1001e5bb
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x10018494.11001
jmp dword [eax*4 + 0x100184bc]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x10018ce0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x1003a2dc]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x1003c99c], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x10018740
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x10018a20
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.100186f0
je 0x10018d45
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x1003bc24]
jmp 0x10018e5e
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10018e45
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.1001e4e5
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.1001e54a
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10018dbc
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10018e08
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.1001e4e5
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.1001e54a
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x10018e45
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10018e08
push esi
call ebp
jmp 0x10018e45
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x10018e03
add edi, 1
cmp edi, 3
jl 0x10018e10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x1003bc24], edx
mov dword [0x1003bc2c], eax
mov dword [fcn.100186f0], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x1003bc24]
mov dword [0x1003c99c], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001b9a0
add esp, 0x238
ret 4
Function at 0x10019150
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x100191bd
test ecx, ecx
je 0x100191bd
test ax, ax
jne 0x1001916d
mov esi, 0xa
mov eax, esi
pop esi
pop ebx
ret
push edx
push eax
push ecx
mov eax, ebx
call fcn.10018ef0
mov esi, eax
add esp, 0xc
test esi, esi
jg 0x100191b8
cmp byte [ebx + 0x20a], 0
je 0x100191b8
mov ecx, dword [ebx]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x100191b8
push str.Warning:_Unable_to_set_TCP_NODELAY.
push 4
call fcn.10019810
add esp, 8
mov eax, esi
pop esi
pop ebx
ret
pop esi
mov eax, 3
pop ebx
ret

Function at 0x100191d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esi]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x10019205
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, 0xe
pop ecx
ret
xor eax, eax
pop ecx
ret