joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001cf8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10001d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.10010a50
mov edx, str.thread.entry_event
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x10001d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.10010a50
mov edx, str.thread.exit_event
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
mov esi, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x10001e26
push dword [ebp + 0xc]
push 0
call fcn.100132fc
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10001e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x10001ddf
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x10001dee
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.10010a50
mov edx, str.thread
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
call fcn.10001712
test edi, edi
je 0x10001e1d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100029ee
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x10002ab3
cmp byte [ebp + 8], 0
je 0x10002a39
test byte [eax], 8
je 0x10002a39
xor eax, eax
mov dword [ebp - 4], eax
call fcn.10010a50
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.10002f50
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.1000a43c
mov edi, eax
test edi, edi
je 0x10002ab3
call fcn.10010a50
cmp dword [esi + 4], eax
jne 0x10002a69
cmp dword [esi], 0x2733
je 0x10002a7b
call fcn.10010a50
cmp dword [esi + 4], eax
jne 0x10002aaf
cmp dword [esi], 0x4d5
jne 0x10002aaf
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.1000a43c
mov edi, eax
test edi, edi
jne 0x10002abe
call fcn.10010a50
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002ac7
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x10002ae8
call fcn.10010a50
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x10002b13
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, esi
call fcn.1000a43c
test eax, eax
jne 0x10002b16
call fcn.10010a50
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.10010a50
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2734
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.1000166f
test al, al
je 0x10002b50
call fcn.10010a50
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x2733
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.1000166f
test al, al
jne 0x10002b8f
mov edx, esi
mov ecx, edi
call fcn.10003027
test eax, eax
js 0x10002b8f
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push ecx
push ecx
mov ecx, edi
call fcn.10002fb4
add esp, 0x14
cmp eax, 0xffffffff
je 0x10002b8f
call fcn.10010a50
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10002b95
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x10002bc7
call fcn.10010a50
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x10002d30
cmp byte [ebp + 0x14], 0
je 0x10002bdf
test bl, 0x10
je 0x10002bdf
call fcn.10010a50
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x10002bbf
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.1000a43c
cmp dword [esi], 0x40
mov dword [esp + 0x14], eax
jne 0x10002c2c
call fcn.10010a50
mov dword [esi], 0x2746
jmp 0x10002c3f
cmp dword [esi], 0x4d2
jne 0x10002c46
call fcn.10010a50
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10002c4f
or eax, 0xffffffff
jmp 0x10002c66
call fcn.10010a50
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x10002d32
test bl, 0x10
je 0x10002c73
test eax, eax
je 0x10002d22
test bl, 1
jne 0x10002d30
call fcn.10010a50
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0x2733
mov ecx, esi
mov dword [esp + 0x2c], eax
call fcn.1000166f
test al, al
je 0x10002cbc
call fcn.10010a50
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x4d5
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.1000166f
test al, al
jne 0x10002d30
xor eax, eax
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.1000a43c
mov edi, eax
test edi, edi
jne 0x10002d08
call fcn.10010a50
and dword [esi], edi
mov dword [esi + 4], eax
jmp 0x10002d19
jle 0x10002d15
call fcn.10010a50
and dword [esi], 0
mov dword [esi + 4], eax
test edi, edi
js 0x10002d30
mov edi, dword [esp + 0x18]
jmp 0x10002be2
call fcn.10001996
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002db5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x10002de4
call fcn.10010a50
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x10002dfc
test bl, 0x10
je 0x10002dfc
call fcn.10010a50
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x10002dd8
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push esi
push ecx
push dword [ebp + 0xc]
call fcn.10002d39
add esp, 0xc
test eax, eax
jns 0x10002ddd
and bl, 1
test bl, bl
jne 0x10002ddb
call fcn.10010a50
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x2733
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.1000166f
test al, al
je 0x10002e54
call fcn.10010a50
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4d5
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.1000166f
test al, al
jne 0x10002ddb
xor eax, eax
mov dword [ebp - 0x128], edi
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor ecx, ecx
lea eax, [ebp - 0x12c]
push ecx
push ecx
push eax
push ecx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.1000a43c
mov dword [ebp - 8], eax
test eax, eax
jne 0x10002ea6
call fcn.10010a50
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x10002ebe
jle 0x10002eb6
call fcn.10010a50
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
js 0x10002ddb
mov edx, dword [ebp + 8]
push esi
push ecx
push dword [ebp + 0xc]
mov ecx, edi
call fcn.10002d39
add esp, 0xc
test eax, eax
js 0x10002e16
jmp 0x10002ddd

Function at 0x10003027
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x1000304d
call fcn.10010a50
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x100030a8
push ebx
xor eax, eax
mov dword [ebp - 0x204], edi
inc eax
mov dword [ebp - 0x100], edi
xor ebx, ebx
mov dword [ebp - 0x208], eax
push ebx
mov dword [ebp - 0x104], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.1000a43c
mov edi, eax
test edi, edi
js 0x100030a5
call fcn.10010a50
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000369a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
je 0x100036b9
push 0
push 0
jmp 0x10003722
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x100036cc
push 0
push 0x2719
jmp 0x10003722
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x18], 0
push edi
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x10003705
mov eax, 0x2746
jmp 0x10003712
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x1000372f
cmp eax, 0x3e5
je 0x1000372f
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.1000247d
jmp 0x1000373a
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.10002420
pop esi
pop ebp
ret 0x18

Function at 0x1000408a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10025c09
call fcn.10025330
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], ebx
or dword [edi + 8], 0xffffffff
mov dword [ebp - 4], ebx
lea esi, [edi + 0x10]
mov dword [edi + 0xc], ebx
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.1000a21c
mov dword [esi], eax
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], ebx
push ebx
push 1
mov byte [ebp - 4], 3
call fcn.10003fdc
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1000534d
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x2000
mov dword [ebp - 4], ecx
call fcn.10012eec
pop ecx
xor ebx, ebx
mov esi, eax
push ebx
push 0x23
push esi
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005378
mov ecx, dword [ebp - 4]
mov esi, str._save.dat
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005391
sub esi, edx
mov edx, ebx
je 0x100053bb
mov al, byte [edx + 0x1002cf00]
add ecx, ebx
xor byte [ecx], al
inc edx
xor byte [ecx], bl
xor eax, eax
mov ecx, dword [ebp - 4]
cmp edx, 0x10
cmove edx, eax
inc ebx
cmp ebx, esi
jb 0x1000539e
push 0x1002d13c
push dword [ebp - 8]
call fcn.100136b4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100053e5
push edi
push 1
push esi
push dword [ebp - 4]
call fcn.10013849
push edi
call fcn.100139c7
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000959c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 7
xor eax, eax
lea edi, [ebp - 0x24]
pop ecx
rep stosd dword es:[edi], eax
push 2
pop eax
mov word [ebp - 0x24], ax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x22], ax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x10009602
call fcn.10010a50
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push 7
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
push 2
pop eax
mov word [edx], ax
xor eax, eax
mov word [edx + 2], ax
mov eax, edx
mov dword [edx + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x1c
push eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, dword [ebp + 0x10]
mov ecx, eax
mov edi, dword [ebp + 0xc]
mov edx, esi
call fcn.1000a43c
test eax, eax
jne 0x100095dc
call fcn.10010a50
mov dword [esi], ebx
mov dword [esi + 4], eax
cmp edi, 0x80
jbe 0x1000965b
call fcn.10010a50
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x2726
mov dword [ebp - 4], eax
call fcn.100016ae
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x24]
push 7
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x100095f9
Function at 0x10009723
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10025e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [esp + 0x38]
push esi
push edi
xor esi, esi
mov ecx, ebx
mov dword [esp + 0x10], esi
push eax
mov dword [esp + 0x10], esi
call fcn.10009e6b
mov edi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x94], esi
push eax
mov ecx, ebx
call fcn.10009e4e
mov esi, eax
mov byte [esp + 0x94], 1
cmp dword [edi + 0x14], 0x10
jb 0x10009787
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
jb 0x1000978f
mov esi, dword [esi]
test esi, esi
je 0x10009798
cmp byte [esi], 0
jne 0x1000979a
xor esi, esi
test edi, edi
je 0x100097a3
cmp byte [edi], 0
jne 0x100097a5
xor edi, edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.100031ba
mov edi, dword [ebp + 0x14]
push 0
push 1
mov ecx, dword [eax]
mov dword [edi], ecx
lea ecx, [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
call fcn.100088bf
push 0
push 1
lea ecx, [esp + 0x48]
call fcn.100088bf
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x94], 2
cmp dword [edi], 0
je 0x10009824
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
xor ebx, ebx
mov byte [esp + 0x94], 3
lea eax, [esp + 0x1c]
inc ebx
jmp 0x1000987a
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.10009e6b
mov edi, eax
lea eax, [esp + 0x58]
mov dword [esp + 0x94], 4
push eax
mov ecx, ebx
mov dword [esp + 0x14], 2
call fcn.10009e4e
mov dword [esp + 0x94], 5
lea ecx, [esp + 0x34]
mov edx, dword [esp + 0xc]
push edi
push eax
mov dword [esp + 0x18], 6
call fcn.10009e88
pop ecx
pop ecx
push 0xe
pop ebx
xor edi, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.100085e1
or ebx, 0x10
test bl, 8
je 0x1000989f
mov ecx, dword [esp + 0x38]
and ebx, 0xfffffff7
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x1000989f
call fcn.1000143f
test bl, 4
je 0x100098b3
push edi
push 1
lea ecx, [esp + 0x60]
and ebx, 0xfffffffb
call fcn.100088bf
test bl, 2
je 0x100098c7
push edi
push 1
lea ecx, [esp + 0x78]
and ebx, 0xfffffffd
call fcn.100088bf
mov dword [esp + 0x94], 2
test bl, 1
je 0x100098e4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100098e4
call fcn.1000143f
test esi, esi
je 0x100098ef
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000f7d6
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], ecx
push esi
push esi
push 3
push esi
push 7
push esi
push str..PhysicalDrive0
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x1000f8d2
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov esi, 0x400
push edi
lea edi, [ebp - 0x420]
mov dword [ebp - 4], esi
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
and dword [ebp - 8], 0
mov ebx, eax
test ebx, ebx
je 0x1000f87a
mov ecx, dword [edi + 4]
mov dword [ebp - 8], edi
cmp ecx, esi
jbe 0x1000f854
mov dword [ebp - 4], ecx
xor ebx, ebx
jmp 0x1000f87a
mov eax, dword [edi + 0x18]
test eax, eax
je 0x1000f87a
lea edx, [eax + edi]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f866
sub ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.1000f629
pop ecx
lea eax, [ebp - 0x420]
cmp edi, eax
je 0x1000f88b
push edi
call fcn.100136eb
pop ecx
test ebx, ebx
jne 0x1000f8c8
cmp dword [ebp - 8], ebx
jne 0x1000f8ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000f8c8
cmp dword [ebp - 4], esi
ja 0x1000f8ae
or esi, 0xfff
inc esi
mov dword [ebp - 4], esi
push dword [ebp - 4]
call fcn.10013a8f
mov edi, eax
pop ecx
test edi, edi
je 0x1000f8c8
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x1000f81f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100267f0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10033020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.10012453
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.1000882b
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x18], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x10010fd2
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x10011010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10026818
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10033020]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x20]
push esi
call fcn.10012453
mov dword [edi], vtable.boost::system::system_error.0
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [esp + 0x24], 0
mov byte [ecx], 0
call fcn.1000882b
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4