joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef200
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ef3ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4ef38e
mov dl, 1
mov eax, dword [0x47121c]
call fcn.00476d94
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.004064f4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4ef37d
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004de75c
test al, al
je 0x4ef370
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4ef3bc
lea eax, [ebp - 0x394]
call fcn.0045dfe0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4ef370
xor eax, eax
push ebp
push 0x4ef369
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4ef42c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4ef352
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004066f4
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4ef352
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004066f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef370
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4ef273
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00476b80
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef3b4
lea eax, [ebp - 0x3a0]
call fcn.004064e4
ret

Function at 0x4efd9c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5a9360]
cmp byte [eax + 0xa9], 0
jne 0x4efe0e
cmp dword [0x5a9378], 0
jne 0x4efdce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5999e4]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5a9378], eax
cmp dword [0x5a9374], 0
jne 0x4efde9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5a9374], eax
cmp dword [0x5a937c], 0
jne 0x4efe0e
push esp
push 0
push 0
mov eax, dword [0x5999e0]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5a937c], eax
pop edx
ret
Function at 0x4f0024
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4f003b
add esp, 0xfffffff0
call fcn.004047cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047de68
mov eax, dword [0x5a1694]
cmp byte [eax], 0
jne 0x4f0068
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5a1b4c]
cmp word [eax + 2], 0
jne 0x4f0082
mov eax, dword [0x5a1b4c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004f1f2c
mov eax, dword [0x5a1cf0]
cmp word [eax + 2], 0
jne 0x4f009c
mov eax, dword [0x5a1cf0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004f213c
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x484610]
call fcn.004863ec
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4f25d0
mov dl, 1
mov eax, dword [0x470b38]
call fcn.004042b8
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x470b38]
call fcn.004042b8
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4851c4]
call fcn.0048da5c
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x4f0278
mov eax, dword [0x5a194c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0048de60
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4f2880
mov dl, 1
mov eax, dword [0x470b38]
call fcn.004042b8
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5a194c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0045d9f8
test eax, eax
je 0x4f01aa
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0045d6f8
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0045d9e0
test eax, eax
je 0x4f01c2
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004066f4
push ebx
push 0x4f1928
call fcn.004e685c
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x5a1694]
cmp byte [eax], 0
jne 0x4f0213
mov eax, ebx
call fcn.004f03ec
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004f2aa8
mov eax, ebx
call fcn.004f366c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f0270
call fcn.00404824
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0694
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4f0736
cmp dword [ebx + 0x90], 0
jne 0x4f0730
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4f060c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4f0730
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4f06f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4f0730
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.0047374c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4f0705
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4f0954
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5a9360]
cmp dword [eax + 0x170], 0
je 0x4f0ab9
test bl, bl
jne 0x4f0a07
cmp dword [esi + 0x98], 0
jne 0x4f09fc
mov eax, esi
call fcn.004f34bc
push eax
push 0x4f0860
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4f09cd
mov eax, dword [0x5a9360]
cmp byte [eax + 0xcf], 0
je 0x4f09cd
mov eax, dword [esi + 0xd4]
call fcn.00407934
mov edi, eax
cmp edi, 0
jl 0x4f09cd
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4f09b6
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4f09fc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0047374c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4f09dc
inc dword [esi + 0x98]
jmp 0x4f0ab9
cmp dword [esi + 0x98], 0
jle 0x4f0ab9
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x4f0ab9
cmp dword [esi + 0x40], 0
je 0x4f0a64
mov eax, dword [0x5a9360]
cmp byte [eax + 0xcf], 0
je 0x4f0a64
mov eax, dword [esi + 0xd4]
call fcn.00407934
mov edi, eax
cmp edi, 0
jl 0x4f0a64
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4f0a4d
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4f0a93
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.0047374c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4f0a73
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4e6268]
call fcn.00407af4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4f1674
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4f16df
cmp byte [ebx + 0xcf], 0
jne 0x4f16df
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406630
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4f16cc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4f16ec
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004064f4
jmp 0x4f16ec
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.004064f4
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4f2c7c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4f2cea
mov eax, esi
call fcn.004d8fd0
test al, al
je 0x4f2cea
mov eax, dword [ebx + 0x80]
call fcn.004d8c24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f2cea
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4f2cde
push 0
mov eax, dword [ebx + 0x80]
call fcn.004d8c24
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004d026c
jmp 0x4f2cea
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004f2ac8
pop esi
pop ebx
ret

Function at 0x4f57d4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x5a93a0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4f57f6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4f57f8
shr eax, 1
dec edx
jne 0x4f57e4
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4f57dd
mov byte [0x5a97a0], 1
pop esi
pop ebx
ret

Function at 0x4f5814
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x5a97a0], 0
jne 0x4f582b
call fcn.004f57d4
mov eax, edi
dec eax
test eax, eax
jl 0x4f5853
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5a93a0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4f5835
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4f8608
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4f86a2.0
jmp dword [ecx*4 + 0x4f863b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4f866d
sub dl, 8
je 0x4f867c
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f82d4
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f8328
jmp case.0x4f86a2.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4f86a2.0
movzx ecx, byte [ecx + 0x4f86a9]
jmp dword [ecx*4 + 0x4f86ba]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f83c8
jmp case.0x4f86a2.0
cmp dl, 3
jne 0x4f86e7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f8420
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f83dc
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f8464
jmp case.0x4f86a2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4f8712
sub dl, 8
je 0x4f871e
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f8490
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f84f4
jmp case.0x4f86a2.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4f873d
sub dl, 8
je 0x4f8749
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f85a4
jmp case.0x4f86a2.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4f85cc
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x4f87eb
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004f7810
test eax, eax
je 0x4f87eb
mov eax, ebx
call fcn.004f87f4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4f8784
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f87f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4f8825
dec al
je 0x4f8860
dec al
je 0x4f88a5
dec al
je 0x4f890e
jmp 0x4f8998
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4f8998
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4f8835
jmp 0x4f8998
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f8998
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4f8870
jmp 0x4f8998
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f8998
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4f88d4
xor ebp, ebp
jmp 0x4f88e4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4f88ed
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4f88b5
jmp 0x4f8998
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f8998
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4f8967
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004f585c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4f8922
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50db30
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004064dc
xor eax, eax
push ebp
push 0x50dbb3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045d3fc
mov ebx, 0x65
mov eax, dword [ebp - 8]
call fcn.0045cfbc
test al, al
jne 0x50db7c
mov eax, dword [ebp - 8]
call fcn.0045cfe0
dec ebx
jne 0x50db65
mov eax, dword [ebp - 4]
call fcn.00406580
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
je 0x50db98
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0045d0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50dbba
lea eax, [ebp - 8]
mov edx, 2
call fcn.004064ec
ret

Function at 0x50e4e0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.004039c8
ret

Function at 0x50e618
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004064dc
xor eax, eax
push ebp
push 0x50e766
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0050e4e0
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00406580
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x50e745
xor eax, eax
push ebp
push 0x50e73e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x50e727
xor eax, eax
push ebp
push 0x50e720
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x50e709
xor eax, eax
push ebp
push 0x50e702
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0050e518
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e709
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e727
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e745
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0050e5a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e76d
lea eax, [ebp - 4]
call fcn.004064e4
ret
Function at 0x50f1e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb9c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x460], ecx
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004064dc
mov eax, dword [ebp - 8]
call fcn.004064dc
xor eax, eax
push ebp
push 0x50f3cf
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x50f39a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004068c8
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0045bbec
xor edx, edx
mov eax, 2
call fcn.0050f180
mov esi, eax
mov dword [ebp - 0x254], 0x22c
lea edx, [ebp - 0x254]
mov eax, esi
call fcn.0050f1a0
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebp - 0x28], eax
jmp 0x50f382
lea eax, [ebp - 0x464]
lea edx, [ebp - 0x230]
mov ecx, 0x104
call fcn.004066f4
mov eax, dword [ebp - 0x464]
lea edx, [ebp - 0x460]
call fcn.0045d4bc
mov eax, dword [ebp - 0x460]
lea edx, [ebp - 0x18]
call fcn.0045bbec
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.00406e60
test eax, eax
jle 0x50f36f
mov eax, dword [ebp - 0x24c]
cmp eax, dword [ebp - 0x28]
je 0x50f36f
mov eax, dword [ebp - 0x24c]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, edi
call fcn.0050ed5c
push 0x208
lea ecx, [ebp - 0x45c]
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.0050ed8c
test eax, eax
jne 0x50f332
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00406548
jmp 0x50f345
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x45c]
mov ecx, 0x104
call fcn.004066f4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0045be80
test eax, eax
jne 0x50f36f
push 0
mov eax, dword [ebp - 0x24c]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x254]
mov eax, esi
call fcn.0050f1c0
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x50f28e
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50f3a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f3d6
lea eax, [ebp - 0x464]
mov edx, 2
call fcn.004064ec
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004064ec
ret
Function at 0x50f3e0
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x50f3f9
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
je 0x50f4f5
mov eax, dword [0x5a1fdc]
cmp dword [eax], 2
jne 0x50f41a
mov eax, dword [0x5a1954]
cmp dword [eax], 4
jg 0x50f44e
mov eax, dword [0x5a1fdc]
cmp dword [eax], 1
jne 0x50f4dd
mov eax, dword [0x5a1954]
cmp dword [eax], 4
jg 0x50f44e
mov eax, dword [0x5a1954]
cmp dword [eax], 4
jne 0x50f4dd
mov eax, dword [0x5a1d5c]
cmp dword [eax], 0
jle 0x50f4dd
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov ebp, eax
push 0xffffffffffffffff
push edi
push ebp
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x50f495
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
push ebp
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x50f4e9
push 0
lea eax, [esp + 4]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoW
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [esp + 4]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoW
jmp 0x50f4e9
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
jmp 0x50f4f7
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret