joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462110
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx + 0x48]
mov edi, dword [ebx + 0x4c]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
je 0x462213
mov eax, dword [ebx + 0x8c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x462213
mov eax, dword [ebx + 0x48]
push ebp
mov ebp, dword [ebx + 0x4c]
push esi
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x46220b
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x46220b
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.004617a0
mov al, byte [ebx + 0x88]
test al, al
jne 0x4621c6
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x4621a1
mov eax, 0x4cf414
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub ecx, edx
lea esi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
jmp 0x4621e4
mov ecx, dword [ebx + 0x3c]
mov edi, dword [esp + 0x14]
sub ecx, edi
mov eax, 0x2a2a2a2a
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
sub eax, ecx
push ebp
cdq
xor eax, edx
sub eax, edx
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret

Function at 0x462220
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x8c]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x462264
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x46225d
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x46225d
push eax
mov ecx, edi
call fcn.00462000
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
ret
Function at 0x465700
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4cbfff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esi], 0x4d0f8c
mov dword [esp + 0x20], 5
call fcn.00465860
mov ecx, esi
call fcn.00466a70
push 0x46a6b0
push 0xc
lea eax, [esi + 0x12f8]
push 0x10
push eax
mov byte [esp + 0x30], 4
call fcn.004b860e
mov eax, dword [esi + 0x12ec]
push eax
mov dword [esp + 0x14], eax
call fcn.004a9db0
xor ebx, ebx
lea edi, [esi + 0x12d4]
mov dword [esi + 0x12ec], ebx
mov dword [esi + 0x12f0], ebx
mov dword [esi + 0x12f4], ebx
mov eax, dword [edi + 4]
add esp, 4
mov byte [esp + 0x20], 2
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00467740
mov eax, dword [edi + 4]
push eax
call fcn.004a9db0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
call fcn.004a9f40
mov eax, dword [0x5dc040]
dec eax
mov dword [0x5dc040], eax
jne 0x4657d7
mov edx, dword [0x5dc044]
push edx
call fcn.004a9db0
add esp, 4
mov dword [0x5dc044], ebx
lea ecx, [esp + 0x10]
call fcn.004a9fdc
push 0x46a6b0
push 0x12c
lea eax, [esi + 0x14]
push 0x10
push eax
mov byte [esp + 0x30], 1
call fcn.004b860e
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call fcn.004a9db0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
pop edi
mov dword [0x5dc048], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x46cd70
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x46cf03
mov eax, dword [esi + 0x20]
lea edx, [esp + 0xc]
push edx
push 0x10
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp eax, 0x8007001e
je 0x46cda1
cmp eax, 0x8007000c
jne 0x46cdb2
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jl 0x46cf03
cmp eax, 0x8007001e
je 0x46cd83
test eax, eax
jge 0x46cddf
push str.D:o2jamInputInput.cpp
push 0xffffffffffffffff
push str.m_pdidMouse__GetDeviceState___Failed
push 0x4de454
push 0
call fcn.00489c30
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0046cf10
mov eax, dword [esp + 0x18]
lea ebx, [esi + 0x218]
push eax
lea ecx, [esi + 0x344]
push ebx
push ecx
mov ecx, esi
call fcn.0046d1b0
mov edi, dword [esi + 0x64]
mov edx, dword [0x5eed00]
cmp edx, dword [edi]
jne 0x46ce34
mov eax, dword [0x5eed04]
mov ecx, dword [edi + 4]
cmp eax, ecx
jne 0x46ce34
mov eax, 0xffffff9c
pop edi
pop esi
mov dword [0x5eed00], eax
mov dword [0x5eed04], eax
pop ebx
add esp, 0x10
ret
fld qword [esi + 0x3e8]
call fcn.004b87d8
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jge 0x46ce88
fld qword [esi + 0x3f0]
call fcn.004b87d8
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jge 0x46ce88
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
mov ecx, dword [0x5c8890]
push edx
call fcn.0048ad90
mov ecx, esi
call fcn.0046d100
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x64]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
mov ecx, dword [0x5c8890]
push edx
call fcn.0048ad90
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
mov dword [0x5eed00], ecx
mov edx, dword [esi + 0x64]
mov eax, dword [edx + 4]
mov dword [0x5eed04], eax
mov eax, dword [ebx]
test eax, eax
jne 0x46cef6
mov ecx, dword [0x5c8888]
call fcn.00405620
mov ecx, esi
mov dword [esi + 0x42c], eax
mov dword [esi + 0x434], 1
call fcn.0046d0d0
push 0
push 5
push 0
mov ecx, esi
call fcn.0046c1a0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 0
push 5
push 0xa
mov ecx, esi
call fcn.0046c1a0
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x46d270
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x440]
push eax
push 0
push esi
push 0x46d310
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x448], eax
cmp eax, 0xffffffff
pop esi
jne 0x46d29b
xor al, al
ret
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov al, 1
ret
Function at 0x46d2b0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x448]
test eax, eax
je 0x46d2ff
mov eax, dword [esi + 0x450]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, dword [esi + 0x448]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x46d2f2
mov edx, dword [esi + 0x448]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x448]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x46d640
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x444]
push eax
push 0
push esi
push 0x46d6d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [esi + 0x44c], eax
pop esi
setne al
ret

Function at 0x46d670
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x44c]
test eax, eax
je 0x46d6bf
mov eax, dword [esi + 0x454]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, dword [esi + 0x44c]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x46d6b2
mov edx, dword [esi + 0x44c]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x44c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x46edf1
Capabilities:
Terminate thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esi + 0x70], 0xffffffff
je 0x46ee42
mov eax, dword [esi + 0x74]
mov dword [esi + 0x80], SysStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, dword [esi + 0x70]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x46ee35
mov edx, dword [esi + 0x70]
push ebp
push edx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x70]
push eax
call edi
mov dword [esi + 0x70], 0xffffffff
mov eax, dword [esi + 0x74]
cmp eax, ebp
je 0x46ee4f
push eax
call edi
mov dword [esi + 0x74], ebp
mov eax, dword [esi + 0x78]
cmp eax, ebp
je 0x46ee5c
push eax
call edi
mov dword [esi + 0x78], ebp
mov eax, dword [esi + 0x7c]
cmp eax, ebp
je 0x46ee69
push eax
call edi
mov dword [esi + 0x7c], ebp
mov ecx, dword [esi + 0x5c]
cmp ecx, ebp
je 0x46ee8f
call fcn.0046fd60
mov edi, dword [esi + 0x5c]
cmp edi, ebp
je 0x46ee8c
mov ecx, edi
call fcn.0046f900
push edi
call fcn.004a9db0
add esp, 4
mov dword [esi + 0x5c], ebp
mov edi, 0x17
mov eax, dword [esi]
cmp eax, ebp
je 0x46eeb0
mov ecx, dword [eax + 4]
push ecx
call fcn.004a9db0
mov edx, dword [esi]
push edx
call fcn.004a9db0
add esp, 8
mov dword [esi], ebp
add esi, 4
dec edi
jne 0x46ee94
pop edi
pop esi
pop ebp
ret
Function at 0x471a00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [str.nami]
mov eax, dword [esp + 4]
cmp edx, 4
jb 0x471a25
push esi
shr edx, 2
mov esi, dword [eax]
add eax, 4
xor esi, ecx
dec edx
mov dword [eax - 4], esi
jne 0x471a17
pop esi
ret 8

Function at 0x473460
Capabilities:
Resume thread
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x88]
cmp eax, 0xffffffff
je 0x4734dd
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ResumeThread]
push eax
call esi
cmp eax, 1
jbe 0x473497
cmp eax, 0xffffffff
je 0x473497
mov eax, dword [edi + 0x88]
push eax
call esi
cmp eax, 1
ja 0x473484
mov ecx, dword [edi + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov edx, dword [edi + 0x88]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
pop esi
je 0x4734ca
mov eax, dword [edi + 0x88]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ecx, dword [edi + 0x88]
push ecx
call ebx
mov dword [edi + 0x88], 0xffffffff
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x4734f4
push eax
call ebx
mov dword [edi + 0x8c], 0
mov eax, dword [edi + 0x90]
test eax, eax
je 0x47350b
push eax
call ebx
mov dword [edi + 0x90], 0
mov ecx, 0x22
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
pop ebx
ret

Function at 0x473550
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x88], 0xffffffff
jne 0x4735ce
mov edi, dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0x8c], eax
je 0x4735ce
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0x90], eax
jne 0x473595
mov eax, dword [esi + 0x8c]
push eax
jmp 0x4735be
lea ecx, [esp + 8]
push ecx
push 4
push esi
push 0x473770
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, 0xffffffff
mov dword [esi + 0x88], eax
jne 0x4735d4
mov edx, dword [esi + 0x8c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0x8c], 0
pop edi
xor eax, eax
pop esi
pop ecx
ret
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x473610
Capabilities:
Resume thread
Suspend thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x88]
cmp eax, 0xffffffff
jne 0x473626
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x473665
mov edi, dword [sym.imp.KERNEL32.DLL_ResumeThread]
push eax
mov dword [esi + 0x94], 0
call edi
cmp eax, 1
jbe 0x473659
cmp eax, 0xffffffff
je 0x47365e
mov eax, dword [esi + 0x88]
push eax
call edi
cmp eax, 1
ja 0x473646
cmp eax, 0xffffffff
jne 0x4736a7
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 0x90]
push ecx
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
mov edx, dword [esi + 0x90]
push 0x3e8
push edx
mov dword [esi + 0x94], 1
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esi + 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x4736a7
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x473ac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4cc57b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x3c]
mov dword [esi], 0x4d1048
push eax
mov dword [esi + 0x38], 0x4d0da0
call dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
add esi, 4
mov dword [esp + 0xc], esi
mov dword [esi], 0x4d104c
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], 0
test eax, eax
je 0x473bb1
push ebp
mov ebx, eax
mov ecx, dword [esi + 0x10]
push 0
lea edx, [ecx + 0x2014]
mov dword [esi + 0x10], edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 0x30]
dec ecx
mov eax, ecx
mov dword [esi + 0x30], ecx
test eax, eax
je 0x473b3e
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jne 0x473ba9
mov eax, dword [esi + 0x14]
lea edx, [eax + 4]
mov dword [esi + 0x14], edx
mov eax, dword [eax]
push eax
call fcn.004a9db0
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
jne 0x473b8d
lea ebp, [esi + 8]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebp], eax
xor edi, edi
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x28]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.004a9db0
add esp, 4
jmp 0x473ba9
mov eax, dword [esi + 0x14]
lea ebp, [esi + 8]
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp], ecx
lea edi, [ecx + 0x2014]
mov dword [ebp + 4], edi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
dec ebx
jne 0x473b15
pop ebp
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], 0xffffffff
test eax, eax
je 0x473c5d
mov ecx, dword [esi + 0x10]
push 0
lea eax, [ecx + 0x2014]
mov dword [esi + 0x10], eax
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esi + 0x30]
dec eax
mov dword [esi + 0x30], eax
je 0x473be9
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jne 0x473c52
mov eax, dword [esi + 0x14]
lea ecx, [eax + 4]
mov dword [esi + 0x14], ecx
mov edx, dword [eax]
push edx
call fcn.004a9db0
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
jne 0x473c37
lea ebx, [esi + 8]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebx], eax
xor edi, edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x28]
push eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.004a9db0
add esp, 4
jmp 0x473c52
mov eax, dword [esi + 0x14]
lea ebx, [esi + 8]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edi, ecx
lea edx, [ecx + 0x2014]
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x473bc4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x473eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4cc5db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4d104c
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], 0
test eax, eax
je 0x473f87
push ebp
mov ebx, eax
mov ecx, dword [esi + 0x10]
push 0
lea eax, [ecx + 0x2014]
mov dword [esi + 0x10], eax
mov edx, dword [ecx]
call dword [edx]
mov ecx, dword [esi + 0x30]
dec ecx
mov eax, ecx
mov dword [esi + 0x30], ecx
test eax, eax
je 0x473f14
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jne 0x473f7f
mov eax, dword [esi + 0x14]
lea ecx, [eax + 4]
mov dword [esi + 0x14], ecx
mov eax, dword [eax]
push eax
call fcn.004a9db0
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
jne 0x473f63
lea ebp, [esi + 8]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebp], eax
xor edi, edi
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
lea ebp, [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x28]
push eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.004a9db0
add esp, 4
jmp 0x473f7f
mov eax, dword [esi + 0x14]
lea ebp, [esi + 8]
mov edx, dword [eax]
mov ecx, edx
mov dword [ebp], ecx
lea edi, [ecx + 0x2014]
mov dword [ebp + 4], edi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
dec ebx
jne 0x473eeb
pop ebp
mov eax, dword [esi + 0x30]
mov dword [esp + 0x18], 0xffffffff
test eax, eax
je 0x474033
mov ecx, dword [esi + 0x10]
push 0
lea edx, [ecx + 0x2014]
mov dword [esi + 0x10], edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [esi + 0x30]
dec eax
mov dword [esi + 0x30], eax
je 0x473fbf
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
cmp ecx, eax
jne 0x474028
mov eax, dword [esi + 0x14]
lea edx, [eax + 4]
mov dword [esi + 0x14], edx
mov eax, dword [eax]
push eax
call fcn.004a9db0
mov eax, dword [esi + 0x30]
add esp, 4
test eax, eax
jne 0x47400d
lea ebx, [esi + 8]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [ebx], eax
xor edi, edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
lea ebx, [esi + 0x18]
mov dword [esi + 0x18], eax
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 0x28]
push ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.004a9db0
add esp, 4
jmp 0x474028
mov eax, dword [esi + 0x14]
lea ebx, [esi + 8]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edi, ecx
lea edx, [ecx + 0x2014]
mov dword [ebx + 4], edx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x473f9a
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x474330
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cc61b
push eax
mov eax, 0x2028
mov dword fs:[0], esp
call fcn.004b8a60
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 8]
lea edi, [esp + 0x34]
mov ecx, eax
mov dword [esp + 0x1c], 0
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
mov ecx, 0x800
lea esi, [eax + 0x14]
mov dword [esp + 0x2c], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], 0x4cf760
mov ecx, dword [ebx + 0x10]
push 0
mov dword [esp + 0x2040], 0
lea edx, [ecx + 0x2014]
mov dword [ebx + 0x10], edx
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebx + 0x30]
dec eax
mov dword [ebx + 0x30], eax
je 0x4743da
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
cmp ecx, eax
jne 0x474456
mov eax, dword [ebx + 0x14]
lea edx, [eax + 4]
mov dword [ebx + 0x14], edx
mov eax, dword [eax]
push eax
call fcn.004a9db0
mov eax, dword [ebx + 0x30]
add esp, 4
test eax, eax
jne 0x47443b
lea ecx, [esp + 0xc]
call fcn.004744b0
mov eax, dword [esp + 0xc]
lea ecx, [ebx + 8]
mov edx, dword [esp + 0x14]
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
lea edi, [ebx + 0x18]
mov dword [ebx + 0x18], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edx, dword [ebx + 0x28]
push edx
mov dword [edi + 0xc], esi
call fcn.004a9db0
add esp, 4
jmp 0x474456
mov eax, dword [ebx + 0x14]
add ebx, 8
mov ecx, dword [eax]
mov dword [ebx], ecx
mov esi, ecx
lea edx, [ecx + 0x2014]
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x2044]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea esi, [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0xc], ecx
mov ecx, 0x800
lea edi, [eax + 0x14]
mov dword [eax + 0x10], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2034]
pop edi
mov dword [eax], 0x4cf760
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2034
ret 4
Function at 0x475360
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x18]
push edi
mov ebp, dword [esp + 0x1a4]
mov ecx, 0x80
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1a8]
lea ecx, [esp + 0x10]
push ecx
push 0x202
mov word [ebx + 0x218], si
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x4753d6
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x190
ret 8
push esi
mov word [ebx + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebp
mov word [ebx + 0xa], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
pop edi
pop esi
mov dword [ebx + 0xc], eax
pop ebp
mov al, 1
pop ebx
add esp, 0x190
ret 8

Function at 0x4754e0
Capabilities:
Connect socket

Disassembly:
push esi
mov esi, ecx
push 0x10
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x475509
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x475509
xor al, al
pop esi
ret
mov dword [esi + 0x220], 0
mov al, 1
pop esi
ret

Function at 0x47db00
Capabilities:
Read .ini file

Disassembly:
push esi
push str.option.ini
push 2
push str.NoteTail
mov esi, ecx
push 0x4deea4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
test eax, eax
mov dword [0x4e3954], eax
jl 0x47db28
cmp eax, 4
jl 0x47db32
mov eax, 2
mov dword [0x4e3954], eax
mov eax, dword [eax*8 + 0x4e3934]
mov dword [esi + 0x6c], eax
mov ecx, dword [0x4e3954]
mov edx, dword [ecx*8 + 0x4e3938]
mov ecx, esi
mov dword [esi + 0x70], edx
call fcn.0047dab0
pop esi
ret