joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb8f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e65e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x66a074]
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 esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x4bbaf6
cmp word [esi], 0
je 0x4bbaf6
lea ecx, [ebp - 0x64]
mov edi, 1
call fcn.004cc080
mov ecx, esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x40], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bb970
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00409060
push 0x80
push 2
push 1
push 0x40000000
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.004cc130
mov bl, al
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00408ff0
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x64]
test bl, bl
jne 0x4bb9c7
xor edi, edi
jmp 0x4bbac7
lea ecx, [ebp - 0x60]
call fcn.0059c370
push dword [ebp - 0x6c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x60]
call fcn.0059c3e0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ebx, dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], 0
test esi, esi
je 0x4bba6e
test eax, eax
je 0x4bba6e
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x4bba6e
push 0
lea edx, [ebp - 0x68]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bba6e
cmp ebx, dword [ebp - 0x68]
jne 0x4bba6e
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4bba5a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bba50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bbb15
push edx
push ecx
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x4bbabb
or edi, 0xffffffff
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4bbaa9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bba9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bbb1a
push edx
push ecx
call fcn.005b7992
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.004bb4b0
test esi, esi
je 0x4bbae3
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4bbae3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4bbae3
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.004cc0f0
mov eax, edi
jmp 0x4bbaf9
or eax, 0xffffffff
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.005b75ab
mov esp, ebp
pop ebp
ret
call fcn.005c00b0
call fcn.005c00b0
int3
Function at 0x4bbd30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x66a074]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call fcn.005b9c20
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4bbdae
cmp dword [esp + 0x14], 6
jb 0x4bbdae
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, reloc.DSOUND.dll_DirectSoundCreate
call fcn.004bbb90
add esp, 0xc
test al, al
je 0x4bbdae
cmp word [esi], 0
jne 0x4bbe06
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.004bbb90
add esp, 0xc
test al, al
je 0x4bbdda
cmp word [esi], 0
jne 0x4bbe06
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, reloc.DSOUND.dll_DirectSoundCreate
call fcn.004bbb90
add esp, 0xc
test al, al
je 0x4bbe1b
cmp word [esi], 0
je 0x4bbe1b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4bf850
Capabilities:
Create process on windows

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 0x5e6ce8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x174
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x180]
call fcn.004cb990
cmp dword [ebp - 0x17c], 0xa
jb 0x4bf8b2
mov ecx, esi
call fcn.004bf9e0
jmp 0x4bf9c0
lea ecx, [ebp - 0x2c]
call fcn.004c0a80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push 0xe
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0x62952c
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.00409060
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.004c7af0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x4bf940
mov ecx, eax
call fcn.00408ff0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00408ff0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.00408ff0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.004c6ca0
test al, al
jne 0x4bf97b
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xb
call fcn.00408ff0
xor al, al
jmp 0x4bf9b9
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
setg byte [ebp - 0x181]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xf
call fcn.00408ff0
mov al, byte [ebp - 0x181]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4c0610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6e6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x66a074]
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 dword [ebp - 0xd0], ecx
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov dword [ebp - 4], eax
xor bl, bl
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc4]
push eax
push 0x6295f4
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4c082f
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4c082f
push esi
push edi
push dword [ebp - 0xc4]
push 0x6295f4
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4c0764
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
push eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0xc8], 0
push eax
push 0x61908c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4c0764
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.005b9c20
mov ecx, dword [ebp - 0xc8]
add esp, 0xc
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x625324
push 0xffffffffffffffff
lea eax, [ebp - 0x90]
push 0x40
push eax
call fcn.004ac840
lea ecx, [ebp - 0x90]
add esp, 0x20
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0740
sub ecx, edx
lea eax, [ebp - 0x90]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa8]
call fcn.00409060
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x4c082f
mov edi, dword [ebp - 0x94]
lea edx, [ebp - 0xa8]
mov ebx, dword [ebp - 0xa8]
cmp edi, 8
mov esi, dword [ebp - 0x98]
cmovae edx, ebx
test esi, esi
je 0x4c07ae
mov eax, esi
mov ecx, edx
nop dword [eax]
cmp word [ecx], 0x2e
je 0x4c0825
add ecx, 2
sub eax, 1
jne 0x4c07a0
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x4c082f
xor eax, eax
mov dword [ebp - 0xb0], 0
cmp esi, ecx
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], 7
cmovb ecx, esi
cmp edi, 8
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0xc0]
push eax
call fcn.00409060
cmp dword [ebp - 0xac], 8
lea eax, [ebp - 0xc0]
cmovae eax, dword [ebp - 0xc0]
push eax
call fcn.005c20bf
mov ecx, dword [ebp - 0xd0]
add esp, 4
mov dword [ecx], eax
lea ecx, [ebp - 0xc0]
call fcn.00408ff0
mov bl, 1
jmp 0x4c0831
test ecx, ecx
je 0x4c07ae
sub ecx, edx
sar ecx, 1
jmp 0x4c07b1
xor bl, bl
lea ecx, [ebp - 0xa8]
call fcn.00408ff0
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.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4c0860
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6ecd
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.005b8630
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x101c], esi
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1018], 1
call fcn.004cfbc0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 1
call fcn.004d0300
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c093e
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0920
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409060
lea ecx, [ebp - 0x1014]
call fcn.004d0600
lea ecx, [ebp - 0x1014]
call fcn.004cfc40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret

Function at 0x4c0970
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6ecd
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.005b8630
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x101c], esi
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1018], 1
call fcn.004cfbc0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 1
call fcn.004d0300
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c0a4e
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0a30
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409060
lea ecx, [ebp - 0x1014]
call fcn.004d0600
lea ecx, [ebp - 0x1014]
call fcn.004cfc40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4c0a80
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6ecd
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.005b8630
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x101c], esi
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1018], 1
call fcn.004cfbc0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 1
call fcn.004d0300
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c0b5e
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0b40
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409060
lea ecx, [ebp - 0x1014]
call fcn.004d0600
lea ecx, [ebp - 0x1014]
call fcn.004cfc40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret

Function at 0x4c0b90
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6ecd
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.005b8630
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x101c], esi
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1018], 1
call fcn.004cfbc0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 1
call fcn.004d0300
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c0c6e
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0c50
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409060
lea ecx, [ebp - 0x1014]
call fcn.004d0600
lea ecx, [ebp - 0x1014]
call fcn.004cfc40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4c0ca0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6f2d
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.005b8630
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x101c], esi
xor eax, eax
mov dword [ebp - 0x1018], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x1018], 1
call fcn.004cfbc0
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 1
call fcn.004d0300
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0
push 0x20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c0d7e
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0d60
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00409060
lea ecx, [ebp - 0x1014]
call fcn.004d0600
lea ecx, [ebp - 0x1014]
call fcn.004cfc40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
ret
Function at 0x4c2e90
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c2f8a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x4c2f83
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x4c2f69
call ebx
cmp dword [ebp - 0x14], eax
jne 0x4c2f69
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x4c2f69
mov edx, dword [esi]
test edx, edx
jne 0x4c2f32
push 0x200
push edx
push dword [0x673658]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x4c2f83
jmp 0x4c2f5d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x4c2f5d
shl eax, 3
push eax
push edx
push 0
push dword [0x673658]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x4c2f83
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4c2ef1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x4c2fcf
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x4c2fcf
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x4c2fc9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.004c2d20
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x4c2f96
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b75ab
mov esp, ebp
pop ebp
ret

Function at 0x4c2ff0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx]
test eax, eax
je 0x4c303e
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x4c302e
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x4c3025
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x4c3002
mov eax, dword [ebx]
pop edi
push eax
push 0
push dword [0x673658]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x4c3040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x6750e0]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x4c3060
sub edi, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4c308b
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4c30ac
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x4c30cd
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x4c30cd
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x4c30c7
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x4c30cd
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c3120
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x6750e8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x4c3211
mov eax, dword [0x6750e0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x4c3165
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x4c3148
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x4c3211
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.004c2e90
mov ecx, dword [0x6750e8]
add esp, 4
cmp esi, ecx
jae 0x4c31c5
imul edi, esi, 0x2c
mov eax, dword [0x6750e0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x4c31ba
mov edx, ebx
mov ecx, esi
call fcn.004c3040
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c31c2
mov ecx, dword [0x6750e8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x4c3191
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c3211
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x4c3202
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x4c31f6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x4c31d5
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x673658]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret