joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014a0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov word [ebp - 4], 0
push edi
mov edi, ecx
mov byte [ebp - 2], 0
lea eax, [esi - 1]
add eax, edi
mov dword [ebp - 8], eax
mov eax, 0x55555556
imul esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx + ecx*2]
sub esi, eax
neg esi
sbb esi, esi
and esi, 4
lea esi, [esi + ecx*4]
inc esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCR120.dll_malloc]
mov edx, eax
xor ebx, ebx
mov eax, dword [ebp + 8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov dword [eax], edx
cmp edi, dword [ebp - 8]
ja 0x100015d8
mov eax, 0x55555556
mov esi, ebx
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
sub esi, eax
mov al, byte [edi]
mov byte [ebp + esi - 4], al
cmp esi, 2
je 0x1000152f
mov eax, dword [ebp - 8]
cmp edi, eax
jne 0x100015ba
mov bl, byte [ebp - 4]
mov bh, byte [ebp - 3]
mov dl, bl
mov ah, byte [ebp - 2]
mov al, bh
shr al, 4
and bl, 3
shl bl, 4
and bh, 0xf
or bl, al
shr dl, 2
mov al, ah
shl bh, 2
shr al, 6
and ah, 0x3f
or bh, al
mov byte [ebp + 0xb], ah
movzx eax, dl
mov edx, dword [ebp - 0xc]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ecx], al
movzx eax, bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ecx + 1], al
test esi, esi
jne 0x10001581
mov al, 0x3d
jmp 0x1000158a
movzx eax, bh
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + ecx + 2], al
cmp esi, 2
jge 0x10001597
mov al, 0x3d
jmp 0x100015a1
movzx eax, byte [ebp + 0xb]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0x10]
mov byte [edx + ecx + 3], al
add ecx, 4
mov eax, dword [ebp - 8]
mov word [ebp - 3], 0
mov byte [ebp - 4], 0
jmp 0x100015bd
mov edx, dword [ebp - 0xc]
inc ebx
inc edi
mov dword [ebp - 0x10], ebx
cmp edi, eax
jbe 0x10001504
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov byte [edx + ecx], 0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
mov byte [edx + ecx], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100017e0
Capabilities:
Enumerate processes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x260], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0xffff
push str.hasCaptin
push str.SOFTWAREWAX
push 0x80000002
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov edi, dword [sym.imp.MSVCR120.dll__wcsicmp]
test eax, eax
jne 0x1000186e
lea eax, [ebp - 0x24]
push str.DISABLE
push eax
call edi
add esp, 8
test eax, eax
jne 0x1000186e
mov eax, 0xfffffff2
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000249e
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call ebx
cmp dword [ebp - 0x28], 0
ja 0x1000189d
pop ebx
mov eax, 0xfffffff4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000249e
mov esp, ebp
pop ebp
ret
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100018c5
pop esi
pop ebx
mov eax, 0xfffffff6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000249e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10001900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 0xfffffff5
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000249e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x254]
call ebx
test eax, eax
je 0x1000192d
lea eax, [ebp - 0x238]
push str.captin.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x1000192d
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x28]
je 0x10001941
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10001900
jmp 0x1000194b
mov dword [ebp - 0x260], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x260]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.1000249e
mov esp, ebp
pop ebp
ret
Function at 0x10001970
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.100017e0
test eax, eax
jne 0x10001a7f
lea eax, [ebp - 0x208]
push str.C:Program_Files__x86_Penta_SystemsACRA_Pointcaptin.exe
push eax
call fcn.10002480
lea eax, [ebp - 0x208]
push eax
push 0x115
push str._door.runcaptin:_d__runCaptin___s_
call fcn.100012a0
push 0x44
lea eax, [ebp - 0x250]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x20
mov dword [ebp - 0x250], 0x44
xor eax, eax
mov dword [ebp - 0x224], 1
mov word [ebp - 0x220], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x260]
movdqa xmmword [ebp - 0x260], xmm0
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10001a67
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000249e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1000249e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10001ac0
Capabilities:
Terminate process

Disassembly:
push edi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10001ad4
pop edi
ret
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x17246ee9
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x328808ef
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40be30
Capabilities:
Encode data using xor
Read file 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 0x51e1f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x30
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x14], 1
xor ecx, ecx
mov word [ebp - 0x27], 0x8e99
movq qword [ebp - 0x25], xmm0
mov byte [ebp - 0x1d], 0
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 2
jb 0x40beb1
mov dword [0x558548], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x27]
mov byte [ebp - 0x25], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x2c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bee3
sub ecx, edx
lea eax, [ebp - 0x27]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00402b20
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
lea eax, [ebx + 8]
mov dword [ebp - 0x14], 3
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebx + 0x1c], 0x10
push ecx
cmovae eax, dword [ebx + 8]
push eax
call fcn.004fda60
mov ecx, dword [ebp - 0x2c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x40bf56
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bf4c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c01a
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test edi, edi
je 0x40bfd5
push 2
push 0
push edi
call fcn.00501836
push edi
call fcn.004fd5eb
push 0
push 0
push edi
mov dword [ebp - 0x18], eax
call fcn.00501836
mov ecx, dword [esi + 0x10]
add esp, 0x1c
mov eax, dword [ebp - 0x18]
cmp eax, ecx
ja 0x40bfa9
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40bfa0
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x40bfb8
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00482420
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40bfc2
mov ecx, dword [esi]
push edi
push eax
push 1
push ecx
call fcn.005062df
push edi
call fcn.005012e8
add esp, 0x14
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40c005
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bffb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c01f
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004fceb0
call fcn.004fceb0
int3
Function at 0x40c030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e21d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor edi, edi
mov word [ebp - 0x1b], 0x8e99
movq qword [ebp - 0x19], xmm0
xor eax, eax
mov byte [ebp - 0x11], 0
nop dword [eax]
lea ecx, [eax - 0x15]
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 2
jb 0x40c070
xorps xmm0, xmm0
mov dword [0x558548], eax
lea ecx, [ebp - 0x1b]
mov byte [ebp - 0x19], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], edi
lea edx, [ecx + 1]
mov dword [ebp - 0x20], edi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c0a0
push esi
sub ecx, edx
lea eax, [ebp - 0x1b]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00402b20
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp - 0x34]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
push eax
call fcn.004fda60
mov ecx, dword [ebp - 0x20]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x40c109
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c0ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c178
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
test esi, esi
je 0x40c136
push 2
push 0
push esi
call fcn.00501836
push esi
call fcn.004fd5eb
push esi
mov edi, eax
call fcn.005012e8
add esp, 0x14
mov ecx, dword [ebp + 0x1c]
pop esi
cmp ecx, 0x10
jb 0x40c167
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c15d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c17d
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004fceb0
call fcn.004fceb0
int3
Function at 0x40c1d0
Capabilities:
Encode data using xor

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 0x51e23d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x50
movaps xmm0, xmmword [0x543c60]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2a], 0xa98198b9
mov word [ebp - 0x26], 0x848a
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x2a], al
inc ecx
cmp ecx, 0xd
jb 0x40c220
mov dword [0x55852c], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x2a]
mov byte [ebp - 0x1d], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c252
sub ecx, edx
lea eax, [ebp - 0x2a]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b20
mov dword [ebp - 4], 0
lea esi, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
movaps xmm0, xmmword [0x543ff0]
cmovae esi, dword [ebp - 0x5c]
xor ecx, ecx
mov word [ebp - 0x26], 0x98a5
movups xmmword [ebp - 0x24], xmm0
nop dword [eax]
lea eax, [ecx - 0x15]
xor byte [ebp + ecx - 0x26], al
inc ecx
cmp ecx, 9
jb 0x40c290
mov dword [0x5585e0], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x26]
mov byte [ebp - 0x1d], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c2c2
sub ecx, edx
lea eax, [ebp - 0x26]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b20
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmp ecx, 0x10
jb 0x40c328
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c31e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3b6
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x40c371
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c367
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c3b6
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
push edi
test esi, esi
je 0x40c39d
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004fceb0
int3
Function at 0x40c4c0
Capabilities:
Encode data using xor

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 0x51e280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x2c
push esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov word [ebp - 0x23], 0x8e99
xor eax, eax
movq qword [ebp - 0x21], xmm0
mov byte [ebp - 0x19], 0
nop dword [eax + eax]
lea ecx, [eax - 0x15]
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 2
jb 0x40c510
xorps xmm0, xmm0
mov dword [0x558548], eax
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x21], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x28], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c541
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00402b20
cmp dword [ebp - 0x28], 0x10
lea ecx, [ebp - 0x3c]
lea eax, [ebx + 8]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebx + 0x1c], 0x10
push ecx
cmovae eax, dword [ebx + 8]
push eax
call fcn.004fda60
mov ecx, dword [ebp - 0x28]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x40c5a9
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c59f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c617
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
test esi, esi
je 0x40c5ce
push esi
call fcn.005012e8
add esp, 4
mov byte [ebp - 0x11], 1
jmp 0x40c5d2
mov byte [ebp - 0x11], 0
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x40c602
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40c5f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c61c
push ecx
push edx
call fcn.004f7c11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004fceb0
call fcn.004fceb0
int3

Function at 0x40c630
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x40c678
mov edx, ecx
push esi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40c640
sub edx, esi
pop esi
je 0x40c678
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c672
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x40c672
cmp eax, 0x20
je 0x40c672
cmp eax, 0x45
je 0x40c672
cmp eax, 0x24
jne 0x40c678
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40ce20
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
push edi
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], ecx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0x64
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x40d027
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push 0
mov edi, eax
call esi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40d01d
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40d011
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40d007
push eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [esp + 0x20]
push edi
push esi
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40cfb1
push eax
call fcn.0050662c
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x40cfb1
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [esp + 8], esi
jbe 0x40cfa8
add edi, 0x30
nop dword [eax]
mov eax, dword [edi]
mov ecx, str.image_png
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cf8d
test dx, dx
je 0x40cf89
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cf8d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cf67
xor eax, eax
jmp 0x40cf92
sbb eax, eax
or eax, 1
test eax, eax
je 0x40d02f
inc esi
add edi, 0x4c
cmp esi, dword [esp + 8]
jb 0x40cf60
mov edi, dword [esp + 0x18]
push edi
call fcn.00505ed6
add esp, 4
movups xmm0, xmmword [0x52bab8]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x54], 1
push eax
push dword [esp + 0x30]
movups xmmword [esp + 0x60], xmm0
push esi
mov dword [esp + 0x78], 4
mov dword [esp + 0x74], 1
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x14]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0x44], xmm0
jmp 0x40cfa9