joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp]
cmp eax, dword [edi]
jne 0x402302
mov ecx, dword [ebp + 4]
mov eax, dword [edi + 4]
cmp ecx, eax
je 0x4023e7
mov edx, dword [esp + 0x14]
push ebx
push esi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [0x411418]
push 0
push ebx
push ebx
push ebp
mov esi, eax
call fcn.004021a0
push 0
push ebx
push ebx
push edi
call fcn.004021a0
add esp, 0x20
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x402349
mov eax, dword [0x4113e0]
push 6
push eax
call dword [sym.imp.GDI32.dll_SetROP2]
mov ecx, dword [0x41141c]
mov edx, dword [0x411418]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, eax
push ebp
push esi
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [0x41141c]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push esi
mov dword [esp + 0x1c], eax
call ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push 0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [edi]
mov ecx, dword [esp + 0x24]
mov dword [0x411420], edx
mov eax, dword [edi + 4]
push ecx
push esi
mov dword [0x411424], eax
call ebx
mov edx, dword [esp + 0x10]
push edx
push esi
call ebx
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
push ebp
call edi
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
pop edi
pop ebp
add esp, 8
ret
Function at 0x402780
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp]
cmp eax, dword [edi]
jne 0x4027a2
mov ecx, dword [ebp + 4]
mov eax, dword [edi + 4]
cmp ecx, eax
je 0x402899
mov edx, dword [esp + 0x14]
push ebx
push esi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [0x411418]
push 0
push ebx
push ebx
push ebp
mov esi, eax
call fcn.004021a0
push 0
push ebx
push ebx
push edi
call fcn.004021a0
add esp, 0x20
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4027e9
mov eax, dword [0x4113e0]
push 6
push eax
call dword [sym.imp.GDI32.dll_SetROP2]
mov ecx, dword [0x41141c]
mov edx, dword [0x411418]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x1c], eax
call ebx
mov dword [esp + 0x24], eax
mov eax, dword [0x41141c]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x411410]
mov dword [esp + 0x10], eax
cmp ecx, 7
je 0x402839
cmp ecx, 8
je 0x402839
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov dword [0x411420], edx
mov eax, dword [edi + 4]
push ecx
push esi
mov dword [0x411424], eax
call ebx
mov edx, dword [esp + 0x24]
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
pop edi
pop ebp
add esp, 8
ret
Function at 0x4028a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp]
cmp eax, dword [edi]
jne 0x4028c2
mov ecx, dword [ebp + 4]
mov eax, dword [edi + 4]
cmp ecx, eax
je 0x4029b9
mov edx, dword [esp + 0x14]
push ebx
push esi
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [0x411418]
push 0
push ebx
push ebx
push ebp
mov esi, eax
call fcn.004021a0
push 0
push ebx
push ebx
push edi
call fcn.004021a0
add esp, 0x20
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x402909
mov eax, dword [0x4113e0]
push 6
push eax
call dword [sym.imp.GDI32.dll_SetROP2]
mov ecx, dword [0x41141c]
mov edx, dword [0x411418]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [esp + 0x1c], eax
call ebx
mov dword [esp + 0x24], eax
mov eax, dword [0x41141c]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [0x411410]
mov dword [esp + 0x10], eax
cmp ecx, 7
je 0x402959
cmp ecx, 8
je 0x402959
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 4]
push ecx
mov ecx, dword [ebp]
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
mov dword [0x411420], edx
mov eax, dword [edi + 4]
push ecx
push esi
mov dword [0x411424], eax
call ebx
mov edx, dword [esp + 0x24]
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop ebx
pop edi
pop ebp
add esp, 8
ret
Function at 0x4046f0
Capabilities:
Capture screenshot
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
je 0x4048d0
push 0
push str.Manager_Installed
call sub.REDCOMM.dll_Ordinal_27
test eax, eax
jne 0x404721
push 1
push str.Disable_ePointer
call sub.REDCOMM.dll_Ordinal_27
test eax, eax
jne 0x4048d0
mov esi, dword [esp + 8]
push ebx
push edi
push esi
call fcn.00404670
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 4
push 0
call edi
push 1
mov dword [0x4113e8], eax
call edi
push 0
push 0
push 0
push str.DISPLAY
mov dword [0x4113dc], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [0x411534], eax
call edi
mov dword [0x411538], eax
mov eax, dword [0x411534]
push eax
call edi
mov ecx, dword [0x4113dc]
mov edx, dword [0x4113e8]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [0x41153c], eax
mov eax, dword [0x411534]
push ecx
push edx
push eax
call edi
mov ecx, dword [0x4113dc]
mov edx, dword [0x4113e8]
mov dword [0x41152c], eax
mov eax, dword [0x411534]
push ecx
push edx
push eax
call edi
mov ecx, dword [0x41152c]
mov edx, dword [0x411538]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push edx
mov dword [0x411530], eax
call edi
mov eax, dword [0x411530]
mov ecx, dword [0x41153c]
push eax
push ecx
call edi
push 0
push str.UseCAPTUREBLT
mov edi, 0xcc0020
call sub.REDCOMM.dll_Ordinal_27
test eax, eax
je 0x404803
mov edx, dword [sym.imp.RSCLASS.dll_struct__ENVVAR_gEnvVar]
test dword [edx + 4], 0x10000000
je 0x404803
mov edi, 0x40cc0020
mov eax, dword [0x411534]
mov ecx, dword [0x4113dc]
mov edx, dword [0x4113e8]
push edi
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0
push 0
push eax
mov eax, dword [0x411538]
push ecx
push edx
push 0
push 0
push eax
call ebx
mov ecx, dword [0x411534]
mov edx, dword [0x4113dc]
mov eax, dword [0x4113e8]
push edi
push 0
push 0
push ecx
mov ecx, dword [0x41153c]
push edx
push eax
push 0
push 0
push ecx
call ebx
mov ecx, 0x4111b8
call fcn.00401070
push esi
mov ecx, 0x4111b8
call fcn.00401160
mov ecx, 0x4111b8
call fcn.004011c0
mov edx, dword [0x4113dc]
mov eax, dword [0x4113e8]
push 2
push edx
push eax
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0xfb1
push 0x111
push esi
call edi
push 0
push 0xfb1
push 0x111
push esi
call edi
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop ebx
mov eax, 1
pop esi
ret
mov esi, dword [esp + 8]
push esi
call fcn.00404670
add esp, 4
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret
Function at 0x409fb5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4105c8
cmp edx, dword [eax]
je 0x409fd7
add eax, 8
inc ecx
cmp eax, 0x410658
jl 0x409fc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4105c8]
jne 0x40a105
mov eax, dword [0x411578]
cmp eax, 1
je 0x40a0df
test eax, eax
jne 0x40a008
cmp dword [0x4104f4], 1
je 0x40a0df
cmp edx, 0xfc
je 0x40a105
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a03f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b4d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b7c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40a082
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b7c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e748
push edi
call fcn.0040c0d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b4d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b4e0
lea eax, [ebp - 0xa0]
push 0x40e728
push eax
call fcn.0040b4e0
push dword [esi + 0x4105cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b4e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c038
add esp, 0x2c
pop edi
jmp 0x40a105
lea eax, [ebp + 8]
lea esi, [esi + 0x4105cc]
push 0
push eax
push dword [esi]
call fcn.0040b7c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4043d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4044b0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4044b0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40441a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404421
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404400
jmp 0x404423
mov esi, 0x1505
jmp 0x404423
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edx, [ebx - 1]
mov ecx, ebx
sub ecx, 1
mov dword [esp + 8], ecx
jb 0x4044b0
mov ecx, esi
not ecx
or edx, ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
lea ebp, [esi + edx]
inc ebp
jmp 0x404454
inc ebp
dec ebx
je 0x4044ae
mov eax, ebp
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4044ae
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x404450
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
push eax
call fcn.0040c850
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404450
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040c870
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404450
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
jmp 0x4044b0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4047e0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4048ff
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x4048f3
cmp ecx, 5
je 0x4048c3
cmp ecx, 4
jne 0x4048ff
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x40484d
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [0x44b004]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.004047e0
add esp, 4
mov eax, edi
xor eax, 1
and edi, 1
lea edi, [eax + edi*2]
cmp edi, dword [esi + 0x18]
jb 0x404820
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [0x44b004]
add esp, 4
push dword [esi + 0xc]
call dword [0x44b004]
add esp, 4
push dword [esi + 0x10]
call dword [0x44b004]
add esp, 4
push dword [esi + 0x14]
call dword [0x44b004]
add esp, 4
push dword [esi + 8]
call dword [0x44b004]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x4048f0
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x4048e4
xor edi, edi
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.004047e0
add esp, 4
inc edi
cmp edi, dword [esi + 8]
jb 0x4048d0
push dword [esi + 4]
call dword [0x44b004]
add esp, 4
push esi
jmp 0x4048f6
push dword [eax + 8]
call dword [0x44b004]
add esp, 4
pop esi
pop edi
jmp dword [0x44b004]
Function at 0x404c30
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, 0xffffffff
cmp dword [esp + 0x24], 0
je 0x404d4a
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404d4a
cmp dword [esp + 0x2c], 0
je 0x404d4a
push esi
call fcn.0040c850
add esp, 4
test eax, eax
je 0x404c9a
mov ecx, 0x1505
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esi + edi]
test edx, edx
je 0x404ca1
mov ebx, ecx
shl ebx, 5
add ebx, ecx
add ebx, edx
inc edi
mov ecx, ebx
cmp eax, edi
jne 0x404c80
jmp 0x404ca3
mov ebx, 0x1505
jmp 0x404ca3
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea edx, [esi - 1]
mov edi, ebx
not edi
mov ebp, esi
sub ebp, 1
mov dword [esp + 0xc], ebp
mov dword [esp + 4], edi
jae 0x404d52
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x404d0f
call fcn.004059b0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x28]
jne 0x404d4a
push ecx
call fcn.0040c850
add esp, 4
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 0x20]
lea eax, [esi - 1]
mov edx, esi
sub edx, 1
mov dword [esp + 0xc], edx
jae 0x404dd0
mov ebp, 0xffffffff
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x18]
mov esi, dword [esp + 0x28]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0x18]
mov dword [eax + ebp*4], edx
mov eax, dword [ecx + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebp
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x18]
mov dword [eax + edx*4], ebx
inc dword [ecx + 0x18]
mov eax, dword [ecx]
mov dword [esi], eax
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
or edx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea edi, [ebx + edx]
inc edi
jmp 0x404d78
inc edi
dec esi
je 0x404cc4
mov ebp, edi
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404cc9
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404d70
mov ecx, dword [ecx + 0xc]
mov ebp, dword [ecx + eax*4]
push ebp
call fcn.0040c850
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404d70
push dword [esp]
push ebp
push dword [esp + 0x30]
call fcn.0040c870
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404d70
mov eax, 0xffffffff
jmp 0x404d4a
or eax, dword [esp + 4]
mov edx, dword [ecx + 4]
mov dword [esp + 8], edx
lea edi, [ebx + eax]
inc edi
jmp 0x404df8
inc edi
dec esi
je 0x404d0a
mov ebp, edi
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax + ebp*4]
cmp eax, 0xffffffff
je 0x404d0f
mov edx, dword [ecx + 8]
cmp dword [edx + eax*4], ebx
jne 0x404df0
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [esp + 4], eax
push eax
call fcn.0040c850
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x404df0
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.0040c870
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404df0
jmp 0x404d0f
Function at 0x4056f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, 0xffffffff
cmp dword [esp + 0x28], 0
je 0x4058da
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4058da
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4058da
cmp dword [ecx], 0
jne 0x4058da
push esi
call fcn.0040c850
add esp, 4
test eax, eax
je 0x40575a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405761
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405740
jmp 0x405763
mov edi, 0x1505
jmp 0x405763
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
lea esi, [edx - 1]
mov ebx, edx
sub ebx, 1
mov dword [esp + 0xc], ebx
jae 0x405834
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4057c1
call fcn.004059b0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x2c]
jne 0x4058da
push esi
call fcn.0040c850
add esp, 4
mov edx, esi
lea esi, [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push edi
push eax
call fcn.004058f0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x2c]
push esi
call fcn.0040c850
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44b008]
add esp, 4
test eax, eax
je 0x4058d5
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c740
add esp, 0xc
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x30]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x4058da
mov dword [esp], eax
mov eax, edx
mov edx, edi
not edx
or esi, edx
mov edx, eax
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
lea ebx, [edi + esi]
inc ebx
jmp 0x405858
inc ebx
dec edx
je 0x40577c
mov ebp, ebx
and ebp, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [eax + ebp*4]
cmp esi, 0xffffffff
je 0x405781
mov eax, dword [ecx + 8]
cmp dword [eax + esi*4], edi
jne 0x405850
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + esi*4]
push ebp
mov dword [esp + 8], edx
call fcn.0040c850
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, dword [esp]
jne 0x405850
push dword [esp]
push ebp
push dword [esp + 0x34]
call fcn.0040c870
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
add esp, 0xc
test eax, eax
jne 0x405850
mov eax, dword [ecx + 0x10]
push dword [eax + esi*4]
call fcn.004047e0
mov edx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x30]
mov dword [eax + esi*4], ecx
mov esi, ecx
jmp 0x405829
mov eax, 0xffffffff
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4069c0
Capabilities:
Compute adler32 checksum
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x406b76
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x406b6f
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebx, esi
sub ebx, eax
jmp 0x406a56
mov eax, dword [esp + 4]
sub eax, dword [esp]
add ebp, eax
mov esi, dword [esp + 8]
mov eax, edi
mov edx, 0x80078071
mul edx
mov ebx, edx
shr ebx, 0xf
mov eax, ecx
mov edx, 0x80078071
mul edx
imul eax, ebx, 0xfff1
sub edi, eax
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, dword [esp + 4]
mov ebx, 0x15b0
je 0x406b6f
xor edx, edx
cmp ebx, 8
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
jb 0x406adf
and ebx, 0x1ff8
mov dword [esp], ebx
xor eax, eax
mov edx, eax
movzx eax, byte [ebp + eax]
add eax, edi
add ecx, eax
movzx esi, byte [ebp + edx + 1]
add esi, eax
add ecx, esi
movzx eax, byte [ebp + edx + 2]
add eax, esi
add ecx, eax
movzx esi, byte [ebp + edx + 3]
mov edi, eax
and edi, esi
xor eax, esi
lea esi, [eax + edi*2]
mov eax, esi
and eax, ecx
xor ecx, esi
movzx ebx, byte [ebp + edx + 4]
add ebx, esi
movzx edi, byte [ebp + edx + 5]
add edi, ebx
add ebx, ecx
lea ecx, [ebx + eax*2]
mov ebx, dword [esp + 4]
movzx eax, byte [ebp + edx + 6]
add eax, edi
add ecx, edi
movzx edi, byte [ebp + edx + 7]
add edi, eax
add ecx, eax
add ecx, edi
lea eax, [edx + 8]
add edx, 0xf
cmp edx, ebx
jb 0x406a70
add ebp, eax
mov esi, dword [esp + 8]
mov edx, dword [esp]
mov eax, edx
sub eax, ebx
jae 0x406a1d
mov dword [esp + 0xc], eax
mov eax, ebx
and eax, 3
mov dword [esp], edx
je 0x406b1f
neg eax
xor ebx, ebx
mov edx, ebp
nop
nop
nop
movzx esi, byte [edx]
inc edx
add edi, esi
add ecx, edi
dec ebx
cmp eax, ebx
jne 0x406b00
mov eax, dword [esp]
sub eax, ebx
cmp dword [esp + 0xc], 0xfffffffc
ja 0x406a10
jmp 0x406b2e
mov eax, edx
mov edx, ebp
cmp dword [esp + 0xc], 0xfffffffc
ja 0x406a10
mov ebx, dword [esp + 4]
sub ebx, eax
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [edx + eax]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 1]
add edi, esi
add ecx, edi
movzx esi, byte [edx + eax + 2]
add esi, edi
add ecx, esi
movzx edi, byte [edx + eax + 3]
add edi, esi
add ecx, edi
add eax, 4
cmp ebx, eax
jne 0x406b40
jmp 0x406a10
shl ecx, 0x10
or ecx, edi
jmp 0x406b7b
mov ecx, 1
mov eax, ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406b90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x406bf1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test edx, edx
je 0x406bf3
not eax
xor esi, esi
nop
nop
nop
nop
movzx edi, byte [ecx + esi]
mov ebx, edi
xor ebx, 0x3ffffff0
mov ebp, edi
or ebp, 0xf
and ebp, ebx
mov ebx, eax
and eax, 0xf
xor ebp, eax
shr ebx, 4
xor ebx, dword [ebp*4 + 0x448c50]
mov eax, ebx
and ebx, 0xf
shr edi, 4
xor edi, ebx
shr eax, 4
xor eax, dword [edi*4 + 0x448c50]
inc esi
cmp edx, esi
jne 0x406bb0
not eax
jmp 0x406bf3
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ce60
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push esi
sub esp, 0xc
call fcn.00441d20
test al, al
je 0x40cfdb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call fcn.00439980
test al, al
je 0x40cfd6
call dword [sym.imp.USER32.dll_GetInputState]
mov esi, eax
mov dword [esp], 0x6ea57865
mov dword [esp + 4], 0x1a004e02
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x2f
xor cl, byte [esp + eax]
add cl, 0x15
mov byte [esp + eax], cl
inc eax
cmp eax, 0xa
jne 0x40ceb0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], 0x2a814f0f
mov dword [esp + 4], 0x24997601
mov dword [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xcb
xor cl, byte [esp + eax]
add cl, 9
mov byte [esp + eax], cl
inc eax
cmp eax, 0xc
jne 0x40cef0
mov dword [esp], 0x939291f1
xor eax, eax
nop
nop
nop
mov ecx, eax
add cl, 0xa4
xor cl, byte [esp + eax]
add cl, 0xcc
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0x40cf10
test esi, esi
je 0x40cf77
mov dword [esp], 0x218bf55f
mov dword [esp + 4], 0xc7d0c40e
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0x13ff302
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x13ff302]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xf6
mov byte [esp + eax - 0x13ff302], cl
inc eax
cmp eax, 0x13ff30d
jne 0x40cf50
mov dword [esp], 0x524d4c4f
mov dword [esp + 4], 0x56515053
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0x8d
mov ecx, 0x72
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x8d]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x3f
mov byte [esp + eax - 0x8d], dl
inc eax
dec ecx
cmp eax, 0x98
jne 0x40cfa0
call fcn.0040df80
test al, al
je 0x40cfd6
call fcn.00411260
call fcn.0040fef0
call fcn.00442fd0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]