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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [ebp - 4], 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 0x100020cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.100198e0
mov edx, str.thread.entry_event
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.10001a0e
mov esi, dword [ebp - 4]
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 0x10002111
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
mov dword [ebp - 0x10], esi
call fcn.100198e0
mov edx, str.thread.exit_event
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.10001a0e
mov esi, dword [ebp - 4]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push ebx
push 0x10002195
push dword [ebp + 0xc]
push 0
call fcn.1001c3d1
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000217c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp + 8], eax
call dword [edx]
test edi, edi
je 0x10002153
push edi
call esi
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x10002161
push dword [eax + 8]
call esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.100198e0
mov edx, str.thread
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.10001a0e
test edi, edi
je 0x1000218c
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 0x10002f6a
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 0x1000304d
cmp byte [ebp + 8], 0
je 0x10002fbb
test byte [eax], 8
je 0x10002fbb
xor eax, eax
and dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
call fcn.100198e0
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.10003542
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.1000ec22
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1000304d
push 0
push 0x2733
lea ecx, [ebp - 0x10]
call fcn.1000ebce
mov ecx, dword [esi + 4]
cmp ecx, dword [ebp - 0xc]
jne 0x10002ff7
mov eax, dword [esi]
cmp eax, dword [ebp - 0x10]
je 0x10003015
push 0
push 0x4d5
lea ecx, [ebp - 0x10]
call fcn.1000ebce
mov eax, dword [esi + 4]
cmp eax, dword [ebp - 0xc]
jne 0x10003049
mov eax, dword [esi]
cmp eax, dword [ebp - 0x10]
jne 0x10003049
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 esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.1000ec22
pop ecx
pop ecx
mov edi, eax
test edi, edi
jne 0x10003058
call fcn.100198e0
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 0x10003135
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 0x10003163
mov ecx, dword [ebp + 0x18]
push 0x2719
call fcn.1000ebf8
jmp 0x100032c6
cmp byte [ebp + 0x14], 0
je 0x10003181
test bl, 0x10
je 0x10003181
call fcn.100198e0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
mov dword [ecx + 4], eax
jmp 0x100032c6
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push esi
push ecx
push ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
push eax
call fcn.1000ec22
cmp dword [esi], 0x40
pop ecx
pop ecx
mov dword [esp + 0x14], eax
jne 0x100031cb
push 0x2746
jmp 0x100031d8
cmp dword [esi], 0x4d2
jne 0x100031e3
push 0x274d
mov ecx, esi
call fcn.1000ebf8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100031ec
or eax, 0xffffffff
jmp 0x10003203
call fcn.100198e0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x100032c8
test bl, 0x10
je 0x10003210
test eax, eax
je 0x100032bd
test bl, 1
jne 0x100032c6
push 0
push 0x2733
lea ecx, [esp + 0x38]
call fcn.1000ebce
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.1000196a
test al, al
je 0x10003257
push 0
push 0x4d5
lea ecx, [esp + 0x28]
call fcn.1000ebce
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.1000196a
test al, al
jne 0x100032c6
xor eax, eax
mov dword [esp + 0x3c], edi
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.1000ec22
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x100032a3
call fcn.100198e0
and dword [esi], edi
mov dword [esi + 4], eax
jmp 0x100032b4
jle 0x100032b0
call fcn.100198e0
and dword [esi], 0
mov dword [esi + 4], eax
test edi, edi
js 0x100032c6
mov edi, dword [esp + 0x18]
jmp 0x10003184
push 2
mov ecx, esi
call fcn.1000ec64
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100033a7
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x100033d5
mov ecx, dword [ebp + 0x18]
push 0x2719
call fcn.1000ebf8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x100033f0
test bl, 0x10
je 0x100033f0
call fcn.100198e0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
mov dword [ecx + 4], eax
jmp 0x100033cc
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000332e
add esp, 0xc
test eax, eax
jns 0x100033ce
and bl, 1
test bl, bl
jne 0x100033cc
push 0
push 0x2733
lea ecx, [esp + 0x28]
call fcn.1000ebce
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.1000196a
test al, al
je 0x10003452
push 0
push 0x4d5
lea ecx, [esp + 0x18]
call fcn.1000ebce
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.1000196a
test al, al
jne 0x100033cc
xor eax, eax
mov dword [esp + 0x2c], edi
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
xor ecx, ecx
lea eax, [esp + 0x2c]
push ecx
push ecx
push eax
push ecx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.1000ec22
mov dword [esp + 0x14], eax
pop ecx
pop ecx
test eax, eax
jne 0x100034a1
call fcn.100198e0
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x100034ba
jle 0x100034b2
call fcn.100198e0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
test eax, eax
js 0x100033cc
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000332e
add esp, 0xc
test eax, eax
js 0x1000340c
jmp 0x100033ce

Function at 0x10003662
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 0x10003686
push 0x2719
mov ecx, esi
call fcn.1000ebf8
or eax, edi
jmp 0x100036e1
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 esi
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]
push eax
call fcn.1000ec22
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x100036de
call fcn.100198e0
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 0x10003edf
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 0x10003efe
push 0
push 0
jmp 0x10003f67
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 0xffffffff
jne 0x10003f11
push 0
push 0x2719
jmp 0x10003f67
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 0x10003f4a
mov eax, 0x2746
jmp 0x10003f57
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test edi, edi
pop edi
je 0x10003f74
cmp eax, 0x3e5
je 0x10003f74
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.10002858
jmp 0x10003f7f
push dword [ebp + 0x1c]
mov ecx, dword [esi + 4]
call fcn.100027dd
pop esi
pop ebp
ret 0x18

Function at 0x10004e58
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x208
call fcn.1001bd7c
pop ecx
xor esi, esi
mov edi, eax
push esi
push 0x23
push edi
push esi
mov dword [edi], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.lock.dat
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push 0x20
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100413c8], eax
cmp eax, 0xffffffff
je 0x10004ecc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [0x100413c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
push edi
call fcn.1001bd44
pop ecx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004edb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x10]
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100182a2
mov eax, esi
movzx ecx, byte [ebp + eax - 0x10]
lea esi, [ecx + esi*2]
xor esi, dword [ebp - 0x10]
inc eax
cmp eax, 0x10
jb 0x10004ef8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005f68
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
mov dword [ebp - 8], ecx
lea edi, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005f7f
sub esi, edi
xor eax, eax
mov byte [ebp + eax - 0x10c], al
inc eax
cmp eax, 0x100
jne 0x10005f8a
and dword [ebp - 4], 0
xor edi, edi
xor edx, edx
mov bl, byte [ebp + edi - 0x10c]
mov eax, edi
div esi
movsx eax, byte [edx + ecx]
add eax, dword [ebp - 4]
movzx ecx, bl
add ecx, eax
and ecx, 0xff
mov dword [ebp - 4], ecx
mov al, byte [ebp + ecx - 0x10c]
mov byte [ebp + edi - 0x10c], al
inc edi
mov byte [ebp + ecx - 0x10c], bl
mov ecx, dword [ebp - 8]
cmp edi, 0x100
jne 0x10005f9f
and dword [ebp - 4], 0
xor edx, edx
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
jle 0x100060b2
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x30c]
sub dword [ebp - 0xc], eax
inc edx
mov esi, 0xff
and edx, esi
mov dword [ebp - 8], edx
mov cl, byte [ebp + edx - 0x10c]
movzx eax, cl
add eax, dword [ebp - 4]
and eax, esi
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [ebp + eax - 0x10c]
mov byte [ebp + esi - 0x10c], cl
mov byte [ebp + edx - 0x10c], al
lea edx, [ebp - 0x30c]
movzx ecx, al
add edx, edi
mov eax, esi
movzx eax, byte [ebp + eax - 0x10c]
add ecx, eax
and ecx, 0x800000ff
jns 0x1000605d
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx - 0x10c]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor al, byte [ecx + edx]
mov byte [edx], al
xor edx, edx
mov al, byte [ebp + edx - 0x30c]
mov cl, al
and al, 0xf
shr cl, 4
cmp cl, 0xa
jae 0x10006089
add cl, 0x30
jmp 0x1000608c
add cl, 0x57
mov byte [ebx + edx*2], cl
cmp al, 0xa
jae 0x10006097
add al, 0x30
jmp 0x10006099
add al, 0x57
mov byte [ebx + edx*2 + 1], al
inc edx
cmp edx, esi
jl 0x10006071
mov edx, dword [ebp - 8]
inc edi
mov byte [ebx + esi*2], 0
cmp edi, esi
jl 0x10006001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006b30
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x208
call fcn.1001bd7c
pop ecx
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
xor eax, eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
push 0
push 0x23
push dword [ebp - 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 8]
push 0x10041190
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str._rc.dat
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x20
push 3
push 0
push 0
push connect
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10006bbd
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10006c19
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0x5dc
jne 0x10006c10
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100068a4
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10008b57
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x10008b69
jmp 0x10008ba1
push 0x104
push 0x10041088
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.10004e1d
mov dword [0x100413cc], eax
push 0
push 0
push 0
push 0x10006c20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000ec50
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
Function at 0x10017100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f862
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov dword [ebp - 0x10], ecx
and dword [ebp - 4], 0
push 0x100171ec
mov ecx, dword [ebp - 0x10]
call fcn.10002213
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 8]
mov byte [eax + 0x20], cl
mov eax, dword [ebp - 0x10]
add eax, 0x24
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
and dword [eax], 0
mov eax, dword [ebp - 0x18]
and dword [eax + 4], 0
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.100176be
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x2c], ecx
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x10]
add eax, 0x34
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x10], 0
je 0x100171c6
mov ecx, dword [ebp + 0x10]
call fcn.100016df
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100182a2
Capabilities:
Get common file path
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x14], 0x67452301
xor esi, esi
mov dword [esp + 0x18], 0xefcdab89
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.10018365
lea ecx, [esp + 0x18]
call fcn.10018469
push 0x104
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x10018353
push esi
push 0x2000000
push 3
push esi
push 7
push 0x100000
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10018353
push esi
push esi
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10018353
push 8
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
call fcn.1001813d
pop ecx
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.1001820a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018365
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 0x10018461
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 0x10018409
mov ecx, dword [edi + 4]
mov dword [ebp - 8], edi
cmp ecx, esi
jbe 0x100183e3
mov dword [ebp - 4], ecx
xor ebx, ebx
jmp 0x10018409
mov eax, dword [edi + 0x18]
test eax, eax
je 0x10018409
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 0x100183f5
sub ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.1001813d
pop ecx
lea eax, [ebp - 0x420]
cmp edi, eax
je 0x1001841a
push edi
call fcn.1001c7c0
pop ecx
test ebx, ebx
jne 0x10018457
cmp dword [ebp - 8], ebx
jne 0x1001843d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10018457
cmp dword [ebp - 4], esi
ja 0x1001843d
or esi, 0xfff
inc esi
mov dword [ebp - 4], esi
push dword [ebp - 4]
call fcn.1001cb64
mov edi, eax
pop ecx
test edi, edi
je 0x10018457
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x100183ae
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 0x10019dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002fac0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1003d020]
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.1001b2e3
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.1000aba0
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 0x10019e62
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 0x10019ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002fae8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1003d020]
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.1001b2e3
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.1000aba0
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