joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1018c310
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
call 0x1018c31c
pop eax
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x1c], xmm0
push eax
call sub.kernel32.dll_GetSystemInfo
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1018c622
mov ecx, dword [esp + 0x58]
xor edx, edx
mov edi, dword [esp + 0x60]
mov ebp, dword [esp + 0x54]
mov eax, ecx
div esi
lea eax, [esi + ecx]
sub eax, edx
test edx, edx
cmove eax, ecx
test eax, eax
cmove eax, esi
test edi, edi
mov dword [esp + 0x14], eax
je 0x1018c4f2
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], 0
xor eax, eax
xor esi, esi
lea edx, [ebp + edi*8]
nop word cs:[eax + eax]
nop
mov ecx, esi
mov esi, ebp
mov edi, dword [esi]
lea ebp, [esi + 8]
cmp edi, 2
jne 0x1018c40d
cmp ebp, edx
mov esi, ecx
je 0x1018c47a
nop dword [eax + eax]
mov eax, dword [ebp]
cmp eax, 2
jne 0x1018c3f0
add ebp, 8
cmp ebp, edx
jne 0x1018c3d0
jmp 0x1018c47a
mov eax, dword [eax*4 + 0x1018c64c]
add eax, dword [esp + 0xc]
jmp eax
mov edi, dword [edi*4 + 0x1018c630]
add edi, dword [esp + 0xc]
jmp edi
cmp dword [esp + 8], 1
sete dl
test byte [esp], 1
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 4]
je 0x1018c5b4
mov ecx, eax
movzx eax, cl
and eax, 1
shl eax, 5
add eax, 0x20
test dl, dl
je 0x1018c5cb
not cl
mov dword [esp + 0xc], esi
movzx ecx, cl
and ecx, 1
lea esi, [ecx + ecx + 0x22]
push 0
push 0
push 0
push eax
push 0
push dword [esp + 0x2c]
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
call fcn.101a17d0
test edi, edi
je 0x1018c55f
cmp eax, 0xb7
jne 0x1018c56b
mov dword [ebp + 4], 9
jmp 0x1018c611
xor edx, edx
xor eax, eax
xor esi, esi
mov dword [esp + 0x10], 0
or dl, al
mov eax, 1
test dl, 1
jne 0x1018c5c2
jmp 0x1018c5cb
mov dword [ebp + 4], 0xb
jmp 0x1018c60e
push 0
push dword [esp + 0x10]
push 0
push esi
push edi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x1018c58a
mov dword [ebp], 0
mov dword [ebp + 4], edi
jmp 0x1018c5f6
call fcn.101a17d0
mov dword [ebp + 4], 0xc
jmp 0x1018c60e
or al, dl
mov ecx, eax
mov eax, 0x10
test cl, 1
je 0x1018c5cb
mov dword [ebp + 4], 7
jmp 0x1018c611
test esi, esi
je 0x1018c5d8
mov dword [ebp + 4], 8
jmp 0x1018c611
push eax
push 0x3000
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call sub.kernel32.dll_VirtualAlloc
test eax, eax
je 0x1018c602
mov dword [ebp], 1
mov ecx, dword [esp + 0x14]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
jmp 0x1018c618
call fcn.101a17d0
mov dword [ebp + 4], 0xa
mov dword [ebp + 8], eax
mov dword [ebp], 2
mov eax, ebp
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10246ecc
call fcn.101cbef0
ud2
Function at 0x10190870
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101aadb0
mov esi, ecx
lea eax, [ebp - 0x18]
mov edi, edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x10283b09]
push 4
push 0x1ec
call fcn.10013860
add esp, 8
test eax, eax
je 0x10190a16
mov ebx, dword [edi]
mov dword [ebp - 0x3c], esi
mov esi, dword [edi + 8]
mov dword [eax + 0xb0], 0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], eax
movzx ecx, word [ebx + 0x1ea]
mov edi, esi
not edi
add edi, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
lea ecx, [ecx + ecx*2]
mov word [eax + 0x1ea], di
add ecx, esi
mov edx, dword [ebx + ecx + 0xcc]
mov dword [ebp - 0x40], edx
movsd xmm0, qword [ebx + ecx + 0xc4]
movsd qword [ebp - 0x48], xmm0
movsd xmm0, qword [ebx + ecx + 0xb4]
movsd xmm1, qword [ebx + ecx + 0xbc]
mov ecx, esi
shl ecx, 4
cmp edi, 0xc
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
mov eax, dword [ebx + ecx]
mov edx, dword [ebx + ecx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
jae 0x10190a22
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], esi
inc esi
sub eax, esi
cmp eax, edi
jne 0x10190a3b
mov edx, dword [ebx + ecx + 0xc]
mov ecx, dword [ebx + ecx + 8]
lea eax, [ebx + 0xb4]
add eax, esi
mov dword [ebp - 0x20], ecx
lea ecx, [esi + esi*8]
mov dword [ebp - 0x30], edx
lea edx, [edi + edi*8]
lea ecx, [ecx + ecx*2]
lea edx, [edx + edx*2]
add eax, ecx
mov ecx, dword [ebp - 0x28]
add edx, edi
add ecx, 0xb4
push edx
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
shl esi, 4
shl edi, 4
add esi, ebx
push edi
push esi
mov esi, dword [ebp - 0x28]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov word [ebx + 0x1ea], ax
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x38]
movsd qword [ecx], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ecx + 8], xmm1
mov eax, dword [eax + 4]
movsd qword [ecx + 0x10], xmm0
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edx
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x24], edx
mov dword [ecx + 0x34], esi
mov dword [ecx + 0x38], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1ec
push 4
call fcn.101cb670
mov dword [ebp - 0x10], 0
push 0x10247ce4
push 0xb
push edi
call fcn.101cbcc0
add esp, 0xc
jmp 0x10190a56
mov dword [ebp - 0x10], 0
push 0x10247cd4
push 0x28
push str.assertion_failed:_src.len____dst.len__
call fcn.101cb950
add esp, 0xc
ud2
Function at 0x101934f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101aae50
mov edi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp edi, 0x201
jae 0x10193580
jmp 0x1019356e
jbe 0x10193606
cmp edi, 0x201
jae 0x10193580
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov esi, edi
jmp 0x101935b1
mov esi, dword [ebp - 0x34]
sub edi, esi
je 0x101935a5
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
mov edx, esi
push edi
call fcn.101ca4d0
add esp, 4
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x101935d5
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x10193669
cmp edi, esi
jne 0x10193560
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10193688
lea edi, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs edi, eax
cmp edi, 0x201
jb 0x1019356e
jmp 0x10193580
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x101936a5
lea eax, [ebp - 0x44]
push edi
push ebx
push eax
call fcn.10197bd0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10193653
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.10013870
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10193643
jmp 0x10193653
mov dword [ebp - 0x10], 0
push 0x10249f60
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.101cb950
add esp, 0xc
jmp 0x101936b4
push 0x10249f50
push eax
push edi
call fcn.101cbcc0
add esp, 0xc
ud2
Function at 0x1019b8e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.101c2ec0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ab070
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea edi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x101a29b0
push eax
push 0x1000
push edi
mov dword [ebp - 0x20], esi
push esi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1019ba33
mov esi, dword [sym.imp.kernel32.dll_SleepEx]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 1
jne 0x1019b96a
cmp dword [ebp - 0x2c], 0
jne 0x1019ba39
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x1019ba39
cmp edi, 0x1000
ja 0x1019ba75
xor ebx, ebx
nop dword [eax]
mov eax, edi
sub eax, ebx
jb 0x1019ba5d
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + ebx - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x101a29b0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x1019ba33
nop dword [eax]
push 1
push 0xffffffffffffffff
call esi
cmp dword [ebp - 0x30], 1
jne 0x1019b9e0
cmp dword [ebp - 0x2c], 0
jne 0x1019ba39
add ebx, dword [ebp - 0x28]
cmp ebx, edi
jne 0x1019b9a0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x101a29b0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1019b96a
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x10249a54
push edi
push ebx
call fcn.101cbd20
add esp, 0xc
jmp 0x1019ba8f
mov dword [ebp - 0x10], 0
push 0x10249a54
push 0x1000
push edi
call fcn.101cbcc0
add esp, 0xc
ud2
Function at 0x101a0890
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call fcn.101a8870
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x1c]
jo 0x101a08e4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call fcn.101a9930
add esp, 4
mov edi, dword [ebp - 0x18]
mov eax, edi
neg eax
jno 0x101a08f3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x101a090a
mov byte [esi], 4
test edi, edi
jne 0x101a091a
jmp 0x101a08e9
call dword [sym.imp.kernel32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x101a08e9
add edi, edi
push 2
push edi
push ebx
call fcn.10013870
add esp, 0xc
jmp 0x101a08e9

Function at 0x101a14f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x101a1569
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x101a1579
mov dword [esi + 4], 0
jmp 0x101a158b
cmp eax, 0x103
je 0x101a15a5
test eax, eax
js 0x101a1596
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x101a158e
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x10249854
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.10196f10
add esp, 0xc
mov ecx, esi
call fcn.1018ef90
mov ecx, 7
int 0x29
ud2
Function at 0x101a1610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
lea ebx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
xor edx, edx
test cl, 1
lea ecx, [esp + 0x20]
cmovne edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x101a1690
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x101a16b2
test eax, eax
js 0x101a169c
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x101a16a5
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0x10249854
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], 0
push eax
push ecx
push esi
call fcn.10196f10
add esp, 0xc
mov ecx, esi
call fcn.1018ef90
mov ecx, 7
int 0x29
ud2

Function at 0x101a1710
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 2
cmp byte [eax], 0
mov eax, 0x17
cmovne ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x101a1754
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x101a1768
cmp eax, 0x2739
jne 0x101a1793
push 1
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x101a179b
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x101a17ac
mov dword [esi + 4], edi
jmp 0x101a174a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x101a174d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x101a174d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x101a174d
Function at 0x101a8000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x101ab2b0
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
movq xmm0, qword [0x10283be0]
movd ecx, xmm0
pshufd xmm0, xmm0, 0x55
movd edx, xmm0
mov eax, ecx
or eax, edx
jne 0x101a8089
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x101a8127
mov ecx, dword [esi]
mov edx, dword [esi + 4]
movq xmm0, qword [esi]
mov eax, ecx
movq qword [0x10283be0], xmm0
or eax, edx
je 0x101a815d
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], edx
mov dword [esi + 0xc], eax
push edx
push ecx
push dword [ebp + 0xc]
push eax
mov ebx, ecx
mov dword [esi + 0x1c], ecx
call fcn.101c3250
mov edi, edx
mov dword [esi + 0x14], eax
mul ebx
imul ecx, edi, 0x3b9aca00
imul edi, ebx
mov ebx, dword [esi + 0x14]
add edi, edx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
imul edx, dword [esi + 0x10]
add edi, edx
sub dword [esi + 0xc], eax
mov edx, 0x3b9aca00
mov eax, ebx
sbb ecx, edi
mul edx
mov edi, eax
mov eax, dword [esi + 0xc]
mov ebx, edx
mov edx, 0x3b9aca00
imul ecx, ecx, 0x3b9aca00
add ebx, dword [esi + 0x18]
mul edx
add edx, ecx
push dword [esi + 0x10]
push dword [esi + 0x1c]
push edx
push eax
call fcn.101c3250
add edi, eax
adc edx, ebx
push 0
push 0x3b9aca00
push edx
push edi
call fcn.101c3250
imul ecx, eax, 0x3b9aca00
sub edi, ecx
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
mov ecx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x20]
push 0x10249ed0
push 0x10247a98
push eax
push 0x2b
push 0x10247ab8
call fcn.101cbbf0
add esp, 0x14
ud2
push 0x10249044
call fcn.101cbeb0
nop word [eax + eax]
push ebp
sub esp, 0x14
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
lea eax, [esi + 0x20]
push eax
call fcn.1018e940
add esp, 0x18
pop ebp
ret
Function at 0x101aa400
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov word [ebp - 0xe], ax
mov eax, dword [0x10283bcc]
cmp eax, 4
jne 0x101aa4f0
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
ja 0x101aa507
lea esi, [ebp - 0x1c4]
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c4], 0
inc ebx
lea eax, [ebp - 0x24]
push ebx
push esi
push eax
call fcn.101b5d90
add esp, 0xc
test byte [ebp - 0x24], 1
je 0x101aa48c
mov eax, dword [0x10248e50]
mov esi, dword [ebp + 8]
mov ecx, dword [0x10248e54]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x101aa518
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x44]
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x3c], 1
push ecx
push edx
push 0
push eax
call dword [sym.imp.ws2_32.dll_getaddrinfo]
mov esi, dword [ebp + 8]
test eax, eax
je 0x101aa4d9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x101aa518
mov eax, dword [ebp - 0x14]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x101aa518
call fcn.101ca750
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x18], eax
jbe 0x101aa43f
lea eax, [ebp - 0x18]
mov ecx, esi
mov edx, edi
push eax
push ebx
call fcn.101ca7d0
add esp, 8
mov eax, esi
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101aa680
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 8]
mov dword [esp + 8], 0x80
lea ecx, [esp + 0x20]
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x101aa75c
movzx ecx, word [esp + 0x20]
mov eax, dword [esp + 8]
cmp ecx, 2
je 0x101aa775
cmp ecx, 0x17
jne 0x101aa795
cmp eax, 0x1b
jbe 0x101aa7ac
movsd xmm0, qword [esp + 0x28]
movzx eax, word [esp + 0x22]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov word [esi], 1
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x30]
rol ax, 8
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0xe]
movsd xmm1, qword [esp + 0x16]
movzx edi, word [esp + 0x1e]
movsd qword [esi + 2], xmm0
movsd qword [esi + 0xa], xmm1
mov word [esi + 0x12], di
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x101aa7a5
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x101aa7a0
cmp eax, 0xf
jbe 0x101aa7bd
movzx ecx, word [esp + 0x22]
mov eax, dword [esp + 0x24]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x101aa7a5
mov byte [esi + 4], 2
mov dword [esi + 8], 0x1024a24c
mov word [esi], 2
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x1024a22c
push 0x3a
push 0x1024a1f0
call fcn.101cb950
push 0x1024a1e0
push 0x39
push str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.101cb950
int3
Function at 0x101ca7d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.101b1de0
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, eax
neg ecx
jno 0x101ca848
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x101ca872
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x101ca892
jmp 0x101ca89e
mov ecx, dword [0x10248e50]
mov edx, dword [0x10248e54]
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
jae 0x101ca89e
push 1
push eax
push dword [ebp - 0x1c]
call fcn.10013870
add esp, 0x40
jmp 0x101ca8a1
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x101ca89e
push 1
push ebx
push edi
call fcn.10013870
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret