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

Disassembly:
push 0xffffffffffffffff
push 0x515ea3
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 [0x5580a0]
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.004dd24a
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 0x4a9ef0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x51776f
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 0x4a9f36
mov esi, dword [esp + 0x1c]
push 0x55cdc0
mov ecx, esi
call fcn.004dd17f
jmp 0x4a9f93
push edx
lea ecx, [esp + 0x24]
call fcn.004dd17f
mov edi, 1
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.004dd541
mov cl, byte [eax]
test cl, cl
je 0x4a9f66
xor cl, 0xc8
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4a9f59
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dd590
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dce86
lea ecx, [esp + 0x20]
mov dword [esp + 8], edi
mov byte [esp + 0x14], 0
call fcn.004dd111
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4ab5e0
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 0x4ab6ac
mov ecx, dword [0x55f6a8]
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 0x4ab66c
mov edx, dword [0x55f6a8]
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 0x4ab66c
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004d5ba8
and al, 0xfb
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
push 0
push 8
push edi
mov ecx, esi
call fcn.004d5c0e
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 [0x55f6a8]
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 0x4abf40
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x517a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5580a0]
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.004f7db8
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
add eax, 0x850
push eax
call fcn.004dd24a
call fcn.004f7db8
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0x854
push eax
call fcn.004dd24a
mov eax, dword [esp + 0x10]
mov ebx, dword [eax - 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4ac0a3
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4ac0a3
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.004dd75a
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 0x4ac0a3
push 0
push 2
push ebp
push edi
call sub.WSOCK32.dll_recv
cmp eax, 2
jne 0x4ac0a3
cmp byte [ebp], 1
je 0x4ac064
mov al, byte [ebp + 1]
test al, al
jne 0x4ac0a3
push ebp
call fcn.004dd783
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd111
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.004dd111
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd111
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 0x4adcf0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x517d2f
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 0x4add47
mov esi, dword [esp + 0x1c]
push 0x55cdc0
mov ecx, esi
call fcn.004dd17f
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.004dd17f
mov edi, 1
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.004dd541
mov cl, byte [eax]
test cl, cl
je 0x4add77
xor cl, 0xc8
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4add6a
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dd590
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dce86
lea ecx, [esp + 0x20]
mov dword [esp + 8], edi
mov byte [esp + 0x14], 0
call fcn.004dd111
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4addc0
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 0x4ade30
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 0x4ade2a
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 0x4ade1e
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 0x4adea0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x517d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5580a0]
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.004dd4ed
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 0x4adf47
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 0x4adf47
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dd111
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.004ade40
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 0x4adf82
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.004dd111
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4adfb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x517d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5580a0]
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.004dd4ed
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 0x4ae0d8
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 0x4ae0c5
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4ae0c5
push eax
call fcn.004dd75a
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 0x4ae082
mov ecx, dword [esp + 0x34]
push esi
call fcn.004dd29a
jmp 0x4ae084
xor edi, edi
push esi
call fcn.004dd783
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
je 0x4ae0a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd111
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 0x4ae0d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd111
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 0x4ae100
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 0x4ae137
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [ecx], edx
ret

Function at 0x4ae140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.004c2760
mov eax, dword [esp + 0x100c]
test eax, eax
jne 0x4ae15c
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 0x4ae19c
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0xc]
push eax
call fcn.004dd29a
mov eax, esi
pop esi
add esp, 0x1008
ret
Function at 0x4ae1b0
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 0x4aec50
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x517e7d
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 0x4aecee
push 8
call fcn.004dd75a
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x174], edi
je 0x4aec9c
mov ecx, eax
call fcn.004d5e4e
jmp 0x4aec9e
xor eax, eax
cmp eax, edi
mov dword [esp + 0x174], 0xffffffff
mov dword [esi], eax
je 0x4aecee
mov ecx, dword [esp + 0x180]
mov eax, 0x4010
cmp ecx, edi
je 0x4aecc4
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.004d5f6d
mov eax, 1
jmp 0x4aecf0
mov eax, edi
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x170
ret 8

Function at 0x4aee00
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x160
test ecx, ecx
mov eax, 0x4010
je 0x4aee18
mov eax, 0x4011
mov ecx, dword [esp + 0x168]
test ecx, ecx
je 0x4aee25
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 0x4aefd0
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 0x4aee80
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 0x4af02d
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 0x4af0d3
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 0x4af0bd
call fcn.004f7db8
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 0x4af098
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
call fcn.004f7db8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af0ff
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af072
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af05f
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af119
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 0x4af160
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 0x4af130
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 0x4af19d
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 0x4af243
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 0x4af22d
call fcn.004f7db8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af257
call fcn.004f7db8
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 0x4af21a
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 0x4af1e2
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af1cf
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af26e
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 0x4af2b0
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 0x4af290
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 0x4af3b0
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 0x4af38f
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 0x4af379
call fcn.004f7db8
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 0x4af354
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
call fcn.004f7db8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af3a3
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af32e
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af31b
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af3bb
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 0x4af3b0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x4af450
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.004f7db8
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x93c]
push eax
mov dword [esp + 0x2c], eax
call fcn.004dd75a
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 0x4af3d0
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0x50], eax
jne 0x4af4ec
mov eax, dword [esp + 0x24]
push eax
call fcn.004dd783
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 0x4af596
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 0x4af57c
call fcn.004f7db8
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 0x4af557
lea edx, [esp + 0x2c]
push edx
call ebx
lea eax, [esp + 0x2c]
push eax
call ebp
call fcn.004f7db8
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af5ce
push 1
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
call esi
test eax, eax
jne 0x4af531
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x58]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af51e
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 0x4af5f5
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.004dd783
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.004dd783
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.004dd783
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