joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4604e0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4604f2
add esp, 0xfffffff0
call fcn.00403ce0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423944
mov eax, dword [0x473de4]
mov dword [eax + 4], ebx
mov dword [eax], 0x460884
mov eax, dword [0x473df4]
mov dword [eax + 4], ebx
mov dword [eax], 0x460890
mov eax, ebx
call fcn.0046089c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45c31c
push eax
push 0
push 0
mov eax, dword [0x473f9c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x429348]
call fcn.0042a868
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x429348]
call fcn.0042a868
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x429348]
call fcn.0042a868
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00460ccc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460b9c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460b9c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460b9c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46062f
call fcn.00403d38
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x460980
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460b2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460b0c
mov dl, 1
mov eax, dword [0x41a434]
call fcn.004039a4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x460afb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00453818
test al, al
je 0x460aee
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x460b3c
lea eax, [ebp - 0x254]
call fcn.00409c00
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x460aee
xor eax, eax
push ebp
push 0x460ae7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x460b74
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x460ad0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a58
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460ad0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460aee
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4609f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041edf4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460b32
lea eax, [ebp - 0x260]
call fcn.004047e8
ret

Function at 0x4614a4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x478580]
cmp byte [eax + 0xad], 0
jne 0x461515
cmp dword [0x478598], 0
jne 0x4614d6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x461460
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x478598], eax
cmp dword [0x478594], 0
jne 0x4614f1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x478594], eax
cmp dword [0x47859c], 0
jne 0x461515
push esp
push 0
push 0
push 0x461404
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47859c], eax
pop edx
ret
Function at 0x4616e8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4616ff
add esp, 0xfffffff0
call fcn.00403ce0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423944
mov eax, dword [0x473f84]
cmp word [eax + 2], 0
jne 0x461727
mov eax, dword [0x473f84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004631c0
mov eax, dword [0x474048]
cmp word [eax + 2], 0
jne 0x461741
mov eax, dword [0x474048]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004633cc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41a010]
call fcn.004039a4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x429b24]
call fcn.0042fc74
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4618f8
mov eax, dword [0x473e64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430048
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463a8c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x473e64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040de50
test eax, eax
je 0x461848
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004094e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dea0
test eax, eax
je 0x46185c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a58
mov byte [ebx + 0xd4], 0
push ebx
push 0x462d88
call fcn.0042524c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x473d14]
cmp byte [eax], 0
jne 0x4618ad
mov eax, ebx
call fcn.00461a3c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00463c68
mov eax, ebx
call fcn.004647c8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4618ed
call fcn.00403d38
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461cbc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x478580]
cmp dword [eax + 0x30], 0
je 0x461d66
cmp dword [ebx + 0x94], 0
jne 0x461d60
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461c4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461d60
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461d26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461d60
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c87c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461d35
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462a80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462ab5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004048d8
jmp 0x462ac2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040483c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463e4c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463eba
mov eax, esi
call fcn.0044e470
test al, al
je 0x463eba
mov eax, dword [ebx + 0x84]
call fcn.0044e0d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463eba
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x463eae
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044e0d0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00446488
jmp 0x463eba
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00463c88
pop esi
pop ebx
ret
Function at 0x470514
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
xor edx, edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], edx
xor edx, edx
push ebp
push 0x47062f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 1
jne 0x470560
lea eax, [ebp - 0x5c]
call fcn.00409474
push dword [ebp - 0x5c]
push 0x470644
push dword [0x478650]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b6c
jmp 0x470597
cmp eax, 3
jne 0x47057f
lea eax, [ebp - 0x60]
call fcn.00409474
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 4]
mov ecx, 0x470650
call fcn.00404af8
jmp 0x470597
lea eax, [ebp - 0x64]
call fcn.00409474
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 4]
mov ecx, 0x470670
call fcn.00404af8
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403310
mov dword [ebp - 0x58], 0x44
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404cac
push eax
push 0
call sub.kernel32.dll_CreateProcessA
lea eax, [ebp - 4]
call fcn.004047e8
mov eax, dword [0x474028]
mov eax, dword [eax]
call fcn.00462f38
mov eax, dword [0x474028]
mov eax, dword [eax]
call fcn.00463150
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470636
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.0040480c
lea eax, [ebp - 4]
call fcn.004047e8
ret
Function at 0x421560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42158d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42158d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40b860
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.0045d2b0
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
jne 0x40b882
mov ebx, 0x2719
jmp 0x40b8bc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [ebp + 8]
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test edi, edi
jne 0x40b8c9
xor ebx, ebx
call fcn.0045d2b0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x40b8d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [esp + 0x10]
call fcn.0041a130
int3

Function at 0x411b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47fd70
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
lea eax, [ebx + 0xc]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov dword [esp + 0x48], 0
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x411ca6
call fcn.0045d2b0
cmp dword [esi], 0xffffffff
je 0x411c32
push 0
push 0
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [esp + 0x14], eax
test eax, eax
je 0x411c32
mov edi, dword [esi]
lea ebx, [eax + 0x18]
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 1
mov byte [esp + 0x48], 1
call fcn.0045d2b0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 0x3e3
call fcn.0041a5a0
push ebx
mov byte [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0045d2b0
mov ecx, dword [esi]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 1
lea edx, [esi + 4]
call fcn.0041a690
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov edi, dword [esi + 0xc]
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
test edi, edi
je 0x411c9b
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x411c9b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x411c9b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x411bc8
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x505b68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411d38
mov edx, dword [eax + 4]
jmp 0x411d3a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0xff
ja 0x411d59
test edx, edx
je 0x411d59
cmp dword [edx], 0
jne 0x411d59
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.0045d373
add esp, 4
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp byte [ebp + 0x18], 0
push 0
je 0x411dc4
mov ecx, dword [edi + 4]
push 0
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411dec
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
push ebx
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x411e48
cmp eax, 0x3e5
je 0x411e48
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [edi + 4]
push ebx
call fcn.004128b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x18

Function at 0x411e70
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 0x411ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0045d2b0
mov dword [esp + 0xc], eax
test esi, esi
jne 0x411ea9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x48c674
lea ecx, [esp + 8]
call fcn.0041a130
int3
Function at 0x411ec0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x505b68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x411f02
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x411f02
mov eax, dword [ecx]
test eax, eax
je 0x411f02
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x411ef9
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.0045d373
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.0045d324
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x411f23
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4122c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
cmp dword [ebx], 0x40
mov esi, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jne 0x4122fa
call fcn.0045d2b0
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx], 0x2745
cmp dword [ebx], 0
jne 0x4123db
test eax, eax
je 0x41236d
test esi, esi
je 0x41236d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push eax
push 0
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 8]
cmp edi, dword [esi]
jbe 0x41235c
call fcn.0045d2b0
mov dword [ebx], 0x2726
mov dword [ebx + 4], eax
jmp 0x41236d
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0045fe00
add esp, 0xc
mov dword [esi], edi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp esi, 0xffffffff
jne 0x41239a
call fcn.0045d2b0
mov dword [ebx], 0x2719
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x10]
push eax
push 0x700b
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x4123db
call fcn.0045d2b0
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret
Function at 0x4124c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
push 0
cmp eax, 0xffffffff
jne 0x41251e
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push dword [ebp + 0x18]
lea ecx, [ebp - 8]
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
push 0
push ecx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x41257f
cmp eax, 0x3e5
je 0x41257f
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.004128b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49b950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi]
push 0
cmp eax, 0xffffffff
jne 0x412604
mov ecx, dword [edi + 4]
push 0x2719
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x10]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0
push dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
je 0x41266e
cmp eax, 0x3e5
je 0x41266e
push dword [ebp - 8]
mov ecx, dword [edi + 4]
push eax
push ebx
call fcn.00412830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [edi + 4]
push ebx
call fcn.004128b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d315
mov esp, ebp
pop ebp
ret 0x1c