joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e6d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002bf56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x1003b270]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x23c], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x30], bx
mov ecx, 0x81
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x184c]
push eax
lea ecx, [esp + 0x34]
push str._sdataSpread.dat
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
mov edx, dword [0x1003e958]
add esp, 0xc
mov ecx, 0x1003e958
mov byte [esp + 0x13], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x1003e958]
mov ecx, 0x1003e958
mov dword [esp + 0x24c], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x23]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x268], 1
call fcn.1001e140
add esp, 0x1c
test eax, eax
je 0x1001e819
mov dl, byte [esp + 0x13]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.MSVCR71.dll_wcsncpy]
mov byte [esi + 0x88], dl
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x98], edx
mov edx, dword [esp + 0x18]
push 0x200
mov dword [esi + 0x520], eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esp + 0x28]
push edx
lea eax, [esi + 0x9c]
push eax
mov dword [esi + 0x524], ecx
call edi
mov ecx, dword [esp + 0x20]
push 0x40
push ecx
add esi, 0x49e
push esi
call edi
add esp, 0x18
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001e83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001e867
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
call fcn.1001590b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e980
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
lea edi, [ebp - 2]
xor ecx, ecx
test edi, edi
jle 0x1001ea13
push ebx
lea esp, [esp]
movzx edx, byte [esi + ecx]
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr edx, 2
mov dl, byte [edx + ebx]
mov byte [eax], dl
movzx ebx, byte [esi + ecx + 1]
xor edx, edx
mov dl, byte [esi + ecx]
shr ebx, 4
inc eax
add ecx, 3
and edx, 3
shl edx, 4
or edx, ebx
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [edx + ebx]
mov byte [eax], dl
movzx ebx, byte [esi + ecx - 1]
xor edx, edx
mov dl, byte [esi + ecx - 2]
shr ebx, 6
inc eax
and edx, 0xf
shl edx, 2
or edx, ebx
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov dl, byte [edx + ebx]
mov byte [eax], dl
mov ebx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor edx, edx
mov dl, byte [esi + ecx - 1]
inc eax
and edx, 0x3f
mov dl, byte [edx + ebx]
mov byte [eax], dl
inc eax
cmp ecx, edi
jl 0x1001e9a0
pop ebx
cmp ecx, ebp
jge 0x1001ea93
movzx edx, byte [ecx + esi]
mov edi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr edx, 2
mov dl, byte [edx + edi]
mov byte [eax], dl
inc eax
dec ebp
cmp ecx, ebp
jne 0x1001ea5b
movzx ecx, byte [ecx + esi]
mov edx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + edx]
mov edx, dword [esp + 0x10]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
mov byte [eax], 0x3d
inc eax
pop edi
mov byte [eax], 0
sub eax, edx
pop esi
inc eax
pop ebp
ret
lea edx, [ecx + esi + 1]
movzx ecx, byte [ecx + esi]
movzx esi, byte [edx]
and ecx, 3
shl ecx, 4
shr esi, 4
or ecx, esi
mov esi, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov cl, byte [ecx + esi]
mov byte [eax], cl
movzx edx, byte [edx]
mov ecx, dword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0xf
mov dl, byte [ecx + edx*4]
inc eax
mov byte [eax], dl
inc eax
mov byte [eax], 0x3d
inc eax
mov edx, dword [esp + 0x10]
pop edi
mov byte [eax], 0
sub eax, edx
pop esi
inc eax
pop ebp
ret

Function at 0x1001ef20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x400
push esi
push edi
mov edx, ecx
xor eax, eax
mov dword [esp + 8], 0
mov ecx, 0xff
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov ecx, edx
call fcn.1001ee70
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov esi, dword [ebp + 8]
or eax, 0xffffffff
test edx, edx
je 0x1001ef7e
dec dword [ecx]
xor edx, edx
mov dl, byte [esi]
xor edx, eax
and edx, 0xff
mov edi, dword [esp + edx*4 + 8]
mov edx, dword [ecx]
shr eax, 8
xor eax, edi
inc esi
test edx, edx
jne 0x1001ef60
mov edx, dword [ecx]
dec edx
pop edi
mov dword [ecx], edx
not eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x1003b270]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp], edx
mov edx, dword [ecx + 4]
mov dword [esp + 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push ebx
push esi
mov dword [esp + 0x14], ecx
lea ecx, [eax + 1]
push edi
mov dword [esp + 0x14], edx
mov eax, 0x10034d0d
mov esi, 4
lea esp, [esp]
movzx edi, byte [eax - 4]
mov bl, byte [esp + edi + 0xc]
movzx edx, byte [eax - 5]
mov dl, byte [esp + edx + 0xc]
xor dl, bl
movzx edi, byte [eax - 3]
xor dl, byte [esp + edi + 0xc]
movzx edi, byte [eax - 2]
xor dl, byte [esp + edi + 0xc]
movzx edi, byte [eax - 1]
xor dl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 1]
xor dl, byte [esp + edi + 0xc]
movzx edi, byte [eax]
xor dl, byte [esp + edi + 0xc]
mov byte [ecx - 1], dl
movzx edi, byte [eax + 7]
mov bl, byte [esp + edi + 0xc]
movzx edx, byte [eax + 8]
mov dl, byte [esp + edx + 0xc]
movzx edi, byte [eax + 6]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 5]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 4]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 3]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 2]
xor dl, bl
xor dl, byte [esp + edi + 0xc]
mov byte [ecx], dl
movzx edi, byte [eax + 0xe]
mov bl, byte [esp + edi + 0xc]
movzx edx, byte [eax + 0xf]
mov dl, byte [esp + edx + 0xc]
movzx edi, byte [eax + 0xd]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0xc]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0xb]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0xa]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 9]
xor dl, bl
xor dl, byte [esp + edi + 0xc]
mov byte [ecx + 1], dl
movzx edi, byte [eax + 0x15]
mov bl, byte [esp + edi + 0xc]
movzx edx, byte [eax + 0x16]
mov dl, byte [esp + edx + 0xc]
movzx edi, byte [eax + 0x14]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0x13]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0x12]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0x11]
xor dl, bl
mov bl, byte [esp + edi + 0xc]
movzx edi, byte [eax + 0x10]
xor dl, bl
xor dl, byte [esp + edi + 0xc]
mov byte [ecx + 2], dl
add ecx, 4
add eax, 0x1c
dec esi
jne 0x1001f040
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
call fcn.1001590b
add esp, 0x14
ret 4
Function at 0x1001f170
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, edx
mov ebp, ebx
lea esi, [edx + 3]
sub edi, eax
sub ebp, eax
lea ecx, [ebx + 1]
sub edx, ebx
mov dword [esp + 0x10], 4
lea esp, [esp]
mov bl, byte [edi + eax]
xor bl, byte [eax]
add eax, 4
mov byte [eax + ebp - 4], bl
mov bl, byte [edx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
mov bl, byte [eax - 2]
xor bl, byte [esi - 1]
add esi, 4
mov byte [ecx - 3], bl
mov bl, byte [eax - 1]
xor bl, byte [esi - 4]
mov byte [ecx - 2], bl
dec dword [esp + 0x10]
jne 0x1001f1a0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10020480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002bffb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc2c
mov eax, dword [0x1003b270]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
xor esi, esi
mov word [ebp - 0x414], si
mov ecx, 0xff
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esp
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
push str.dataLgsInfocfg.dat
push eax
lea ecx, [ebp - 0x414]
push 0x10034f0c
push ecx
call dword [sym.imp.MSVCR71.dll_swprintf]
lea edx, [ebp - 0x414]
push 0x1002d6fc
push edx
call dword [sym.imp.MSVCR71.dll__wfopen]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 0xc1c], eax
je 0x1002066a
call fcn.10016550
cmp eax, esi
mov dword [ebp - 0xc18], eax
je 0x1002066a
mov edx, dword [eax]
push 0x10
push str.876B9304_359C_42E2
mov ecx, eax
call dword [edx + 4]
push 1
push 0x400
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0xc30]
mov dword [ebp + 0xc], 0x400
mov dword [ebp - 4], esi
call fcn.10008a60
mov byte [ebp - 4], 1
mov dword [ebp - 0xc20], 1
call fcn.10001040
lea ecx, [ebp - 0xc20]
push ecx
lea ecx, [ebp - 0xc30]
mov dword [ebp - 0xc38], eax
mov dword [ebp - 0xc34], edx
call fcn.10008b30
lea edx, [ebp - 0xc38]
push edx
lea ecx, [ebp - 0xc30]
call fcn.10008b80
mov ebx, dword [ebp + 8]
add ebx, 0x224
push ebx
lea ecx, [ebp - 0xc30]
call fcn.10008a90
xor edi, edi
cmp edi, dword [ebx]
jge 0x100205c4
mov edx, dword [ebp + 8]
mov ecx, edi
imul ecx, ecx, 0x1c
lea eax, [ebp - 0xc30]
push eax
lea ecx, [ecx + edx + 0x228]
call fcn.10008f70
inc edi
jmp 0x100205a2
lea ecx, [ebp - 0xc30]
call fcn.10008a80
mov ecx, dword [ebp - 0xc18]
mov edx, dword [ecx]
lea edi, [ebp + 0xc]
push edi
lea edi, [ebp - 0x814]
push edi
push eax
lea eax, [ebp - 0xc14]
push eax
push 1
call dword [edx + 8]
test eax, eax
je 0x10020615
mov ecx, dword [ebp - 0xc1c]
movzx edx, word [ebp + 0xc]
push ecx
push 1
push edx
mov eax, edi
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
mov esi, eax
dec esi
neg esi
sbb esi, esi
inc esi
lea ecx, [ebp - 0xc30]
mov byte [ebp - 4], 0
call fcn.1000df20
jmp 0x10020636
mov ecx, dword [ebp - 0xc1c]
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCR71.dll_fclose]
mov eax, dword [ebp - 0xc18]
add esp, 4
test eax, eax
je 0x10020666
lea edx, [ebp - 0xc18]
push edx
call fcn.10015ec0
add esp, 4
mov eax, esi
jmp 0x1002066c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1001590b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10022540
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x1003b270]
push ebx
mov ebx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 1
mov edx, dword [eax + 4]
push esi
push edi
mov dword [ebx + 0xc], edx
jb 0x100226a1
cmp ecx, 0x38
jbe 0x1002258a
mov dword [ebp + 0xc], 0x38
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebx + 0x10]
mov ecx, 0x12
mov esi, 0x10034f78
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x58]
mov ecx, 0x400
mov esi, 0x10034fc0
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1c]
xor eax, eax
mov esi, edx
mov dword [esp + 0x10], 0x12
nop
xor edx, edx
mov dword [esp + 0xc], 4
lea ebx, [ebx]
movzx edi, byte [ecx]
shl edx, 8
or edx, edi
mov edi, dword [ebp + 0xc]
inc ecx
inc eax
cmp eax, edi
jne 0x100225f7
xor eax, eax
lea ecx, [esp + 0x1c]
dec dword [esp + 0xc]
jne 0x100225e0
mov edi, dword [esi]
xor edi, edx
mov edx, dword [esp + 0x10]
mov dword [esi], edi
add esi, 4
dec edx
mov dword [esp + 0x10], edx
jne 0x100225d0
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea esi, [ebx + 0x10]
mov edi, edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.10021f00
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add esi, 4
inc edi
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0x12
jb 0x10022620
lea eax, [ebx + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
mov esi, dword [esp + 0xc]
xor edi, edi
lea ebx, [ebx]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.10021f00
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add esi, 4
inc edi
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0x100
jl 0x10022660
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add ecx, 0x400
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jne 0x10022654
mov ecx, dword [esp + 0x54]
mov eax, ebx
call fcn.1001590b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10025160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xdc
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + 4]
mov edx, ecx
mov cl, byte [eax + 0x81]
xor ebx, ebx
cmp cl, bl
push esi
mov esi, dword [esp + 0xec]
jne 0x1002519e
mov cl, byte [esi]
cmp byte [eax + 0x10], cl
jge 0x10025192
mov eax, dword [eax + 8]
jmp 0x10025196
mov edx, eax
mov eax, dword [eax]
cmp byte [eax + 0x81], bl
je 0x10025188
cmp edx, dword [ebp + 4]
je 0x100251ae
mov al, byte [esi]
cmp al, byte [edx + 0x10]
jge 0x1002522f
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
push edi
mov byte [esp + 0x44], cl
xor eax, eax
mov byte [esp + 0x14], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov ecx, 0xc
lea edi, [esp + 0x45]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov al, byte [esi]
mov byte [esp + 0x7c], al
mov ecx, 0x1a
lea esi, [esp + 0x14]
lea edi, [esp + 0x84]
mov dword [esp + 0x78], ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x7c]
push ecx
push edx
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
call fcn.10024f30
mov eax, dword [eax]
pop edi
pop esi
pop ebp
add eax, 0x18
pop ebx
add esp, 0xdc
ret 4
pop esi
pop ebp
lea eax, [edx + 0x18]
pop ebx
add esp, 0xdc
ret 4
Function at 0x10027b39
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1003b270]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10027abb
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10027b9d
cmp dword [ebp - 0x1c], 5
jb 0x10027bb5
jmp 0x10027bb1
cmp dword [ebp - 0x10], 1
jne 0x10027bb5
cmp dword [ebp - 0x1c], 4
ja 0x10027bb1
jne 0x10027bb5
cmp dword [ebp - 0x18], 0
jbe 0x10027bb5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x100365a0
call fcn.10015843
test eax, eax
jge 0x10027bd6
mov byte [0x1003c82c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1001590b
add ebp, 0x78
leave
ret

Function at 0x10027f60
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1002c253
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x1003b270]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x1a0], eax
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x100365dc
xor ebx, ebx
mov dword [esp + 0x1b0], ebx
lea ecx, [esi + 0xc]
mov dword [esi], 0x10036608
call fcn.10028c30
mov byte [esp + 0x1b0], 1
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.10001a60
mov byte [esp + 0x1b0], 2
lea ebp, [esi + 0x4c]
mov ecx, ebp
call fcn.10001a60
mov byte [esp + 0x1b0], 3
mov eax, 5
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], eax
mov byte [esp + 0x1b0], 4
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], eax
mov byte [esp + 0x1b0], al
lea eax, [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x1b0], 6
lea eax, [esi + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x1b0], 7
lea eax, [esi + 0x20]
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xffffffff
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [eax], 2
lea eax, [esp + 0x14]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push 1
mov ecx, edi
call fcn.10001a70
push ebx
push 1
mov ecx, ebp
call fcn.10001a70
mov dword [esi + 0x44], ebx
mov dword [esp + 0x1b0], 0xffffffff
mov ecx, dword [esp + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x198]
pop ebx
call fcn.1001590b
add esp, 0x1a4
ret
Function at 0x100281d0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
mov ebx, 1
push eax
mov dword [esp + 0x18], ebx
call ebp
test eax, eax
jne 0x1002821f
mov eax, dword [esi + 8]
push 0x10
lea edx, [esi + 0x20]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1002822b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
je 0x1002822b
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x100282d9
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x12c]
push edx
mov dword [esp + 0x134], eax
mov dword [esp + 0x30], eax
push 0
inc eax
push eax
mov dword [esp + 0x138], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], 0x7a120
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x100282d9
mov ecx, dword [esi + 8]
lea eax, [esp + 0x20]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x100282d9
mov eax, dword [esi + 8]
lea edx, [esp + 0x124]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100282c7
mov edx, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push edx
mov edi, ebx
mov dword [esp + 0x28], 0
call ebp
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x28
mov dword [esp + 0x10], eax
jl 0x10028232
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x100285b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c2d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x614
mov eax, dword [0x1003b270]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x60c], ebx
xor edi, edi
mov dword [ebp - 0x604], edi
mov dword [ebp - 0x608], edi
xor esi, esi
mov dword [ebp - 0x600], esi
lea ebx, [ebx]
mov al, byte [ebx + 0x30]
test al, al
je 0x10028644
mov dword [ebp - 4], edi
push edi
push 0x5e8
lea eax, [ebp - 0x5fc]
push eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x610], eax
cmp eax, edi
jg 0x10028666
mov byte [ebx + 0x30], 0
mov ebx, dword [ebx + 4]
cmp ebx, edi
je 0x1002863d
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
mov dword [ebp - 4], 0xffffffff
push esi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1001590b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0xc]
push eax
lea eax, [ebp - 0x5fc]
push eax
call fcn.10029630
cmp esi, edi
jne 0x100286c8
mov dword [ebp - 0x620], 0x802
push 0x802
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov edx, eax
mov dword [ebp - 0x61c], edx
cmp edx, edi
je 0x100286ac
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x100286ae
xor edx, edx
mov esi, edx
mov dword [ebp - 0x600], esi
xor edi, edi
cmp esi, edi
jne 0x100286c8
mov dword [ebp - 4], 0xffffffff
jmp 0x10028600
mov dword [ebp - 0x604], edi
mov edi, edi
lea ecx, [ebp - 0x608]
push ecx
lea edx, [ebp - 0x604]
push edx
push 0x800
push esi
lea ecx, [ebx + 0xc]
call fcn.10028e90
cmp eax, 1
jne 0x10028796
mov ax, word [ebp - 0x604]
mov word [esi + 0x800], ax
lea edi, [ebx + 0x98]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebx + 0x68]
call fcn.100282f0
lea ecx, [ebx + 0x48]
call fcn.10001af0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x600], 0
mov dword [ebp - 0x614], 0x802
push 0x802
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov edx, eax
mov dword [ebp - 0x618], edx
test edx, edx
je 0x10028764
mov ecx, 0x200
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x10028766
xor edx, edx
mov esi, edx
mov dword [ebp - 0x600], esi
test esi, esi
jne 0x100286d0
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x10028600
mov dword [ebp - 4], 0xffffffff
xor edi, edi
jmp 0x10028600