joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x516138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x4c]
xor ebx, ebx
mov eax, 1
mov edx, dword [ecx - 8]
mov dword [esp + 0x44], eax
cmp edx, ebx
je 0x497d8f
mov edx, dword [esp + 0x50]
cmp dword [edx - 8], ebx
je 0x497d8f
mov ecx, dword [esi + 0xc]
or edi, 0xffffffff
cmp ecx, edi
je 0x497cdf
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ebx
push eax
mov dword [esp + 0x14], 0x2c
call fcn.004da8e1
test eax, eax
jne 0x497cf5
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call fcn.004dd44d
mov dword [esp + 0x44], edi
jmp 0x497da4
mov ecx, dword [0x5580c0]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x68]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
push str._ld__ld__ld__ld__ld__ld_
push edx
mov byte [esp + 0x64], 2
call fcn.004d41c8
add esp, 0x20
call fcn.004f80f4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x50]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push ecx
mov ecx, eax
call fcn.004e5978
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 1
call fcn.004dd44d
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call fcn.004dd44d
lea ecx, [esp + 0x50]
mov dword [esp + 0x44], edi
call fcn.004dd44d
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], bl
call fcn.004dd44d
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.004dd44d
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x498760
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x516213
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 [0x5580c0]
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], 0x527398
call fcn.004dd586
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 0x4aa260
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x517adf
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 0x4aa2a6
mov esi, dword [esp + 0x1c]
push 0x55cde0
mov ecx, esi
call fcn.004dd4bb
jmp 0x4aa303
push edx
lea ecx, [esp + 0x24]
call fcn.004dd4bb
mov edi, 1
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.004dd87d
mov cl, byte [eax]
test cl, cl
je 0x4aa2d6
xor cl, 0xc8
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4aa2c9
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dd8cc
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dd1c2
lea ecx, [esp + 0x20]
mov dword [esp + 8], edi
mov byte [esp + 0x14], 0
call fcn.004dd44d
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4ab970
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 0x4aba3c
mov ecx, dword [0x55f6b0]
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 0x4ab9fc
mov edx, dword [0x55f6b0]
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 0x4ab9fc
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.004d5ee4
and al, 0xfb
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
push 0
push 8
push edi
mov ecx, esi
call fcn.004d5f4a
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 [0x55f6b0]
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 0x4ac2d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x517d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x5580c0]
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.004f80f4
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
add eax, 0x850
push eax
call fcn.004dd586
call fcn.004f80f4
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0x854
push eax
call fcn.004dd586
mov eax, dword [esp + 0x10]
mov ebx, dword [eax - 8]
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x4ac433
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
mov dword [esp + 0x18], eax
je 0x4ac433
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.004dda96
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 0x4ac433
push 0
push 2
push ebp
push edi
call sub.WSOCK32.dll_recv
cmp eax, 2
jne 0x4ac433
cmp byte [ebp], 1
je 0x4ac3f4
mov al, byte [ebp + 1]
test al, al
jne 0x4ac433
push ebp
call fcn.004ddabf
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004dd44d
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd44d
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.004dd44d
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004dd44d
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 0x4ae080
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x51809f
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 0x4ae0d7
mov esi, dword [esp + 0x1c]
push 0x55cde0
mov ecx, esi
call fcn.004dd4bb
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.004dd4bb
mov edi, 1
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call fcn.004dd87d
mov cl, byte [eax]
test cl, cl
je 0x4ae107
xor cl, 0xc8
mov byte [eax], cl
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4ae0fa
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dd8cc
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dd1c2
lea ecx, [esp + 0x20]
mov dword [esp + 8], edi
mov byte [esp + 0x14], 0
call fcn.004dd44d
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4ae150
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 0x4ae1c0
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 0x4ae1ba
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 0x4ae1ae
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 0x4ae230
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5180b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5580c0]
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.004dd829
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 0x4ae2d7
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 0x4ae2d7
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004dd44d
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.004ae1d0
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 0x4ae312
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.004dd44d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ae340
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5180d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x5580c0]
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.004dd829
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 0x4ae468
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 0x4ae455
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4ae455
push eax
call fcn.004dda96
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 0x4ae412
mov ecx, dword [esp + 0x34]
push esi
call fcn.004dd5d6
jmp 0x4ae414
xor edi, edi
push esi
call fcn.004ddabf
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
je 0x4ae430
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd44d
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 0x4ae468
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dd44d
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 0x4ae490
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 0x4ae4c7
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [ecx], edx
ret

Function at 0x4ae4d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.004c2a90
mov eax, dword [esp + 0x100c]
test eax, eax
jne 0x4ae4ec
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 0x4ae52c
mov ecx, dword [esp + 0x1018]
lea eax, [esp + 0xc]
push eax
call fcn.004dd5d6
mov eax, esi
pop esi
add esp, 0x1008
ret
Function at 0x4ae540
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 0x4aefe0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5181ed
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 0x4af07e
push 8
call fcn.004dda96
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x174], edi
je 0x4af02c
mov ecx, eax
call fcn.004d618a
jmp 0x4af02e
xor eax, eax
cmp eax, edi
mov dword [esp + 0x174], 0xffffffff
mov dword [esi], eax
je 0x4af07e
mov ecx, dword [esp + 0x180]
mov eax, 0x4010
cmp ecx, edi
je 0x4af054
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.004d62a9
mov eax, 1
jmp 0x4af080
mov eax, edi
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x170
ret 8

Function at 0x4af190
Capabilities:
Get file system object information

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x160
test ecx, ecx
mov eax, 0x4010
je 0x4af1a8
mov eax, 0x4011
mov ecx, dword [esp + 0x168]
test ecx, ecx
je 0x4af1b5
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 0x4af360
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 0x4af210
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 0x4af3bd
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 0x4af463
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 0x4af44d
call fcn.004f80f4
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 0x4af428
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af48f
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af402
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af3ef
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af4a9
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 0x4af4f0
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 0x4af4c0
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 0x4af52d
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 0x4af5d3
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 0x4af5bd
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af5e7
call fcn.004f80f4
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 0x4af5aa
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 0x4af572
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af55f
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af5fe
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 0x4af640
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 0x4af620
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 0x4af740
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 0x4af71f
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 0x4af709
call fcn.004f80f4
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 0x4af6e4
lea edx, [esp + 0x20]
push edx
call ebx
lea eax, [esp + 0x20]
push eax
call ebp
call fcn.004f80f4
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f4]
test ecx, ecx
jne 0x4af733
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
call esi
test eax, eax
jne 0x4af6be
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x4af6ab
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x4af74b
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 0x4af740
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret