joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49cf58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.004249b0
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
push 0x2c
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x30], ebp
call dword [eax + 8]
mov esi, eax
cmp esi, 1
mov dword [esp + 0xc], esi
jge 0x46b98a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x1c], ebp
je 0x46ba55
jmp 0x46b970
mov esi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x46b970
jmp 0x46ba55
mov edx, dword [edi]
push ebx
push ebp
mov ecx, edi
call dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov ebx, 1
add esp, 4
cmp esi, ebx
mov dword [esp + 0x14], eax
jle 0x46ba00
lea ebx, [ebx]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x10]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 4]
add esp, 4
lea ebp, [eax + 4]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.00430ca0
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004249d0
mov dword [ebp], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x46b9b0
xor ebp, ebp
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [0x4bd2c0]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [edx + 0xbc]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x20], ebp
pop ebx
je 0x46ba55
jmp 0x46ba40
mov esi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x46ba40
push ecx
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x471fd0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x49d335
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x4a095c
mov dword [esp + 8], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 8]
mov byte [esp + 0x14], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 0xd
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 0xe
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 0xf
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 0x10
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push 0x4a095c
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 0x11
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4744d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 4]
add eax, 0xfffff980
cmp eax, 0x96
ja case.default.0x4744f4
movzx eax, byte [eax + 0x4746f4]
push ebx
push esi
jmp dword [eax*4 + 0x4746d8]
pop esi
pop ebx
mov dword [ecx + 0x48], 1
pop edi
add esp, 8
ret 4
mov ecx, dword [edi + 0xc]
mov esi, dword [edi + 8]
push ecx
push 0
push esi
call fcn.004909b0
push esi
call fcn.00490b60
add esp, 0x10
mov dword [esi + 0x14], 0
mov byte [esi + 0x93], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi]
pop esi
add eax, 0x5dc
pop ebx
mov dword [edx + 0x17cc], eax
pop edi
add esp, 8
ret 4
mov eax, dword [ecx + 0x44]
test eax, eax
jne case.0x4744f4.1670
mov edi, dword [edi + 0xc]
cmp dword [edi + 0x18], 3
push ebp
mov ebp, dword [edi + 0x14]
jne 0x4745ce
lea eax, [ebp + 0xf4]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x4745c3
lea ebx, [ebp + 0xc0]
mov ecx, ebx
call sub.MFC71.DLL_CPtrList::RemoveHead
mov esi, eax
push esi
push 0
push edi
call fcn.004909b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4745bb
mov eax, dword [ebp + 0xcc]
test eax, eax
jne 0x474582
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop esi
pop ebx
pop edi
add esp, 8
ret 4
push esi
mov ecx, ebx
call sub.MFC71.DLL_CPtrList::AddHead
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop esi
pop ebx
pop edi
add esp, 8
ret 4
mov eax, dword [ecx + 0x44]
test eax, eax
jne case.0x4744f4.1670
mov edi, dword [edi + 8]
push 1
push 0x319c
push edi
call sub.MFC71.DLL_AfxIsValidAddress
test eax, eax
je case.0x4744f4.1670
mov eax, dword [edi + 0xa0]
test eax, eax
je case.0x4744f4.1670
mov ecx, dword [edi + 0x70]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0xc], eax
mov dx, word [edi + 0x80]
push 1
lea eax, [esp + 0x10]
mov word [esp + 0x14], dx
mov ecx, dword [edi + 0xa0]
push eax
push ecx
call fcn.0048fe70
add esp, 0xc
test eax, eax
jne 0x474652
push 1
push 0x14
push 1
push edi
push 0x712
call fcn.00473150
mov ecx, eax
call fcn.00472c00
pop esi
pop ebx
pop edi
add esp, 8
ret 4
pop esi
pop ebx
mov dword [eax + 0x14], edi
pop edi
add esp, 8
ret 4
mov esi, dword [edi + 8]
mov ebx, dword [esi + 0x14]
push esi
call fcn.00490b60
add esp, 4
mov dword [esi + 0x14], 0
mov byte [esi + 0x93], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi]
add eax, 0x1f4
mov dword [edx + 0x17cc], eax
cmp dword [edi + 0xc], 1
jne case.0x4744f4.1670
push 1
push 0xa
push 0
push ebx
push 0x5a9
call fcn.00473150
mov ecx, eax
call fcn.00472c00
pop esi
pop ebx
pop edi
add esp, 8
ret 4
mov eax, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
add ecx, 0x4c
mov dword [esp + 0x1c], eax
call fcn.00474480
pop esi
pop ebx
pop edi
add esp, 8
ret 4
Function at 0x474790
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4747cc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x1f4
jae 0x47486f
push 1
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
mov bl, 1
call ebp
test eax, eax
je 0x474802
xor bl, bl
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004744d0
push 1
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call ebp
test eax, eax
jne 0x4747e3
xor edi, edi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x47484a
mov eax, dword [esi + 0x54]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x47484a
mov eax, ecx
mov edx, dword [eax + edi*4]
lea eax, [eax + edi*4]
push 5
lea ecx, [esp + 0x18]
push ecx
push edx
xor bl, bl
call fcn.004923e0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, 4
jne 0x474847
mov eax, dword [esp + 0x20]
push eax
call fcn.0048fc40
add esp, 4
inc edi
jmp 0x474804
test bl, bl
je 0x4747b0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x7d0
jbe 0x4747b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x47586d
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x67c
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov esi, ecx
mov dword [esp + 0x67c], eax
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4758d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0xb4]
sub eax, edx
cmp eax, ecx
jb 0x4758d0
lea ecx, [esp + 8]
call fcn.00477600
push 0
push 0
push 0x1d53
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004612c0
mov edx, dword [esi]
push 1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [edx + 0x24]
call edi
mov dword [esi + 0xac], eax
pop edi
mov ecx, dword [esp + 0x67c]
pop esi
xor ecx, esp
call fcn.00496ace
add esp, 0x67c
ret
Function at 0x475d6d
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x67c
mov eax, dword [0x4bc410]
xor eax, esp
push esi
mov esi, ecx
mov dword [esp + 0x67c], eax
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x475e26
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0xb4]
sub eax, edx
cmp eax, ecx
jb 0x475e25
lea ecx, [esp + 8]
call fcn.00477600
push 0
push 0
push 2
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004612c0
mov ecx, dword [0x4bd2c0]
cmp dword [ecx + 0x7c8], 4
push 0x2c
lea ecx, [esp + 0xc]
push 0
jne 0x475ddd
push 0x4a112c
jmp 0x475de2
push 0x4a1648
call fcn.00477240
push 0x2c
push 1
lea edx, [esi + 0xb8]
push edx
lea ecx, [esp + 0x14]
call fcn.00477450
push 0x2c
push 1
lea eax, [esi + 0xbc]
push eax
lea ecx, [esp + 0x14]
call fcn.00477450
mov edx, dword [esi]
push 1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [edx + 0x24]
call edi
mov dword [esi + 0xac], eax
pop edi
mov ecx, dword [esp + 0x67c]
pop esi
xor ecx, esp
call fcn.00496ace
add esp, 0x67c
ret
Function at 0x476bd0
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x476bdb
pop ecx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [esi + eax - 3]
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx*4 + 1]
push edx
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
jne 0x476c0d
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
push ebp
xor ebp, ebp
cmp esi, edi
jae 0x476c78
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dh, byte [esi + 1]
inc esi
add ebp, 4
or ecx, edx
mov edx, ecx
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
inc esi
shl ecx, 6
inc eax
mov edx, ecx
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 0x14
inc eax
mov byte [eax], dl
and ecx, 0x3f
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp esi, edi
jb 0x476c14
add edi, 3
xor edx, edx
xor ecx, ecx
cmp esi, edi
jae 0x476cb1
push ebx
mov ebx, edi
mov ecx, 0x18
sub ebx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebx
movzx ebx, byte [esi]
shl ebx, cl
mov ecx, dword [esp + 0x1c]
sub ecx, 8
mov dword [esp + 0x1c], ecx
or edx, ebx
inc esi
cmp esi, edi
jb 0x476c95
mov ecx, dword [esp + 0x10]
pop ebx
lea esi, [ecx*8]
test esi, esi
jl 0x476ccf
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
shl edx, 6
jmp 0x476cd2
mov byte [eax], 0x3d
inc eax
inc ebp
cmp esi, 6
jl 0x476cec
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
shl edx, 6
jmp 0x476cef
mov byte [eax], 0x3d
inc eax
inc ebp
cmp esi, 0xc
jl 0x476d09
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
shl edx, 6
jmp 0x476d0c
mov byte [eax], 0x3d
inc eax
inc ebp
cmp esi, 0x12
jl 0x476d33
mov ecx, dword [esp + 0x1c]
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
inc ebp
mov byte [eax], 0
sub eax, ebp
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0x3d
inc eax
inc ebp
mov byte [eax], 0
sub eax, ebp
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x476d50
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
test edi, edi
mov dword [esi], eax
jbe 0x476e4c
mov ebx, dword [esp + 0x14]
lea esp, [esp]
movsx ecx, byte [eax + ebx]
mov cl, byte [ecx + 0x4aa530]
inc eax
cmp eax, edi
jae 0x476d86
cmp cl, 0xff
je 0x476d70
jmp 0x476d90
cmp cl, 0xff
je 0x476e4c
nop
movsx edx, byte [eax + ebx]
mov dl, byte [edx + 0x4aa530]
inc eax
cmp eax, edi
jae 0x476da6
cmp dl, 0xff
je 0x476d90
jmp 0x476daf
cmp dl, 0xff
je 0x476e4c
mov ebp, dword [esp + 0x1c]
mov bl, dl
sar bl, 4
shl cl, 2
and bl, 3
or bl, cl
mov ecx, dword [esi]
mov byte [ecx + ebp], bl
mov ecx, dword [esi]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esi], ecx
mov ebp, ecx
mov cl, byte [eax + ebx]
inc eax
cmp cl, 0x3d
je 0x476e4c
cmp eax, edi
movsx ecx, cl
mov cl, byte [ecx + 0x4aa530]
jae 0x476ded
cmp cl, 0xff
je 0x476dd0
jmp 0x476df2
cmp cl, 0xff
je 0x476e4c
mov bl, cl
sar bl, 2
shl dl, 4
and bl, 0xf
or bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edx + ebp], bl
mov edx, dword [esi]
mov ebx, dword [esp + 0x14]
inc edx
mov dword [esi], edx
mov ebp, edx
mov dl, byte [eax + ebx]
inc eax
cmp dl, 0x3d
je 0x476e4c
cmp eax, edi
movsx edx, dl
mov dl, byte [edx + 0x4aa530]
jae 0x476e2e
cmp dl, 0xff
je 0x476e11
jmp 0x476e33
cmp dl, 0xff
je 0x476e4c
shl cl, 6
or cl, dl
mov edx, dword [esp + 0x1c]
mov byte [edx + ebp], cl
mov edx, dword [esi]
inc edx
cmp eax, edi
mov dword [esi], edx
jb 0x476d70
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x478af0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x478b0a
push 0x2735
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
pop esi
ret 0x10
mov ecx, esi
call fcn.004788e0
test eax, eax
jne 0x478b26
push 0x276d
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
pop esi
ret 0x10
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x478b33
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x28]
mov eax, dword [esp + 0xc]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x478b04
mov ecx, dword [esi + 0x1c]
push edi
lea edi, [esi + 8]
push edi
mov dword [esi + 4], eax
mov ecx, dword [ecx]
push esi
call fcn.00477d70
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.00478750
test eax, eax
jne 0x478b78
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0x20]
test eax, eax
je 0x478ba0
mov ecx, dword [edi]
push 0x3f
add ecx, 0x402
push ecx
mov ecx, esi
call fcn.00478100
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x478b6a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.004784d0
test eax, eax
je 0x478b6a
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x4797a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x49d8d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [edi + 4]
push eax
lea ecx, [esi + 4]
mov dword [esp + 0x18], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 8]
mov byte [esp + 0x18], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [edi + 0xc]
push edx
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [edi + 0x10]
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [edi + 0x14]
push ecx
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [edi + 0x18]
push edx
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [edi + 0x24]
push edx
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [edi + 0x28]
push eax
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [edi + 0x2c]
push ecx
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [edi + 0x30]
push edx
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov byte [esp + 0x14], 0xc
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [edi + 0x38]
push ecx
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 0xd
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edx, [edi + 0x3c]
push edx
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 0xe
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea eax, [edi + 0x40]
push eax
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0xf
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [edi + 0x44]
push ecx
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 0x10
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
add edi, 0x48
push edi
lea ecx, [esi + 0x48]
mov byte [esp + 0x18], 0x11
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x47b7a0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
push edi
jne 0x47b812
mov edi, dword [esp + 0x14]
test edi, edi
je 0x47b812
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47b812
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xa4]
call fcn.00472770
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0xc0]
call fcn.00472770
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x47ae70
mov dword [esi + 0x120], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x28], eax
je 0x47b812
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 0xc
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x47b820
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
push edi
jne 0x47b882
mov edi, dword [esp + 0x10]
test edi, edi
je 0x47b882
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47b882
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xdc]
call fcn.00472770
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x47b490
mov dword [esi + 0x11c], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x24], eax
je 0x47b882
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x47b890
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
push edi
jne 0x47b8f2
mov edi, dword [esp + 0x10]
test edi, edi
je 0x47b8f2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47b8f2
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xf8]
call fcn.00472770
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x47b270
mov dword [esi + 0x124], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x2c], eax
je 0x47b8f2
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 8
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x47b900
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
push edi
jne 0x47b952
mov edi, dword [esp + 0xc]
test edi, edi
je 0x47b952
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47b952
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x47ac10
mov dword [esi + 0x118], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x20], eax
je 0x47b952
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4