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

Disassembly:
push 0xffffffffffffffff
push 0x515ee3
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 edx, dword [0x5581a0]
lea ecx, [esi + 4]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [ecx], edx
mov edi, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
lea eax, [edi + 4]
mov byte [esp + 0x14], 1
push eax
mov dword [esi], 0x5273a0
call fcn.004dd28a
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x3c], edx
mov eax, dword [edi + 0x40]
pop edi
mov dword [esi + 0x40], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4a9f30
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x5177af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], 0
mov esi, ecx
jne 0x4a9f76
mov esi, dword [esp + 0x1c]
push 0x55cec0
mov ecx, esi
call fcn.004dd1bf
jmp 0x4a9fd3
push edx
lea ecx, [esp + 0x24]
call fcn.004dd1bf
mov edi, 1
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.004dd581
mov cl, byte [eax]
test cl, cl
je 0x4a9fa6
xor cl, 0xc8
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4a9f99
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dd5d0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dcec6
lea ecx, [esp + 0x20]
mov dword [esp + 8], edi
mov byte [esp + 0x14], 0
call fcn.004dd151
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4ab620
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x1c]
push eax
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ab6ec
mov ecx, dword [0x55f7a8]
push ebx
push ebp
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4ab6ac
mov edx, dword [0x55f7a8]
push edx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call ebp
mov edi, dword [eax + 4]
mov ebx, dword [eax + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebx, ebx
je 0x4ab6ac
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004d5be8
and al, 0xfb
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
push 0
push 8
push edi
mov ecx, esi
call fcn.004d5c4e
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x28
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call ebp
mov ecx, 0xa
lea esi, [esp + 0x14]
mov edi, eax
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x55f7a8]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
Function at 0x4abf80
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x517a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5581a0]
push ebx
push ebp
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], eax
mov byte [esp + 0x2c], 1
call fcn.004f7df8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
add eax, 0x850
push eax
call fcn.004dd28a
call fcn.004f7df8
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0x854
push eax
call fcn.004dd28a
mov eax, dword [esp + 0x10]
mov ebx, dword [eax - 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4ac0e3
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4ac0e3
and eax, 0xff
and ebx, 0xff
mov dword [esp + 0x1c], eax
push esi
lea eax, [ebx + eax + 3]
push eax
mov dword [esp + 0x28], eax
call fcn.004dd79a
mov dl, byte [esp + 0x1c]
mov ebp, eax
mov ecx, ebx
add esp, 4
mov eax, ecx
mov byte [ebp], 1
mov byte [ebp + 1], dl
mov esi, dword [esp + 0x14]
lea edi, [ebp + 2]
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x20]
lea edi, [ebx + ebp + 3]
mov byte [ebx + ebp + 2], cl
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
push esi
push ebp
push edi
call sub.WSOCK32.dll_send
cmp esi, eax
pop esi
jne 0x4ac0e3
push 0
push 2
push ebp
push edi
call sub.WSOCK32.dll_recv
cmp eax, 2
jne 0x4ac0e3
cmp byte [ebp], 1
je 0x4ac0a4
mov al, byte [ebp + 1]
test al, al
jne 0x4ac0e3
push ebp
call fcn.004dd7c3
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004dd151
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd151
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004dd151
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd151
mov ecx, dword [esp + 0x24]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4add30
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x517d6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov edx, dword [esp + 0x18]
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], 0
mov esi, ecx
jne 0x4add87
mov esi, dword [esp + 0x1c]
push 0x55cec0
mov ecx, esi
call fcn.004dd1bf
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edx
lea ecx, [esp + 0x24]
call fcn.004dd1bf
mov edi, 1
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.004dd581
mov cl, byte [eax]
test cl, cl
je 0x4addb7
xor cl, 0xc8
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4addaa
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dd5d0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dcec6
lea ecx, [esp + 0x20]
mov dword [esp + 8], edi
mov byte [esp + 0x14], 0
call fcn.004dd151
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4ade00
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edi, eax
test edi, edi
je 0x4ade70
push 0
push 0
push 0
push 0
push str.InternetConn
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x4ade6a
mov ecx, dword [esp + 0x10]
push ebx
push 0
push closesocket
push 0
push 0
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x4ade5e
push eax
call ebx
push esi
call ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
ret
push esi
xor edi, edi
call ebx
mov eax, edi
pop ebx
pop edi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4adee0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x517d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5581a0]
push edi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 8]
call fcn.004dd52d
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
push 0x20006
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4adf87
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4adf87
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dd151
xor eax, eax
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.004ade80
mov ecx, dword [esp + 0x10]
add esp, 4
inc eax
push eax
mov eax, dword [esp + 0x2c]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
inc esi
cmp eax, edi
je 0x4adfc2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.004dd151
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4adff0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x517da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5581a0]
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], esi
push ecx
lea ecx, [esp + 0x14]
call fcn.004dd52d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ae118
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push esi
push eax
push esi
push edi
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], 1
call ebx
test eax, eax
jne 0x4ae105
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4ae105
push eax
call fcn.004dd79a
mov ecx, dword [esp + 0x10]
add esp, 4
lea edx, [esp + 0x2c]
mov esi, eax
push edx
lea eax, [esp + 0x18]
push esi
push eax
push 0
push edi
push ecx
call ebx
mov eax, dword [esp + 0x14]
mov edi, 1
cmp eax, edi
jne 0x4ae0c2
mov ecx, dword [esp + 0x34]
push esi
call fcn.004dd2da
jmp 0x4ae0c4
xor edi, edi
push esi
call fcn.004dd7c3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
je 0x4ae0e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd151
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x4ae118
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd151
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret

Function at 0x4ae140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ae177
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [ecx], edx
ret

Function at 0x4ae180
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.004c27a0
mov eax, dword [esp + 0x100c]
test eax, eax
jne 0x4ae19c
add esp, 0x1008
ret
lea ecx, [esp]
push esi
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x101c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x4ae1dc
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0xc]
push eax
call fcn.004dd2da
mov eax, esi
pop esi
add esp, 0x1008
ret
Function at 0x4ae1f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x4aec90
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x517ebd
push eax
mov dword fs:[0], esp
sub esp, 0x164
push esi
mov esi, dword [esp + 0x178]
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x4aed2e
push 8
call fcn.004dd79a
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x174], edi
je 0x4aecdc
mov ecx, eax
call fcn.004d5e8e
jmp 0x4aecde
xor eax, eax
cmp eax, edi
mov dword [esp + 0x174], 0xffffffff
mov dword [esi], eax
je 0x4aed2e
mov ecx, dword [esp + 0x180]
mov eax, 0x4010
cmp ecx, edi
je 0x4aed04
mov eax, 0x4011
push eax
lea eax, [esp + 0x10]
push 0x160
push eax
push 0x80
push str..txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esi]
push eax
call fcn.004d5fad
mov eax, 1
jmp 0x4aed30
mov eax, edi
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x170
ret 8

Function at 0x4aee40
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x160
test ecx, ecx
mov eax, 0x4010
je 0x4aee58
mov eax, 0x4011
mov ecx, dword [esp + 0x168]
test ecx, ecx
je 0x4aee65
or al, 2
mov ecx, dword [esp + 0x164]
push eax
lea eax, [esp + 4]
push 0x160
mov edx, dword [ecx]
push eax
push 0x80
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [esp + 4]
add esp, 0x160
ret 0xc
Function at 0x4af010
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
xor edx, edx
mov dword [esp], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
mov ecx, dword [eax + 4]
mov dx, word [eax + 2]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 0x44]
push edi
mov dword [esp + 0x18], edx
push ecx
lea edx, [esp + 0x14]
push 0
push edx
push 0x4aeec0
push 0x400
push 0
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x4af06d
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push 0
push eax
push 1
call edi
test eax, eax
je 0x4af113
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
je 0x4af0fd
call fcn.004f7df8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4af0d8
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
call fcn.004f7df8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af13f
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af0b2
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af09f
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af159
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfe
pop ebp
inc eax
pop ebx
add esp, 0x2c
ret
Function at 0x4af1a0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x2c
push ebx
mov eax, dword [esp + 0x34]
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push 0x4af170
push 0x400
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x4af1dd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push 0
push eax
push 1
call edi
test eax, eax
je 0x4af283
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
je 0x4af26d
call fcn.004f7df8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af297
call fcn.004f7df8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4af25a
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af222
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af20f
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af2ae
mov eax, dword [esp + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x2c
ret
Function at 0x4af2f0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x2c
push ebx
mov eax, dword [esp + 0x34]
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push 0x4af2d0
push 0x400
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x40], eax
je 0x4af3f0
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push 0
push eax
push 1
call edi
test eax, eax
je 0x4af3cf
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
je 0x4af3b9
call fcn.004f7df8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4af394
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
call fcn.004f7df8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af3e3
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af36e
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af35b
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af3fb
mov eax, dword [esp + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret
cmp dword [esp + 0x10], 1
jne 0x4af3f0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4af490
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004f7df8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x93c]
push eax
mov dword [esp + 0x2c], eax
call fcn.004dd79a
add esp, 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
lea ecx, [esp + 0x58]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0x4af410
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x50], eax
jne 0x4af52c
mov eax, dword [esp + 0x24]
push eax
call fcn.004dd7c3
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
push 0
push ecx
push 1
call edi
test eax, eax
je 0x4af5d6
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x38]
push 0
push edx
call esi
test eax, eax
je 0x4af5bc
call fcn.004f7df8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x4af597
lea edx, [esp + 0x2c]
push edx
call ebx
lea eax, [esp + 0x2c]
push eax
call ebp
call fcn.004f7df8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af60e
push 1
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
call esi
test eax, eax
jne 0x4af571
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x58]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af55e
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af635
mov ecx, dword [esp + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esp + 0x24]
push edx
call fcn.004dd7c3
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esp + 0x50]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004dd7c3
add esp, 4
mov eax, 0xfffffffe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004dd7c3
mov eax, dword [esp + 0x58]
add esp, 4
neg eax
sbb eax, eax
pop edi
and al, 0xfe
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x38
ret