joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1748
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4c1769
test edi, 0x40000
je 0x4c1783
test bl, bl
jne 0x4c1804
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4c1804
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4c17b6
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4c17cb
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4c17da
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4c17eb
cmp byte [esp + 2], 0
je 0x4c1804
cmp byte [esp + 2], 0
je 0x4c17fc
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4c1804
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4c1ab0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4c1ad6
mov eax, esp
push eax
push 0x4c1a78
call sub.user32.dll_EnumWindows
jmp 0x4c1ae9
mov eax, esp
push eax
push 0x4c1a58
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4c1bac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4c1bfc]
test bl, 4
je 0x4c1bc0
or si, 1
test bl, 8
je 0x4c1bc9
or si, 4
test bl, 1
je 0x4c1bd2
or si, 8
test bl, 2
je 0x4c1bdb
or si, 0x10
test bl, 0x10
je 0x4c1be4
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c1bf4
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4c1c00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4c1c3c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c1c1b
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c1c2b
or bx, 4
test esi, 0x20000000
je 0x4c1c37
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4ca734
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4ca746
add esp, 0xfffffff0
call fcn.004053f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0044a5c0
mov eax, dword [0x545100]
mov dword [eax + 4], ebx
mov dword [eax], 0x4cab70
mov eax, dword [0x54510c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4cab7c
mov eax, ebx
call fcn.004cab88
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4c55ac
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x452adc]
call fcn.00459040
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x452adc]
call fcn.00459040
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x452adc]
call fcn.00459040
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x452adc]
call fcn.00459040
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x452adc]
call fcn.00459040
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004cb0e0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4caf50
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4caf50
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4caf50
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4caf50
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4caf50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ca8bd
call fcn.00405448
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4cacf0
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 0x4cae9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4cae7c
mov dl, 1
mov eax, dword [0x435450]
call fcn.00441cf0
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.0040692c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4cae6b
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.004858e0
test al, al
je 0x4cae5e
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, 0x4caeac
lea eax, [ebp - 0x394]
call fcn.0041db0c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4cae5e
xor eax, eax
push ebp
push 0x4cae57
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 0x4caf1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4cae40
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407460
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4cae40
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cae5e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4cad61
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.00441c2c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4caea2
lea eax, [ebp - 0x3a0]
call fcn.0040692c
ret

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

Disassembly:
push ecx
mov eax, dword [0x54b24c]
cmp byte [eax + 0xad], 0
jne 0x4cba6a
cmp dword [0x54b264], 0
jne 0x4cba2a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4fa814]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x54b264], eax
cmp dword [0x54b260], 0
jne 0x4cba45
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x54b260], eax
cmp dword [0x54b268], 0
jne 0x4cba6a
push esp
push 0
push 0
mov eax, dword [0x4fa810]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x54b268], eax
pop edx
ret
Function at 0x4cbd80
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4cbd97
add esp, 0xfffffff0
call fcn.004053f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0044a5c0
mov eax, dword [0x54500c]
cmp byte [eax], 0
jne 0x4cbdc4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5452a8]
cmp word [eax + 2], 0
jne 0x4cbdde
mov eax, dword [0x5452a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004cde48
mov eax, dword [0x5453ac]
cmp word [eax + 2], 0
jne 0x4cbdf8
mov eax, dword [0x5453ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ce04c
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x452adc]
call fcn.00459040
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4ce5c4
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4571d8]
call fcn.004624f8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4cbfd8
mov eax, dword [0x545188]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0046298c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ce8ac
mov dl, 1
mov eax, dword [0x432c74]
call fcn.00404e90
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x545188]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041d920
test eax, eax
je 0x4cbf09
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041d6d4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041d904
test eax, eax
je 0x4cbf21
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 + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407460
push ebx
push 0x4cd834
call fcn.004c1b90
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x54500c]
cmp byte [eax], 0
jne 0x4cbf72
mov eax, ebx
call fcn.004cc14c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004cead8
mov eax, ebx
call fcn.004cf708
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cbfcf
call fcn.00405448
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cc418
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4cc4ba
cmp dword [ebx + 0x94], 0
jne 0x4cc4b4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4cc364
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4cc4b4
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 0x4cc47a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4cc4b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043dfe0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4cc489
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x54b24c]
cmp dword [eax + 0x170], 0
je 0x4cc83d
test bl, bl
jne 0x4cc78b
cmp dword [esi + 0x9c], 0
jne 0x4cc780
mov eax, esi
call fcn.004cf558
push eax
push 0x4cc5e4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4cc751
mov eax, dword [0x54b24c]
cmp byte [eax + 0xd3], 0
je 0x4cc751
mov eax, dword [esi + 0xd8]
call fcn.00408368
mov edi, eax
cmp edi, 0
jl 0x4cc751
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4cc73a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4cc780
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043dfe0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4cc760
inc dword [esi + 0x9c]
jmp 0x4cc83d
cmp dword [esi + 0x9c], 0
jle 0x4cc83d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4cc83d
cmp dword [esi + 0x44], 0
je 0x4cc7e8
mov eax, dword [0x54b24c]
cmp byte [eax + 0xd3], 0
je 0x4cc7e8
mov eax, dword [esi + 0xd8]
call fcn.00408368
mov edi, eax
cmp edi, 0
jl 0x4cc7e8
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4cc7d1
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4cc817
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043dfe0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4cc7f7
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4bfa68]
call fcn.00408528
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4cd480
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4cd4eb
cmp byte [ebx + 0xd3], 0
jne 0x4cd4eb
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.00406a94
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4cd4d8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4cd4f8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406cec
jmp 0x4cd4f8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406cec
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4cecc0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ced2e
mov eax, esi
call fcn.0047f7fc
test al, al
je 0x4ced2e
mov eax, dword [ebx + 0x84]
call fcn.0047f450
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ced2e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4ced22
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047f450
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00476348
jmp 0x4ced2e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ceaf8
pop esi
pop ebx
ret
Function at 0x4e6ed4
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
ret
Function at 0x4e79d4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e7a96
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00404750
mov eax, esi
xor ecx, ecx
mov edx, 0x18
call fcn.004048a4
mov eax, 0x7fffffff
call fcn.00404778
cdq
xor eax, edx
sub eax, edx
cdq
mov dword [esi], eax
mov dword [esi + 4], edx
push 0x10
push 1
push 0
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 4]
call fcn.0041ccd8
mov eax, dword [ebp - 4]
call fcn.004073d4
push eax
lea eax, [esi + 8]
push eax
call sub.advapi32.dll_CryptAcquireContextW
test bl, bl
jne 0x4e7a67
push 8
push 1
push 0
push dword [esi + 4]
push dword [esi]
lea eax, [ebp - 8]
call fcn.0041ccd8
mov eax, dword [ebp - 8]
call fcn.004073d4
push eax
lea eax, [esi + 8]
push eax
call sub.advapi32.dll_CryptAcquireContextW
jmp 0x4e7a7b
push 0xf0000000
push 1
push 0
push 0
lea eax, [esi + 8]
push eax
call sub.advapi32.dll_CryptAcquireContextW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7a9d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040698c
ret

Function at 0x4e7aa4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e7b33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_CryptReleaseContext
xor eax, eax
mov dword [ebx + 8], eax
push 0x10
push 1
push 0
push dword [ebx + 4]
push dword [ebx]
lea eax, [ebp - 4]
call fcn.0041ccd8
mov eax, dword [ebp - 4]
call fcn.004073d4
push eax
lea eax, [ebx + 8]
push eax
call sub.advapi32.dll_CryptAcquireContextW
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4e7afc
push eax
call sub.advapi32.dll_CryptDestroyHash
mov dword [ebx], 0
mov dword [ebx + 4], 0
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7b3a
lea eax, [ebp - 4]
call fcn.0040692c
ret

Function at 0x4e7f88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor ecx, ecx
test edx, edx
jle 0x4e7faf
movzx ebx, byte [eax]
mov esi, ecx
and esi, 0xff
xor ebx, esi
mov ebx, dword [ebx*4 + 0x54baa8]
shr ecx, 8
xor ebx, ecx
mov ecx, ebx
inc eax
dec edx
jne 0x4e7f90
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x4e8034
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov esi, eax
mov ebx, esi
mov ecx, ebx
test ecx, ecx
je 0x4e804d
sub ecx, 4
mov ecx, dword [ecx]
lea eax, [ecx + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, dword [esp]
xor ecx, ecx
call fcn.00407168
mov ecx, ebx
test ecx, ecx
je 0x4e8073
sub ecx, 4
mov ecx, dword [ecx]
lea eax, [ecx + 2]
mov ecx, 3
cdq
idiv ecx
mov edi, eax
test edi, edi
jle 0x4e8187
mov ebx, 1
mov edx, esi
mov eax, edx
test eax, eax
je 0x4e809a
sub eax, 4
mov eax, dword [eax]
lea ecx, [ebx + ebx*2]
cmp eax, ecx
jge 0x4e80c4
mov eax, edx
test eax, eax
je 0x4e80ac
sub eax, 4
mov eax, dword [eax]
mov edx, ebx
dec edx
lea edx, [edx + edx*2]
sub eax, edx
push eax
lea eax, [esi + edx]
lea edx, [esp + 8]
pop ecx
call fcn.00404534
jmp 0x4e80db
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
lea edx, [esp + 4]
mov ecx, 3
call fcn.00404534
movzx eax, byte [esp + 4]
mov edx, eax
and dl, 0xfc
movzx edx, dl
shr edx, 2
mov ecx, dword [0x4fba5c]
movzx edx, byte [ecx + edx]
mov byte [esp + 7], dl
and al, 3
movzx ebp, al
shl ebp, 4
movzx edx, byte [esp + 5]
mov eax, edx
and al, 0xf0
movzx eax, al
shr eax, 4
or ebp, eax
mov eax, dword [0x4fba5c]
movzx eax, byte [eax + ebp]
mov byte [esp + 8], al
and dl, 0xf
movzx eax, dl
add eax, eax
add eax, eax
movzx edx, byte [esp + 6]
and dl, 0xc0
movzx edx, dl
shr edx, 6
or eax, edx
mov edx, dword [0x4fba5c]
movzx eax, byte [edx + eax]
mov byte [esp + 9], al
movzx eax, byte [esp + 6]
and al, 0x3f
movzx eax, al
mov edx, dword [0x4fba5c]
movzx eax, byte [edx + eax]
mov byte [esp + 0xa], al
mov eax, dword [esp]
call fcn.00406ec8
mov edx, ebx
dec edx
add edx, edx
add edx, edx
lea edx, [eax + edx]
lea eax, [esp + 7]
mov ecx, 4
call fcn.00404534
inc ebx
dec edi
jne 0x4e808d
mov ebx, esi
mov ecx, ebx
test ecx, ecx
je 0x4e8194
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x4e81e9
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4e81b7
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esp]
call fcn.00406ec8
mov byte [eax + ebx - 2], 0x3d
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4e81da
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esp]
call fcn.00406ec8
mov byte [eax + ebx - 1], 0x3d
jmp 0x4e8226
mov ecx, ebx
test ecx, ecx
je 0x4e81f4
sub ecx, 4
mov ecx, dword [ecx]
mov eax, ecx
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x4e8226
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x4e8219
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esp]
call fcn.00406ec8
mov byte [eax + ebx - 1], 0x3d
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e9234
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0xd4
call fcn.004048a4
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x62b92fb0
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x32326b00
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043f0
test esi, esi
jne 0x402ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044e0
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40350c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4bc00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403584
xor eax, eax
push ebp
push 0x40357d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4035c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403584
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4bc00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4bc00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404274
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4be044], 0
je 0x4042d5
cmp word [0x4be218], 0xd7b2
jne 0x40429d
cmp dword [0x4be220], 0
jbe 0x40429d
mov eax, 0x4be214
call dword [0x4be230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4bc054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4bc01c], 0
jne 0x4042f1
push 0
push 0x4bc074
push 0x4bc054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret