joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a1e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x529c10]
cmp dword [eax + 0x30], 0
je 0x47a28e
cmp dword [ebx + 0x94], 0
jne 0x47a288
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47a174
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47a288
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 0x47a24e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47a288
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.00415a4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47a25d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47adf0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x47ae25
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.004043d8
jmp 0x47ae32
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040433c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47beac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47beed
mov eax, esi
call fcn.004617b8
test al, al
je 0x47beed
mov eax, dword [ebx + 0x84]
call fcn.004614b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47beed
push 0
mov eax, dword [ebx + 0x84]
call fcn.004614b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47f5b4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47f5e2
mov eax, ebx
call fcn.00480068
cmp dword [ebx + 0x40], 0
je 0x47f5db
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47f653
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47f645
cmp dword [ebx + 8], 0
je 0x47f604
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47f616
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47f645
cmp dword [ebx + 8], 0
je 0x47f5f7
cmp eax, 3
je 0x47f629
dec eax
jne 0x47f5f7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47f5f7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47f5f7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47f671
cmp dword [ebx + 0x14], 0xcc
je 0x47f671
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047f67c
pop ebx
ret
Function at 0x490ff4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x491254
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x491057
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00490abc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d8a8
cmp al, 1
jne 0x491057
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00490dd4
test al, al
je 0x4911e3
cmp dword [ebp - 8], 0
jge 0x491075
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00490abc
mov eax, dword [ebp - 0x210]
call fcn.004045a8
cmp ebx, eax
jge 0x4910bf
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00490abc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x528464]
and eax, 0xff
bt dword [edx], eax
jae 0x4910bf
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4910d3
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00490fd0
cmp ebx, dword [ebp - 8]
je 0x4911d5
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4910ff
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036f4
and eax, 0x7f
movzx eax, word [eax*2 + 0x51fa8c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4911c2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036f4
and eax, 0x7f
movzx eax, word [eax*2 + 0x51fa8c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004614b4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036f4
and eax, 0x7f
movzx eax, word [eax*2 + 0x51fa8c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004614b4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4911c9
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x491236
cmp dword [ebp - 8], 0
jge 0x4911ee
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00490abc
mov eax, dword [ebp - 0x218]
call fcn.004045a8
cmp eax, dword [ebp - 8]
jg 0x491228
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00490abc
mov eax, dword [ebp - 0x21c]
call fcn.004045a8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00490fd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49125b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040430c
ret
Function at 0x4a9e4c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9f86
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00416700
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x4a9ec8
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4a9ec8
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408754
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x527df4]
mov ebx, dword [ebx]
mov eax, 0x4a9f9c
call ebx
dec eax
jne 0x4a9ec8
mov ebx, 1
jmp 0x4a9eca
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x4a9f6b
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004a995c
test al, al
jne 0x4a9f5f
mov eax, dword [ebp - 4]
call fcn.004a9e40
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.0040433c
xor edx, edx
push ebp
push 0x4a9f4d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x4a9f43
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004aa260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a9f5f
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4a9ee2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9f8d
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040430c
ret
Function at 0x4adab8
Capabilities:
Hash data using sha1

Disassembly:
xor edx, edx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x4adc30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov dword [esp], eax
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x4adcad
cmp eax, 0x40
jbe 0x4adc5f
lea edx, [ebx + 0x44]
mov eax, ebx
call fcn.004adae8
mov dword [ebx + 0xa0], 0x14
mov edx, 0x40
mov eax, dword [ebx + 0xa0]
sub edx, eax
mov edi, ebx
mov ecx, edi
add ecx, eax
mov eax, ecx
call fcn.00407438
mov edx, edi
mov eax, 0x10
xor dword [edx], 0x36363636
add edx, 4
dec eax
jne 0x4adc80
lea eax, [ebx + 0x44]
call fcn.004adab8
lea ecx, [ebx + 0x44]
mov eax, ebx
mov edx, 0x40
call fcn.004adb98
mov dword [ebx + 0xa0], 0xffffffff
test esi, esi
jle 0x4adcbe
lea ecx, [ebx + 0x44]
mov edx, esi
mov eax, dword [esp]
call fcn.004adb98
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4adcc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, 0x14
call fcn.00402758
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4add86
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [ebx + 0xa0], 0xffffffff
je 0x4add02
xor eax, eax
mov ecx, ebx
xor edx, edx
call fcn.004adc30
lea edx, [ebx + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004adae8
mov eax, ebx
mov edx, 0x11
mov ecx, dword [eax]
xor ecx, 0x36363636
xor ecx, 0x5c5c5c5c
mov dword [eax], ecx
add eax, 4
dec edx
jne 0x4add14
lea eax, [ebx + 0x44]
call fcn.004adab8
lea ecx, [ebx + 0x44]
mov eax, ebx
mov edx, 0x40
call fcn.004adb98
lea ecx, [ebx + 0x44]
mov edx, 0x14
mov eax, dword [ebp - 0xc]
call fcn.004adb98
lea edx, [ebx + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004adae8
cmp dword [ebp - 4], 0
je 0x4add70
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00402a04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4add8d
mov eax, dword [ebp - 0xc]
call fcn.00402778
ret
Function at 0x4ade40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
mov eax, 0x14
call fcn.00402758
mov dword [ebp - 4], eax
mov eax, 0x14
call fcn.00402758
mov dword [ebp - 8], eax
push ebp
push 0x4adfe0
push dword fs:[0]
mov dword fs:[0], esp
lea eax, [ebp - 0xb8]
call fcn.004addfc
lea ecx, [ebp - 0xb8]
mov edx, edi
mov eax, esi
call fcn.004add94
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0xb8]
mov ecx, 0xa4
call fcn.00402a04
lea ecx, [ebp - 0x15c]
mov edx, dword [ebp + 0x18]
mov eax, ebx
call fcn.004adc30
mov eax, dword [ebp + 8]
dec eax
mov ecx, 0x14
cdq
idiv ecx
inc eax
dec eax
test eax, eax
jl 0x4adfc2
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov edx, 0x14
call fcn.00407438
lea edx, [ebp - 0x200]
lea eax, [ebp - 0x15c]
mov ecx, 0xa4
call fcn.00402a04
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
inc edx
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
inc eax
mov ecx, edx
shr ecx, 0x10
mov byte [eax], cl
inc eax
shr edx, 8
mov byte [eax], dl
inc eax
mov dl, byte [ebp - 0xc]
inc edx
mov byte [eax], dl
mov ebx, 4
mov eax, dword [ebp + 0x14]
dec eax
test eax, eax
jl 0x4adf8f
inc eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x200]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004adc30
lea ecx, [ebp - 0x200]
mov edx, 0x14
mov eax, dword [ebp - 4]
call fcn.004adcc4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov bl, byte [ecx]
xor byte [eax], bl
inc eax
inc ecx
dec edx
jne 0x4adf66
mov ebx, 0x14
lea edx, [ebp - 0x200]
lea eax, [ebp - 0xb8]
mov ecx, 0xa4
call fcn.00402a04
dec dword [ebp - 0x14]
jne 0x4adf38
xor ecx, ecx
mov edx, dword [ebp - 0xc]
shl edx, 2
lea edx, [edx + edx*4]
mov eax, dword [ebp - 8]
jmp 0x4adfac
mov ebx, dword [ebp + 0x10]
lea esi, [ebx + edx]
mov bl, byte [eax]
mov byte [esi], bl
inc eax
inc edx
inc ecx
cmp ecx, 0x14
jge 0x4adfb6
cmp edx, dword [ebp + 8]
jl 0x4adf9f
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4adee1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adfe7
mov eax, dword [ebp - 4]
call fcn.00402778
mov eax, dword [ebp - 8]
call fcn.00402778
ret
Function at 0x4b45c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
lea edx, [esi + 0x105]
mov eax, esi
mov ecx, 0x104
call fcn.00402a04
cmp ebx, 0x104
jge 0x4b4602
mov edx, 0x104
sub edx, ebx
lea eax, [esi + ebx]
call dword [esi + 0x210]
add ebx, eax
cmp ebx, 0x104
jl 0x4b45e8
xor ebx, ebx
mov al, byte [esi + ebx + 0x105]
neg al
dec eax
xor byte [esi + ebx], al
inc ebx
cmp ebx, 0x104
jne 0x4b4604
mov eax, esi
mov edx, 0x104
call fcn.004b4528
lea eax, [esi + 0x105]
mov edx, 0x104
call fcn.004b4528
pop esi
pop ebx
ret
Function at 0x4b8030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4b8044
cmp byte [eax], 0
jne 0x4b8053
cmp dword [esi + 0x20], 0
je 0x4b8053
cmp edi, 4
jg 0x4b8053
test edi, edi
jge 0x4b805d
mov eax, 0xfffffffe
jmp 0x4b828c
mov ebx, dword [esi + 0x20]
cmp dword [esi + 0x10], 0
je 0x4b807f
cmp dword [esi], 0
jne 0x4b8071
cmp dword [esi + 4], 0
jne 0x4b807f
cmp dword [ebx + 4], 0x29a
jne 0x4b8089
cmp edi, 4
je 0x4b8089
mov eax, 0xfffffffe
jmp 0x4b828c
cmp dword [esi + 0x14], 0
jne 0x4b8099
mov eax, 0xfffffffb
jmp 0x4b828c
mov dword [ebx], esi
mov ebp, dword [ebx + 0x20]
mov dword [ebx + 0x20], edi
cmp dword [ebx + 4], 0x2a
jne 0x4b812f
mov cx, word [ebx + 0x28]
sub cx, 8
shl ecx, 4
add cx, 8
shl ecx, 8
mov eax, dword [ebx + 0x78]
dec eax
shr eax, 1
cmp ax, 3
jbe 0x4b80cd
mov ax, 3
shl eax, 6
or cx, ax
cmp dword [ebx + 0x64], 0
je 0x4b80dd
or cx, 0x20
movzx eax, cx
push ecx
mov ecx, 0x1f
xor edx, edx
div ecx
pop ecx
mov ax, 0x1f
sub ax, dx
add cx, ax
mov dword [ebx + 4], 0x71
mov eax, ebx
mov edx, ecx
call fcn.004b7cc0
cmp dword [ebx + 0x64], 0
je 0x4b8128
mov edx, dword [esi + 0x34]
shr edx, 0x10
mov eax, ebx
call fcn.004b7cc0
mov dx, word [esi + 0x34]
and dx, 0xffff
mov eax, ebx
call fcn.004b7cc0
mov dword [esi + 0x34], 1
cmp dword [ebx + 0x14], 0
je 0x4b8150
mov eax, esi
call fcn.004b7cec
cmp dword [esi + 0x14], 0
jne 0x4b8169
mov dword [ebx + 0x20], 0xffffffff
xor eax, eax
jmp 0x4b828c
cmp dword [esi + 4], 0
jne 0x4b8169
cmp ebp, edi
jl 0x4b8169
cmp edi, 4
je 0x4b8169
mov eax, 0xfffffffb
jmp 0x4b828c
cmp dword [ebx + 4], 0x29a
jne 0x4b8182
cmp dword [esi + 4], 0
je 0x4b8182
mov eax, 0xfffffffb
jmp 0x4b828c
cmp dword [esi + 4], 0
jne 0x4b81a3
cmp dword [ebx + 0x6c], 0
jne 0x4b81a3
test edi, edi
je 0x4b823a
cmp dword [ebx + 4], 0x29a
je 0x4b823a
mov eax, dword [ebx + 0x78]
lea eax, [eax + eax*2]
mov ebp, dword [eax*4 + 0x525bd0]
mov eax, ebx
mov edx, edi
call ebp
cmp al, 2
je 0x4b81be
cmp al, 3
jne 0x4b81c5
mov dword [ebx + 4], 0x29a
test al, al
je 0x4b81cd
cmp al, 2
jne 0x4b81e1
cmp dword [esi + 0x14], 0
jne 0x4b81da
mov dword [ebx + 0x20], 0xffffffff
xor eax, eax
jmp 0x4b828c
cmp al, 1
jne 0x4b823a
cmp edi, 1
jne 0x4b81f3
mov eax, ebx
call fcn.004b7e48
jmp 0x4b8222
push 0
mov eax, ebx
xor ecx, ecx
xor edx, edx
call fcn.004b7fd4
cmp edi, 3
jne 0x4b8222
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], 0
mov eax, dword [ebx + 0x44]
dec eax
mov edx, eax
add edx, edx
mov eax, dword [ebx + 0x3c]
call fcn.004b8028
mov eax, esi
call fcn.004b7cec
cmp dword [esi + 0x14], 0
jne 0x4b823a
mov dword [ebx + 0x20], 0xffffffff
xor eax, eax
jmp 0x4b828c
cmp edi, 4
je 0x4b8243
xor eax, eax
jmp 0x4b828c
cmp dword [ebx + 0x18], 0
je 0x4b8250
mov eax, 1
jmp 0x4b828c
mov edx, dword [esi + 0x34]
shr edx, 0x10
mov edi, ebx
mov eax, edi
call fcn.004b7cc0
mov dx, word [esi + 0x34]
and dx, 0xffff
mov eax, edi
call fcn.004b7cc0
mov eax, esi
call fcn.004b7cec
mov dword [ebx + 0x18], 0xffffffff
cmp dword [ebx + 0x14], 0
je 0x4b8287
xor eax, eax
jmp 0x4b828c
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b8528
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x4b8552
cmp dword [ebx + 0x64], 0
jne 0x4b8552
cmp dword [ebx + 0x6c], 0
jne 0x4b8552
mov esi, edi
jmp 0x4b85e2
cmp esi, 0xffffffff
jne 0x4b855d
dec esi
jmp 0x4b85e2
mov eax, dword [ebx + 0x64]
mov edx, edi
sub edx, 0x106
add edx, edi
cmp eax, edx
jb 0x4b85e2
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
xchg edx, eax
call fcn.004bfa74
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4b85aa
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4b85af
mov word [edx], 0
dec eax
test eax, eax
jne 0x4b8590
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4b85d6
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4b85db
mov word [edx], 0
dec eax
test eax, eax
jne 0x4b85bc
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4b8640
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.004b8294
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4b862b
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4b8640
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4b8532
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ba144
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ba22b
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x4ba17f
bt edi, eax
jae 0x4ba206
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.004044d0
lea eax, [ebp - 0x14]
mov edx, 0x4ba244
call fcn.004045b0
mov eax, dword [ebp - 0x14]
call fcn.004047a8
push eax
call sub.kernel32.dll_GetDriveTypeA
mov byte [ebp - 0xd], al
mov eax, ebx
call fcn.00402c18
mov ebx, eax
mov al, byte [ebp - 0xd]
add al, 0xfd
sub al, 4
jae 0x4ba206
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x20]
call fcn.00402d84
mov edx, 0x4ba248
lea eax, [ebp - 0x20]
mov cl, 2
call fcn.00402d54
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x18]
call fcn.0040454c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004baf6c
inc esi
cmp esi, 0x1a
jne 0x4ba175
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba232
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040430c
ret
Function at 0x4bc628
Capabilities:
Get disk information

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.00404798
xor eax, eax
push ebp
push 0x4bc68d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4bc670
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004bef20
mov eax, dword [ebp - 8]
call fcn.004bee84
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
jmp 0x4bc672
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc694
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040430c
ret

Function at 0x4bc69c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404798
xor eax, eax
push ebp
push 0x4bc768
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4bc743
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x60]
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4bc728
push pe_nt_image_headers32
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [ebx + 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004bef20
mov eax, dword [ebp - 0x10]
call fcn.004bee84
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4bc72c
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc74a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4bcac8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov edx, 0x52a960
and eax, 0xff
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov ebx, dword [0x5280f4]
mov ebx, dword [ebx + eax*4]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [edx], ebx
and ebx, 0xff
add dword [edx + 4], ebx
imul eax, dword [edx + 4], 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
mov ecx, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov ebx, dword [0x5280f4]
mov eax, dword [ebx + eax*4]
shr ecx, 8
and ecx, 0xffffff
xor eax, ecx
mov dword [edx + 8], eax
pop ebx
ret

Function at 0x4bcbe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov ebx, edx
test ebx, ebx
jle 0x4bcc11
call fcn.004bcbc8
mov edx, dword [esi]
xor byte [edx], al
mov eax, dword [esi]
mov al, byte [eax]
call fcn.004bcac8
inc dword [esi]
dec ebx
jne 0x4bcbfa
pop esi
pop ebx
pop ecx
pop ebp
ret