joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406860
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ebe5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x48
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00420d70
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.00401780
test esi, esi
mov dword [ebp - 4], 0
mov edx, 0x448c6c
cmovne edx, esi
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4068d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00406f80
push 0x43
push str.Mozilla_5.0__Windows_NT_5.1__AppleWebKit_537.36__KHTML__like_Gecko_
lea ecx, [ebp - 0x54]
call fcn.00406f80
lea ecx, [ebp - 0x78]
mov word [ebp - 0x3c], 0x100
call fcn.00402880
mov esi, eax
test esi, esi
jne 0x406973
sub esp, 0xc
lea ecx, [ebp - 0x78]
push edi
call fcn.00402510
mov esi, eax
test esi, esi
jne 0x406973
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
push 0x448c6c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x2c], xmm0
call fcn.00407960
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.00402790
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x406973
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406969
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40699b
push ecx
push edx
call fcn.0041eebc
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.00401830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
int3
Function at 0x408ce0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [0x44e040]
xor eax, esp
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x408d63
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 2
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x408ed0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov edx, 0x26
lea ecx, [esp + 0x10]
call fcn.0040f1c0
mov ecx, dword [0x4501e4]
cmp ecx, 7
jbe 0x408dbc
mov edx, dword [0x4501d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408db2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408ec7
push ecx
push edx
call fcn.0041eebc
add esp, 8
movups xmm0, xmmword [esp + 0x10]
push 0x1f
push str.Internet_Exploreriexplore.exe
movups xmmword [0x4501d0], xmm0
mov ecx, 0x4501d0
movq xmm0, qword [esp + 0x28]
movq qword [0x4501e0], xmm0
call fcn.00407270
mov ecx, 0x4501d0
call fcn.0040f640
push 0x50
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00420d70
add esp, 0xc
xor ecx, ecx
lea eax, [ecx + 0x41]
mov byte [esp + ecx + 0x38], al
inc ecx
cmp ecx, 0x1a
jl 0x408e04
xor ecx, ecx
lea eax, [ecx + 0x61]
mov byte [esp + ecx + 0x52], al
inc ecx
cmp ecx, 0x1a
jl 0x408e13
xor eax, eax
lea ecx, [eax + 0x30]
mov byte [esp + eax + 0x6c], cl
inc eax
cmp eax, 0xa
jl 0x408e22
lea eax, [esp + 0x38]
mov word [esp + 0x76], 0x5f2d
push eax
mov ecx, 0x44ed18
call fcn.00417fa0
movaps xmm0, xmmword [0x449850]
movups xmmword [0x4502fc], xmm0
movaps xmm0, xmmword [0x449850]
movups xmmword [0x4502e8], xmm0
movaps xmm0, xmmword [0x449850]
movups xmmword [0x450324], xmm0
movaps xmm0, xmmword [0x449860]
movups xmmword [0x4502ac], xmm0
movaps xmm0, xmmword [0x449840]
movups xmmword [0x450310], xmm0
movaps xmm0, xmmword [0x449830]
movups xmmword [0x4502d4], xmm0
movaps xmm0, xmmword [0x449870]
movups xmmword [0x4502c0], xmm0
call fcn.0040afa0
call fcn.0040e320
mov ecx, dword [esp + 0x8c]
xor eax, eax
xor ecx, esp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret 0x10
call fcn.004273ec
int3
Function at 0x4090c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x1c], eax
push esi
push edi
mov edi, dword [eax]
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x409115
push 0
push edi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
xor esi, esi
test eax, eax
je 0x409115
mov edx, dword [ebx]
add esi, eax
cmp esi, edi
jae 0x40912a
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x4090f5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret 4
xor edi, edi
cmp edx, 0xffffffff
je 0x4091fa
push edi
push 0x10
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push edx
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 4
jle 0x4091fa
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x4091fa
cmp eax, 0x19000
jge 0x4091fa
add eax, 8
push eax
call fcn.0041eeca
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push 0
push edi
call fcn.00420d70
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
push edi
call fcn.00420f10
mov eax, dword [ebp - 0x18]
add esp, 0xc
sub eax, esi
push 0
push eax
lea eax, [edi + esi]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4091d0
add esi, eax
mov eax, dword [ebp - 0x18]
cmp esi, eax
jge 0x4091fa
push 0
sub eax, esi
push eax
lea eax, [edi + esi]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4091b2
jns 0x4091fa
push 1
push edi
call fcn.0041eebc
add esp, 8
push 0x18
call fcn.0041eeca
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x40921b
push 0x18
call fcn.0041eeca
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ee79
mov esp, ebp
pop ebp
ret 4
Function at 0x409230
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x44e040]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x409273
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4092d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x276d
jne 0x4092d7
cmp byte [0x454768], 0
jne 0x4092cd
push 0x190
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00420d70
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4092cd
mov byte [0x454768], 1
push 6
push 1
push 2
call esi
mov dword [edi], eax
push dword [ebp + 8]
mov ebx, dword [edi]
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
test eax, eax
lea eax, [esp + 0x24]
push eax
push ebx
jne 0x40938f
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov ebx, 0x5b4
test esi, esi
cmovne ebx, eax
jmp 0x409397
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
je 0x4093bf
mov esi, dword [edi]
cmp esi, 0xffffffff
je 0x4093bf
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov ecx, dword [esp + 0x1c4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret 4
Function at 0x40d540
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f1dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407540
push 0xa
push str.patch.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00407270
lea ecx, [ebp - 0x2c]
call fcn.0040f640
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40d62d
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
push 0
cmova ecx, dword [ebp - 0x2c]
xor edx, edx
push 0
call fcn.00411720
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x40d61b
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
mov edx, esi
cmova ecx, dword [ebp - 0x2c]
call fcn.0040c080
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40d663
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d659
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d681
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
int3
Function at 0x40f1c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f367
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x21c], edi
push 0x208
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0
mov dword [ebp - 0x224], edi
push eax
mov dword [ebp - 0x220], 0
call fcn.00420d70
add esp, 0xc
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov ecx, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push 0
push 0x448ee8
call fcn.00407540
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x21c]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x40f2be
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x40f2be
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f2a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407160
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x40f2cf
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
Function at 0x410120
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f4f5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
lea esi, [ecx + 2]
movlpd qword [ebp - 0x3a], xmm0
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4101a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407540
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040f640
push 2
lea eax, [ebp - 0x50]
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
push eax
lea ecx, [ebp - 0x68]
movups xmmword [ebp - 0x68], xmm0
call fcn.00407540
mov byte [ebp - 4], 1
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 7
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x58]
cmova eax, dword [ebp - 0x68]
push eax
call fcn.00407270
mov ecx, dword [ebp - 0x54]
cmp ecx, 7
jbe 0x410240
mov edx, dword [ebp - 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410236
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102bf
push ecx
push edx
call fcn.0041eebc
add esp, 8
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], 3
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, 0x2614
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmp ecx, 7
jbe 0x4102a0
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410296
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102bf
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
int3
Function at 0x4102d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x800
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x814], edx
mov byte [ebp - 0x80d], 0
mov dword [ebp - 0x808], 0
call fcn.00420d70
add esp, 0xc
mov dword [ebp - 0x80c], 0
lea eax, [ebp - 0x804]
push eax
push 0x800
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4495e8
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4103b8
mov edx, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x80c]
test edx, edx
je 0x41037e
mov ax, word [ecx + 0xa]
mov word [edx], ax
mov edx, dword [ebp - 0x818]
test edx, edx
je 0x41038f
mov ax, word [ecx + 8]
mov word [edx], ax
test ebx, ebx
je 0x41039a
mov ax, word [ecx + 0xe]
mov word [ebx], ax
test edi, edi
je 0x4103a5
mov ax, word [ecx + 0xc]
mov word [edi], ax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x80d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
Function at 0x411d90
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f7bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x268], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00420d70
add esp, 0xc
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
movups xmmword [ebp - 0x2c], xmm0
push 0
push 0x448ee8
call fcn.00407540
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x411f41
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x411f3a
push dword [ebp - 0x258]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x23c]
mov esi, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e71
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407160
test esi, esi
je 0x411edc
push 0x103
lea eax, [ebp - 0x23c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x411ed5
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411eb6
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407160
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x264]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push dword [ebp - 0x248]
cmova eax, dword [ebp - 0x2c]
push dword [ebp - 0x258]
push eax
call dword [ebp - 0x268]
test al, al
je 0x411f3a
push 0x228
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00420d70
add esp, 0xc
mov dword [ebp - 0x260], 0x22c
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x411e53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x411f77
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411f6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411f95
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
int3
Function at 0x411fa0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x44e040]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
push 8
mov ebx, edx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x424
mov esi, eax
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00420d70
add esp, 0xc
cmp esi, 0xffffffff
je 0x412059
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x412052
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax + eax]
push dword [esp + 0xc]
lea eax, [esp + 0x234]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call ebx
test al, al
je 0x412052
push 0x424
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00420d70
add esp, 0xc
mov dword [esp + 0x10], 0x428
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x412010
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
Function at 0x4123e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [edx]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], eax
push edi
test eax, eax
jle 0x41245d
cmp eax, 8
jb 0x41245d
and eax, reloc.WS2_32.dll_getsockopt
jns 0x412411
dec eax
or eax, 0xfffffff8
inc eax
mov edi, dword [edx]
xorps xmm2, xmm2
sub edi, eax
xorps xmm1, xmm1
lea eax, [edx + 0x14]
nop
movups xmm0, xmmword [eax - 0x10]
add ecx, 8
lea eax, [eax + 0x20]
paddd xmm2, xmm0
movups xmm0, xmmword [eax - 0x20]
paddd xmm1, xmm0
cmp ecx, edi
jl 0x412420
mov eax, dword [edx]
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd dword [ebp - 8], xmm1
xor edi, edi
xor ebx, ebx
cmp ecx, eax
jge 0x4124aa
sub eax, ecx
cmp eax, 2
jl 0x412496
lea eax, [edx + 8]
mov edx, dword [edx]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 2
shr edx, 1
inc edx
lea ecx, [ecx + edx*2]
nop
add edi, dword [eax - 4]
lea eax, [eax + 8]
add ebx, dword [eax - 8]
sub edx, 1
jne 0x412480
cmp ecx, dword [ebp - 0x14]
jge 0x4124a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [edx + ecx*4 + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + edi]
add ecx, eax
jmp 0x4124ad
mov ecx, dword [ebp - 8]
cmp ecx, 5
jl 0x412596
push 0x40
push 0x1000
push 0x37
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov edi, ebx
test ebx, ebx
je 0x412598
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], 0
cmp dword [eax], 0
jle 0x41256c
add eax, 4
mov dword [ebp - 0x10], eax
nop
mov eax, dword [eax]
mov dl, al
sar eax, 0x10
mov ecx, eax
mov byte [ebp - 1], dl
sar ecx, 8
test cl, cl
je 0x412540
cmp al, 4
jne 0x412582
movzx ebx, cl
push ebx
push esi
push edi
mov dword [ebp - 0x18], ebx
call fcn.00420f10
mov eax, dword [ebx + esi]
lea ecx, [ebx + 4]
sub eax, edi
add esp, 0xc
add eax, esi
mov dword [ebx + edi], eax
movzx ebx, byte [ebp - 1]
cmp ecx, ebx
jae 0x41254e
mov eax, ebx
sub eax, dword [ebp - 0x18]
sub eax, 4
push eax
lea eax, [ecx + esi]
push eax
lea eax, [ecx + edi]
push eax
jmp 0x412546
movzx ebx, dl
push ebx
push esi
push edi
call fcn.00420f10
add esp, 0xc
mov edx, dword [ebp - 8]
add edi, ebx
mov ecx, dword [ebp - 0xc]
inc edx
mov eax, dword [ebp - 0x10]
add esi, ebx
add eax, 4
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
cmp edx, dword [ecx]
jl 0x4124f0
mov ebx, dword [ebp - 0x14]
lea eax, [edi + 1]
mov byte [edi], 0xe9
sub esi, eax
sub esi, 4
pop edi
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
jmp 0x41256c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret