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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1023eaa4]
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.10076378
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.10076378
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 0x10083123
cmp word [ecx], dx
je 0x10083123
mov eax, dword [0x1012a8f4]
push edi
dec eax
push eax
push 0x1012a7e0
call fcn.1008304b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10083196
cmp word [eax], dx
je 0x10083196
mov eax, dword [edi]
test eax, eax
je 0x10083147
cmp word [eax], dx
je 0x10083147
lea eax, [ebp - 0x10]
push eax
call fcn.10082a2e
jmp 0x10083150
lea eax, [ebp - 0x10]
push eax
call fcn.10082ac9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100831c0
mov eax, dword [0x1012a7dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1012a4d0
call fcn.1008304b
add esp, 0xc
test al, al
je 0x100831c0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1008318b
cmp word [eax], di
je 0x1008318b
lea eax, [ebp - 0x10]
push eax
call fcn.10082a2e
pop ecx
jmp 0x100831c2
lea eax, [ebp - 0x10]
push eax
call fcn.10082ac9
jmp 0x10083188
mov eax, dword [edi]
test eax, eax
je 0x100831ad
cmp word [eax], dx
je 0x100831ad
lea eax, [ebp - 0x10]
push eax
call fcn.100829e3
pop ecx
jmp 0x100831c0
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 0x1008328b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10082ed0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1008328b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1008328b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1008328b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10083218
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007a4bc
test ebx, ebx
je 0x10083286
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007a4bc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008328b
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 0x1008328b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10088901
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1008328d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005c76e
leave
ret
Function at 0x10088f81
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.10088efd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100890f0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100890f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100890a5
jg 0x10088fdd
test eax, eax
je 0x1008909b
push 1
push 0x1000
call fcn.10077d28
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10089000
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10089092
push 0x8000
push ebx
call fcn.10088e2e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10089029
jg 0x10089024
cmp ecx, 0x1000
jb 0x10089029
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1007b54c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1008906e
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 0x10089024
jl 0x10089055
test ecx, ecx
jne 0x10089016
push dword [ebp - 0xc]
push ebx
call fcn.10088e2e
push esi
call fcn.10077d85
add esp, 0xc
xor ebx, ebx
jmp 0x100890fe
cmp byte [edi + 0x24], 0
je 0x10089085
cmp dword [edi + 0x20], 5
jne 0x10089085
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10089090
mov ebx, dword [edi + 0x18]
jmp 0x10089092
xor ebx, ebx
push esi
call fcn.10077d85
pop ecx
jmp 0x100890fe
test ecx, ecx
jg 0x10089067
jl 0x100890a5
test eax, eax
jae 0x10089067
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007cd18
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100890c5
cmp byte [edi + 0x1c], 0
je 0x10089067
jmp 0x100890f6
push ebx
call fcn.10084f06
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10089067
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 0x100890fe
cmp byte [edi + 0x1c], 0
je 0x100890fb
mov ebx, dword [edi + 0x18]
jmp 0x100890fe
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1007cd18
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008d750
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
xor dl, dl
push ebx
mov ebx, dword [esp + 0x14]
mov eax, 0
test bl, 3
push ebp
sete al
push esi
test eax, eax
mov eax, dword [esp + 0x20]
push edi
mov dword [esp + 0x14], eax
je 0x1008d8a7
test al, 3
mov eax, 0
sete al
test eax, eax
je 0x1008d8a3
mov edx, ecx
mov dword [esp + 0x10], 0
shr edx, 2
xor esi, esi
test edx, edx
je 0x1008d85a
mov ebp, dword [esp + 0x24]
cmp edx, 8
jb 0x1008d821
mov edi, edx
lea eax, [ebp + 0x10]
mov ecx, ebx
and edi, 0xfffffff8
sub ecx, ebp
xorps xmm2, xmm2
mov dword [esp + 0x14], ecx
movaps xmm3, xmm2
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm2, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm3, xmm1
cmp esi, edi
jb 0x1008d7d0
mov ebp, dword [esp + 0x24]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edx
jae 0x1008d85e
mov ebx, dword [esp + 0x20]
lea edi, [esi*4]
add edi, ebp
sub ebx, ebp
mov ebp, dword [esp + 0x10]
sub edx, esi
add esi, edx
nop dword [eax]
mov eax, dword [edi + ebx]
lea edi, [edi + 4]
xor eax, dword [edi - 4]
or ebp, eax
sub edx, 1
jne 0x1008d840
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], ebp
jmp 0x1008d862
xor ebp, ebp
jmp 0x1008d862
mov ebp, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x1008d878
pop edi
xor eax, eax
test ebp, ebp
pop esi
pop ebp
sete al
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x24]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
jmp 0x1008d8a7
mov eax, dword [esp + 0x24]
xor edi, edi
test ecx, ecx
je 0x1008d964
cmp ecx, 0x20
jb 0x1008d945
mov esi, ecx
xorps xmm3, xmm3
and esi, 0xffffffe0
movaps xmm2, xmm3
mov dword [esp + 0x10], esi
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [ebx + edi + 0x10]
add edi, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x1008d8e0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x1008d964
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
mov al, byte [esi + ebx]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x1008d954
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0xc
ret
Function at 0x1008e2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010e596
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1023eaa4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.1005d920
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x1008e2ff
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1008e310
push 0x44
push esi
call fcn.1005c67b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100cabd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10114200
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1023eaa4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
cmp byte [ebx + 4], 0
jne 0x100cad24
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebx + 0x1c]
push eax
mov dword [ebp + 8], ecx
call fcn.10096cf0
test eax, eax
je 0x100cad24
mov ecx, dword [esi + 4]
add ebx, 8
push ebx
mov eax, dword [ecx]
call dword [eax + 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.10092d80
mov esi, dword [esi + 4]
mov ecx, esi
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 4], 0
push eax
mov edi, dword [esi]
lea eax, [ebp - 0x24]
push eax
push eax
call dword [edi + 0x18]
push eax
mov ecx, esi
call dword [edi + 0xc]
push eax
mov ecx, esi
call dword [edi + 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.10093850
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov esi, dword [eax + 4]
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x18]
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call dword [edi + 0x48]
push eax
lea ecx, [ebp - 0x24]
call fcn.10093850
mov eax, dword [ebp - 0x10]
push ebx
push ebx
mov esi, dword [eax + 4]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x44]
push eax
mov ecx, esi
call dword [edi + 0x1c]
push eax
mov ecx, esi
call dword [edi + 0x1c]
push eax
lea ecx, [ebp - 0x38]
call fcn.10092d80
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov byte [ebp - 4], 1
mov esi, dword [eax + 4]
lea eax, [ebp - 0x38]
push eax
push ebx
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call dword [edi + 0x3c]
push eax
mov ecx, esi
call dword [edi + 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x4c]
call fcn.10093850
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebx + 0x38]
call fcn.100a50e0
lea ecx, [ebp - 0x38]
mov byte [ebx + 0x34], 0
call sym.Bameware_Recode.dll_public_virtual:_void___thiscall_CryptoPP::Integer::destructor_void_
lea ecx, [ebp - 0x24]
call sym.Bameware_Recode.dll_public_virtual:_void___thiscall_CryptoPP::Integer::destructor_void_
lea eax, [ebx + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100d6820
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10115f34
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1023eaa4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x103101e4]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10312ccc]
cmp eax, dword [ecx + 4]
jle 0x100d68a6
push 0x10312ccc
call fcn.1005c70a
add esp, 4
cmp dword [0x10312ccc], 0xffffffff
jne 0x100d68a6
lea ecx, [ebp - 0x51]
mov dword [ebp - 4], 0
call fcn.100d69c0
push 0x10312ccc
mov dword [0x10312cc8], eax
mov dword [ebp - 4], 0xffffffff
call fcn.1005c6b9
add esp, 4
mov eax, dword [0x10312cc8]
push 0
push dword [ebp + 0xc]
push esi
push dword [eax]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x100d6920
cmp eax, 0xc000000d
jne 0x100d68ca
mov eax, 0x57
jmp 0x100d68d7
cmp eax, 0xc0000008
mov ecx, 6
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xf
push 0x10133000
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1008ceb0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x50]
call fcn.100d6640
push 0x10156674
lea eax, [ebp - 0x50]
push eax
call fcn.1005ddd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005c76e
mov esp, ebp
pop ebp
ret 8

Function at 0x100dfa70
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c0], 2
je fcn.100dfa20
mov al, 1
ret
Function at 0x100e14d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.100e1880
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x100e1556
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100e152e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.100ea990
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.100e1110
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85c0], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100e1880
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x100e192e
cmp dword [ecx + edx*4 + 0x17c], 0x100e1430
jne 0x100e192e
cmp dword [esi], 0
je 0x100e18c7
test edi, edi
je 0x100e192e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.100e0aa0
add esp, 0x10
cmp eax, 0xffffffff
je 0x100e192e
test al, 1
je 0x100e192e
cmp dword [esi], 0
jne 0x100e1917
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x1023f538]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x100e1917
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x100e192e
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x100e2230
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100e2278
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100ea990
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100e11e0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100e11e0
add esp, 8
pop edi
pop esi
ret
Function at 0x100e2360
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x1023eaa4]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push edi
mov edi, dword [esp + 0x114]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x100e2553
cmp byte [edi + 0x28a], 0
push esi
jne 0x100e2549
cmp byte [edi + 0x2a4], 0
jne 0x100e2549
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x10], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100e2405
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.100ea990
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.100e1110
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005c76e
add esp, 0x108
ret
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.1005e780
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100e246d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.100ea990
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.100e1110
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005c76e
add esp, 0x108
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [esp + 0x94]
push esi
push eax
call fcn.100e2a40
add esp, 0xc
test al, al
jne 0x100e24c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.100ea990
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100e1110
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005c76e
add esp, 0x108
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100e2a40
add esp, 0xc
test al, al
jne 0x100e2549
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.100ea990
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.100e1110
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005c76e
add esp, 0x108
ret
push edi
call fcn.100e1fe0
add esp, 4
pop esi
mov ecx, dword [esp + 0x10c]
pop edi
pop ebx
xor ecx, esp
call fcn.1005c76e
add esp, 0x108
ret
Function at 0x100e2dc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x1023eaa4]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x3f4], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100e2e20
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100e11e0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1005c76e
add esp, 0x18
ret
push dword [esi + 0x3f8]
mov dword [esp + 0x14], 1
call fcn.100e7990
push dword [esi + 0x3fc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.100e7990
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100e2e97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100e11e0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1005c76e
add esp, 0x18
ret
Function at 0x100e9c00
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100e9c1a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x10135848
push esi
call fcn.10088580
add esp, 8
test eax, eax
je 0x100e9c62
test ebp, ebp
je 0x100e9c53
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100e9c88
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100e9c88
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x100e9d3f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e9ca5
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1023f538]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100e9d35
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100e9d35
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e9cd7
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100e9cf0
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100e9d00
test ebp, ebp
je 0x100e9d2c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1023f53c]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1023f53c]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret