joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481970
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 0x481a6c
mov ebx, dword [esp + 0x14]
lea esp, [esp]
movsx ecx, byte [eax + ebx]
mov cl, byte [ecx + 0x4b7a98]
inc eax
cmp eax, edi
jae 0x4819a6
cmp cl, 0xff
je 0x481990
jmp 0x4819b0
cmp cl, 0xff
je 0x481a6c
nop
movsx edx, byte [eax + ebx]
mov dl, byte [edx + 0x4b7a98]
inc eax
cmp eax, edi
jae 0x4819c6
cmp dl, 0xff
je 0x4819b0
jmp 0x4819cf
cmp dl, 0xff
je 0x481a6c
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 0x481a6c
cmp eax, edi
movsx ecx, cl
mov cl, byte [ecx + 0x4b7a98]
jae 0x481a0d
cmp cl, 0xff
je 0x4819f0
jmp 0x481a12
cmp cl, 0xff
je 0x481a6c
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 0x481a6c
cmp eax, edi
movsx edx, dl
mov dl, byte [edx + 0x4b7a98]
jae 0x481a4e
cmp dl, 0xff
je 0x481a31
jmp 0x481a53
cmp dl, 0xff
je 0x481a6c
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 0x481990
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x483730
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x48374a
push 0x2735
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
pop esi
ret 0x10
mov ecx, esi
call fcn.00483520
test eax, eax
jne 0x483766
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 0x483773
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 0x483744
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.004829c0
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.00483390
test eax, eax
jne 0x4837b8
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 0x4837e0
mov ecx, dword [edi]
push 0x3f
add ecx, 0x402
push ecx
mov ecx, esi
call fcn.00482d50
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
jne 0x4837aa
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.00483110
test eax, eax
je 0x4837aa
pop edi
mov eax, 1
pop esi
ret 0x10
Function at 0x4846d0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2c]
test eax, eax
push edi
jne 0x485d82
mov edi, dword [esp + 0x10]
test edi, edi
je 0x485d82
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x485d82
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xf8]
call fcn.0047dd40
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x484860
mov dword [esi + 0x124], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x2c], eax
je 0x485d82
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 0x486700
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
push edi
jne 0x486772
mov edi, dword [esp + 0x14]
test edi, edi
je 0x486772
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x486772
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xa4]
call fcn.0047dd40
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0xc0]
call fcn.0047dd40
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x485ff0
mov dword [esi + 0x120], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x28], eax
je 0x486772
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 0x486780
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
push edi
jne 0x4867e2
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4867e2
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4867e2
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0xdc]
call fcn.0047dd40
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x4863f0
mov dword [esi + 0x11c], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x24], eax
je 0x4867e2
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 0x4867f0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
push edi
jne 0x486842
mov edi, dword [esp + 0xc]
test edi, edi
je 0x486842
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x486842
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x485d90
mov dword [esi + 0x118], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x20], eax
je 0x486842
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
Function at 0x486f70
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4a956e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x4b7e40
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], 5
je 0x486fbd
mov dword [esi + 0x18], edi
call fcn.00484640
mov ecx, dword [esi + 0x14]
cmp ecx, edi
je 0x486fbd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], edi
lea ecx, [esi + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea edi, [esi + 0xf8]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edi, [esi + 0xdc]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edi, [esi + 0xc0]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea edi, [esi + 0xa4]
lea ecx, [edi + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [edi + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esi + 0x58]
call fcn.0047d9c0
lea ecx, [esi + 0x30]
call fcn.0047e9d0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4874e0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
push edi
jne 0x487532
mov edi, dword [esp + 0xc]
test edi, edi
je 0x487532
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x487532
push 0
push 4
push 0
push 0xffffffffffffffff
push esi
push 0x487230
mov dword [esi + 0x114], edi
call sub.MFC71.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x1c], eax
je 0x487532
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

Function at 0x487c40
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x487bf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jne 0x487c67
xor al, al
pop esi
ret 4
mov dword [esi + 8], eax
mov al, 1
pop esi
ret 4

Function at 0x487f80
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00487ea0
mov ebp, dword [esp + 0x18]
cmp ebp, 0x10
mov edx, dword [esp + 0x14]
jb 0x487fb5
mov ecx, edx
mov esi, dword [ecx]
lea eax, [ebx + 4]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x487fee
mov ecx, ebp
mov eax, ecx
shr ecx, 2
mov esi, edx
lea edi, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebx + 6]
mov ax, word [ebx + 0xa]
add cx, 0xd
add word [ebx + 0xe], cx
mov cx, word [ebx + 8]
add ax, 0x17
add word [ebx + 0x10], ax
add cx, 0x21
add word [ebx + 0x12], cx
cmp ebp, 0x18
jb 0x488006
mov eax, dword [edx + 0x10]
pop edi
mov dword [ebx + 0x14], eax
mov ecx, dword [edx + 0x14]
pop esi
pop ebp
mov dword [ebx + 0x18], ecx
pop ebx
ret 8
mov esi, edx
lea eax, [ebx + 0x14]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cx, word [ebx + 0x12]
mov dx, word [ebx + 0xe]
add cx, 0x4b
add word [eax], cx
mov ax, word [ebx + 0x10]
mov cx, word [ebx + 0xc]
pop edi
pop esi
add dx, 0x55
add word [ebx + 0x16], dx
add ax, 0x5f
add word [ebx + 0x18], ax
add cx, 0x69
add word [ebx + 0x1a], cx
pop ebp
pop ebx
ret 8
Function at 0x488520
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x84]
test edi, edi
mov esi, ebp
jg 0x48854f
push str.IDEA_encryption_error__t_block_size_is_negative_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x488572
push str.IDEA_encryption_error__t_user_key_is_NULL_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
push ebx
lea eax, [esp + 0x18]
call fcn.00488180
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
sar eax, 3
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jle 0x4885cb
mov ebx, eax
jmp 0x4885a0
xor dword [esi], ecx
xor dword [esi + 4], edx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.00488340
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 4
add esi, 8
dec ebx
jne 0x4885a0
mov esi, edi
and esi, 7
je 0x488600
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
call fcn.00488340
mov eax, edi
sub eax, esi
add esp, 4
cmp eax, edi
jge 0x488600
lea ecx, [esp + 0x10]
nop
mov bl, byte [eax + ebp]
mov dl, byte [ecx]
xor bl, dl
mov byte [eax + ebp], bl
inc eax
inc ecx
cmp eax, edi
jl 0x4885f0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x70
ret
Function at 0x488610
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe4
push ebp
mov ebp, dword [esp + 0xf0]
test ebp, ebp
push esi
mov esi, dword [esp + 0xf0]
jg 0x488644
push str.IDEA_decryption_error__t_block_size_is_negative_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xe4
ret
mov ecx, dword [esp + 0xf8]
test ecx, ecx
jne 0x488669
push str.IDEA_decryption_error__t_user_key_is_NULL_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xe4
ret
push ebx
push edi
lea eax, [esp + 0x24]
call fcn.00488180
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x24]
call fcn.00488200
mov eax, dword [esp + 0x104]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, ebp
sar eax, 3
test eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
jle 0x4886f8
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov ebp, dword [esi]
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x90]
mov ecx, esi
call fcn.00488340
mov eax, dword [esi]
mov edx, dword [esi + 4]
xor eax, edi
xor edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edx
add esp, 4
add esi, 8
dec eax
mov edi, ebp
mov dword [esp + 0x18], eax
jne 0x4886a5
mov ebp, dword [esp + 0xfc]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edi, ebp
and edi, 7
je 0x488730
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
call fcn.00488340
mov eax, ebp
sub eax, edi
add esp, 4
cmp eax, ebp
jge 0x488730
lea ecx, [esp + 0x10]
lea esp, [esp]
mov bl, byte [eax + esi]
mov dl, byte [ecx]
xor bl, dl
mov byte [eax + esi], bl
inc eax
inc ecx
cmp eax, ebp
jl 0x488720
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xe4
ret

Function at 0x488820
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x400
call sub.MFC71.DLL_operator_new
mov esi, eax
add esp, 4
test esi, esi
je 0x488874
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.KM.TID_0x_x.
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
pop esi
ret
Function at 0x488880
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x110
push 0x100
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4888b7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error:__u_n
call fcn.00488820
add esp, 8
xor eax, eax
add esp, 0x110
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
push str.hostname_s_n
call fcn.00488820
add esp, 8
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
jne 0x4888f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error:__u_n
call fcn.00488820
add esp, 8
xor eax, eax
pop ebx
add esp, 0x110
ret
movsx eax, word [ebx + 0xa]
movsx ecx, word [ebx + 8]
mov edx, dword [ebx + 4]
push ebp
push esi
push edi
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
push str.name_s_naliases_s_naddrtype_d_nlength_d_n
call fcn.00488820
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx]
add esp, 0x14
xor ebp, ebp
test esi, esi
je 0x488960
movsx ecx, word [ebx + 0xa]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Address:__s_n
call fcn.00488820
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + ebp*4 + 4]
add esp, 8
inc ebp
test esi, esi
jne 0x488925
movsx ecx, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x488b80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x650
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
lea ebp, [esi + 4]
push 0
mov ecx, ebp
call fcn.0048ad80
cmp eax, 0xffffffff
mov dword [esi + 0x8c], eax
je 0x488cca
mov eax, dword [esi + 0x10]
xor edi, edi
push edi
push eax
mov dword [esp + 0x20], 2
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x488cca
mov eax, dword [esi + 0x8c]
xor ecx, ecx
mov dword [esp + 0x12c], eax
inc eax
mov dword [esp + 0x128], 1
je 0x488bef
mov ecx, eax
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x134]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x488cb7
test eax, eax
jne 0x488c7e
mov ecx, edi
inc edi
cmp ecx, 0x14
mov dword [esp + 0x14], edi
ja 0x488cca
mov ebx, dword [esi + 0x8c]
lea edx, [esi + 0x84]
push edx
mov ecx, 0xe7
lea edi, [esp + 0x2c4]
rep stosd dword es:[edi], eax
push 0xf
lea eax, [esp + 0x2c8]
push eax
mov ecx, ebp
call fcn.00489200
lea ecx, [esi + 0x78]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x2cc]
push eax
mov ecx, ebp
mov word [esp + 0x130], 0
call fcn.0048a2e0
cmp eax, 0xffffffff
je 0x488cca
mov edi, dword [esp + 0x14]
jmp 0x488c98
jle 0x488c98
mov ecx, dword [esi + 0x8c]
push ecx
mov ecx, esi
call fcn.00488ad0
cmp eax, 0xffffffff
je 0x488c98
cmp eax, 3
jne 0x488ccd
mov edx, dword [esi + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x488bd0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
push eax
push str._select_failed____d_n
call fcn.00488820
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x489270
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
sub eax, 0
je 0x48930e
dec eax
je 0x4892d2
dec eax
je 0x48929b
push ecx
push str._error_type__d_n
call fcn.00488820
add esp, 8
mov eax, 1
ret 0xc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x489293
push str._error_setting_SO_REUSEADDR_option_on_socket.__n
call fcn.00488820
add esp, 4
xor eax, eax
ret 0xc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x489293
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.setsockopt_failed_with_error__d_n
call fcn.00488820
add esp, 8
xor eax, eax
ret 0xc
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x489293
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ioctlsocket___failed_with_error__d_n
call fcn.00488820
add esp, 8
xor eax, eax
ret 0xc