joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b620
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.100d0470
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x10077b80
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x1006b746
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x1006b67e
cmp dword [ebp - 0x18], 0
jne 0x1006b755
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1006b755
cmp ebx, 0x1000
ja 0x1006b77d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x1006b76c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x10077b80
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x1006b74d
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x1006b6f0
cmp dword [ebp - 0x18], 0
jne 0x1006b752
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x1006b6b0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x10077b80
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x1006b67e
call sub.KERNEL32.dll_GetLastError
jmp 0x1006b755
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100ddd48
push ebx
push edi
call fcn.100b6b50
add esp, 0xc
jmp 0x1006b790
push 0x100ddd48
push 0x1000
push ebx
call fcn.100b6af0
add esp, 0xc
ud2

Function at 0x10070670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.1007ed60
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x100706d1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.100766d0
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x100706ce
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x100706db
mov byte [esi], 4
test edi, edi
jne 0x100706ea
jmp 0x100706d6
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
add esp, 0x18
jmp 0x100706f8
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x100706d6
add edi, edi
push 2
push edi
push ebx
call fcn.10004680
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100735b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x100735f4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x100735fa
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1007362d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1007363d
mov dword [esi + 4], 0
jmp 0x1007364f
cmp eax, 0x103
je 0x10073668
test eax, eax
js 0x1007365a
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 sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10073652
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100dda10
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.100613c0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.100374e0
mov ecx, 7
int 0x29
ud2

Function at 0x100736d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10073714
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1007371a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x10073754
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10073778
test eax, eax
js 0x10073763
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x1007376e
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x100dda10
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.100613c0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.100374e0
mov ecx, 7
int 0x29
ud2
Function at 0x10073d00
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, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x10073d44
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x10073d57
cmp eax, 0x2739
jne 0x10073d80
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x10073d88
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x10073d98
mov dword [esi + 4], edi
jmp 0x10073d3a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10073d3d
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x10073d3d
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call sub.WS2_32.dll_closesocket
jmp 0x10073d3d
Function at 0x10074360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, 0x7fffffff
pxor xmm0, xmm0
lea ebx, [esp + 8]
lea eax, [esp + 0x20]
mov dword [esp + 8], pe_nt_image_headers32
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
cmp ecx, 0x7fffffff
cmovb edi, ecx
mov ecx, dword [ebp + 0x10]
push ebx
push eax
push ecx
push edi
push dword [ebp + 8]
push edx
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x1007442e
movzx edx, word [esp + 0x20]
mov ecx, dword [esp + 8]
cmp edx, 0x17
je 0x1007449a
cmp edx, 2
jne 0x10074487
cmp ecx, 0xf
jbe 0x1007452d
movzx edx, word [esp + 0x22]
mov ecx, dword [esp + 0x24]
rol dx, 8
mov dword [esp + 0xc], ecx
movd xmm0, ecx
mov word [esp + 0x10], dx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x100744c2
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100744d9
movzx ecx, word [esp + 0x20]
mov eax, dword [esp + 8]
cmp ecx, 0x17
je 0x100744e8
cmp ecx, 2
jne 0x10074487
cmp eax, 0xf
jbe 0x1007452d
movzx ecx, word [esp + 0x22]
mov eax, dword [esp + 0x24]
rol cx, 8
mov dword [esp + 0xc], eax
movd xmm0, eax
mov word [esp + 0x10], cx
pslld xmm0, 0x10
movups xmm1, xmmword [esp + 0xe]
jmp 0x1007450c
mov byte [esp + 0xe], 2
mov eax, 0x100de8d0
mov ecx, dword [esp + 0xe]
mov dword [esi + 8], ecx
jmp 0x100744dd
cmp ecx, 0x1b
jbe 0x10074543
movzx ecx, word [esp + 0x22]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov ebx, 1
movd xmm0, ebx
rol cx, 8
mov dword [esi], eax
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edx
mov word [esi + 0x20], cx
jmp 0x10074525
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov word [esi + 4], 2
jmp 0x10074525
cmp eax, 0x1b
jbe 0x10074543
movzx eax, word [esp + 0x22]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movups xmm1, xmmword [esp + 0x28]
mov edi, 1
movd xmm0, edi
rol ax, 8
mov dword [esi], 0
movd dword [esi + 4], xmm0
movups xmmword [esi + 8], xmm1
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov word [esi + 0x20], ax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100de85c
push 0x42
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
call fcn.100b0df0
add esp, 0xc
ud2
push 0x100de8b0
push 0x43
push 0x100de86c
call fcn.100b0df0
add esp, 0xc
ud2
Function at 0x10077770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x10077822
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push 0x10077b80
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x100777e3
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x100777c0
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x10077803
mov ecx, edi
call fcn.1007e670
cmp al, 0xb
jne 0x100777f5
jmp 0x10077814
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov ecx, edi
call fcn.1007e670
cmp al, 0xb
je 0x10077814
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x1007781a
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100da1bc
push ecx
push ebx
call fcn.100b6a90
add esp, 0xc
ud2

Function at 0x10077ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x10077f94
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x10077eed
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x10077f61
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x10077f7d
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x10077f27
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x10077f44
jmp 0x10077f38
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x10077f3f
cmp eax, 0x6d
jne 0x10077f56
mov word [esi], 4
jmp 0x10077f4e
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x10077f4e
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.1003fb00
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x10077ef8
mov ecx, ebx
push 1
call fcn.1003fb00
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x10077ef8
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.10039830
ud2
Function at 0x1007c450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.1007ed60
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
test edx, edx
je 0x1007c4b2
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.1006fb00
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1007c4bf
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1007c4d5
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x1007c4cd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.10037c50
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x1007c4cd
add ebx, ebx
push 2
push ebx
push edi
call fcn.10004680
add esp, 0x34
jmp 0x1007c4d0

Function at 0x1007d0a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1007d0e5
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x100dde8c
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0x1005b9e0
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x100ddeb8
push eax
call fcn.100b0d70
add esp, 8
ud2
Function at 0x1007dd20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x100f5654]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call fcn.10004670
add esp, 8
test eax, eax
je 0x1007ddbb
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x1007de20
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x1007dd73
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x1007ddb1
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x1007dd99
push dword [ebx + 8]
push eax
push dword [ebp - 0x10]
call fcn.10004680
add esp, 0xc
push 4
push 8
push esi
call fcn.10004680
add esp, 0xc
call sub.KERNEL32.dll_GetLastError
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call fcn.100a32d0
add esp, 8
ud2
Function at 0x1007e000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x1007e070
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x1007e0aa
cmp dword [ebp - 0x14], 0
je 0x1007e091
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1007e0cc
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x1011210c]
mov dword [edi + 8], eax
lock cmpxchg dword [0x1011210c], edi
jne 0x1007e050
mov byte [0x10112108], 1
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1007e0a0
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1007e10c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x1007e095
mov esi, dword [ebp - 0x10]
jmp 0x1007e0a0
mov esi, dword [edi]
jmp 0x1007e09f
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x100de2d4
push 0x100de334
push eax
call fcn.10039870
add esp, 8
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x100de2ec
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x100de324
push eax
call fcn.100b0d70
add esp, 8
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x100de2ec
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.100398b0
ud2
Function at 0x1007e140
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x10112108]
test al, al
je 0x1007e2c8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1007e166
cmp eax, 3
jne 0x1007e2c8
mov edi, dword [0x1011210c]
test edi, edi
je 0x1007e2c8
mov dword [ebp - 0x10], 0
jmp 0x1007e187
mov edi, dword [edi + 8]
test edi, edi
je 0x1007e1b6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1007e307
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1007e180
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1007e180
test byte [ebp - 0x10], 1
je 0x1007e2c8
mov edi, dword [0x1011210c]
test edi, edi
je 0x1007e2c8
mov dword [ebp - 0x10], 0
jmp 0x1007e1e7
mov edi, dword [edi + 8]
test edi, edi
je 0x1007e216
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1007e307
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1007e1e0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1007e1e0
test byte [ebp - 0x10], 1
je 0x1007e2c8
mov edi, dword [0x1011210c]
test edi, edi
je 0x1007e2c8
mov dword [ebp - 0x10], 0
jmp 0x1007e247
mov edi, dword [edi + 8]
test edi, edi
je 0x1007e276
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1007e307
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1007e240
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1007e240
test byte [ebp - 0x10], 1
je 0x1007e2c8
mov edi, dword [0x1011210c]
test edi, edi
je 0x1007e2c8
mov dword [ebp - 0x10], 0
jmp 0x1007e297
mov edi, dword [edi + 8]
test edi, edi
je 0x1007e2c2
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1007e307
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1007e290
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x1007e290
test byte [ebp - 0x10], 1
jne 0x1007e2d2
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x1011210c]
jmp 0x1007e2dd
mov edi, dword [edi + 8]
test edi, edi
je 0x1007e2c8
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1007e307
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1007e2da
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x1007e2da
push 0x100de358
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
call fcn.100b0df0
add esp, 0xc
ud2
Function at 0x10080030
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
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 dword [ebp - 0x10], eax
mov eax, dword [0x101120f4]
cmp eax, 3
jne 0x10080116
cmp ebx, 0x17f
ja 0x10080127
lea esi, [ebp - 0x1c0]
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c0], 0
inc ebx
lea eax, [ebp - 0x20]
push ebx
push esi
push eax
call fcn.100ae5e0
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x100800b5
mov esi, dword [ebp + 8]
mov eax, dword [0x100dca88]
mov ecx, dword [0x100dca8c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x10080137
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push ecx
push edx
push 0
push eax
call sub.WS2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x10080100
call sub.WS2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x10080137
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x10080137
call fcn.100698e0
cmp ebx, 0x17f
jbe 0x10080068
mov ecx, esi
mov edx, edi
push dword [ebp - 0x10]
push ebx
call fcn.1006a710
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret