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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47214b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47212c
mov dl, 1
mov eax, dword [0x420388]
call fcn.004048bc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405848
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47211b
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.0045bc04
test al, al
je 0x47210e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x47215c
lea eax, [ebp - 0x254]
call fcn.0040d218
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47210e
xor eax, eax
push ebp
push 0x472107
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x472194
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4720f0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405ab8
mov edx, dword [ebp - 0x260]
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 0x4720f0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405ab8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47210e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x472011
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00424d04
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 0x472152
lea eax, [ebp - 0x260]
call fcn.00405848
ret

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

Disassembly:
push ecx
mov eax, dword [0x5110c8]
cmp byte [eax + 0xad], 0
jne 0x472b35
cmp dword [0x5110e4], 0
jne 0x472af6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x472a80
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5110e4], eax
cmp dword [0x5110e0], 0
jne 0x472b11
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x5110e0], eax
cmp dword [0x5110e8], 0
jne 0x472b35
push esp
push 0
push 0
push 0x472a24
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5110e8], eax
pop edx
ret
Function at 0x473318
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x4733b7
cmp dword [ebx + 0x94], 0
jne 0x4733b1
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4732a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4733b1
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_GetWindowLongA
test al, 8
je 0x473377
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4733b1
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.004226a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x473386
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5110c8]
cmp dword [eax + 0x30], 0
je 0x47372d
test bl, bl
jne 0x47367e
cmp dword [esi + 0x9c], 0
jne 0x473673
mov eax, esi
call fcn.00475f84
push eax
push 0x4734fc
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x473644
mov eax, dword [0x5110c8]
call fcn.00476194
test al, al
je 0x473644
mov eax, dword [0x5110ec]
call fcn.00406d04
mov edi, eax
cmp edi, 0
jl 0x473644
push 0
mov eax, dword [0x5110ec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x47362e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473673
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004226a0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x473653
inc dword [esi + 0x9c]
jmp 0x47372d
cmp dword [esi + 0x9c], 0
jle 0x47372d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x47372d
cmp dword [esi + 0x44], 0
je 0x4736d9
mov eax, dword [0x5110c8]
call fcn.00476194
test al, al
je 0x4736d9
mov eax, dword [0x5110ec]
call fcn.00406d04
mov edi, eax
cmp edi, 0
jl 0x4736d9
push 5
mov eax, dword [0x5110ec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4736c3
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x473708
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004226a0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4736e8
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x5110ec
mov ecx, 1
mov edx, dword [0x4734dc]
call fcn.00406ed8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x474214
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x47426c
mov eax, ebx
call fcn.00476194
test al, al
jne 0x47426c
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405938
mov eax, dword [esi]
call fcn.00405b24
test eax, eax
jne 0x474279
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040589c
jmp 0x474279
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040589c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x475748
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4757b6
mov eax, esi
call fcn.00456824
test al, al
je 0x4757b6
mov eax, dword [ebx + 0x84]
call fcn.00456484
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4757b6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4757aa
push 0
mov eax, dword [ebx + 0x84]
call fcn.00456484
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044e468
jmp 0x4757b6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00475594
pop esi
pop ebx
ret

Function at 0x49ed14
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff8c
mov ebp, ecx
mov edi, edx
mov ebx, eax
lea esi, [esp + 4]
lea eax, [esp + 0x20]
xor ecx, ecx
mov edx, 0x44
call fcn.0040403c
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 0x41
mov word [esp + 0x50], di
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x49ede1
call sub.KERNEL32.DLL_GetCurrentThreadId
mov edx, dword [0x50bc80]
cmp eax, dword [edx]
setne bl
test bl, bl
jne 0x49edad
jmp 0x49ed9b
cmp dword [esi + 4], 0x12
jne 0x49ed8f
mov eax, dword [esi + 8]
call fcn.00405780
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x49ed81
push 1
call sub.KERNEL32.DLL_Sleep
push esp
mov eax, dword [esp + 0x68]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [esp], 0x103
je 0x49ed7b
mov eax, dword [esp + 0x68]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 0x64]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp]
jmp 0x49ede6
call sub.KERNEL32.DLL_GetLastError
add esp, 0x74
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49f3a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp dword [ebx], 0
jne 0x49f3be
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx], eax
mov dl, 1
jmp 0x49f3e4
call sub.KERNEL32.DLL_GetTickCount
cmp eax, dword [ebx]
jae 0x49f3d5
or edx, 0xffffffff
sub edx, dword [ebx]
add edx, eax
cmp esi, edx
setb dl
jmp 0x49f3de
mov edx, eax
sub edx, dword [ebx]
cmp esi, edx
setb dl
test dl, dl
je 0x49f3e4
mov dword [ebx], eax
mov eax, edx
pop esi
pop ebx
ret

Function at 0x49f3ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x49f4d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
mov eax, edi
call fcn.00405d24
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49f461
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.00407a6c
mov eax, dword [ebp - 0xc]
call fcn.0040619c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49f4ba
test esi, esi
jne 0x49f474
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov esi, eax
test esi, esi
jbe 0x49f4aa
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00405eb0
push 0
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00405d7c
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
cmp esi, dword [ebp - 8]
je 0x49f4b2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405eb0
jmp 0x49f4b2
mov eax, dword [ebp - 4]
call fcn.00405848
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x49f4c2
mov eax, dword [ebp - 4]
call fcn.00405848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f4df
lea eax, [ebp - 0xc]
call fcn.00405f70
ret
Function at 0x49f4e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49f610
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x49f534
push 0
push 0x80
push 4
push 0
push 3
push 4
mov eax, esi
call fcn.00405d24
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
jmp 0x49f555
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00405d24
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49f5b7
cmp byte [ebp - 1], 0
je 0x49f58b
push 0
push 0x80
push 4
push 0
push 3
push 4
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00407a6c
mov eax, dword [ebp - 0xc]
call fcn.0040619c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
jmp 0x49f5b7
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00407a6c
mov eax, dword [ebp - 0x10]
call fcn.0040619c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49f5f3
mov eax, edi
call fcn.00405b24
mov esi, eax
test esi, esi
jbe 0x49f5e0
push 0
lea eax, [ebp - 8]
push eax
push esi
mov eax, edi
call fcn.00405d24
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x49f5e5
xor eax, eax
mov dword [ebp - 8], eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
cmp esi, dword [ebp - 8]
sete bl
jmp 0x49f5f5
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f617
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405f88
ret

Function at 0x4a0570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00408d10
cmp ax, 0xffff
jne 0x4a0591
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x4a061d
push eax
push edi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
test edi, edi
je 0x4a061d
push edi
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x4a05de
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x4a05ca
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x4a061d
cmp dword [ebp + 8], 0
jle 0x4a061d
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.00437630
mov esi, eax
test esi, esi
jle 0x4a0614
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408d24
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a129c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4a1300
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405ab8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040c294
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1307
lea eax, [ebp - 0xc]
call fcn.00405848
ret

Function at 0x4a1364
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4a13c0
push esp
push 0x40
push 6
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x4a138f
call fcn.0041172c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.004035d8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
jne 0x4a13c0
call fcn.0041172c
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4a844c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00405f70
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4a849b
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406104
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a84a0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x4a84d8
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x4a84d8
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x4a84d8
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4affb4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4b0138
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x2be]
sub al, 2
jb 0x4b011d
cmp byte [ebx + 0x2b0], 0
je 0x4b011d
mov eax, dword [ebp - 4]
call fcn.004aa608
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x4b0116
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x4b005a
dec ax
je 0x4b0030
sub ax, 0x12
jne 0x4b0074
call fcn.00405260
jmp 0x4b011d
cmp byte [ebx + 0x2b1], 0
je 0x4b00fc
mov eax, ebx
call fcn.004416f0
test al, al
je 0x4b00fc
xor edx, edx
mov eax, ebx
call fcn.00441714
jmp 0x4b00fc
mov eax, dword [esi]
call fcn.004061ac
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00406398
jmp 0x4b00fc
cmp byte [ebx + 0x2b1], 0
je 0x4b0091
mov eax, ebx
call fcn.004416f0
test al, al
jne 0x4b0091
mov dl, 1
mov eax, ebx
call fcn.00441714
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x4b00a9
mov eax, esi
call fcn.00405f70
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.00406088
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00406218
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.004afde4
test al, al
je 0x4b00fc
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.00406088
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004061b8
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b011d
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.004aa63c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b013f
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405f88
ret
Function at 0x4b34f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4b351f
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4b359e
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004b1524
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4b356c
mov cx, word [esp]
sub cx, si
jmp 0x4b356e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4b3555
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4b3594
mov cx, word [esp]
sub cx, si
jmp 0x4b3596
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4b357d
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4b367f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004b3264
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4b35ea
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x74]
cmp eax, 0x106
jae 0x4b3600
mov edx, dword [ebx]
cmp dword [edx + 4], 0
jne 0x4b34fa
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x16c0]
cmp ecx, edx
jbe 0x4b367f
mov esi, dword [ebx + 0x6c]
add esi, eax
cmp esi, edx
jbe 0x4b3642
mov edi, ecx
sub edi, esi
cmp edi, 0x102
jbe 0x4b3627
mov edi, 0x102
push edi
push 0
mov eax, dword [ebx + 0x38]
add eax, esi
push eax
call fcn.004b150c
add esp, 0xc
add edi, esi
mov dword [ebx + 0x16c0], edi
jmp 0x4b367f
lea edx, [esi + 0x102]
mov eax, dword [ebx + 0x16c0]
cmp edx, eax
jbe 0x4b367f
mov edi, edx
mov edx, dword [ebx + 0x3c]
sub edx, eax
sub edi, eax
cmp edi, edx
jbe 0x4b3668
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x16c0]
push edi
push 0
mov edx, dword [ebx + 0x38]
add edx, eax
push edx
call fcn.004b150c
add esp, 0xc
add dword [ebx + 0x16c0], edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b987c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x511bbc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4b989e
shr eax, 1
xor eax, 0xedb88320
jmp 0x4b98a0
shr eax, 1
dec edx
jne 0x4b988c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4b9885
mov byte [0x511fbc], 1
pop esi
pop ebx
ret
Function at 0x4b98bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x511fbc], 0
jne 0x4b98d3
call fcn.004b987c
mov eax, edi
dec eax
test eax, eax
jl 0x4b98fc
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x511bbc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4b98dd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4bc418
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x4bc449
dec al
je 0x4bc485
dec al
je 0x4bc4c9
dec al
je 0x4bc534
jmp 0x4bc5be
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4bc5be
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, 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 0x4bc459
jmp 0x4bc5be
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bc5be
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4bc495
jmp 0x4bc5be
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bc5be
mov esi, 1
mov al, 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 0x4bc4f7
xor ebp, ebp
jmp 0x4bc508
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4bc511
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4bc4d9
jmp 0x4bc5be
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4bc5be
mov esi, 1
mov al, 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 0x4bc58c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, 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
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004b9904
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4bc548
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret