joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416244
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
movzx eax, cl
mov edx, dword [ebp - 4]
cmp word [edx + eax*2], 0xffff
jne 0x416296
mov dword [ebp - 0xc], 0x7fffffff
xor esi, esi
mov ebx, dword [ebp - 8]
movzx eax, cl
movzx edx, byte [ebx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, dword [ebp - 0xc]
jge 0x41628d
movzx edx, cl
mov edi, dword [ebp - 4]
lea edi, [edi + edx*2]
mov word [edi], si
mov dword [ebp - 0xc], eax
inc esi
add ebx, 3
cmp esi, 0x10
jne 0x41626c
movzx eax, cl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417180
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x14]
mov edx, 0x14
call fcn.0040a41c
mov dword [ebp - 0x14], 0x14
push 0x417288
push 0x4172a4
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409750
mov ebx, eax
test ebx, ebx
je 0x4171c3
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x417219
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
test eax, eax
je 0x417219
push dword [ebp - 4]
push dword [ebp - 8]
call sub.user32.dll_WindowFromPoint
test eax, eax
je 0x4171eb
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov ebx, eax
jmp 0x4171ed
xor ebx, ebx
test ebx, ebx
je 0x4171ff
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x417219
push 0
push ebx
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x417282
test byte [ebp - 0x10], 1
je 0x417282
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.user32.dll_GetIconInfo
test eax, eax
je 0x41725a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417241
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41724e
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 4], eax
push 3
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, dword [eax - 8]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
sub edx, dword [eax - 4]
push edx
push esi
call sub.user32.dll_DrawIconEx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419090
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x419098
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41928d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004066d8
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4190f4
lea eax, [ebp - 0x20]
mov edx, ebx
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call dword [0x54abe8]
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004068f4
jmp 0x419255
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00406764
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x419255
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00406994
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x419255
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41929c
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x419193
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x419165
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x419193
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, esi
call fcn.00418d74
jmp 0x419255
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4192a0
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x419255
cmp dword [ebp - 0x14], 0
je 0x419255
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4192e0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0040a418
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
call fcn.0040a40c
mov cx, 0x30
mov edx, 8
call fcn.0040d3cc
mov eax, dword [ebp - 0x30]
mov ecx, 0x7fffffff
mov edx, 2
call fcn.00406d2c
push dword [ebp - 0x2c]
push 0x419310
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406b7c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00406954
mov eax, dword [ebp - 0x24]
call fcn.00406578
push eax
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x419255
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.00406884
mov eax, dword [ebp - 0x34]
mov ebx, dword [0x557058]
mov ebx, dword [ebx]
mov edx, esi
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419294
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.004066d0
lea eax, [ebp - 0x24]
call fcn.004063ac
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004059a8
lea eax, [ebp - 4]
call fcn.004066c8
ret
Function at 0x41932c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
lea eax, [ebp - 8]
push eax
push 0x20
push 0x11
push 0
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x419e1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x419e68
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.0041ae50
test al, al
jne 0x419e5e
cmp word [edi], 0x5a4d
jne 0x419e5e
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x419e5e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x419e74
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41a00c
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x54ac04], 0
jne 0x41a0ed
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41a05f
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
jmp 0x41a090
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree
cmp esi, 0xffffffff
je 0x41a0ed
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41a0bb
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x41a0cd
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x41a0e7
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x41a610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41a72a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00405984
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41a659
push ebx
mov eax, edi
call fcn.00406764
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
jmp 0x41a6c6
movzx eax, bl
cmp ebx, eax
jne 0x41a683
push ebx
lea eax, [ebp - 4]
mov edx, edi
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 4]
call fcn.00406040
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
jmp 0x41a6c6
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00406884
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 8]
call fcn.00406040
push eax
lea eax, [ebp - 0x10]
mov edx, edi
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 0x10]
call fcn.00406040
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x41a6ff
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x41a6ff
push 0
push ebx
push esi
call sub.kernel32.dll_SizeofResource
push eax
push edi
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
call fcn.00405abc
mov eax, edi
call fcn.0040a424
push edi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a731
lea eax, [ebp - 0x10]
call fcn.00405984
lea eax, [ebp - 0xc]
call fcn.004066c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004059a8
ret
Function at 0x41b3ec
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor esi, esi
mov edi, 0x12
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea eax, [esi + 1]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx ebx, byte [eax + edx]
shl ebx, 0x10
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
shl eax, 0x18
add ebx, eax
lea eax, [esi + 2]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
shl eax, 8
add ebx, eax
lea eax, [esi + 3]
xor edx, edx
div dword [ebp - 8]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edx]
add ebx, eax
xor dword [ecx], ebx
lea eax, [esi + 4]
xor edx, edx
div dword [ebp - 8]
mov esi, edx
add ecx, 4
dec edi
jne 0x41b408
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0041b02c
pop ecx
mov eax, edi
add eax, eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4 - 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0x44], ecx
inc edi
cmp edi, 9
jne 0x41b469
mov edi, 4
mov eax, dword [ebp + 8]
lea ebx, [eax - 0x1048]
xor esi, esi
mov eax, dword [ebp + 8]
push eax
push 1
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x48]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.0041b02c
pop ecx
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x10]
mov dword [ebx + eax*4 + 4], edx
inc esi
cmp esi, 0x80
jne 0x41b4af
add ebx, 0x400
dec edi
jne 0x41b4ad
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b4f4
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x1049], cl
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
call fcn.00406030
lea esi, [ebp - 0x1058]
xor eax, eax
push ebp
push 0x41b6d4
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov esi, 0x54ac24
lea edi, [ebp - 0x48]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x54ac6c
lea edi, [ebp - 0x1048]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
lea eax, [ebp + 0x14]
xor edx, edx
call fcn.00405b94
call fcn.00405d18
push eax
mov eax, dword [ebp + 0x14]
call fcn.00406040
pop edx
call fcn.0041b3ec
pop ecx
cmp byte [ebp - 0x1049], 0
je 0x41b591
lea eax, [ebp - 0x48]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 1
jmp 0x41b5a4
lea eax, [ebp - 4]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 0xffffffff
shr edi, 3
dec edi
test edi, edi
jl 0x41b6be
inc edi
mov dword [ebp - 0x1060], edi
cmp dword [ebp + 0x10], 0
jne 0x41b5c1
cmp dword [ebp + 0xc], 0
je 0x41b63e
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
movzx edx, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41b5e8
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41b5c9
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.0041b000
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.0041b000
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.0041b02c
pop ecx
mov eax, dword [esi]
call fcn.0041b000
xor dword [ebx], eax
mov eax, dword [ebp - 0x105c]
call fcn.0041b000
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x41b6af
cmp byte [ebp + 8], 0
jne 0x41b696
mov edi, ebx
mov eax, dword [edi]
call fcn.0041b000
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.0041b000
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.0041b02c
pop ecx
mov eax, dword [esi]
call fcn.0041b000
mov dword [edi], eax
mov eax, dword [ebp - 0x105c]
call fcn.0041b000
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x41b6af
push ebp
mov eax, dword [ebp - 0x1054]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1050]
call fcn.0041b02c
pop ecx
add ebx, 8
dec dword [ebp - 0x1060]
jne 0x41b5b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b6db
lea eax, [ebp + 0x14]
call fcn.00405984
ret
Function at 0x41b800
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x41b92b
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call fcn.004061e0
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x41b89d
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x54bc6c]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x54bc6c]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x54bc6c]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x54bc6c]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x41b83d
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x41b8b2
dec edx
je 0x41b8e3
jmp 0x41b932
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x54bc6c]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x54bc6c]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x41b932
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x54bc6c]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x54bc6c]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x54bc6c]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x41b932
mov eax, edi
call fcn.00405984
pop edi
pop esi
pop ebx
ret
Function at 0x4234c8
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x423651
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42350c
mov eax, ebx
call fcn.00406764
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x423542
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x423636
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 0x10]
call fcn.00406040
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x423636
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x423572
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.00406764
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
jmp 0x4235a4
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x14]
mov edx, ebx
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 0x14]
call fcn.00406040
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x423636
xor eax, eax
push ebp
push 0x42362f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, esi
xor ecx, ecx
call fcn.004061e0
cmp dword [esi], 0
je 0x42360f
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
xor edx, edx
call fcn.00405b94
call fcn.00405d18
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x42360f
mov eax, esi
xor edx, edx
call fcn.00405b94
call fcn.00405d18
cmp eax, dword [ebp - 0xc]
je 0x423613
xor eax, eax
jmp 0x423615
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423636
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423658
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004059a8
ret
Function at 0x4292c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x429354
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x429318
inc esi
mov cl, 0xff
jmp 0x42931c
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x429333
inc esi
mov dl, 0xff
jmp 0x429337
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42934e
inc esi
mov al, 0xff
jmp 0x429381
add al, byte [esp + 7]
jmp 0x429381
cmp cl, byte [esp + 5]
jae 0x42935f
inc esi
xor ecx, ecx
jmp 0x429363
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x42936e
inc esi
xor edx, edx
jmp 0x429372
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x42937d
inc esi
xor eax, eax
jmp 0x429381
sub al, byte [esp + 7]
dec esi
jle 0x429398
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.004292c0
jmp 0x4293ab
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42a5ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42a6b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.0040a41c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42a62a
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042a7d4
mov eax, dword [ebp - 4]
call fcn.00406988
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042a7d4
mov eax, dword [ebp - 8]
call fcn.00406764
push eax
push edi
call sub.user32.dll_DrawTextW
jmp 0x42a67c
push 0x410
push esi
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0042a7d4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 0xc]
call fcn.00405d18
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0042a7d4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 0
call fcn.0040691c
mov eax, dword [ebp - 0x14]
call fcn.00406040
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a6be
lea eax, [ebp - 0x18]
call fcn.004066c8
lea eax, [ebp - 0x14]
call fcn.00405984
lea eax, [ebp - 0x10]
call fcn.004066c8
lea eax, [ebp - 0xc]
call fcn.00405984
lea eax, [ebp - 8]
mov edx, 2
call fcn.004066d0
ret

Function at 0x42ab90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42ac6f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x14], 0
je 0x42ac4f
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42abfd
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
call fcn.00406994
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.00406988
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov edx, eax
lea eax, [ebx + 0x50]
call fcn.00406994
jmp 0x42ac4f
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.004061e0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405b94
call fcn.00405d18
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.004061e0
lea eax, [ebx + 0x50]
mov edx, dword [ebp - 4]
call fcn.004068f4
mov eax, esi
mov edx, dword [ebx + 0x50]
call fcn.004066d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac76
lea eax, [ebp - 4]
call fcn.00405984
ret