joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d4f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d523
push esi
call fcn.00450600
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d51c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44d5a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d592
mov eax, dword [esi + 8]
test eax, eax
je 0x44d547
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44d58e
cmp eax, 2
je 0x44d592
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d53a
cmp eax, 3
je 0x44d56d
cmp eax, 1
jne 0x44d53a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44d53a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d53a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d5d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d5b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d5d0
add esp, 4
pop esi
ret

Function at 0x4592f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x459393
test eax, eax
jbe 0x459393
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x459393
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45933e
xor esi, esi
jmp 0x459344
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45936f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00414420
add esi, eax
push esi
mov ebx, esi
call fcn.00414420
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x459350
pop ebp
test edi, edi
pop edi
jne 0x459393
test ebx, ebx
je 0x459393
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045d7b0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4594d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4595ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4595ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046de4c
mov esi, eax
test esi, esi
je 0x4595ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4595ed
mov ecx, esi
call fcn.00459440
cmp edi, eax
jge 0x4595ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x459573
mov dword [esp + 0x34], 1
jmp 0x4595ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4595ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00458a30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46e7ef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46e827
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046c8a6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046c87e
jmp 0x46e833
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46fedd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ff1f
call fcn.0047599e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ff1f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ff16
xor eax, eax
jmp 0x46ff27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ff2d
pop edi
pop esi
pop ebx
ret 4
Function at 0x475ece
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x475efc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475f1a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475e34
jmp 0x475f1a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475f1a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475e34
test edi, edi
mov eax, edi
jne 0x475f04
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402310
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a5498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401e00
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004015e0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4023a2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a5498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
movsx ax, byte [esp + 0x24]
push 1
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00401e00
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004015e0
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4025d8
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402a50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4a5560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push esi
push edi
push eax
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov dword [esp + 0x24], edi
call fcn.00402840
mov esi, eax
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x3c]
push edi
lea edx, [esp + 0x24]
push 0x4ae7bc
push edx
call fcn.00402480
push 0x4ae7b8
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x48], 1
call fcn.004023c0
push esi
push eax
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x54], 2
call fcn.00402310
push 0x4ae7b0
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x60], 3
call fcn.004023c0
push edi
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x6c], 4
call fcn.00402310
add esp, 0x44
mov esi, dword [esp + 0x30]
push 0x4ae7b8
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.004023c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0x28], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x28], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402b8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402baf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402bd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x402bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a5580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
lea eax, [esp + 0xc]
push eax
push 0x4ae7c4
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.004021f0
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.00402060
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], ebx
jne 0x402c5b
or esi, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x20], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
jmp 0x402d23
mov eax, dword [esp + 0xc]
push eax
push ebx
mov ecx, esi
call fcn.00401650
lea ecx, [esp + 0xc]
push ecx
push 0x4ae7c0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.004021f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0xc], esi
jne 0x402cb3
mov dword [esp + 0x20], esi
lea eax, [edi - 0x10]
jmp 0x402d1b
lea eax, [esp + 0xc]
push eax
push 0x4ae7c0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004021f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00402060
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], bl
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402cfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jge 0x402d0e
push 0x80070057
call fcn.00401100
cmp word [eax], 0x32
mov dword [esp + 0x20], esi
je 0x402d43
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x402d2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x402d5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4036a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x2818
call fcn.0047f340
mov eax, dword [0x4d1788]
mov dword [esp + 0x2814], eax
mov eax, dword [esp + 0x2828]
mov ecx, dword [eax]
push esi
push ecx
lea ecx, [esp + 8]
call fcn.00403030
mov eax, dword [esp + 4]
mov esi, dword [eax - 0xc]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4036d7
mov eax, dword [esp + 0x2828]
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
push eax
mov dword [esp + 0x18], edx
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x2824]
push 0x10
lea edx, [esp + 0xc]
push edx
push 0
mov word [esp + 0x16], ax
push esi
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2830]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403755
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x2818]
mov eax, esi
pop esi
call fcn.0047e6cd
add esp, 0x2818
ret

Function at 0x4040a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a571b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [0x4d1788]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x118], esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40417e
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x40417e
cmp word [edi + 0xa], 4
jne 0x40417e
mov edx, dword [edi + 0xc]
cmp dword [edx], ebx
je 0x40417e
call fcn.004951e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x11c], ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edi, dword [ecx]
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x3c]
call fcn.004019b0
lea eax, [ebx - 0x10]
mov dword [esi + 0x44], edi
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404165
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4ae7d8
lea edi, [esi + 0x3c]
call fcn.0047e9ef
add esp, 4
push eax
push 0x4ae7d8
mov ecx, edi
call fcn.00401b00
mov dword [esi + 0x44], ebx
jmp 0x404165
Function at 0x40bad0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10344
call fcn.0047f340
mov eax, dword [0x4d1788]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [esp + 0x10348], eax
push edi
lea eax, [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebx + 0x14]
lea esi, [ebx + 0x5c]
mov ecx, 0x41
lea edi, [esp + 0x20]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x41
lea esi, [esp + 0x20]
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
lea esi, [esp + 0x20]
lea edi, [esp + 0x230]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x234]
push ecx
push 0
lea edx, [esp + 0x134]
push edx
lea eax, [esi + 1]
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x40bb91
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, dword [esp + 0x1034c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x40bcb6
xor eax, eax
test esi, esi
mov dword [esp + 0x14], eax
jbe 0x40bcb6
jmp 0x40bbb0
mov esi, dword [esp + eax*4 + 0x24]
lea ecx, [esp + 0x230]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40bbda
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebx]
push 1
push eax
push esi
mov ecx, ebx
mov dword [ebx + 0xc], eax
call dword [edx + 0xc]
lea eax, [esp + 0x128]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x40bca1
xor ecx, ecx
mov dword [esp + 0x338], ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x340], ecx
lea eax, [esp + 0x33c]
push eax
mov dword [esp + 0x348], ecx
push 2
mov dword [esp + 0x350], ecx
push 0x10000
lea ecx, [esp + 0x358]
push ecx
push esi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test edi, edi
jle 0x40bc86
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x40bc65
mov eax, dword [ebx + 8]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x33c]
push eax
push edi
lea eax, [esp + 0x354]
push eax
push esi
push ebx
call dword [edx]
test eax, eax
je 0x40bca1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x33c]
push edx
push 0
push edi
lea eax, [esp + 0x358]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x40bca1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x40bca1
mov edx, dword [ebx]
push 1
push eax
push esi
mov ecx, ebx
mov dword [ebx + 0xc], eax
call dword [edx + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x40bbb0
mov ecx, dword [esp + 0x1034c]
xor eax, eax
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c130
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4a5fe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov eax, dword [0x4d1788]
push ebx
push ebp
push esi
mov dword [esp + 0x1a0], eax
push edi
lea eax, [esp + 0x14]
mov esi, ecx
push eax
push 0x202
mov dword [esp + 0x18], esi
mov dword [esi], 0x4af220
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ebp, ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
lea ecx, [esi + 0x10]
mov dword [esp + 0x1b0], ebp
mov dword [esi], 0x4af24c
call fcn.0040a720
lea edi, [esi + 0x2c]
mov ecx, edi
mov byte [esp + 0x1b0], 1
call fcn.0040d9e0
lea ebx, [esi + 0x1160]
mov ecx, ebx
mov byte [esp + 0x1b0], 2
call fcn.0044ea70
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
push 0x40be40
mov ecx, edi
mov byte [esp + 0x1b4], 3
mov dword [esi + 0x5c], ebp
call fcn.0040cb60
push ebp
push 1
push esi
push 1
mov ecx, edi
call fcn.0040d980
mov ecx, dword [esp + 0x1a8]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x198]
pop ebx
call fcn.0047e6cd
add esp, 0x1a4
ret

Function at 0x40ca80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40cb05
push ebx
mov ebx, dword [esi + 0x24]
push ebp
mov dword [esi + 0x20], 1
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x40cade
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40cade
cmp dword [esp + 0x14], 0x103
jne 0x40cade
mov eax, dword [esi + 4]
test eax, eax
je 0x40cace
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x64
call ebp
add edi, 0x64
cmp edi, ebx
jae 0x40cb09
cmp dword [esi], 0
jne 0x40caa4
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
je 0x40caf9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004955bc
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
ret 4
mov eax, dword [esi + 4]
test eax, eax
je 0x40cb17
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi]
push esi
call fcn.004955bc
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop ebp
pop ebx
pop esi
ret 4

Function at 0x40e3d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x40e6c0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x4af2e0
push 1
push 0
mov edi, ecx
push 0x4af2d0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40e71e
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x40e71e
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40e72c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40e73a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x40e9c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
cmp eax, 0x205
push esi
mov esi, ecx
jg 0x40ea69
je 0x40ea17
cmp eax, 0x203
jne 0x40ea9d
mov eax, dword [esi + 4]
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
pop esi
add esp, 8
ret 8
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x40ea9d
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push edx
mov edx, dword [esi + 0x3a8]
push 0
push eax
push ecx
push 2
push 0
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenu]
xor eax, eax
pop esi
add esp, 8
ret 8
cmp eax, 0x404
jl 0x40ea9d
cmp eax, 0x405
jg 0x40ea9d
mov word [esi + 0x324], 0
mov word [esi + 0x120], 0
mov dword [esi + 0x3a4], 0
mov dword [esi + 0x3b4], 0
xor eax, eax
pop esi
add esp, 8
ret 8