joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bcca
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00453d08
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.00453cef
mov edi, eax
pop ecx
test edi, edi
jne 0x45bcf7
call fcn.00453d08
mov eax, edi
pop edi
pop esi
ret
Function at 0x45edd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5df1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.00415101
and dword [esp + 0xb4], 0
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x18]
add edi, 8
lea esi, [esp + 0x24]
call fcn.00424e0d
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x2c]
call fcn.00424e0d
mov esi, dword [esp + 0x30]
jmp 0x45ee37
push esi
lea eax, [esp + 0x10]
call fcn.00407461
add esi, 0x38
cmp esi, dword [esp + 0x28]
jne 0x45ee2a
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0x18], ebx
jbe 0x45ee4c
call fcn.005749cd
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
cmp esi, dword [esp + 0x1c]
jbe 0x45ee5f
call fcn.005749cd
test edi, edi
je 0x45ee69
cmp edi, dword [esp + 0xc]
je 0x45ee6e
call fcn.005749cd
mov eax, ebx
sub eax, esi
push 0x1c
pop ecx
cdq
idiv ecx
push eax
push ebx
push esi
call fcn.0045f886
add esp, 0xc
lea eax, [esp + 0x48]
call fcn.00453ee5
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x18], edi
jbe 0x45ee9b
call fcn.005749cd
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x1c]
jbe 0x45eeb9
call fcn.005749cd
jmp 0x45eeb9
push esi
lea ecx, [esp + 0x4c]
call fcn.0045eaea
add esi, 0x1c
cmp esi, edi
jne 0x45eeac
lea eax, [esp + 0x34]
push eax
call fcn.0042d9be
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x4c]
call fcn.00453f10
mov edi, dword [ebp + 8]
pop ecx
push 5
add edi, 0x40
pop ecx
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
or dword [esp + 0xb4], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.00415165
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4615f1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e1813
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
push edi
lea eax, [esp + 0x30]
push eax
call fcn.00461806
and dword [esp + 0x84], 0
mov edi, dword [ebp + 8]
lea eax, [esp + 0xc]
lea esi, [edi + 0xc]
push eax
mov dword [esp + 0x14], esi
call fcn.00433428
mov ecx, eax
call fcn.0045ffeb
mov byte [esp + 0x84], 1
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
call fcn.00433428
push dword [esp + 8]
add eax, 8
call fcn.00428742
mov esi, eax
mov byte [esp + 0x84], 0
lea eax, [esp + 0xc]
call fcn.00433403
mov ecx, dword [ebx]
lea eax, [ecx + esi - 1]
cdq
idiv ecx
cmp eax, 1
mov dword [esp + 0xc], eax
jg 0x46169f
or dword [esp + 0x84], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.0046183c
or eax, 0xffffffff
jmp 0x4617f3
mov eax, dword [edi + 0x10]
push dword [esp + 0x10]
lea esi, [esp + 0x38]
mov dword [esp + 0x34], eax
call fcn.004647bb
mov eax, dword [0x6b3ed0]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [0x6b3ed4]
mov dword [esp + 0x3c], eax
push 0x6b3c58
xor ecx, ecx
push 0x28
pop edx
mov eax, edi
mul edx
seto cl
mov dword [esp + 0x44], 1
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005c1c8a
pop ecx
pop ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x84], 2
test eax, eax
je 0x461724
push 0x461873
push 0x460026
push edi
lea esi, [eax + 4]
push 0x28
push esi
mov dword [eax], edi
call fcn.0057a7de
jmp 0x461726
xor esi, esi
mov byte [esp + 0x84], 0
mov edi, esi
lea esi, [esp + 0x44]
call fcn.00464840
cmp dword [esp + 0x44], 0
je 0x461685
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
cdq
idiv dword [ebx]
push eax
mov dword [esp + 0x14], eax
call fcn.004648a8
mov ecx, dword [edi + 4]
push dword [esp + 0x10]
mov dword [eax], ecx
call fcn.004648a8
mov ecx, dword [ebp + 0xc]
add eax, 8
push eax
call fcn.00464764
inc dword [ebx + 0x288]
mov esi, dword [ebx + 0x234]
lea eax, [esp + 0x30]
push eax
push dword [esi + 4]
push esi
call fcn.00465291
mov ecx, dword [ebx + 0x238]
mov edx, 0x7ffffff
sub edx, ecx
cmp edx, 1
jae 0x4617d0
push str.list_T__too_long
lea ecx, [esp + 0x18]
call fcn.00402b00
mov byte [esp + 0x84], 3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
call fcn.004029fe
push 0x650f80
lea eax, [esp + 0x54]
push eax
call fcn.0057e9a0
inc ecx
mov dword [ebx + 0x238], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
or dword [esp + 0x84], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.0046183c
xor eax, eax
mov ecx, dword [esp + 0x7c]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x471a41
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5d399a
call fcn.005c3f5c
fldz
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
fstp dword [esi + 8]
lea ecx, [esi + 0x10]
mov dword [esi], 7
mov byte [esi + 4], bl
mov dword [esi + 0xc], ebx
call fcn.0040252e
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428586
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
add esp, 0x14
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
call fcn.0040252e
mov byte [ebp - 4], 1
or dword [esi + 0xa8], 0xffffffff
or dword [esi + 0xac], 0xffffffff
lea eax, [esi + 0xbc]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
and dword [eax + 4], 0x80000000
and byte [eax + 8], 0xfe
mov dword [eax], ebx
mov byte [ebp - 4], 2
fldz
fstp dword [esi + 0xf0]
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], 1
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov byte [esi + 0x13c], bl
mov dword [esi + 0x140], ebx
mov byte [esi + 0x144], bl
mov byte [esi + 0x145], bl
mov dword [esi + 0x148], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x49f98a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
sub esp, 0x14
push edi
cmp ecx, 0xffffffff
jne 0x49f9a9
mov edi, 0x2719
call fcn.005a5950
mov dword [esi + 4], eax
xor eax, eax
jmp 0x49fa1b
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor edi, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x49f99d
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x49fa01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x40
jne 0x49f9f2
mov edi, 0x2746
jmp 0x49f99d
cmp edi, 0x4d2
jne 0x49f99d
mov edi, 0x274d
jmp 0x49f99d
cmp dword [ebp - 4], edi
jne 0x49fa10
push 2
pop edi
call fcn.0041585a
jmp 0x49f9a2
call fcn.005a5950
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], edi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, eax
cmp dword [ebx], 0xffffffff
push edi
jne 0x49fa43
mov edi, 0x2719
call fcn.005a5950
mov dword [esi + 4], eax
xor eax, eax
jmp 0x49fabc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x214]
call fcn.00459780
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x49fa37
mov ebx, dword [ebx]
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x49faa2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x40
jne 0x49fa93
mov edi, 0x2746
jmp 0x49fa37
cmp edi, 0x4d2
jne 0x49fa37
mov edi, 0x274d
jmp 0x49fa37
cmp dword [ebp + 8], edi
jne 0x49fab1
push 2
pop edi
call fcn.0041585a
jmp 0x49fa3c
call fcn.005a5950
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
pop edi
pop ebx
leave
ret 4

Function at 0x4a00b9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5db0ce
call fcn.005c3f5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x4a044e
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
call fcn.0044b3ca
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x38]
push eax
lea edi, [ebp + 0x18]
call fcn.0049ed72
mov byte [ebp - 4], bl
lea eax, [ebp + 0x10]
push eax
call fcn.0044decf
or dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.0049a910
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x28
Function at 0x4aa916
Capabilities:
Create thread

Disassembly:
mov eax, 0x5dccbd
call fcn.005c3f5c
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x10
mov dword [esi + 8], ebx
call fcn.005740d0
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4aa95c
mov dword [eax], vtable.boost::asio::detail::win_thread::func_base.0
mov byte [ebp - 4], 1
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::resolver_service_class_boost::asio::ip::udp_::work_io_service_runner_.0
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov byte [ebp - 4], bl
mov edi, eax
jmp 0x4aa95e
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], eax
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x4aa9ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.005a5950
push str.thread.entry_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
call fcn.00418bd0
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [edi + 8], eax
cmp dword [esi + 8], ebx
jne 0x4aa9ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.005a5950
push str.thread.exit_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 4
jmp 0x4aa9a2
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x451dde
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0057b419
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x4aaa4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], eax
call edi
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x4aaa2a
push esi
call edi
call fcn.005a5950
push str.thread
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 5
jmp 0x4aa9a2
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4abec1
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ecx, ecx
mov esi, eax
lea eax, [esi + 0xd8]
inc ecx
push edi
cmp byte [eax], cl
je 0x4abf71
mov byte [eax], cl
mov dword [ebp - 4], ecx
call fcn.005a5950
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
mov ebx, dword [esi + 0x30]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4abf07
cmp eax, dword [ebp - 0x1c]
je 0x4abf0c
call fcn.005749cd
cmp dword [ebp - 8], ebx
je 0x4abf71
lea esi, [ebp - 0xc]
call fcn.00445784
cmp dword [eax], 0
jne 0x4abf67
call fcn.00445784
mov esi, eax
call fcn.004453fc
add eax, 8
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x4abf3b
call fcn.005a5950
jmp 0x4abf67
lea esi, [ebp - 0x14]
call fcn.00453d08
push 4
lea eax, [ebp - 4]
push eax
push 0x20
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.00453cef
pop ecx
test eax, eax
jne 0x4abf67
call fcn.00453d08
lea esi, [ebp - 0xc]
call fcn.004ac79c
jmp 0x4abefb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ba1a3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5daa00
call fcn.005c3f5c
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x4ba36a
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
call fcn.0044b3ca
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x30], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [esi + 0x38]
push eax
call fcn.004b965e
mov byte [ebp - 4], bl
lea eax, [ebp + 0x10]
push eax
call fcn.0044decf
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x18]
push eax
call fcn.004b6a7b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20

Function at 0x4ba776
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5d8980
call fcn.005c3f5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], 1
xor ebx, ebx
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x4ba7fe
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
call fcn.0044b3ca
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
lea edi, [ebp + 0x14]
call fcn.004b9bf3
mov byte [ebp - 4], bl
lea eax, [ebp + 0xc]
push eax
call fcn.0044decf
or dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.004b81d4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x34
Function at 0x4bec6b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5d87d5
call fcn.005c3f5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], 1
xor ebx, ebx
lea eax, [esi + 0x20]
push eax
lea ecx, [ebp + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x4bed81
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
call fcn.0044b3ca
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x30]
push eax
lea edi, [ebp + 0x14]
call fcn.004b3c1b
mov byte [ebp - 4], bl
lea eax, [ebp + 0xc]
push eax
call fcn.0044decf
or dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.004b3bf3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x30

Function at 0x4becf3
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5d879d
call fcn.005c3f5c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x4bee8a
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
call fcn.0044b3ca
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x34]
push eax
lea edi, [ebp + 0x18]
call fcn.004b3c1b
mov byte [ebp - 4], bl
lea eax, [ebp + 0x10]
push eax
call fcn.0044decf
or dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.004b3bf3
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x34
Function at 0x4c7c24
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x5d246e
call fcn.005c3f5c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebx], vtable.libtorrent::alert.0
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], eax
and dword [ebp - 4], 0
lea ecx, [esi + 0x10]
lea eax, [ebx + 0x10]
mov dword [ebx], vtable.libtorrent::dht_announce_alert.0
call fcn.0042aa43
mov eax, dword [esi + 0x2c]
push 5
add esi, 0x30
lea edi, [ebx + 0x30]
pop ecx
mov dword [ebx + 0x2c], eax
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4d13b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5c499c
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x67ff88]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [section..data]
lea ecx, [esi + 4]
mov dword [ecx], eax
mov edx, dword [section..data]
lea edi, [esi + 8]
mov dword [esp + 0x1c], 0
mov dword [edi], edx
mov eax, dword [section..data]
lea ebp, [esi + 0xc]
mov dword [ebp], eax
mov edx, dword [section..data]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x28]
or eax, 0xffffffff
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x24]
push edx
mov byte [esp + 0x20], 3
mov dword [esi], eax
call fcn.004cecf0
mov eax, dword [esp + 0x2c]
push eax
mov ecx, edi
call fcn.004cecf0
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.004cecf0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
mov byte [esi + 0x18], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x18
Function at 0x4d4340
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x4d4391
call fcn.004d8e80
test eax, eax
je 0x4d437c
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Couldnt_terminate_thread
call eax
push eax
call fcn.004e6fa0
add esp, 4
mov eax, 5
pop esi
ret
mov eax, str.Couldnt_terminate_thread
push eax
call fcn.004e6fa0
add esp, 4
mov eax, 5
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x4d43a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
xor eax, eax
pop esi
ret

Function at 0x4d43b0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4d4402
call fcn.004d8e80
test eax, eax
je 0x4d43ec
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Can_not_resume_thread__x
call eax
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.004e6fa0
add esp, 8
xor al, al
pop esi
ret
mov ecx, dword [esi + 4]
mov eax, str.Can_not_resume_thread__x
push ecx
push eax
call fcn.004e6fa0
add esp, 8
xor al, al
pop esi
ret
cmp dword [esi + 8], 4
mov eax, 1
je 0x4d4410
mov dword [esi + 8], eax
pop esi
ret

Function at 0x4d4530
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x67815c], eax
cmp eax, 0xffffffff
jne 0x4d4576
call fcn.004d8e80
test eax, eax
je 0x4d4565
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
call eax
push eax
call fcn.004e6fa0
add esp, 4
xor al, al
ret
mov eax, str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
push eax
call fcn.004e6fa0
add esp, 4
xor al, al
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4d45d0
mov ecx, dword [0x67815c]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x67815c], 0xffffffff
call fcn.004d8e80
test eax, eax
je 0x4d45bf
mov edx, dword [eax]
push 0
mov ecx, eax
mov eax, dword [edx + 8]
push 0x5f11c8
call eax
push eax
call fcn.004e6fa0
add esp, 4
xor al, al
ret
mov eax, 0x5f11c8
push eax
call fcn.004e6fa0
add esp, 4
xor al, al
ret
push 0x18
call fcn.005740d0
add esp, 4
test eax, eax
je 0x4d45e7
mov ecx, eax
call fcn.004d3fa0
jmp 0x4d45e9
xor eax, eax
push 0x18
mov dword [0x68cc94], eax
call fcn.005740d0
add esp, 4
test eax, eax
je 0x4d4605
mov ecx, eax
call fcn.004d3fa0
jmp 0x4d4607
xor eax, eax
mov ecx, eax
mov dword [0x68cc90], eax
call fcn.004d3fc0
push 0x18
call fcn.005740d0
add esp, 4
test eax, eax
je 0x4d463b
mov ecx, eax
call fcn.004d3fa0
mov dword [0x68cc98], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x68cc8c], eax
mov al, 1
ret
xor eax, eax
mov dword [0x68cc98], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x68cc8c], eax
mov al, 1
ret