joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10065730
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bc446
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1029c850]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
lea ecx, [esi + 0x18]
push 0xffffffffffffffff
mov dword [esi], 0xffffffff
lea eax, [ebp + 0x1c]
mov dword [esi + 4], 8
mov dword [esi + 8], 0xf
mov dword [esi + 0xc], 8
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100041b0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x30]
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x34]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.100041b0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x4c]
mov dword [esi + 0x48], eax
mov eax, dword [ebp + 0x50]
mov dword [esi + 0x4c], eax
mov byte [ebp - 4], 0
cmp dword [ebp + 0x30], 0x10
jb 0x100657f3
push dword [ebp + 0x1c]
call fcn.10089b56
add esp, 4
mov dword [ebp + 0x30], 0xf
mov dword [ebp + 0x2c], 0
mov byte [ebp + 0x1c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x48], 0x10
jb 0x1006581d
push dword [ebp + 0x34]
call fcn.10089b56
add esp, 4
mov dword [ebp + 0x48], 0xf
mov eax, esi
mov dword [ebp + 0x44], 0
mov byte [ebp + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x1006e490
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006e578
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1006e571
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ebx, [ebx]
cmp dword [ebp - 0x20], 0x10
jb 0x1006e556
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1006e556
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1006e556
mov ecx, dword [esi]
test ecx, ecx
jne 0x1006e51f
push 0x200
push ecx
push dword [0x102a8fcc]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1006e570
jmp 0x1006e548
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1006e548
shl eax, 3
push eax
push ecx
push 0
push dword [0x102a8fcc]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1006e570
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1006e4e0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100899d2
mov esp, ebp
pop ebp
ret

Function at 0x1006e590
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1006e490
cmp dword [edi], 0
je 0x1006e5fc
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1006e5fb
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1006e5f4
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1006e350
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1006e5c1
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1006e610
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x1006e65c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1006e64b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1006e644
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1006e621
pop ebx
push dword [edi]
push 0
push dword [0x102a8fcc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x1006e660
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x102ac1b0]
lea ecx, [ecx + ecx*4]
test byte [eax + ecx*8 + 0x14], 1
push ebx
push esi
mov esi, dword [eax + ecx*8]
mov ebx, edx
push edi
lea edi, [eax + ecx*8]
mov eax, 5
mov dword [ebp - 0xc], eax
je 0x1006e69c
sub esi, eax
mov eax, 7
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1006e6c4
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100899d2
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1006e6e5
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1006e706
mov eax, dword [edi]
mov word [eax], 0xf9eb
jmp 0x1006e706
mov eax, dword [edi + 0xc]
test byte [edi + 0x14], 1
mov dword [esi], eax
je 0x1006e700
mov ax, word [edi + 0x10]
mov word [esi + 4], ax
mov al, byte [edi + 0x12]
mov byte [esi + 6], al
jmp 0x1006e706
mov al, byte [edi + 0x10]
mov byte [esi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and ebx, 1
mov ecx, ebx
and ecx, 0xfffffffd
lea eax, [ebx + ebx]
or ecx, eax
mov eax, dword [edi + 0x14]
add ecx, ecx
and eax, 0xfffffff9
or ecx, eax
xor eax, eax
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100899d2
mov esp, ebp
pop ebp
ret
Function at 0x1006f1e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x104], 0x600042
push ebx
push esi
push edi
push 1
push 0x102aae78
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x104]
push 0x31
push eax
mov dword [ebp - 0x100], 0x6f006f
mov dword [ebp - 0xfc], 0x75006e
mov dword [ebp - 0xf8], 0x6e0021
mov dword [ebp - 0xf4], 0x640071
mov dword [ebp - 0xf0], 0x21006f
mov dword [ebp - 0xec], 0x64006a
mov dword [ebp - 0xe8], 0x210078
mov dword [ebp - 0xe4], 0x21002c
mov dword [ebp - 0xe0], 0x6a005a
mov dword [ebp - 0xdc], 0x780064
mov dword [ebp - 0xd8], 0x24003b
mov dword [ebp - 0xd4], 0x240030
mov dword [ebp - 0xd0], 0x21005c
mov dword [ebp - 0xcc], 0x71005a
mov dword [ebp - 0xc8], 0x750060
mov dword [ebp - 0xc4], 0x3b0069
mov dword [ebp - 0xc0], 0x330024
mov dword [ebp - 0xbc], 0x5c0024
mov dword [ebp - 0xb8], 0x5a0021
mov dword [ebp - 0xb4], 0x640073
mov dword [ebp - 0xb0], 0x3b0075
mov dword [ebp - 0xac], 0x320024
mov dword [ebp - 0xa8], 0x5c0024
mov dword [ebp - 0xa4], 1
call fcn.10048530
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100899d2
mov esp, ebp
pop ebp
ret
Function at 0x10072a80
Capabilities:
Parse credit card information

Disassembly:
add ecx, 0xfffffffe
cmp ecx, 8
ja case.default.0x10072a8c
jmp dword [ecx*4 + 0x10072bb4]
cmp dl, 0x40
jne 0x10072a9e
mov eax, 4
ret
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10072aaa
cmp al, 0x7a
jbe 0x10072b0d
cmp dl, 0x30
jl 0x10072ab4
cmp dl, 0x39
jle 0x10072b0d
cmp dl, 0x2d
je 0x10072b0d
cmp dl, 0x5f
je 0x10072b0d
cmp dl, 0x2e
je 0x10072b0d
cmp dl, 0x21
je 0x10072b0d
cmp dl, 0x7e
je 0x10072b0d
cmp dl, 0x2a
je 0x10072b0d
cmp dl, 0x27
je 0x10072b0d
cmp dl, 0x28
je 0x10072b0d
cmp dl, 0x29
je 0x10072b0d
cmp dl, 0x25
je 0x10072b0d
cmp dl, 0x3b
je 0x10072b0d
cmp dl, 0x3a
je 0x10072b0d
cmp dl, 0x26
je 0x10072b0d
cmp dl, 0x3d
je 0x10072b0d
cmp dl, 0x2b
je 0x10072b0d
cmp dl, 0x24
je 0x10072b0d
cmp dl, 0x2c
jne case.default.0x10072a8c
mov eax, 3
ret
cmp dl, 0x5b
jne 0x10072b1e
mov eax, 5
ret
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10072b2a
cmp al, 0x7a
jbe 0x10072b3e
cmp dl, 0x30
jl 0x10072b34
cmp dl, 0x39
jle 0x10072b3e
cmp dl, 0x2e
je 0x10072b3e
cmp dl, 0x2d
jne case.default.0x10072a8c
mov eax, 6
ret
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10072b50
cmp al, 0x7a
jbe 0x10072b3e
cmp dl, 0x30
jl 0x10072b5a
cmp dl, 0x39
jle 0x10072b3e
cmp dl, 0x2e
je 0x10072b3e
cmp dl, 0x2d
je 0x10072b3e
cmp dl, 0x3a
jne case.default.0x10072a8c
mov eax, 9
ret
cmp dl, 0x5d
jne case.0x10072a8c.5
mov eax, 8
ret
cmp dl, 0x30
jl 0x10072b84
cmp dl, 0x39
jle 0x10072b9a
mov al, dl
or al, 0x20
cmp al, 0x61
jb 0x10072b90
cmp al, 0x66
jbe 0x10072b9a
cmp dl, 0x3a
je 0x10072b9a
cmp dl, 0x2e
jne case.default.0x10072a8c
mov eax, 7
ret
sub dl, 0x30
mov eax, 0xa
cmp dl, 9
jbe 0x10072bb2
mov eax, 1
ret

Function at 0x10073440
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x1029c850]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10073485
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.100abd90
mov dword [esp + 0x10], eax
test esi, esi
jne 0x10073498
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.100899d2
mov esp, ebp
pop ebp
ret
mov edx, 0x1027c58c
lea ecx, [esp + 0xc]
call fcn.10073240
int3
Function at 0x10073790
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x102a9e7c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x100737f3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100899d2
mov esp, ebp
pop ebp
ret
push fcn.10004490
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100899d2
mov esp, ebp
pop ebp
ret
Function at 0x10073820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1029c850]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x10073889
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.100abd90
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1007396c
mov esi, dword [esp + 0x18]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x100738d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
xorps xmm0, xmm0
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x10], esi
call fcn.100abd90
mov dword [esp + 0x14], eax
test esi, esi
jne 0x1007397a
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push ebx
push 0x100739a0
push 0
push 0
call fcn.1008d30f
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10073948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x14], eax
call dword [edx]
test edi, edi
je 0x1007391c
push edi
call esi
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x1007392a
push eax
call esi
mov ebx, dword [esp + 0x10]
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x18], ebx
call fcn.100abd90
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x10073988
test edi, edi
je 0x10073958
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100899d2
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [esp + 0x10]
call fcn.10073240
mov edx, str.thread.exit_event
lea ecx, [esp + 0x10]
call fcn.10073240
mov edx, str.thread
lea ecx, [esp + 0x18]
call fcn.10073240
int3
Function at 0x10073a50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be7b7
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], vtable.boost::asio::io_service::service.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x1c], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::service_base_class_boost::asio::detail::win_iocp_io_service_.0
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 4
lea ecx, [edi + 0x34]
mov dword [edi + 0x30], 0
call fcn.100734b0
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.100abd90
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10073b30
mov edx, str.mutex
lea ecx, [ebp - 0x18]
call fcn.10073240
mov byte [ebp - 4], 5
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov byte [ebp - 4], 6
or eax, 0xffffffff
cmp ebx, 0xffffffff
cmovb eax, ebx
push eax
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10073b96
call dword [sym.imp.KERNEL32.dll_GetLastError]
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.100abd90
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10073b96
mov edx, str.iocp
lea ecx, [ebp - 0x18]
call fcn.10073240
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100899d2
mov esp, ebp
pop ebp
ret 8
Function at 0x10073f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100be8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x10073f6c
mov ecx, edi
call fcn.10074030
call fcn.100abd90
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx], 0
jmp 0x10074003
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push dword [0x102aafbc]
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x102aafbc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 2
xor esi, esi
push ebx
push ecx
mov ecx, edi
call fcn.100741c0
test eax, eax
je 0x10073fd7
cmp esi, 0xffffffff
je 0x10073fca
inc esi
push ebx
push ecx
mov ecx, edi
call fcn.100741c0
test eax, eax
jne 0x10073fc4
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
push dword [0x102aafbc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10074001
push ecx
call fcn.10089b56
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100899d2
mov esp, ebp
pop ebp
ret 4
Function at 0x100746e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov esi, edx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x100747ef
cmp byte [ebp + 8], bl
je 0x1007475b
test byte [esi], 8
je 0x1007475b
xor eax, eax
mov dword [ebp - 8], eax
call fcn.100abd90
or byte [esi], 8
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push 4
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.100abd90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1007475d
call fcn.100abd90
jmp 0x1007475d
mov ebx, eax
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.100abd90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x100747ef
call fcn.100abd90
cmp dword [edi + 4], eax
jne 0x10074796
cmp dword [edi], 0x2733
je 0x100747a8
call fcn.100abd90
cmp dword [edi + 4], eax
jne 0x100747eb
cmp dword [edi], 0x4d5
jne 0x100747eb
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x10]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.100abd90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x100747fd
call fcn.100abd90
mov dword [edi], 0
mov dword [edi + 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100899d2
mov esp, ebp
pop ebp
ret

Function at 0x10074810
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x10074839
call fcn.100abd90
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call fcn.100abd90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x10074871
call fcn.100abd90
mov dword [edi], ebx
mov dword [edi + 4], eax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
pop ebp
ret
Function at 0x10074920
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edi, eax
call fcn.100abd90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x1007498d
call fcn.100abd90
mov dword [ebx], 0x2746
jmp 0x1007499f
cmp eax, 0x4d2
jne 0x100749a2
call fcn.100abd90
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x100749ba
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100899d2
mov esp, ebp
pop ebp
ret
call fcn.100abd90
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.100899d2
mov esp, ebp
pop ebp
ret

Function at 0x10074ac0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1029c850]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call fcn.100abd90
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
cmp eax, 0x40
jne 0x10074b24
call fcn.100abd90
mov dword [ebx], 0x2746
jmp 0x10074b36
cmp eax, 0x4d2
jne 0x10074b39
call fcn.100abd90
mov dword [ebx], 0x274d
mov dword [ebx + 4], eax
test edi, edi
je 0x10074b51
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100899d2
mov esp, ebp
pop ebp
ret
call fcn.100abd90
mov ecx, dword [ebp - 4]
pop edi
mov dword [ebx + 4], eax
xor ecx, ebp
mov eax, dword [ebp - 8]
pop esi
mov dword [ebx], 0
pop ebx
call fcn.100899d2
mov esp, ebp
pop ebp
ret