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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x473918
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4345a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4346bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4345bd
mov eax, 0xffffffc7
jmp 0x4346be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4345ce
cmp dword [esi + 8], eax
jne 0x4345bd
cmp dword [esi + 8], eax
jne 0x4345e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4345e7
mov eax, 0xffffffc7
jmp 0x4346be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4345fb
push eax
mov ecx, ebx
call fcn.00433da0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403bf0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43462c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403c10
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00433510
test eax, eax
mov dword [esp + 0x38], eax
je 0x43465f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x595630
call fcn.00403df0
mov eax, dword [esp + 0x38]
jmp 0x4346be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004343d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4346a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004343f0
mov esi, eax
test esi, esi
jne 0x4346d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004343d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x434675
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x595630
call fcn.00403df0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x595630
call fcn.00403df0
mov eax, esi
jmp 0x4346be

Function at 0x4377f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x437850
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x437850
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x437850
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x437850
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x437890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43d9e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473f48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046cbf8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043d380
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046cb26
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004693ea
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004693ea
push 1
push 0
push 0
mov ecx, esi
call fcn.00469392
push 1
push 0
push 1
mov ecx, esi
call fcn.00469392
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cc6a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43db60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046cbf8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043d380
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046cb26
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43dc24
cmp dword [esp + 0x40], 1
jne 0x43dc22
cmp ecx, eax
jge 0x43dc24
mov eax, ecx
cmp eax, 0xc8
jge 0x43dc30
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043d9e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046cc6a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43e3a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473fd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00467808
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046cea0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e3bc
test eax, eax
je 0x43e4bc
mov ecx, dword [esp + 0x3c]
call fcn.0046cecd
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e480
push edi
mov ecx, esi
call fcn.0046a531
mov ecx, esi
call fcn.0043e620
cmp dword [esp + 0x38], 1
jne 0x43e4b5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046a66c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440ee0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440f13
push esi
call fcn.00443fe0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440f0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440f99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440f82
mov eax, dword [esi + 8]
test eax, eax
je 0x440f37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440f7e
cmp eax, 2
je 0x440f82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440f2a
cmp eax, 3
je 0x440f5d
cmp eax, 1
jne 0x440f2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440f2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440f2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440fc0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440fa8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440fc0
add esp, 4
pop esi
ret

Function at 0x450590
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x450633
test eax, eax
jbe 0x450633
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x450633
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4505de
xor esi, esi
jmp 0x4505e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45060f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00454230
add esi, eax
push esi
mov ebx, esi
call fcn.00454230
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4505f0
pop ebp
test edi, edi
pop edi
jne 0x450633
test ebx, ebx
je 0x450633
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00456700
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x450775
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45088d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45088d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00467c5a
mov esi, eax
test esi, esi
je 0x45088d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45088d
mov ecx, esi
call fcn.004506e0
cmp edi, eax
jge 0x45088d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x450813
mov dword [esp + 0x34], 1
jmp 0x45086e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45088d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044ef50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4685fd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x468635
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004666b4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046668c
jmp 0x468641
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469cee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x469d30
call fcn.0046f7ac
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469d30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469d27
xor eax, eax
jmp 0x469d38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469d3e
pop edi
pop esi
pop ebx
ret 4
Function at 0x46fcdc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46fd0a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fd28
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046fc42
jmp 0x46fd28
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fd28
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046fc42
test edi, edi
mov eax, edi
jne 0x46fd12
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402520
Capabilities:
Parse pe header

Disassembly:
push ecx
push esi
mov esi, dword [0x405dfc]
push edi
test esi, esi
je 0x40254c
mov edi, dword [0x40415c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call edi
add esp, 8
test eax, eax
je 0x40256b
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x402533
push ebp
mov ebp, dword [esp + 0x18]
mov edx, 0x5a4d
cmp word [ebp], dx
je 0x402574
push 0xb
call dword [0x40403c]
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
inc dword [esi + 0x1c]
pop edi
mov eax, esi
pop esi
pop ecx
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x402592
push 0xb
call dword [0x40403c]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
mov esi, dword [0x404050]
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x4025d3
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4025d3
push 8
call dword [0x40403c]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 0x28
push 0
call dword [0x404040]
push eax
call dword [0x404034]
mov esi, eax
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi + 4], edi
mov dword [esi + 0x1c], 1
call dword [0x4040bc]
add esp, 4
push 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov ecx, dword [ebx + 0x50]
push 0x1000
push ecx
push edi
call dword [0x404050]
mov edx, dword [ebx + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [0x404050]
mov ecx, dword [ebp + 0x3c]
add ecx, dword [ebx + 0x54]
mov dword [esp + 0x10], eax
push ecx
push ebp
push eax
call fcn.0040294a
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x1c]
push esi
add eax, edx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00401f60
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x40267a
push eax
mov eax, esi
call fcn.004020d0
add esp, 4
push esi
call fcn.004023a0
add esp, 4
test eax, eax
je 0x4026b2
push esi
call fcn.00402010
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
add esp, 4
test eax, eax
je 0x4026d4
add eax, edi
jne 0x4026a7
push 0xb
call dword [0x40403c]
jmp 0x4026b2
push 0
push 1
push edi
call eax
test eax, eax
jne 0x4026cd
mov edx, dword [esi + 0x18]
push edx
call dword [0x404140]
push esi
call fcn.004022c0
add esp, 8
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [esi + 0x10], 1
mov eax, esi
call fcn.00401df0
pop ebx
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100064c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
movzx ebx, byte [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push 0x40
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
mov dword [eax + 0x30], edi
mov dword [eax + 0x34], ebp
mov byte [eax], bl
add eax, 0x2c
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, dword [esi + 0x30]
xor edi, edi
mov ebp, 3
nop word cs:[eax + eax]
lea eax, [edi + ebx]
push 4
push 0xf
push eax
call fcn.100065f0
add esp, 0xc
add edi, eax
xor ecx, ecx
test eax, eax
sete cl
cmp edi, 5
cmovae ecx, ebp
test ecx, ecx
je 0x10006510
cmp ecx, 3
jne 0x100065dc
mov dword [esi + 0x3c], edi
add edi, 5
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x38], eax
push dword [esi + 0x3c]
push dword [esi + 0x30]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esp + 4], 0x90
mov dword [esp], 0x909090e9
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
sub ecx, eax
add ecx, 0xfffffffb
mov dword [esp + 1], ecx
movzx ecx, byte [eax + 4]
mov byte [esi + 8], cl
mov ecx, dword [eax]
mov dword [esi + 4], ecx
cmp byte [esi], 0
je 0x100065a0
movzx ecx, byte [esp + 4]
mov byte [eax + 4], cl
mov ecx, dword [esp]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
movzx ecx, byte [esp + 4]
mov byte [esi + 0x1c], cl
mov ecx, dword [esp]
mov dword [esi + 0x18], ecx
mov byte [esp + 0xc], 0x90
mov dword [esp + 8], 0x909090e9
mov ecx, dword [esi + 0x38]
sub eax, ecx
add eax, 0xfffffffb
mov dword [esp + 9], eax
mov eax, dword [esi + 0x3c]
movzx edx, byte [esp + 0xc]
mov byte [eax + ecx + 4], dl
mov edx, dword [esp + 8]
mov dword [eax + ecx], edx
jmp 0x100065de
xor esi, esi
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0
je 0x10007dfc
pop esi
ret
lea eax, [esi + 0x2c]
push eax
push 0x40
push 5
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
movzx ecx, byte [esi + 0x1c]
mov byte [eax + 4], cl
mov byte [esi], 1
pop esi
ret
Function at 0x10008760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
ret

Function at 0x100087a0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [ebx + 4]
inc ebp
sub esp, 0x14
movaps xmm0, xmmword [0x100174c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push ebp
push dword [ebx]
push eax
push eax
call edi
mov dword [esp], eax
push 0
push ebp
mov ebp, dword [esp + 0x24]
push dword [ebx]
push esi
push ebp
call edi
test eax, eax
je 0x10008847
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100174fb
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push esi
push eax
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x1000886b
test ebp, ebp
je 0x1000888f
test esi, esi
je 0x1000888f
cmp dword [esp], 6
je 0x1000888f
mov ebx, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x100088b3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x10
push 0x100174e9
push str.Could_not_inject_nError_1
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x10
push 0x100174e9
push str.Could_not_inject_nError_2
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x10
push 0x100174e9
push str.Could_not_inject_nError_3
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x10
push 0x100174e9
push str.Could_not_inject_nError_4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3