joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412280
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46ab10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esi + 0x7f4], 1
mov eax, dword [0x48adc4]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x7bc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push ecx
mov dword [esp + 0x38], 0
call ebx
cmp eax, 1
push 0
push 0
jbe 0x4122fa
mov edx, dword [esi + 0x7bc]
push 0x1032
push edx
call ebx
push eax
lea eax, [esp + 0x14]
push 0x4876bc
push eax
call fcn.0044cfab
add esp, 0xc
jmp 0x412377
mov ecx, dword [esi + 0x7bc]
push 0x1042
push ecx
call ebx
lea edi, [esi + 0x7a0]
push 0
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, edi
call fcn.0044db63
mov eax, dword [esi + 0x7bc]
push 0
push 0
push 0x1042
push eax
mov byte [esp + 0x38], 1
call ebx
push eax
mov ecx, edi
call fcn.0044dc4d
cmp eax, 1
jne 0x412352
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x487690
push edx
jmp 0x412361
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x487678
push ecx
call fcn.0044cfab
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0045413b
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push 0x24
push 0x48766c
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x412476
push 0
mov ecx, esi
call fcn.00410f70
mov ecx, dword [esi + 0x7bc]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
lea ebp, [eax + 1]
test ebp, ebp
je 0x412455
mov edx, dword [esi + 0x7bc]
lea edi, [ebp - 1]
push 2
push edi
push 0x100c
push edx
call ebx
lea ebp, [eax + 1]
push 0
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esi + 0x7a0]
call fcn.0044db63
push eax
lea eax, [esi + 0x668]
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.0045436a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.0045413b
push edi
lea ecx, [esi + 0x7a0]
call fcn.0044dc4d
test eax, eax
je 0x412434
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004544ca
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.004129d0
jmp 0x41243f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0045413b
test ebp, ebp
jne 0x4123bc
push 1
mov ecx, esi
call fcn.00410f70
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x487568
call fcn.004541a9
mov ecx, esi
call fcn.0040f1d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0045413b
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4128a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 1
mov ecx, dword [esi + 0x654]
add ecx, 0x24
call fcn.00402f10
mov edi, eax
xor ecx, ecx
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [edi + 4]
mov edx, dword [edi]
xor eax, eax
or ecx, ebp
or edx, eax
mov dword [esi + 0x80], ecx
mov ecx, esi
mov dword [esi + 0x84], edx
call fcn.00412190
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x78]
cmp ecx, eax
jne 0x4128ff
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x7c]
cmp edx, eax
je 0x4129c1
cmp dword [edi + 4], 0xffffffff
je 0x4129c1
mov al, byte [esi + 0x5c]
test al, al
jne 0x4129c1
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0
lea ecx, [esi + 0x70]
call fcn.004544f7
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4129c8
lea eax, [esp + 0x10]
push 0
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [edi + 9]
mov byte [edi], 5
mov ecx, dword [esp + 0x18]
push 0x1ff7
push eax
push ebx
mov dword [edi + 1], ecx
mov dword [edi + 5], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4129b2
mov ecx, dword [esi + 0x654]
add eax, 9
push eax
push edi
push ecx
mov ecx, dword [esi + 0x658]
call fcn.0041c270
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, esi
call fcn.00411ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x4129d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x44c
lea eax, [esp + 0x348]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push str._s.
mov ebp, ecx
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x412a25
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44c
ret 4
cmp byte [esp + 0x3c], 0x2e
je 0x412a77
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
push esi
push str._s_s
je 0x412a5c
lea ecx, [esp + 0x15c]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x150]
mov ecx, ebp
push edx
call fcn.004129d0
jmp 0x412a77
lea ecx, [esp + 0x260]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412a25
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x44c
ret 4
Function at 0x413a30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470d10
push 0x43dd3c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [0x47a1fc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x413b8d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x413adc
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x413adc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x413ab7
cmp al, 0x5c
je 0x413ab7
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x413a9f
cmp byte [esi], 0
je 0x413ac0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x413ad5
cmp al, 0x5c
je 0x413ad5
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x413abd
cmp byte [esi], 0
je 0x413afb
jmp 0x413af7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x413afb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x413afb
cmp al, 0x5c
jne 0x413afb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x413b51
cmp al, 0x5c
jne 0x413b43
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x413b36
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x413b40
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413b40
push edi
jmp 0x413b84
and eax, 0x10
cmp al, 0x10
je 0x413b40
push edi
jmp 0x413b84
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x413b01
mov dword [ebp - 4], 0xffffffff
push edi
call dword [0x47a1f8]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [0x47a1f8]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416bd0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x416beb
pop esi
ret
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x10]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x18]
push 0
push edx
mov esi, eax
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
ret

Function at 0x417639
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x46b113
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0043af60
xor ebx, ebx
mov dword [esi], 0x4719c8
mov dword [esp + 0x1c], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xdc], ebx
call fcn.004647ec
mov eax, dword [eax + 4]
cmp byte [eax + 0xc8], bl
je 0x4176b5
push 0x74
call fcn.0044f9a7
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x41768d
mov ecx, eax
call fcn.00424020
jmp 0x41768f
xor eax, eax
push ecx
mov byte [esp + 0x20], bl
mov ecx, esp
mov dword [esp + 0x10], esp
push str.QQWry.Dat
mov dword [esi + 0xd8], eax
call fcn.004541a9
mov ecx, dword [esi + 0xd8]
call fcn.00424dc0
call fcn.004647ec
mov eax, dword [eax + 4]
push 0x14
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
mov dword [eax + 0xcc], esi
push str.CheckTime
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xa58], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xa60], ebx
call fcn.004541a9
push ecx
mov byte [esp + 0x28], 2
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Settings
call fcn.004541a9
mov byte [esp + 0x28], bl
call fcn.00403e80
mov ecx, eax
add ecx, 0xc0
call fcn.0041b330
push ebx
push ebx
push esi
push 0x41a8b0
push ebx
push ebx
mov dword [0x493a74], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x41af40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x41af70
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x41af7f
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x41afa2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x41afb1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x41afd4
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8

Function at 0x41b330
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46b638
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0045413b
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0045413b
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x41b8e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x46b6aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x471b18
mov eax, 0xa
mov dword [esp + 8], esi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
mov dword [esp + 0x1a8], ebx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 1
call fcn.00403e90
lea eax, [esp + 0x10]
mov dword [esi], 0x471b14
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x493a90
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x6c], eax
mov al, 0x6a
mov byte [esp + 8], 0x58
mov byte [esp + 9], al
mov byte [esp + 0xa], al
mov byte [esp + 0xb], 0x68
mov edx, dword [esp + 8]
lea ecx, [esi + 0x26]
mov dword [esi + 0x68], ebx
mov byte [esi + 0x78], bl
mov dword [ecx], edx
mov byte [esi + 0x25], bl
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1a0]
mov byte [esi + 0x24], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x2710
mov dword [esi + 0x88], 0xea60
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x41baf0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push 1
push 0
mov esi, ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push 1
push 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x68], eax
je 0x41bc00
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 0x64], eax
jne 0x41bb49
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x68]
push 8
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x41bbf6
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x68]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41bba7
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
mov ecx, dword [esi + 0x68]
push 0xa
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41bbf6
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
push esi
push 0x41bc10
push 0
push 0
call dword [0x47a218]
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esi + 0x70], eax
je 0x41bc00
mov ecx, esi
call fcn.0041bf00
mov byte [esi + 0x24], 1
mov al, 1
pop esi
add esp, 0x10
ret 0x10
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
add esp, 0x10
ret 0x10
Function at 0x41bf00
Capabilities:
Create tcp socket
Create udp socket
Get system information on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bf26
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
mov dword [esi + 0x74], eax
push edi
jne 0x41bf4b
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x94], 0xa
mov dword [esi + 0x98], 0x4b
lea eax, [ecx + ecx]
lea ecx, [esi + 0x7c]
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
call fcn.00403ef0
mov edx, dword [esp + 0x28]
xor edi, edi
mov dword [esi + 0x20], 0
lea ebx, [edx + edx]
test ebx, ebx
jbe 0x41bfd2
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x41bff0
push 0
push 0
call dword [0x47a218]
add esp, 0x18
test eax, eax
je 0x41bfdc
mov ecx, dword [esi + 0x20]
push eax
inc ecx
mov dword [esi + 0x20], ecx
call ebp
inc edi
cmp edi, ebx
jb 0x41bfa5
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret
mov ecx, dword [esi + 0x74]
push ecx
call ebp
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
mov ebx, ecx
push 0x18
call fcn.0044f9a7
mov edx, eax
add esp, 4
test edx, edx
je 0x41c21d
push edi
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 1
pop edi
jmp 0x41c21f
xor edx, edx
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
lea edx, [esi + 0x50]
push 1
push edx
push eax
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x41c263
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41c263
push 0
push esi
mov ecx, ebx
call fcn.0041c9f0
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x41c7c0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b7c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [0x493ab1]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test al, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
jne 0x41c80c
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
or al, 1
mov byte [0x493ab1], al
call esi
mov dword [0x493aac], eax
jmp 0x41c812
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x493abc]
add eax, edi
mov dword [0x493abc], eax
call esi
sub eax, dword [0x493aac]
cmp eax, 0x3e8
jb 0x41c851
call esi
mov dword [0x493aac], eax
mov eax, dword [0x493abc]
add ebx, 0x14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [0x493abc], 0
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00402f20
mov ecx, ebx
call fcn.00402d50
test eax, eax
jne 0x41c893
mov ecx, ebx
call fcn.00402ef0
mov ecx, dword [esi + 0x2060]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x18
call fcn.0044f9a7
mov edx, eax
add esp, 4
test edx, edx
je 0x41c8b9
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x14], 2
mov edi, edx
jmp 0x41c8bb
xor edi, edi
mov eax, dword [ebp - 0x14]
push 3
push esi
mov edx, dword [eax + 8]
push edx
call dword [eax + 4]
push 0
mov ecx, ebx
call fcn.00402f10
mov ecx, ebx
mov dword [esi + 0x205c], eax
call fcn.00402d50
lea ecx, [esi + 0x2058]
push 0
push edi
push 0x8000
mov dword [ecx], eax
mov eax, dword [esi]
push ecx
push 1
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x41c918
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41c918
mov ecx, dword [ebp - 0x14]
push 0
push esi
call fcn.0041c9f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c9f0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x46b7f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
push str.RemoveStaleClient
lea ecx, [esp + 0xc]
call fcn.004541a9
mov eax, dword [0x48adc4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00454274
push 0x493a90
mov dword [esp + 0x14], 0x493a90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 8]
mov byte [esp + 0x20], 3
call fcn.0045413b
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x41ca93
mov eax, dword [esi]
lea edx, [esp + 0xc]
push 4
push edx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x30]
test eax, eax
je 0x41cad5
cmp dword [eax + 8], esi
je 0x41caa7
mov eax, dword [eax]
test eax, eax
jne 0x41ca9a
jmp 0x41cad5
test eax, eax
je 0x41cad5
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov eax, dword [edi + 8]
push 2
push esi
push eax
call dword [edi + 4]
push esi
mov ecx, edi
call fcn.0041cc30
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0045413b
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x41cc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push str.MoveToFreePool
lea ecx, [esp + 0x10]
call fcn.004541a9
mov eax, dword [0x48adc4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00454274
push 0x493a90
mov dword [esp + 0x14], 0x493a90
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.0045413b
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x41cd9e
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x41ccc1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x41ccab
jmp 0x41cd9e
test ebx, ebx
je 0x41cd9e
push ebp
lea ecx, [edi + 0x14]
call fcn.00402ef0
lea ecx, [edi + 4]
call fcn.00402ef0
lea ecx, [edi + 0x24]
call fcn.00402ef0
lea ecx, [edi + 0x34]
call fcn.00402ef0
mov eax, dword [esi + 0x58]
mov ebp, dword [esi + 0x50]
test eax, eax
jne 0x41cd21
mov edx, dword [esi + 0x60]
push 0xc
lea eax, [esi + 0x5c]
push edx
push eax
call fcn.0044ede2
mov ecx, dword [esi + 0x60]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x41cd21
inc ecx
mov edx, dword [esi + 0x58]
mov dword [eax], edx
mov dword [esi + 0x58], eax
sub eax, 0xc
dec ecx
jne 0x41cd13
mov edi, dword [esi + 0x58]
push 1
mov eax, dword [edi]
mov dword [esi + 0x58], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov ecx, dword [esi + 0x54]
lea ebp, [edi + 8]
inc ecx
push ebp
mov dword [esi + 0x54], ecx
call fcn.0041d170
mov ecx, dword [esp + 0x2c]
mov dword [ebp], ecx
mov eax, dword [esi + 0x50]
test eax, eax
pop ebp
je 0x41cd57
mov dword [eax], edi
jmp 0x41cd5a
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x2c]
mov dword [esi + 0x50], edi
cmp ebx, dword [ecx + 4]
jne 0x41cd6c
mov edx, dword [ebx]
mov dword [ecx + 4], edx
jmp 0x41cd73
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [eax], edx
cmp ebx, dword [ecx + 8]
jne 0x41cd80
mov eax, dword [ebx + 4]
mov dword [ecx + 8], eax
jmp 0x41cd88
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ecx + 0x10]
mov dword [ebx], edx
mov eax, dword [ecx + 0xc]
dec eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], eax
jne 0x41cd9e
call fcn.0041cf30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0045413b
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4