joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010cc03
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100fc7e4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010cc72
cmp esi, dword [ebp - 4]
je 0x1010cc6d
cmp dword [ebp + 0xc], 0
je 0x1010cc6d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1010cc4a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1010c755
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1010cc74
xor eax, eax
inc eax
jmp 0x1010cc74
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1010ccd9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10138018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100fc7e4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100fc7e4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1010cd50
cmp word [ecx], dx
je 0x1010cd50
mov eax, dword [0x10122704]
push edi
dec eax
push eax
push 0x101225f0
call fcn.1010cc78
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1010cdc3
cmp word [eax], dx
je 0x1010cdc3
mov eax, dword [edi]
test eax, eax
je 0x1010cd74
cmp word [eax], dx
je 0x1010cd74
lea eax, [ebp - 0x10]
push eax
call fcn.1010c65b
jmp 0x1010cd7d
lea eax, [ebp - 0x10]
push eax
call fcn.1010c6f6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1010cded
mov eax, dword [0x101225ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x101222e0
call fcn.1010cc78
add esp, 0xc
test al, al
je 0x1010cded
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1010cdb8
cmp word [eax], di
je 0x1010cdb8
lea eax, [ebp - 0x10]
push eax
call fcn.1010c65b
pop ecx
jmp 0x1010cdef
lea eax, [ebp - 0x10]
push eax
call fcn.1010c6f6
jmp 0x1010cdb5
mov eax, dword [edi]
test eax, eax
je 0x1010cdda
cmp word [eax], dx
je 0x1010cdda
lea eax, [ebp - 0x10]
push eax
call fcn.1010c610
pop ecx
jmp 0x1010cded
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1010ceb8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1010cafd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1010ceb8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1010ceb8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1010ceb8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1010ce45
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100ffa54
test ebx, ebx
je 0x1010ceb3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100ffa54
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010ceb8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010ceb8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100e9ec5
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1010ceba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008500c
leave
ret
Function at 0x1010ff89
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1010ff05
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101100f8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101100f8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101100ad
jg 0x1010ffe5
test eax, eax
je 0x101100a3
push 1
push 0x1000
call fcn.100ff2a2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10110008
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1011009a
push 0x8000
push ebx
call fcn.1010fe36
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10110031
jg 0x1011002c
cmp ecx, 0x1000
jb 0x10110031
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101025c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10110076
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1011002c
jl 0x1011005d
test ecx, ecx
jne 0x1011001e
push dword [ebp - 0xc]
push ebx
call fcn.1010fe36
push esi
call fcn.100fc03f
add esp, 0xc
xor ebx, ebx
jmp 0x10110106
cmp byte [edi + 0x24], 0
je 0x1011008d
cmp dword [edi + 0x20], 5
jne 0x1011008d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10110098
mov ebx, dword [edi + 0x18]
jmp 0x1011009a
xor ebx, ebx
push esi
call fcn.100fc03f
pop ecx
jmp 0x10110106
test ecx, ecx
jg 0x1011006f
jl 0x101100ad
test eax, eax
jae 0x1011006f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101029e2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101100cd
cmp byte [edi + 0x1c], 0
je 0x1011006f
jmp 0x101100fe
push ebx
call fcn.1010ab11
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1011006f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10110106
cmp byte [edi + 0x1c], 0
je 0x10110103
mov ebx, dword [edi + 0x18]
jmp 0x10110106
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101029e2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006f40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066862
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10090730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
push edx
call fcn.100229b0
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
lea eax, [edx + 0x10]
mov cl, 1
mov dword [ebp - 0x10], eax
mov dword [eax + 0x48], 0x10
mov byte [eax + 0x41], cl
mov dword [eax + 0x4c], eax
mov dword [ebp - 4], 4
lea eax, [edx + 0x60]
mov dword [ebp - 0x10], eax
mov dword [eax + 0x48], 0x10
mov byte [eax + 0x41], cl
mov dword [eax + 0x4c], eax
mov byte [ebp - 4], 7
mov eax, dword [edx + 0xac]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100125e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062d63
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10090730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100430db
mov dword [ebp - 4], 0
push 4
call fcn.100444da
mov edi, eax
add esp, 4
test edi, edi
je 0x10012668
call fcn.10042cb5
mov dword [edi], eax
call fcn.10042a74
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100429a9
mov byte [ebp - 4], 1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1001265a
inc eax
mov dword [ebx + 4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100429d1
jmp 0x1001266a
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100145c0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 0
push 0
push 0
push 0x1006eb14
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x410], ebx
test ebx, ebx
je 0x10014616
push 0
push closesocket
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x10014628
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x407]
push 0
push eax
mov byte [ebp - 0x408], 0
call fcn.10043bc0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea ecx, [ebp - 0x40c]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
push esi
call ebx
cmp dword [ebp - 0x40c], 0
je 0x100146d4
lea ebx, [ebx]
lea eax, [ebp - 0x408]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10014680
sub eax, edx
push eax
lea eax, [ebp - 0x408]
push eax
mov ecx, edi
call fcn.10004450
push 0x400
lea ecx, [ebp - 0x407]
push 0
push ecx
mov byte [ebp - 0x408], 0
call fcn.10043bc0
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call ebx
cmp dword [ebp - 0x40c], 0
jne 0x10014670
cmp dword [edi + 0x10], 0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jne 0x100146fe
call esi
mov ecx, dword [ebp - 0x410]
push ecx
call esi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret
mov bl, 1
call esi
mov edx, dword [ebp - 0x410]
push edx
call esi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.100444a1
mov esp, ebp
pop ebp
ret
Function at 0x1001ae20
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068043
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [esi + 0x30]
lea ebx, [edx + 4]
push ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
call fcn.100229b0
lea eax, [edx + 0x18]
mov ecx, eax
neg ecx
and ecx, 0xf
add ecx, eax
mov dword [ebp - 0x40], eax
mov dword [eax + 0x100], 0x3c
mov byte [eax + 0xf9], 1
mov dword [eax + 0x104], ecx
mov dword [ebp - 4], 5
mov dword [edx], vtable.CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec_.0
mov dword [ebx], vtable.CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec_.1.0
mov dword [ebp - 4], 7
lea edi, [esi + 4]
push edi
call fcn.100229b0
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 0xd
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [ebp - 4], 0x14
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [ebp - 4], 0x1b
lea ecx, [edx + 4]
mov dword [esi], vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec___class_CryptoPP::CBC_Decryption_.0
mov dword [edi], vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_1__class_CryptoPP::Rijndael::Dec___class_CryptoPP::CBC_Decryption_.1.0
mov dword [esi + 8], edx
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x34], bl
mov byte [ebp - 4], 0x21
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x34]
mov edx, 0x100781b0
call fcn.100085a0
add esp, 4
mov byte [ebp - 4], 0x22
push eax
mov eax, dword [ebp - 0x18]
push 0x10
push eax
mov ecx, esi
call fcn.10022a00
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x48]
cmp ecx, ebx
je 0x1001af3d
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, edx
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.10043d88
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b6e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067c9a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edi, [esi + 0x30]
push edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x3c], edi
call fcn.1001ce90
mov dword [ebp - 4], 1
mov dword [edi], vtable.CryptoPP::BlockCipherFinal_1__class_CryptoPP::DES_EDE3::Base_.0
mov dword [edi + 4], vtable.CryptoPP::BlockCipherFinal_1__class_CryptoPP::DES_EDE3::Base_.1.0
mov dword [ebp - 4], 3
lea edx, [esi + 4]
push edx
call fcn.100229b0
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 9
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov byte [ebp - 4], 0x10
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [ebp - 4], 0x17
lea ecx, [edi + 4]
mov dword [esi], vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_1__class_CryptoPP::DES_EDE3::Base___class_CryptoPP::CBC_Decryption_.0
mov dword [edx], vtable.CryptoPP::CipherModeFinalTemplate_CipherHolder_class_CryptoPP::BlockCipherFinal_1__class_CryptoPP::DES_EDE3::Base___class_CryptoPP::CBC_Decryption_.1.0
mov dword [esi + 8], edi
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x34], bl
mov byte [ebp - 4], 0x1d
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
mov edx, 0x100781b0
call fcn.100085a0
add esp, 4
mov byte [ebp - 4], 0x1e
push eax
mov eax, dword [ebp - 0x18]
push 0x18
push eax
mov ecx, esi
call fcn.10022a00
mov byte [ebp - 4], 0x1d
mov ecx, dword [ebp - 0x44]
cmp ecx, ebx
je 0x1001b7d5
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, edx
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.10043d88
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e0d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062808
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10090730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
push 0x1000
mov word [ebp - 0x18], 0xa6a5
mov dword [ebp - 0x16], eax
mov word [ebp - 0x10], 0xb2b1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], 0x1000
call fcn.10042ee1
mov edi, eax
mov dword [ebp - 0x2c], edi
add esp, 4
mov word [ebp - 0x1c], bx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
mov dx, word [ebp - 0x14]
mov dword [eax], ecx
mov word [eax + 4], dx
mov eax, dword [ebp + 0x10]
mov esi, 6
add eax, esi
mov dword [ebp - 0x20], esi
cmp eax, 0x1000
jbe 0x1001e164
lea esi, [ebp - 0x2c]
call fcn.1001e7c0
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [esi + edi]
push edx
call fcn.100434e0
add esi, dword [ebp + 0x10]
add esp, 0xc
mov eax, esi
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x28]
sub eax, ebx
add eax, 2
sub ecx, ebx
cmp eax, ecx
jbe 0x1001e19f
lea esi, [ebp - 0x2c]
call fcn.1001e7c0
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x2c]
mov cx, word [ebp - 0x10]
mov edx, dword [ebp + 8]
mov word [esi + edi], cx
add esi, 2
push 0
mov dword [ebp - 0x20], esi
sub esi, ebx
push esi
lea eax, [ebx + edi]
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, esi
je 0x1001e204
mov dword [ebp - 4], 0xffffffff
xor esi, esi
cmp edi, esi
je 0x1001e1ef
push edi
call fcn.10043e3b
mov dword [ebp - 0x2c], esi
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x1000
mov dword [ebp - 0x2c], esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor esi, esi
cmp edi, esi
je 0x1001e22d
push edi
call fcn.10043e3b
mov dword [ebp - 0x2c], esi
add esp, 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x1000
mov dword [ebp - 0x2c], esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001e250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x28], eax
xor eax, eax
push esi
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov esi, 6
mov edx, dword [ebp + 8]
push 0
push esi
lea ecx, [ebp - 0x1e]
sub ecx, esi
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x1001e30a
test eax, eax
je 0x1001e2fa
cmp eax, 0x2746
je 0x1001e2fa
sub esi, eax
test esi, esi
jg 0x1001e295
cmp byte [ebp - 0x24], 0xa5
jne 0x1001e30a
cmp byte [ebp - 0x23], 0xa6
jne 0x1001e30a
push edi
mov edi, dword [ebp - 0x22]
add edi, 2
mov esi, edi
nop
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, edi
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x1001e31d
test eax, eax
je 0x1001e2f9
cmp eax, 0x2746
je 0x1001e2f9
sub esi, eax
test esi, esi
jg 0x1001e2d0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100444a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.100444a1
mov esp, ebp
pop ebp
ret
Function at 0x1001e4a0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10090730]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push edi
lea eax, [ebp - 0x118]
push eax
push 0x8004667e
mov ebx, 1
push esi
mov edi, ecx
mov dword [ebp - 0x120], 0xffffffff
mov dword [ebp - 0x124], 4
mov dword [ebp - 0x118], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x118], eax
cmp eax, 0xffffffff
jne 0x1001e62f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1001e62f
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x12c]
push edx
push 0
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x12c], ecx
push 0
lea ecx, [esi + 1]
push ecx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
push edi
push str.e_32m__Connect_select_ret__de_0m
call fcn.10059be2
push 0x100
push str..._t_baibaoyunprotocol_networkTSocket.cpp
push str.TSocket::Connect
push str._t_te_34m__s__s__d_e_0m__n
call fcn.10059be2
call fcn.10046bbe
mov ebx, eax
call fcn.10046bbe
mov edx, dword [ebx]
push edx
mov dword [ebp - 0x11c], eax
call fcn.10047a43
push eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
push ecx
push str.e_32m__Connect_field_errno_:_d_err:__se_0m
call fcn.10059be2
push 0x101
push str..._t_baibaoyunprotocol_networkTSocket.cpp
push str.TSocket::Connect
push str._t_te_34m__s__s__d_e_0m__n
call fcn.10059be2
add esp, 0x38
test edi, edi
jle 0x1001e62f
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x120]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edi, eax
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x1001e5f3
mov dword [ebp - 0x118], eax
push eax
call fcn.10047a43
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x120]
push eax
push ecx
push edx
push edi
push str.e_32m__ret:_d_error:_d_len:_d_err:_se_0m
call fcn.10059be2
push 0x107
push str..._t_baibaoyunprotocol_networkTSocket.cpp
push str.TSocket::Connect
push str._t_te_34m__s__s__d_e_0m__n
call fcn.10059be2
add esp, 0x28
lea eax, [ebp - 0x11c]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x11c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x118]
pop edi
xor ecx, ebp
pop ebx
call fcn.100444a1
mov esp, ebp
pop ebp
ret