joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov ebx, ecx
cmp dword [ebx + 0x14], 0
push edi
mov esi, eax
jne 0x1001418d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x14], eax
jmp 0x1001419f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
je 0x1001419f
mov dword [ebx + 0x14], 0xffffffff
mov eax, dword [ebp + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [esp + 0x24], 0
push 0
je 0x100141c6
mov eax, dword [ebp + 4]
push 0
call fcn.100135d0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov ebx, dword [ebx]
cmp ebx, 0xffffffff
jne 0x100141e1
mov eax, dword [ebp + 4]
push 0x2719
call fcn.100135d0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
push esi
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x10014221
mov eax, 0x2746
jmp 0x1001422d
cmp eax, 0x4d2
jne 0x1001422d
mov eax, 0x274d
test edi, edi
je 0x1001424d
cmp eax, 0x3e5
je 0x1001424d
mov ecx, dword [esp + 0x24]
push ecx
push eax
mov eax, dword [ebp + 4]
call fcn.100135d0
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov eax, dword [ebp + 4]
mov edi, esi
call fcn.10013560
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

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

Disassembly:
sub esp, 8
cmp dword [ebx + 0x14], 0
push esi
push edi
mov esi, eax
jne 0x10014278
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x14], eax
jmp 0x1001428a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x14], eax
je 0x1001428a
mov dword [ebx + 0x14], 0xffffffff
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebx]
cmp eax, 0xffffffff
push 0
jne 0x100142b9
mov eax, dword [edi + 4]
push 0x2719
call fcn.100135d0
pop edi
pop esi
add esp, 8
ret 0x14
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push esi
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x30]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x10014303
mov eax, 0x274d
test edi, edi
je 0x10014328
cmp eax, 0x3e5
je 0x10014328
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x14]
push ecx
push eax
mov eax, dword [edx + 4]
call fcn.100135d0
pop edi
pop esi
add esp, 8
ret 0x14
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov edi, esi
call fcn.10013560
pop edi
pop esi
add esp, 8
ret 0x14
Function at 0x100148a0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [esp + 8]
push edx
push 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x10154fc4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
push 0
je 0x100148ed
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esp, 8
ret
mov edx, dword [esi + 4]
push edx
push method.boost::asio::detail::win_iocp_io_service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 8
ret

Function at 0x10014910
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
test ebx, ebx
mov dword [esi + 4], ebx
jne 0x1001496f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], edi
call fcn.1010d600
neg edi
sbb edi, edi
test edi, fcn.1009bff0
mov dword [esp + 0x14], eax
je 0x1001496f
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.100129a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [ebp + 8]
mov dword [edi + 8], eax
mov dword [esi + 8], eax
cmp dword [edi + 8], 0
jne 0x100149c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], edi
call fcn.1010d600
neg edi
sbb edi, edi
test edi, fcn.1009bff0
mov dword [esp + 0x14], eax
je 0x100149c6
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.100129a0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x10014a70
push eax
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [edi + 4], eax
jne 0x10014a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test ebx, ebx
je 0x10014a13
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 8]
test edi, edi
je 0x10014a21
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.1010d600
neg esi
sbb esi, esi
test esi, fcn.1009bff0
mov dword [esp + 0x14], eax
je 0x10014a4d
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread
call fcn.100129a0
test ebx, ebx
je 0x10014a61
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10014af0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.1010d600
neg esi
sbb esi, esi
test esi, fcn.1009bff0
mov dword [esp + 0xc], eax
je 0x10014b38
lea eax, [esp + 8]
push eax
mov ecx, 0x101297b4
call fcn.100129a0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10014b40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x10154fb8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10014b7c
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x10154fbc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1010defb
add esp, 0x19c
ret

Function at 0x10017c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10110cd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1014d0cc]
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.1000c1a0
mov dword [esp + 0x18], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
add edi, 0x30
mov dword [esi + 0x2c], ecx
push edi
lea ecx, [esi + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x10017cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10110cd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1014d0cc]
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.1000c1a0
test edi, edi
mov dword [esp + 0x18], 0
je 0x10017d14
add edi, 0x28
jmp 0x10017d16
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x10017d2e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x10017da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10112be8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1014d0cc]
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.100010c0
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x10017dea
add edi, 0x28
jmp 0x10017dec
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x10017e04
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x10017f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10112be8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1014d0cc]
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.100010c0
mov dword [esi], vtable.boost::gregorian::bad_year.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x10017faa
add edi, 0x28
jmp 0x10017fac
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x10017fc4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x10018050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10112be8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1014d0cc]
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.100010c0
mov dword [esi], vtable.boost::gregorian::bad_month.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x1001809a
add edi, 0x28
jmp 0x1001809c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x100180b4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x1001c1c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101194bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 4]
push 0x1001c800
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], 0x1014f540
mov dword [esp + 0x18], 0
call fcn.1000ffe0
mov dword [edi], eax
lea esi, [edi + 4]
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov ecx, 2
mov dword [esi + 0x20], ecx
mov byte [esi + 0x24], al
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov word [esi + 0x28], cx
mov word [esi + 0x2a], ax
mov dword [esi + 0x2c], eax
mov dword [esp + 0x20], eax
mov ecx, dword [edi]
add ecx, 0x14
push ecx
call fcn.10013b70
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8

Function at 0x1001c790
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x1001c7a5
mov edi, 0x2719
jmp 0x1001c7da
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0x14]
push 4
push ecx
push 0x20
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.1010d600
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
mov dword [esi], eax
mov dword [esi + 4], ebx
jne 0x1001c7e4
call fcn.1010d600
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov dword [ebp + 4], eax
pop edi
mov dword [ebp], edx
mov eax, ebp
pop ebp
pop ebx
ret 8

Function at 0x10023780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10112b28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 8], edx
lea edi, [esp + 0x1c]
mov dword [eax + 0xc], ecx
call fcn.10023bd0
mov eax, dword [esp + 0x44]
mov edx, edi
push edx
push esi
push esi
mov esi, dword [esp + 0x4c]
push eax
add esi, 0x1f4
mov dword [esp + 0x48], 0
call fcn.10023db0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10023818
test al, 1
jne 0x10023818
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x10023818
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret 8
Function at 0x100240f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10112b28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.100459d0
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.100241e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1002415d
test al, 1
jne 0x1002415d
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x1002415d
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x100245c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1011bb83
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
call fcn.10025860
xor ebx, ebx
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [edi + 0x18], bl
mov esi, dword [eax + 4]
call fcn.10026390
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [edi + 0x20], eax
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
mov byte [edi + 0x30], bl
lea eax, [edi + 0x48]
push eax
mov byte [esp + 0x2c], 1
call fcn.100147d0
mov esi, eax
mov dword [esp + 0x14], esi
call fcn.1010d600
neg esi
sbb esi, esi
test esi, fcn.1009bff0
mov dword [esp + 0x18], eax
je 0x1002466b
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.mutex
call fcn.100129a0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x100248c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10119388
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x48]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebx, ecx
mov ecx, dword [esi + 4]
mov eax, 0x44
mov edx, eax
mov eax, dword [ecx]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, esp
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax], edi
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
push esi
mov dword [eax + 8], ebx
push ecx
push esi
lea ebx, [esp + 0x34]
mov dword [eax + 0xc], edx
call fcn.10025f00
mov edi, dword [esp + 0x34]
mov ebx, dword [esi + 4]
add esp, 0x20
test edi, edi
je 0x10024959
cmp edi, esi
je 0x1002495f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x1002496e
mov edx, dword [esp + 0x1c]
push edx
jmp 0x100249c8
test edi, edi
jne 0x1002497c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp eax, dword [edi + 4]
jne 0x1002498b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x48], 0
je 0x10024995
add dword [esi + 0x10], 0xffffffff
push eax
push edi
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.100252f0
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x10], eax
jl 0x100249ae
test eax, eax
jne 0x100249c3
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0xc]
push esi
mov esi, dword [edx + 8]
mov eax, 0x100250d0
push eax
call fcn.100262d0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100251a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10112b28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.100459d0
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.100241e0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10025213
test al, 1
jne 0x10025213
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x10025213
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10027230
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.100a6a30
add esp, 4
mov eax, esi
pop esi
ret 8
Function at 0x100303a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10112b28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.100459d0
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.10030430
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10030413
test al, 1
jne 0x10030413
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x10030413
lea ecx, [esp + 0x14]
push 2
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10039a90
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
cmp edi, dword [esp + 8]
je 0x10039b16
mov ecx, dword [0x101518d4]
push ebx
mov ebx, dword [0x101518cc]
push ebp
mov ebp, dword [0x101518d0]
push esi
mov esi, dword [0x1014dd28]
mov eax, esi
shl eax, 0xb
xor eax, esi
mov edx, ecx
shr edx, 0xb
xor edx, eax
shr edx, 8
xor edx, ecx
xor edx, eax
mov esi, ebx
mov ebx, ebp
mov ebp, ecx
mov ecx, edx
mov eax, 0xd41d41d5
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x46
mov edx, ecx
sub edx, eax
mov al, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz__.___]
mov byte [edi], al
add edi, 1
cmp edi, dword [esp + 0x14]
jne 0x10039ab4
mov dword [0x1014dd28], esi
pop esi
mov dword [0x101518d0], ebp
pop ebp
mov dword [0x101518cc], ebx
mov dword [0x101518d4], ecx
pop ebx
pop edi
ret