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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4451d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4584b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
sub esp, 8
mov dword [esi], vtable.TrButton.0
mov dword [esi + 0x30], edx
mov dword [esi + 0x4c], 0
push edx
push 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov word [esi + 0x21], 0x100
mov byte [esi + 0x20], 0
mov word [esi + 0x50], 0
mov byte [esi + 0x52], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], edx
call fcn.00401f10
mov eax, dword [esi + 0x38]
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4026c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44527d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4584b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x4c], 0xf
mov dword [edi + 0x48], 0
mov byte [edi + 0x38], 0
lea ebx, [edi + 0x50]
mov dword [ebp - 4], 0
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [edi + 0x7c], 0xf
mov dword [edi + 0x78], 0
mov byte [edi + 0x68], 0
mov dword [edi + 0x94], 0xf
mov dword [edi + 0x90], 0
mov byte [edi + 0x80], 0
mov byte [ebp - 4], 3
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
call fcn.00403390
mov dword [edi + 0x98], eax
mov byte [ebp - 4], 4
lea ecx, [edi + 0x80]
push 0
push 0x44f63a
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0
mov word [edi + 0x34], 0x101
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00401710
lea esi, [edi + 0x68]
cmp esi, eax
je 0x4027e3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401390
cmp ebx, esi
je 0x4027f3
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00401390
lea ecx, [edi + 0x38]
cmp ecx, ebx
je 0x402804
push 0xffffffffffffffff
push 0
push ebx
call fcn.00401390
mov byte [edi + 0x36], 0
mov eax, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4088d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4088e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408920
lea ebx, [ebx]
cmp esi, edx
jae 0x408924
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x408910
cmp esi, edx
jb 0x40892b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, edx
mov dword [eax], 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
movzx ecx, di
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x409a6b
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409a62
mov esi, dword [ebp - 4]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.0042ddc0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x409aea
lea eax, [ebp - 4]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x409aec
xor esi, esi
mov eax, dword [ebp + 8]
push ebx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a780
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445a53
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4584b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TrImage.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
call fcn.0040aeb0
mov dword [esi + 0x38], eax
mov byte [esi + 0x22], 0
mov eax, esi
mov dword [esi + 0x34], 0
mov byte [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x40c330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4584b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
push str.iGaldMtp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040e9e0
mov esi, eax
cmp byte [esi + 0x30], 0
je 0x40c39f
mov bl, 1
jmp 0x40c4f3
sub esp, 0x18
mov dword [esi + 8], 0
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [esi], 0
mov dword [esi + 4], 2
mov word [esi + 0x34], 0x100
mov byte [esi + 0x31], 1
mov byte [esi + 0x33], 1
push 0x53
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_87_E8_17_00_00_83_3D_00_02_70_34_00_74_0D_0F_AF_05_00_02_70_34_89_87_E8_17_00_00
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x11
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_87_E8_17_00_00
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x23
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_87_E8_17_00_00_8B_49_08_03_01_79
mov byte [ecx], 0
call fcn.00401710
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00402830
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40c45e
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
push ecx
mov dword [esi + 0xc], eax
lea eax, [esi + 0x68]
push 0x34700000
push eax
call fcn.00402910
push 4
push str.MTP1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
mov esi, dword [esi + 0xc]
mov ecx, edi
push eax
add esi, 0x200
call fcn.0040e930
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x2c], 0x10
jb 0x40c4de
push dword [ebp - 0x40]
call fcn.0042c3ad
add esp, 4
sub esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, edi
push 0
sub esp, 0xc
push eax
call fcn.0040d1a0
mov bl, al
cmp dword [ebp - 0x14], 0x10
jb 0x40c504
push dword [ebp - 0x28]
call fcn.0042c3ad
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c3b2
mov esp, ebp
pop ebp
ret
Function at 0x40c530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4584b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 7
push str.iPlayer
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040e9e0
mov esi, eax
cmp byte [esi + 0x30], 0
je 0x40c59f
mov bl, 1
jmp 0x40c6f6
sub esp, 0x18
mov dword [esi + 8], 0
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [esi], 0
mov dword [esi + 4], 2
mov word [esi + 0x34], 0x100
mov byte [esi + 0x31], 1
mov byte [esi + 0x33], 1
push 0xbc
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.51_57_31_FF_8D_0D_04_04_AF_0E_39_1C_B9_74_1D_47_83_FF_08_7C_F5_8B_3D_00_04_AF_0E_89_1C_B9_47_83_FF_08_7C_02_31_FF_89_3D_00_04_AF_0E_5F_59_83_3D_00_02_AF_0E_01_75_03_89_53_0C_8B_43_0C_52_50
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0xe
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_43_0C_52_50
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x1f
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.8B_43_0C_52_50_56_E8_____8B
mov byte [ecx], 0
call fcn.00401710
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00402830
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40c661
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
push ecx
mov dword [esi + 0xc], eax
lea eax, [esi + 0x68]
push 0xeaf0000
push eax
call fcn.00402910
push 1
push 0x451348
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
mov esi, dword [esi + 0xc]
mov ecx, edi
push eax
add esi, 0x200
call fcn.0040e930
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x2c], 0x10
jb 0x40c6e1
push dword [ebp - 0x40]
call fcn.0042c3ad
add esp, 4
sub esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, edi
push 0
sub esp, 0xc
push eax
call fcn.0040d1a0
mov bl, al
cmp dword [ebp - 0x14], 0x10
jb 0x40c707
push dword [ebp - 0x28]
call fcn.0042c3ad
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c3b2
mov esp, ebp
pop ebp
ret
Function at 0x40c730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4584b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040c530
test al, al
je 0x40c8bf
push 7
push str.iHealth
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040e9e0
mov esi, eax
cmp byte [esi + 0x30], 0
je 0x40c7ac
mov bl, 1
jmp 0x40c8ac
sub esp, 0x18
mov dword [esi + 8], 0
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [esi], 0
mov dword [esi + 4], 2
push str.53_57_83_78_1C_00_74_20_31_FF_8D_1D_04_04_AF_0E_39_04_BB_74_08_47_83_FF_08_7C_F5_EB_0B_83_3D_00_02_AF_0E_01_75_02_8B_CA_5F_5B_89_48_0C_5D_C2_04_00
mov word [esi + 0x34], 0x100
mov byte [esi + 0x31], 1
mov byte [esi + 0x33], 1
call fcn.00408ab0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.89_48_0C_5D_C2_04_00
call fcn.00408ab0
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str.89_48_0C_5D_C2_04_00_3B_CA_7E
call fcn.00408ab0
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00402830
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40c832
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 7
push str.iPlayer
lea ecx, [ebp - 0x40]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.0040e930
mov eax, dword [eax + 0xc]
cmp eax, 0x10000
jae 0x40c872
mov eax, dword [esi + 0xc]
push eax
push ecx
push 0xeaf0000
lea eax, [esi + 0x68]
push eax
call fcn.00402910
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x40c897
push dword [ebp - 0x40]
call fcn.0042c3ad
add esp, 4
sub esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, edi
push 0
sub esp, 0xc
push eax
call fcn.0040d1a0
mov bl, al
cmp dword [ebp - 0x14], 0x10
jb 0x40c8bd
push dword [ebp - 0x28]
call fcn.0042c3ad
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c3b2
mov esp, ebp
pop ebp
ret
Function at 0x40e1d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov edx, dword [edi]
mov dword [ebp - 8], edx
mov eax, dword [edx]
cmp eax, edx
je 0x40e2fd
lea ecx, [ecx]
cmp dword [eax + 0x28], 5
jne 0x40e2ad
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x40e207
mov edi, dword [esi]
jmp 0x40e209
mov edi, esi
cmp dword [eax + 0x24], 0x10
mov esi, dword [eax + 0x20]
mov dword [ebp - 4], esi
jb 0x40e21a
mov ebx, dword [eax + 0x10]
jmp 0x40e21d
lea ebx, [eax + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ecx + 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [edx + 0x10]
mov edx, dword [ebp - 8]
cmovb esi, ecx
test esi, esi
je 0x40e293
sub esi, 4
jb 0x40e251
jmp 0x40e240
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x40e256
add ebx, 4
add edi, 4
sub esi, 4
jae 0x40e240
cmp esi, 0xfffffffc
je 0x40e28a
mov cl, byte [ebx]
cmp cl, byte [edi]
jne 0x40e283
cmp esi, 0xfffffffd
je 0x40e28a
mov cl, byte [ebx + 1]
cmp cl, byte [edi + 1]
jne 0x40e283
cmp esi, 0xfffffffe
je 0x40e28a
mov cl, byte [ebx + 2]
cmp cl, byte [edi + 2]
jne 0x40e283
cmp esi, 0xffffffff
je 0x40e28a
mov cl, byte [ebx + 3]
cmp cl, byte [edi + 3]
je 0x40e28a
sbb ecx, ecx
or ecx, 1
jmp 0x40e28c
xor ecx, ecx
test ecx, ecx
jne 0x40e2a9
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
cmp ecx, ebx
jb 0x40e2a9
xor ecx, ecx
cmp dword [ebp - 4], ebx
setne cl
test ecx, ecx
je 0x40e2ad
mov byte [eax + 0x58], 0
cmp byte [eax + 0xd], 0
jne 0x40e2f2
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x40e2d2
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
jne 0x40e2f2
mov eax, ecx
mov ecx, dword [eax]
cmp byte [ecx + 0xd], 0
je 0x40e2c6
jmp 0x40e2f2
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x40e2f0
jmp 0x40e2e0
cmp eax, dword [ecx + 8]
jne 0x40e2f0
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x40e2e0
mov eax, ecx
cmp eax, edx
jne 0x40e1f0
mov edi, dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, edi
call fcn.0040e9e0
mov esi, eax
cmp byte [esi + 0x30], 0
jne 0x40e314
mov ebx, dword [esi + 0x20]
jmp 0x40e317
mov ebx, dword [esi + 0x24]
lea ecx, [edi + 0x98]
call fcn.00412600
test al, al
je 0x40e394
mov eax, dword [edi + 0xa8]
sub eax, dword [edi + 0xa4]
add eax, dword [edi + 0x9c]
push 0
push 0
push ebx
push eax
mov eax, dword [edi + 0xa0]
push 0
push 0
mov eax, dword [eax]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x40e394
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x30], 0
push 0x40005
sete bl
push 0
mov byte [esi + 0x30], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
xor eax, eax
test bl, bl
setne al
add eax, 0x95
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411a50
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x411afc
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x411afc
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a87
sub ecx, ebx
sar ecx, 1
push 0
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [esi]
push edx
push edi
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop ebx
test eax, eax
je 0x411afc
push 0x4518c8
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push edi
push eax
mov eax, dword [esi]
push 0
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x411afc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ebp
ret 8
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x412600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4464e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x4584b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
jne 0x412652
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x412652
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], 0
jne 0x4127a6
mov eax, dword [edi + 8]
push ecx
mov ecx, esp
push dword [edi + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 8]
call fcn.004035d0
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00412240
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov dword [edi + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x14], ecx
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edi + 0x18], ecx
lea ecx, [edi + 0x1c]
push eax
call fcn.0040bc00
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4126c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x18], 0
jne 0x4127a6
push ecx
push dword [edi + 0x20]
mov ecx, dword [edi + 8]
call fcn.00411a50
test al, al
je 0x41263f
mov eax, dword [edi + 8]
push ecx
mov ecx, esp
push dword [edi + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 8]
call fcn.004035d0
mov edx, esi
lea ecx, [ebp - 0x30]
call fcn.00412240
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [eax]
mov dword [edi + 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0x14], ecx
mov ecx, dword [eax + 8]
add eax, 0xc
mov dword [edi + 0x18], ecx
lea ecx, [edi + 0x1c]
push eax
call fcn.0040bc00
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41274a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [edi + 0x18], 0
je 0x41263f
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x41263f
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0
push 0
push 0
add eax, ecx
push eax
mov eax, dword [edi + 8]
push 0
push 0
mov eax, dword [eax]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x41263f
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 4], 0
jne 0x4127ba
push 3
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 4], eax
xor eax, eax
cmp dword [edi + 4], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret