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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5f3267
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.0059c3b6
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edi + 0x24]
je 0x58eed9
mov esi, dword [ecx + 0x10]
cmp esi, dword [esi]
je 0x58eed9
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 0x58ef6f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
cmp esi, dword [eax]
jne 0x58ee97
lea eax, [ebp + 0x14]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
call fcn.00423e38
mov esi, dword [esp + 0x14]
cmp esi, dword [edi + 4]
je 0x58efb6
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 0x58efa3
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.0059c254
mov edi, dword [edi + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x58efeb
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 0x59ebb1
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 0x59ebc5
lea eax, [edi + 4]
jmp 0x59ebc7
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 2
je 0x59ecb9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x4b9
push eax
call edx
cmp eax, 0x20
jne 0x59ecb9
mov eax, dword [esi + 0x168]
test al, 1
je 0x59ecb9
and eax, 0xfffffffe
push 1
mov dword [esi + 0x168], eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x59ec83
test byte [esi + 0x168], 2
push ebx
je 0x59ec46
test edi, edi
je 0x59ec2f
lea eax, [edi + 4]
jmp 0x59ec31
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
test eax, eax
jne 0x59ec46
mov bl, 1
jmp 0x59ec48
xor bl, bl
test edi, edi
je 0x59ec51
lea eax, [edi + 4]
jmp 0x59ec53
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x59ec73
mov ecx, dword [esi - 4]
mov edx, dword [ecx + 0xe4]
lea eax, [esi - 4]
push eax
call edx
test bl, bl
pop ebx
je 0x59eca4
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov ecx, edi
call edx
jmp 0x59eca4
test edi, edi
je 0x59ec8c
lea eax, [edi + 4]
jmp 0x59ec8e
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x59eca4
call fcn.005a36c4
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 0x59ecbf
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 0x59ecd3
lea eax, [edi + 4]
jmp 0x59ecd5
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 2
je 0x59ed35
test edi, edi
je 0x59ecf0
lea eax, [edi + 4]
jmp 0x59ecf2
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x59ed35
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x59ed35
test byte [esi + 0x168], 1
jne 0x59ed35
call fcn.005a36c4
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 0x59ef5e
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 0x59ef72
lea eax, [edi + 4]
jmp 0x59ef74
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 2
je 0x59f03b
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 0x59f014
mov edx, dword [esi]
mov eax, dword [edx + 0xe0]
push esi
call eax
test edi, edi
je 0x59efd4
lea eax, [edi + 4]
jmp 0x59efd6
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x68]
push 0x417
push eax
call edx
test al, al
je 0x59f014
push 1
call ebx
shr eax, 0xf
test al, 1
je 0x59f009
mov eax, dword [ebp + 8]
test byte [eax + 0x168], 2
jne 0x59f014
push 1
mov ecx, edi
call fcn.005a3761
jmp 0x59f014
mov ecx, dword [esi]
mov edx, dword [ecx + 0xe4]
push esi
call edx
pop ebx
test edi, edi
je 0x59f01e
lea eax, [edi + 4]
jmp 0x59f020
xor eax, eax
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0x9c4
push eax
call edx
cmp eax, 1
jne 0x59f03b
mov eax, dword [edi]
mov edx, dword [eax + 0x60]
mov ecx, edi
call edx
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f430e
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 0x5a7ad6
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 [0x6bb830]
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 0x5b3191
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3ef2
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 0x5b31c8
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 [0x6bb830]
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 0x5b47f5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7367
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.0040a98b
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 0x5b87a9
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x5b87fa
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], 0x5ba961
mov dword [eax + 4], 0x5baab9
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.005ba7bb
cmp byte [esi + 0x40], 0
je 0x5b87f3
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 0x5b8874
mov edx, dword [esi + 0x1a0]
cmp byte [edx + 0x10], 0
je 0x5b8864
mov eax, dword [esi + 8]
test eax, eax
je 0x5b881f
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 0x5b8860
cmp eax, 2
je 0x5b8864
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5b8810
cmp eax, 3
je 0x5b8847
cmp eax, 1
jne 0x5b8810
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x5b8810
mov ecx, dword [esi + 0x120]
add dword [eax + 8], ecx
jmp 0x5b8810
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.005b889d
pop esi
ret
cmp eax, 0xcc
je 0x5b8896
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.005b889d
pop esi
ret
Function at 0x5bcb71
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 0x5bcb99
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5bcba4
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 0x5bccb0
jmp 0x5bcbdf
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 0x5bcbff
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 0x5bcc5d
mov eax, dword [ebp - 0xc]
mov edx, ebx
imul edx, edx, 0x1fe
lea edi, [edx + eax + 0xfe]
jmp 0x5bcc41
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 0x5bcc41
mov edi, dword [ebp - 0x18]
mov al, byte [ebp - 0x10]
imul bl
mov byte [ecx + edi], al
inc ecx
cmp ecx, 0xff
jle 0x5bcc21
cmp dword [ebp - 4], 0
je 0x5bcc9d
mov eax, 1
lea ecx, [edi - 1]
jmp 0x5bcc81
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 0x5bcc81
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0x64]
jl 0x5bcbd6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5cec20
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 0x5cede0
mov edx, dword [ecx]
push edi
mov dword [ebp - 0x1c], 0
test bl, 2
je 0x5cec81
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 0x5cec93
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 0x5ceca8
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.0x5cecf1.3
cmp dword [ebp + esi*4 - 0x14], 0
jg 0x5cecc3
mov dword [ebp + esi*4 - 0x14], 0
jmp 0x5cecca
mov dword [ebp - 0x1c], 1
inc esi
cmp esi, edi
jl 0x5cecb2
cmp word [ebp - 0x1c], 0
je case.0x5cecf1.3
movzx esi, byte [ecx + 9]
add esi, 0xfffffffe
cmp esi, 0xe
ja case.0x5cecf1.3
movzx esi, byte [esi + 0x5cee04]
jmp dword [esi*4 + 0x5cedf0]
mov ecx, dword [ecx + 4]
test ecx, ecx
je case.0x5cecf1.3
mov dl, byte [eax]
shr dl, 1
and dl, 0x55
mov byte [eax], dl
inc eax
dec ecx
jne 0x5ced03
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.0x5cecf1.3
mov bl, byte [esi]
mov cl, al
shr bl, cl
inc esi
and bl, dl
dec edi
mov byte [esi - 1], bl
jne 0x5ced46
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.0x5cecf1.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 0x5ced74
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.0x5cecf1.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 0x5ceda7
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 0x5d1751
Capabilities:
Terminate process

Disassembly:
push eax
push str.libpng_error:__s
call fcn.00406515
add eax, 0x40
push eax
call fcn.005e32e6
add esp, 0xc
push 0x653548
call fcn.00406515
add eax, 0x40
push eax
call fcn.005e32e6
add esp, 8
test esi, esi
je 0x5d1791
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5d1791
push 1
push esi
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5d3740
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 0x5d3753
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 0x5d37cd
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 0x5d37a1
sub eax, edi
jmp 0x5d37a3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x5d3792
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 0x5d37c0
sub eax, edi
jmp 0x5d37c2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x5d37b1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x5d38fa
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 0x5d37f3
mov ebx, ecx
test ebx, ebx
je 0x5d3847
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x5d3814
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.0046fbac
jmp 0x5d382c
cmp eax, 2
jne 0x5d3835
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x5d3826
xor eax, eax
jmp 0x5d3832
push ebx
call fcn.0046c155
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 0x5d386f
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 0x5d3883
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x5d3750
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x5d38fa
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x5d38c9
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x5d38aa
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 0x5d38fa
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x5d38e3
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 0x5e0523
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 [0x6dcec4], 0
mov dword [ebp - 0x18], eax
jne 0x5e05d6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5e067e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5e067e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x6dcec4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6dcec8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6dcecc], eax
call edi
push eax
call esi
mov dword [0x6dced4], eax
test eax, eax
je 0x5e05d6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6dced0], eax
mov eax, dword [0x6dced0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5e062f
cmp dword [0x6dced4], ecx
je 0x5e062f
push eax
call esi
push dword [0x6dced4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5e062f
test ebx, ebx
je 0x5e062f
call edi
test eax, eax
je 0x5e0626
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5e0626
test byte [ebp - 8], 1
jne 0x5e062f
or dword [ebp + 0x10], 0x200000
jmp 0x5e0662
mov eax, dword [0x6dcec8]
cmp eax, dword [ebp - 0x18]
je 0x5e0662
push eax
call esi
test eax, eax
je 0x5e0662
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5e0662
mov eax, dword [0x6dcecc]
cmp eax, dword [ebp - 0x18]
je 0x5e0662
push eax
call esi
test eax, eax
je 0x5e0662
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6dcec4]
call esi
test eax, eax
je 0x5e067e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5e0680
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403fc1
leave
ret
Function at 0x10010e6f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test dl, dl
je 0x10010e86
cmp byte [ecx], 0
je 0x10010ea5
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
jmp 0x10010ea5
xor eax, eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], al
je 0x10010ea5
push eax
push eax
push eax
push eax
push 0x1fbd
push 1
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret

Function at 0x10016bcf
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10016be5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x10016c30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10016c13
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10016c30
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017323
mov dword [eax], 0xfffffff6
jmp 0x10016c08
mov esp, ebp
pop ebp
ret