joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d90
Capabilities:
Start service

Disassembly:
sub esp, 0x80
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x403de3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.004b913a
lea ecx, [esp + 0x18]
push ecx
call fcn.00404130
add esp, 0x10
jmp 0x403e7f
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
jne 0x403e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.OpenService_failed__error_code___d_n
push edx
call fcn.004b913a
lea eax, [esp + 0x18]
push eax
call fcn.00404130
add esp, 0x10
jmp 0x403e7c
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x403e56
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004b883d
add esp, 0x80
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x10]
push str.StartService_failed__error_code___d_n
push ecx
call fcn.004b913a
lea edx, [esp + 0x18]
push edx
call fcn.00404130
add esp, 0x10
push esi
call ebx
push edi
call ebx
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004b883d
add esp, 0x80
ret

Function at 0x4041a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [0x54bd58]
cmp esi, dword [0x54bd5c]
push edi
jbe 0x4041bb
call fcn.004b8c3b
mov eax, 0x54bd54
mov edi, eax
mov ebx, dword [0x54bd5c]
cmp dword [0x54bd58], ebx
jbe 0x4041d5
call fcn.004b8c3b
test edi, edi
je 0x4041e1
cmp edi, 0x54bd54
je 0x4041e6
call fcn.004b8c3b
cmp esi, ebx
je 0x404290
test edi, edi
jne 0x4041f7
call fcn.004b8c3b
cmp esi, dword [edi + 8]
jb 0x404201
call fcn.004b8c3b
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x40421a
cmp esi, dword [edi + 8]
jb 0x404213
call fcn.004b8c3b
mov ecx, dword [esi]
cmp dword [ecx + 0x10], ebp
je 0x404229
cmp esi, dword [edi + 8]
jb 0x404224
call fcn.004b8c3b
add esi, 4
jmp 0x4041c2
cmp esi, dword [edi + 8]
jb 0x404233
call fcn.004b8c3b
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, dword [edi + 8]
jb 0x40425a
call fcn.004b8c3b
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x54bd5c]
lea ecx, [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x404289
add eax, eax
add eax, eax
push eax
push ecx
push eax
push esi
call fcn.004b884c
add esp, 0x10
sub dword [0x54bd5c], 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4042a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x54bd58]
cmp esi, dword [0x54bd5c]
push edi
jbe 0x4042b7
call fcn.004b8c3b
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 0x54bd54
mov edi, eax
jmp 0x4042d0
mov ebx, dword [0x54bd5c]
cmp dword [0x54bd58], ebx
jbe 0x4042e3
call fcn.004b8c3b
test edi, edi
je 0x4042ef
cmp edi, 0x54bd54
je 0x4042f4
call fcn.004b8c3b
cmp esi, ebx
je 0x404336
test edi, edi
jne 0x404301
call fcn.004b8c3b
cmp esi, dword [edi + 8]
jb 0x40430b
call fcn.004b8c3b
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x404327
cmp esi, dword [edi + 8]
jb 0x40431d
call fcn.004b8c3b
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push 0
push edx
call ebp
cmp esi, dword [edi + 8]
jb 0x404331
call fcn.004b8c3b
add esi, 4
jmp 0x4042d0
mov ebp, dword [0x54bd5c]
cmp dword [0x54bd58], ebp
jbe 0x404349
call fcn.004b8c3b
mov esi, dword [0x54bd58]
cmp esi, dword [0x54bd5c]
jbe 0x40435c
call fcn.004b8c3b
cmp esi, ebp
mov edi, esi
je 0x4043b1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi]
test esi, esi
je 0x4043aa
mov eax, dword [esi]
test eax, eax
je 0x40437d
push eax
call fcn.004b9d56
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x40438d
push eax
call fcn.004b9d56
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x404397
push eax
call ebx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4043a1
push eax
call ebx
push esi
call fcn.004b8c4b
add esp, 4
add edi, 4
cmp edi, ebp
jne 0x404368
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405220
Capabilities:
Get file version info

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.004b86be
add esp, 4
mov ebp, eax
push ebp
push esi
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4052da
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x52b684
push ebp
call sub.VERSION.dll_VerQueryValueA
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
push str._d._d._d._d
push ecx
xor esi, esi
call fcn.004b963b
add esp, 0x18
cmp eax, 4
jne 0x4052da
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 0xa]
movzx ecx, word [eax + 8]
mov dword [esp + 0x18], edx
movzx edx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
xor eax, eax
lea ecx, [ecx]
cmp esi, ebx
jne 0x4052d6
mov esi, dword [esp + eax + 0x18]
sub esi, dword [esp + eax + 0x28]
add eax, 4
cmp eax, 0x10
jl 0x4052c0
cmp esi, ebx
jl 0x4052da
mov bl, 1
push ebp
call fcn.004b8c4b
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x2c
ret
Function at 0x409150
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0x80
push 3
push 0
push 0
push accept
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4091ad
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4091d2
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40924b
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40924b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, str.ROOT
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409206
sub eax, edx
add eax, 1
push eax
lea ecx, [esp + 0x20]
push str.ROOT
push ecx
call fcn.004b95ab
add esp, 0xc
cmp eax, 0xffffffff
je 0x40924b
lea edx, [esp + 0x1c]
push edx
push 0x20000
push 0
push 0x10001
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x409260
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
lea eax, [esp + 0x10]
push eax
push 3
push edi
push ebx
push 0x10001
push esi
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x40927d
xor edi, edi
jmp 0x409281
mov edi, dword [esp + 0x14]
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40929a
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ecx, dword [esp + 0x44]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
Function at 0x4092c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
push 0x80
push 3
push 0
push 0
push accept
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40931d
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409342
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
push ebx
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4093bb
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4093bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x52b118
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409376
sub eax, edx
add eax, 1
push eax
lea ecx, [esp + 0x20]
push 0x52b118
push ecx
call fcn.004b95ab
add esp, 0xc
cmp eax, 0xffffffff
je 0x4093bb
lea edx, [esp + 0x1c]
push edx
push 0x10000
push 0
push 0x10001
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x4093d0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
lea eax, [esp + 0x10]
push eax
push 3
push edi
push ebx
push 0x10001
push esi
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x4093ed
xor edi, edi
jmp 0x4093f1
mov edi, dword [esp + 0x14]
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40940a
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov ecx, dword [esp + 0x44]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b883d
add esp, 0x38
ret
Function at 0x40b870
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f0a2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004b7fce
push 4
mov dword [esp + 0x20], 0
call fcn.004b8aa7
mov edi, eax
add esp, 4
test edi, edi
je 0x40b8f0
call fcn.004b85c1
mov dword [edi], eax
call fcn.004b83f5
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004b80e9
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b8e5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004b810a
jmp 0x40b8f2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4170b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f0fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.004b88a7
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], vtable.boost::io::bad_format_string.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], 0
lea edi, [esp + 0xc]
jmp fcn.004173f0

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

Disassembly:
push 0xffffffffffffffff
push 0x4f1d6e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x34], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov byte [esi + 0x38], bl
lea edi, [esi + 0x54]
mov byte [esp + 0x34], 2
push edi
mov byte [esi + 0x50], 0xff
call fcn.0040b870
mov dword [edi], vtable.boost::io::basic_altstringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x3c], ebx
mov byte [edi + 0x40], bl
mov dword [edi + 0x44], 3
mov byte [esi + 0xa0], bl
mov byte [esp + 0x34], 4
mov eax, str.L__d
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417a66
sub eax, edx
push eax
push str.L__d
lea ecx, [esp + 0x18]
call fcn.00401b10
lea eax, [esp + 0x10]
push eax
mov byte [esp + 0x38], 5
call fcn.00418080
cmp dword [esp + 0x28], 0x10
jb 0x417aa3
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b8c4b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x418b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f0c24
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esi + 0x28], 0x5314e8
mov dword [esi + 0x30], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], 0
mov edi, 1
push ebx
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.00417bb0
test ebx, ebx
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x28]
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.0
mov dword [esi + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.1.0
mov ecx, dword [eax + 4]
lea edi, [esi + 0x14]
mov dword [ecx + esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::bad_format_string__.2.0
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 4]
lea ecx, [eax - 8]
mov dword [eax + esi + 0x24], ecx
je 0x418c1e
lea eax, [ebx + 0x14]
jmp 0x418c20
xor eax, eax
push eax
call fcn.00402cc0
add esp, 4
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 0x41c060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f0be4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esi + 0x28], 0x5314e8
mov dword [esi + 0x30], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], 0
mov edi, 1
push ebx
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.0041a5a0
test ebx, ebx
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x28]
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_few_args__.0
mov dword [esi + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_few_args__.1.0
mov ecx, dword [eax + 4]
lea edi, [esi + 0x14]
mov dword [ecx + esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_few_args__.2.0
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 4]
lea ecx, [eax - 8]
mov dword [eax + esi + 0x24], ecx
je 0x41c0ee
lea eax, [ebx + 0x14]
jmp 0x41c0f0
xor eax, eax
push eax
call fcn.00402cc0
add esp, 4
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 0x41d430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f0ba4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53de10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esi + 0x28], 0x5314e8
mov dword [esi + 0x30], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], 0
mov edi, 1
push ebx
mov ecx, esi
mov dword [esp + 0x10], edi
call fcn.0041c950
test ebx, ebx
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0x28]
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.0
mov dword [esi + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.1.0
mov ecx, dword [eax + 4]
lea edi, [esi + 0x14]
mov dword [ecx + esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::io::too_many_args__.2.0
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 4]
lea ecx, [eax - 8]
mov dword [eax + esi + 0x24], ecx
je 0x41d4be
lea eax, [ebx + 0x14]
jmp 0x41d4c0
xor eax, eax
push eax
call fcn.00402cc0
add esp, 4
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 0x41d7e0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x531550
push eax
mov bl, 1
call fcn.004b9ab7
mov esi, eax
add esp, 8
test esi, esi
je 0x41d870
push 2
push 0
push esi
call fcn.004ba0da
add esp, 0xc
push esi
call fcn.004b9fe5
add esp, 4
push 0
push 0
push esi
mov edi, eax
call fcn.004ba0da
add esp, 0xc
test edi, edi
jle 0x41d85e
push edi
call fcn.004b8aa7
add esp, 4
push esi
push edi
mov ebp, eax
push 1
push ebp
call fcn.004ba520
mov ecx, dword [esp + 0x24]
push ecx
push ebp
mov ecx, edi
call fcn.0041d770
push ebp
call fcn.004b8c4b
add esp, 0x1c
push esi
call fcn.004b9c8b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
xor bl, bl
call fcn.004b9c8b
add esp, 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x41e0c0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x53de10]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
push ecx
push eax
lea edx, [esp + 0x18]
xor ebp, ebp
push edx
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x70], ebp
call fcn.0041dea0
push edi
lea esi, [esp + 0x20]
call fcn.0041df70
add esp, 0x10
lea ebx, [ebp + 5]
jmp 0x41e120
push 0x10
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x70], ebp
call fcn.0041dea0
push edi
lea esi, [esp + 0x20]
call fcn.0041df70
add esp, 0x10
sub ebx, 1
jne 0x41e120
mov ecx, dword [esp + 0x6c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b883d
add esp, 0x64
ret

Function at 0x41e180
Capabilities:
Terminate process

Disassembly:
push ebp
push 0x21
call fcn.004b96a9
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x41e1ae
push str.Out_of_memory_n
call fcn.004ba53b
add eax, 0x40
push eax
call fcn.004b9aca
add esp, 8
push 1
call fcn.004bac00
push esi
push edi
xor esi, esi
mov edi, ebp
movzx eax, byte [esi + ebx]
push eax
push str._02X
push edi
call fcn.004b913a
add esi, 1
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x41e1b4
pop edi
pop esi
mov byte [ebp + 0x20], 0
mov eax, ebp
pop ebp
ret
Function at 0x41e1e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ebp]
cmp esi, 0xffffffff
push edi
mov ebx, eax
mov dword [esp + 0x14], 1
je 0x41e3d7
mov eax, dword [ebx + 0x100]
mov edx, dword [eax + 0x164]
test edx, edx
je 0x41e269
cmp dword [edx + 0x158], esi
jne 0x41e25f
mov eax, dword [ebp + 4]
test eax, eax
jne 0x41e22c
cmp dword [edx + 0x114], eax
je 0x41e275
test eax, eax
je 0x41e25f
mov edi, dword [edx + 0x114]
test edi, edi
je 0x41e25f
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x41e256
test cl, cl
je 0x41e252
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x41e256
add eax, 2
add edi, 2
test cl, cl
jne 0x41e236
xor eax, eax
jmp 0x41e25b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e275
mov edx, dword [edx + 0x104]
test edx, edx
jne 0x41e211
mov dword [esp + 0x10], 0
xor esi, esi
jmp 0x41e299
mov dword [ebx + 0x158], esi
mov ecx, dword [ebp + 4]
mov dword [ebx + 0x114], ecx
mov edx, dword [edx + 0x110]
push edx
push str._using_listen_skt_from_vhost__s_n
jmp 0x41e3ca
mov ebp, dword [esp + 0x1c]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e3e1
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jl 0x41e40f
call fcn.00422160
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
call fcn.00421690
test eax, eax
jl 0x41e40f
mov dword [ebp], eax
mov dword [ebx + 0x158], eax
mov ecx, dword [ebp + 4]
push 0x170
push 0
mov dword [ebx + 0x114], ecx
call dword [0x543a94]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41e3fd
push 0x170
push 0
push ebp
call fcn.004bbbe0
mov edx, dword [ebx + 0x100]
mov cl, byte [esp + 0x1c]
mov dword [ebp + 0xe8], edx
mov dword [ebp + 0x13c], edi
mov byte [ebp + 0x166], 0x12
mov eax, dword [ebx + 0x118]
or dword [ebp + 0x160], 4
mov dword [ebp + 0xfc], eax
mov byte [ebp + 0x16d], cl
mov dword [ebp + 0xec], ebx
mov edx, dword [ebx + 0x100]
mov dword [edx + esi + 0x4c], ebp
mov ecx, dword [ebx + 0x100]
add esp, 0xc
mov eax, ebp
call fcn.004203f0
test eax, eax
jne 0x41e40f
mov eax, dword [ebx + 0x100]
mov edi, 1
add dword [eax + 0x20c], edi
mov dword [ebx + 0x10c], ebp
mov eax, dword [ebp + 0x13c]
push accept
push eax
call dword [sym.imp.WS2_32.dll_listen]
add dword [esp + 0x10], edi
add esi, 0x40
cmp esi, 0x40
jl 0x41e295
mov eax, dword [esp + 0x1c]
test dword [eax + 0x38], 0x2000
jne 0x41e3d7
mov ecx, dword [eax]
push ecx
push str._Listening_on_port__d_n
mov esi, 4
call fcn.004214d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push str.ERROR_opening_socket_n
mov esi, 1
call fcn.004214d0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push str.Out_of_mem_n
mov esi, 1
call fcn.004214d0
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret