joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a12fe
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60534f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [edi + edi*2]
shl edi, 4
add edi, dword [eax + 0xe0]
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [edi + 0x20]
lea eax, [esp + 0x18]
call fcn.005add43
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edi + 0x24]
je 0x5a13a0
mov esi, dword [ecx + 0x10]
cmp esi, dword [esi]
je 0x5a13a0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [edx + 0xb0]
lea ecx, [eax + 8]
mov eax, dword [eax]
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x44]
mov dword [esp + 0x20], esp
push ebx
call eax
mov esi, dword [esi + 4]
test eax, eax
jne 0x5a1436
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
cmp esi, dword [eax]
jne 0x5a135e
lea eax, [ebp + 0x14]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
call fcn.00424fe5
mov esi, dword [esp + 0x14]
cmp esi, dword [edi + 4]
je 0x5a147d
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
mov dword [esp + 0x3c], 0
mov ecx, dword [esi + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x20]
push eax
push ecx
push ebx
call edx
test eax, eax
js 0x5a146a
push 0
push 9
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x28], esp
push eax
mov eax, dword [edx + 0x3c]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x14]
push 0
push 0xa
add esi, 0x10
push esi
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x28], esp
push eax
call edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp + 0x14]
push eax
lea ecx, [edi + 0x10]
lea eax, [esp + 0x18]
call fcn.005adc27
mov edi, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x5a14b2
mov eax, 0x80004005
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
add eax, 0x18
push 9
push eax
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov dword [esp + 0x28], esp
push eax
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5afa47
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi - 8]
test edi, edi
je 0x5afa5b
lea eax, [edi + 4]
jmp 0x5afa5d
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 2
je 0x5afabd
test edi, edi
je 0x5afa78
lea eax, [edi + 4]
jmp 0x5afa7a
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x5afabd
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x5afabd
test byte [esi + 0x168], 1
jne 0x5afabd
call fcn.005b59a8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8c]
push 1
push 0x480
push eax
call edx
pop edi
pop esi
pop ebp
ret 8

Function at 0x5b0d10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi - 8]
test edi, edi
je 0x5b0d24
lea eax, [edi + 4]
jmp 0x5b0d26
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 2
je 0x5b0e18
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x4b9
push eax
call edx
cmp eax, 0x20
jne 0x5b0e18
mov eax, dword [esi + 0x168]
test al, 1
je 0x5b0e18
and eax, 0xfffffffe
push 1
mov dword [esi + 0x168], eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x5b0de2
test byte [esi + 0x168], 2
push ebx
je 0x5b0da5
test edi, edi
je 0x5b0d8e
lea eax, [edi + 4]
jmp 0x5b0d90
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
test eax, eax
jne 0x5b0da5
mov bl, 1
jmp 0x5b0da7
xor bl, bl
test edi, edi
je 0x5b0db0
lea eax, [edi + 4]
jmp 0x5b0db2
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x5b0dd2
mov ecx, dword [esi - 4]
mov edx, dword [ecx + 0xe4]
lea eax, [esi - 4]
push eax
call edx
test bl, bl
pop ebx
je 0x5b0e03
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov ecx, edi
call edx
jmp 0x5b0e03
test edi, edi
je 0x5b0deb
lea eax, [edi + 4]
jmp 0x5b0ded
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x5b0e03
call fcn.005b59a8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8c]
push 1
push 0x480
push eax
call edx
pop edi
pop esi
pop ebp
ret 8
Function at 0x5b0e1e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi - 8]
test edi, edi
je 0x5b0e32
lea eax, [edi + 4]
jmp 0x5b0e34
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 2
je 0x5b0efb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8c]
push ebx
push 1
push 0x480
push eax
call edx
mov eax, dword [esi - 4]
mov ecx, dword [eax + 0xe8]
add esi, 0xfffffffc
push esi
call ecx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call ebx
shr eax, 0xf
test al, 1
je 0x5b0ed4
mov edx, dword [esi]
mov eax, dword [edx + 0xe0]
push esi
call eax
test edi, edi
je 0x5b0e94
lea eax, [edi + 4]
jmp 0x5b0e96
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x5b0ed4
push 1
call ebx
shr eax, 0xf
test al, 1
je 0x5b0ec9
mov eax, dword [ebp + 8]
test byte [eax + 0x168], 2
jne 0x5b0ed4
push 1
mov ecx, edi
call fcn.005b5a45
jmp 0x5b0ed4
mov ecx, dword [esi]
mov edx, dword [ecx + 0xe4]
push esi
call edx
pop ebx
test edi, edi
je 0x5b0ede
lea eax, [edi + 4]
jmp 0x5b0ee0
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 1
jne 0x5b0efb
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov ecx, edi
call edx
pop edi
pop esi
pop ebp
ret 8

Function at 0x5b9c3e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606345
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComPolyObject_class_Smartui::CQtlHwndHost_.0
cmp ecx, eax
jne 0x5b9c75
mov ecx, esi
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x1c], vtable.Smartui::CQtlSupperWindowImpl_class_Smartui::CQtlHwndHost__class_ATL::CWindow__class_ATL::CWinTraits_1442840576__0__.0
mov dword [esi + 0x44], eax
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_Smartui::CQtlHwndHost_.0
mov dword [esi + 0x1c], vtable.ATL::CComContainedObject_class_Smartui::CQtlHwndHost_.1.0
mov dword [esi + 0x40], vtable.ATL::CComContainedObject_class_Smartui::CQtlHwndHost_.2.0
mov dword [esi + 0xc], ecx
mov dword [ebp - 4], eax
mov ecx, dword [0x6d09c0]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5c5570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605f7c
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], vtable.ATL::CComPolyObject_class_Smartui::CQtlHwndSource_.0
cmp ecx, eax
jne 0x5c55a7
mov ecx, esi
mov edx, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov byte [esi + 0x54], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0xc], vtable.ATL::CComContainedObject_class_Smartui::CQtlHwndSource_.0
mov dword [esi + 0x10], vtable.ATL::CComContainedObject_class_Smartui::CQtlHwndSource_.1.0
mov dword [esi + 0x34], vtable.ATL::CComContainedObject_class_Smartui::CQtlHwndSource_.2.0
mov dword [esi + 0x38], ecx
mov dword [ebp - 4], eax
mov ecx, dword [0x6d09c0]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x5c6a1e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609270
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov byte [esi + 0x2c], al
mov byte [ebp - 4], 1
lea edi, [esi + 0x30]
mov dword [edi + 8], eax
mov eax, 1
mov dword [ebp - 0x10], edi
call fcn.0040a9a8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov eax, dword [edi + 4]
mov byte [eax + 0x14], 1
mov ecx, dword [edi + 4]
mov byte [ecx + 0x15], 1
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5ca9f8
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x5caa49
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x190], eax
mov dword [eax], 0x5ccbb1
mov dword [eax + 4], 0x5ccd09
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.005cca0b
cmp byte [esi + 0x40], 0
je 0x5caa42
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5caac3
mov edx, dword [esi + 0x1a0]
cmp byte [edx + 0x10], 0
je 0x5caab3
mov eax, dword [esi + 8]
test eax, eax
je 0x5caa6e
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x5caaaf
cmp eax, 2
je 0x5caab3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5caa5f
cmp eax, 3
je 0x5caa96
cmp eax, 1
jne 0x5caa5f
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x5caa5f
mov ecx, dword [esi + 0x120]
add dword [eax + 8], ecx
jmp 0x5caa5f
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.005caaec
pop esi
ret
cmp eax, 0xcc
je 0x5caae5
mov eax, dword [esi]
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.005caaec
pop esi
ret
Function at 0x5cedc1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 1
push esi
mov esi, dword [ebx + 0x1b8]
push edi
mov dword [ebp - 0x14], esi
jne 0x5cede9
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5cedf4
mov dword [ebp - 4], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push ebx
call eax
xor edi, edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 8], edi
cmp dword [ebx + 0x64], edi
jle 0x5cef00
jmp 0x5cee2f
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
je 0x5cee4f
mov edx, dword [esi + 0x18]
add dword [edx + edi*4], 0xff
lea eax, [edx + edi*4]
mov eax, dword [esi + 0x18]
mov edi, dword [eax + edi*4]
lea eax, [ecx + 0xfe]
lea esi, [ecx + ecx - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [ebp - 0x18], edi
xor ecx, ecx
mov esi, eax
lea ebx, [ebx]
cmp ecx, esi
jle 0x5ceead
mov eax, dword [ebp - 0xc]
mov edx, ebx
imul edx, edx, 0x1fe
lea edi, [edx + eax + 0xfe]
jmp 0x5cee91
mov esi, dword [ebp - 0xc]
add edi, 0x1fe
mov eax, edi
cdq
lea esi, [esi + esi - 2]
idiv esi
inc ebx
mov esi, eax
cmp ecx, esi
jg 0x5cee91
mov edi, dword [ebp - 0x18]
mov al, byte [ebp - 0x10]
imul bl
mov byte [ecx + edi], al
inc ecx
cmp ecx, 0xff
jle 0x5cee71
cmp dword [ebp - 4], 0
je 0x5ceeed
mov eax, 1
lea ecx, [edi - 1]
jmp 0x5ceed1
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x5ceed1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x64]
jl 0x5cee26
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e0e70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ecx + 8]
push esi
mov esi, edx
mov dword [ebp - 0x18], eax
cmp bl, 3
je 0x5e1030
mov edx, dword [ecx]
push edi
mov dword [ebp - 0x1c], 0
test bl, 2
je 0x5e0ed1
movzx eax, byte [ecx + 9]
movzx edi, byte [esi]
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 1]
mov dword [ebp - 0x14], ebx
mov ebx, eax
sub ebx, edi
movzx edi, byte [esi + 2]
sub eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
mov edi, 3
jmp 0x5e0ee3
movzx edi, byte [esi + 3]
movzx ebx, byte [ecx + 9]
sub ebx, edi
mov dword [ebp - 0x14], ebx
mov edi, 1
test byte [ecx + 8], 4
je 0x5e0ef8
movzx esi, byte [esi + 4]
movzx ebx, byte [ecx + 9]
sub ebx, esi
mov dword [ebp + edi*4 - 0x14], ebx
inc edi
xor esi, esi
test edi, edi
jle case.0x5e0f41.3
cmp dword [ebp + esi*4 - 0x14], 0
jg 0x5e0f13
mov dword [ebp + esi*4 - 0x14], 0
jmp 0x5e0f1a
mov dword [ebp - 0x1c], 1
inc esi
cmp esi, edi
jl 0x5e0f02
cmp word [ebp - 0x1c], 0
je case.0x5e0f41.3
movzx esi, byte [ecx + 9]
add esi, 0xfffffffe
cmp esi, 0xe
ja case.0x5e0f41.3
movzx esi, byte [esi + 0x5e1054]
jmp dword [esi*4 + 0x5e1040]
mov ecx, dword [ecx + 4]
test ecx, ecx
je case.0x5e0f41.3
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
dec ecx
jne 0x5e0f53
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
mov edi, dword [ecx + 4]
mov esi, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, 0xf0
sar edx, cl
mov ebx, 0xf
sar ebx, cl
and dl, 0xf0
or dl, bl
test edi, edi
je case.0x5e0f41.3
mov bl, byte [esi]
mov cl, al
shr bl, cl
inc esi
and bl, dl
dec edi
mov byte [esi - 1], bl
jne 0x5e0f96
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
imul edx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x5e0f41.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
cmp ebx, dword [ebp - 0x18]
jb 0x5e0fc4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
imul edx, edi
xor ebx, ebx
mov esi, eax
mov dword [ebp - 0x18], edx
test edx, edx
je case.0x5e0f41.3
xor edx, edx
mov eax, ebx
div edi
movzx eax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc ebx
add esi, 2
movzx ecx, word [ebp + edx*4 - 0x14]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, dword [ebp - 0x18]
jb 0x5e0ff7
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
Function at 0x5e39a1
Capabilities:
Terminate process

Disassembly:
push eax
push str.libpng_error:__s
call fcn.00406515
add eax, 0x40
push eax
call fcn.005f568f
add esp, 0xc
push 0x6664fc
call fcn.00406515
add eax, 0x40
push eax
call fcn.005f568f
add esp, 8
test esi, esi
je 0x5e39e1
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5e39e1
push 1
push esi
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5e5990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x5e59a3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x5e5a1d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00404787
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x5e59f1
sub eax, edi
jmp 0x5e59f3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x5e59e2
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x5e5a10
sub eax, edi
jmp 0x5e5a12
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x5e5a01
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x5e5b4a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x5e5a43
mov ebx, ecx
test ebx, ebx
je 0x5e5a97
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x5e5a64
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.004710a8
jmp 0x5e5a7c
cmp eax, 2
jne 0x5e5a85
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x5e5a76
xor eax, eax
jmp 0x5e5a82
push ebx
call fcn.0046d651
mov edx, dword [ebp - 8]
add esp, 4
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.00404787
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x5e5abf
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x5e5ad3
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x5e59a0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x5e5b4a
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x5e5b19
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x5e5afa
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00402394
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x5e5b4a
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x5e5b33
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.00402394
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5f269c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040419e
and dword [ebp - 0x14], 0
cmp dword [0x6f1344], 0
mov dword [ebp - 0x18], eax
jne 0x5f274f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5f27f7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5f27f7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x6f1344], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6f1348], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6f134c], eax
call edi
push eax
call esi
mov dword [0x6f1354], eax
test eax, eax
je 0x5f274f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6f1350], eax
mov eax, dword [0x6f1350]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5f27a8
cmp dword [0x6f1354], ecx
je 0x5f27a8
push eax
call esi
push dword [0x6f1354]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5f27a8
test ebx, ebx
je 0x5f27a8
call edi
test eax, eax
je 0x5f279f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5f279f
test byte [ebp - 8], 1
jne 0x5f27a8
or dword [ebp + 0x10], 0x200000
jmp 0x5f27db
mov eax, dword [0x6f1348]
cmp eax, dword [ebp - 0x18]
je 0x5f27db
push eax
call esi
test eax, eax
je 0x5f27db
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5f27db
mov eax, dword [0x6f134c]
cmp eax, dword [ebp - 0x18]
je 0x5f27db
push eax
call esi
test eax, eax
je 0x5f27db
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6f1344]
call esi
test eax, eax
je 0x5f27f7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5f27f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret