joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b9800
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 0x5b99ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jne 0x5b998c
mov dl, 1
mov eax, dword [0x48ff04]
call fcn.004b39a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.0040927c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5b997b
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.0053b2d0
test al, al
je 0x5b996e
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, 0x5b99bc
lea eax, [ebp - 0x394]
call fcn.00422fe0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5b996e
xor eax, eax
push ebp
push 0x5b9967
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 0x5b9a2c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5b9950
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a17c
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x44]
jne 0x5b9950
mov eax, dword [ebp - 4]
add eax, 0x40
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a17c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b996e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5b9871
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b38dc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b99b2
lea eax, [ebp - 0x3a0]
call fcn.0040927c
ret

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

Disassembly:
push ecx
mov eax, dword [0x6b7340]
cmp byte [eax + 0xb9], 0
jne 0x5ba5de
cmp dword [0x6b7360], 0
jne 0x5ba59e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x699a8c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6b7360], eax
cmp dword [0x6b735c], 0
jne 0x5ba5b9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6b735c], eax
cmp dword [0x6b7364], 0
jne 0x5ba5de
push esp
push 0
push 0
mov eax, dword [0x699a88]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x6b7364], eax
pop edx
ret
Function at 0x5babcc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5babe3
add esp, 0xfffffff0
call fcn.00407c04
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c5a60
mov eax, dword [0x6b103c]
cmp byte [eax], 0
jne 0x5bac10
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x18c], al
mov eax, dword [0x6b13e8]
cmp word [eax + 2], 0
jne 0x5bac2a
mov eax, dword [0x6b13e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005bcedc
mov eax, dword [0x6b1544]
cmp word [eax + 2], 0
jne 0x5bac44
mov eax, dword [0x6b1544]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005bd0e0
mov byte [ebx + 0x39], 0
mov dl, 1
mov eax, dword [0x507fc0]
call fcn.0050e110
mov esi, eax
mov dword [ebx + 0x4c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5bd658
mov dl, 1
mov eax, dword [0x48c748]
call fcn.004075d0
mov dword [ebx + 0x9c], eax
mov dl, 1
mov eax, dword [0x48c748]
call fcn.004075d0
mov dword [ebx + 0xbc], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
xor eax, eax
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x68], 0xff000018
mov dword [ebx + 0x84], 0x1f4
mov byte [ebx + 0x88], 1
xor eax, eax
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x80], 0x9c4
mov byte [ebx + 0x94], 0
mov byte [ebx + 0xb1], 1
mov byte [ebx + 0xc8], 1
mov dl, 1
mov eax, dword [0x50c9e8]
call fcn.00517880
mov esi, eax
mov dword [ebx + 0xac], esi
push 0x5bae2c
mov eax, dword [0x6b1270]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00517d10
mov eax, dword [ebx + 0xac]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5bd940
mov dl, 1
mov eax, dword [0x48c748]
call fcn.004075d0
mov dword [ebx + 0xa4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x6b1270]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00422df4
test eax, eax
je 0x5bad5e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00422bfc
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00422dd8
test eax, eax
je 0x5bad76
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 + 0x98]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a17c
push ebx
push 0x5bc8b8
call fcn.005b03b0
mov dword [ebx + 0x188], eax
mov byte [ebx + 0xdc], 0
mov eax, dword [0x6b103c]
cmp byte [eax], 0
jne 0x5badc7
mov eax, ebx
call fcn.005baff4
mov byte [ebx + 0x65], 1
mov byte [ebx + 0x66], 1
mov byte [ebx + 0x67], 1
mov byte [ebx + 0xb2], 1
mov byte [ebx + 0xdd], 0
mov byte [ebx + 0xe8], 0
xor eax, eax
mov dword [ebx + 0xe0], eax
mov byte [ebx + 0xdf], 0
xor eax, eax
mov dword [ebx + 0xb4], eax
mov eax, ebx
call fcn.005bdb88
mov eax, ebx
call fcn.005be7d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5bae24
call fcn.00407c5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5bb32c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x5bb3d8
cmp dword [ebx + 0xa0], 0
jne 0x5bb3d2
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5bb264
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x9c]
cmp dword [eax + 8], 0
je 0x5bb3d2
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5bb398
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x9c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5bb3d2
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x9c]
call fcn.004af2c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5bb3a7
inc dword [ebx + 0xa0]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x6b7340]
cmp dword [eax + 0x180], 0
je 0x5bb75d
test bl, bl
jne 0x5bb6ab
cmp dword [esi + 0xa8], 0
jne 0x5bb6a0
mov eax, esi
call fcn.005be628
push eax
push 0x5bb504
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x50], 0
je 0x5bb671
mov eax, dword [0x6b7340]
cmp byte [eax + 0xdf], 0
je 0x5bb671
mov eax, dword [esi + 0xe4]
call fcn.0040b360
mov edi, eax
cmp edi, 0
jl 0x5bb671
push 0
mov eax, dword [esi + 0xe4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5bb65a
mov eax, dword [esi + 0xa4]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5bb6a0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xa4]
call fcn.004af2c0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5bb680
inc dword [esi + 0xa8]
jmp 0x5bb75d
cmp dword [esi + 0xa8], 0
jle 0x5bb75d
dec dword [esi + 0xa8]
cmp dword [esi + 0xa8], 0
jne 0x5bb75d
cmp dword [esi + 0x50], 0
je 0x5bb708
mov eax, dword [0x6b7340]
cmp byte [eax + 0xdf], 0
je 0x5bb708
mov eax, dword [esi + 0xe4]
call fcn.0040b360
mov edi, eax
cmp edi, 0
jl 0x5bb708
push 5
mov eax, dword [esi + 0xe4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5bb6f1
mov eax, dword [esi + 0xa4]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5bb737
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xa4]
call fcn.004af2c0
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5bb717
mov eax, dword [esi + 0xa4]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xe4]
mov ecx, 1
mov edx, dword [0x5acc54]
call fcn.0040b574
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5bc3b8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xb8], 0
je 0x5bc415
cmp byte [ebx + 0xdf], 0
jne 0x5bc415
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x180]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409404
mov eax, dword [esi]
test eax, eax
je 0x5bc402
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5bc422
mov eax, esi
mov edx, dword [ebx + 0x98]
call fcn.0040965c
jmp 0x5bc422
mov eax, esi
mov edx, dword [ebx + 0x98]
call fcn.0040965c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5bdd74
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x90]
test esi, esi
je 0x5bdde5
mov eax, esi
call fcn.00535108
test al, al
je 0x5bdde5
mov eax, dword [ebx + 0x90]
call fcn.00534d54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5bdde5
mov eax, dword [ebx + 0x90]
mov edx, dword [eax]
call dword [edx + 0x110]
test al, al
je 0x5bddd6
push 0
mov eax, dword [ebx + 0x90]
call fcn.00534d54
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x90]
call fcn.0052ba98
jmp 0x5bdde5
mov cl, 1
mov edx, dword [ebx + 0x80]
mov eax, ebx
call fcn.005bdba8
pop esi
pop ebx
ret
Function at 0x5c48e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5c4962
mov eax, dword [ebx + 8]
call fcn.00534d54
mov ecx, eax
mov dl, 1
mov eax, dword [0x541e70]
call fcn.0052f0d8
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.005472e0
mov dword [esi + 0x2b4], ebx
mov dword [esi + 0x2b0], 0x5c41e0
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00534d54
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00534d54
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5c49d8
mov eax, dword [ebx + 8]
call fcn.00534d54
mov ecx, eax
mov dl, 1
mov eax, dword [0x541e70]
call fcn.0052f0d8
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.005472e0
mov dword [esi + 0x2b4], ebx
mov dword [esi + 0x2b0], 0x5c422c
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00534d54
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00534d54
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5c4a44
mov eax, dword [ebx + 8]
call fcn.00534d54
mov ecx, eax
mov dl, 1
mov eax, dword [0x5428e0]
call fcn.0052f0d8
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x288], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00534d54
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00534d54
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x611270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6113c9
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x6113ae
mov eax, ebx
test eax, eax
je 0x6112a9
sub eax, 4
mov eax, dword [eax]
jmp 0x6112ab
xor eax, eax
mov edi, eax
test ebx, ebx
je 0x6112bb
mov eax, ebx
sub eax, 0xa
movzx eax, word [eax]
jmp 0x6112bf
mov ax, 2
cmp ax, 1
jne 0x611340
test ebx, ebx
je 0x6112d3
mov eax, ebx
sub eax, 0xc
movzx eax, word [eax]
jmp 0x6112db
mov eax, dword [0x6b1588]
movzx eax, word [eax]
push edi
push 0
push 0
movzx eax, ax
mov ecx, ebx
xor edx, edx
call fcn.0040d398
mov edi, eax
cmp edi, 0x100
jle 0x611303
mov eax, edi
add eax, eax
call fcn.00406710
mov esi, eax
jmp 0x611309
lea esi, [ebp - 0x200]
test ebx, ebx
je 0x611317
mov eax, ebx
sub eax, 0xc
movzx edx, word [eax]
jmp 0x611320
mov edx, dword [0x6b1588]
movzx edx, word [edx]
mov eax, ebx
test eax, eax
je 0x61132d
sub eax, 4
mov eax, dword [eax]
jmp 0x61132f
xor eax, eax
push eax
push esi
push edi
movzx eax, dx
mov ecx, ebx
xor edx, edx
call fcn.0040d398
jmp 0x611379
cmp edi, 0x100
jle 0x611355
mov eax, edi
add eax, eax
call fcn.00406710
mov esi, eax
jmp 0x61135b
lea esi, [ebp - 0x200]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00421568
mov eax, dword [ebp - 0x204]
mov ecx, edi
add ecx, ecx
mov edx, esi
call fcn.004068d4
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x61139b
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x611385
lea eax, [ebp - 0x200]
cmp esi, eax
je 0x6113b0
mov eax, esi
call fcn.0040672c
jmp 0x6113b0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6113d0
lea eax, [ebp - 0x204]
call fcn.0040927c
ret
Function at 0x639440
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x63946e
mov eax, ebx
call fcn.00639efc
cmp dword [ebx + 0x40], 0
je 0x639467
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x6394df
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x6394d1
cmp dword [ebx + 8], 0
je 0x639490
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 0x6394a2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x6394d1
cmp dword [ebx + 8], 0
je 0x639483
cmp eax, 3
je 0x6394b5
dec eax
jne 0x639483
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 0x639483
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x639483
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x6394fd
cmp dword [ebx + 0x14], 0xcc
je 0x6394fd
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.00639508
pop ebx
ret

Function at 0x64b0c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
shr edi, 2
je 0x64b0e2
lea edx, [edx + edi*4]
lea eax, [eax + edi*4]
neg edi
mov ebx, dword [edx + edi*4]
xor dword [eax + edi*4], ebx
inc edi
jne 0x64b0d9
and ecx, 3
je 0x64b0f0
mov bl, byte [edx]
xor byte [eax], bl
inc eax
inc edx
dec ecx
jne 0x64b0e7
pop edi
pop ebx
ret

Function at 0x64b0f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x64b121
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [eax + esi*4]
mov ebp, dword [edx + esi*4]
mov dword [edi + esi*4], ebx
xor dword [eax + esi*4], ebp
inc esi
jne 0x64b112
and ecx, 3
je 0x64b139
mov bl, byte [ecx + eax - 1]
mov bh, byte [ecx + edx - 1]
mov byte [ecx + edi - 1], bl
xor byte [ecx + eax - 1], bh
dec ecx
jne 0x64b126
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x64b144
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
shr esi, 2
je 0x64b17d
lea ecx, [ecx + esi*4]
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebp, dword [eax + esi*4]
mov ebx, dword [edi + esi*4]
xor ebx, dword [edx + esi*4]
mov dword [edx + esi*4], ebx
xor ebx, dword [ecx + esi*4]
mov dword [edi + esi*4], ebp
mov dword [eax + esi*4], ebx
inc esi
jne 0x64b165
pop esi
and esi, 3
je 0x64b1a2
mov bl, byte [esi + eax - 1]
mov bh, byte [esi + edx - 1]
xor bh, byte [esi + edi - 1]
mov byte [esi + edx - 1], bh
xor bh, byte [esi + ecx - 1]
mov byte [esi + edi - 1], bl
mov byte [esi + eax - 1], bh
dec esi
jne 0x64b183
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x64b1ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
shr ecx, 1
lea edi, [eax + ecx*8]
lea edx, [edx + ecx*8]
neg ecx
mov ebx, dword [edx + ecx*8]
mov eax, dword [edx + ecx*8 + 4]
xor dword [edi + ecx*8], ebx
xor dword [edi + ecx*8 + 4], eax
inc ecx
jne 0x64b1b8
pop edi
pop ebx
ret

Function at 0x64b1cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x64b1f8
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [edx + esi*4]
xor ebx, dword [eax + esi*4]
mov dword [edi + esi*4], ebx
mov dword [eax + esi*4], ebx
inc esi
jne 0x64b1e9
and ecx, 3
je 0x64b210
mov bl, byte [ecx + edx - 1]
xor bl, byte [ecx + eax - 1]
mov byte [ecx + edi - 1], bl
mov byte [ecx + eax - 1], bl
dec ecx
jne 0x64b1fd
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x64c644
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jl 0x64c698
inc ebx
xor edx, edx
mov ecx, edx
add ecx, ecx
add ecx, ecx
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x6a9020]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x6a9420]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x6a9820]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x6a9c20]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x64c652
pop edi
pop esi
pop ebx
ret

Function at 0x64d3f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx]
call dword [eax + 0x18]
mov edi, eax
mov eax, edi
shr eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
add eax, edi
mov dword [esp + 8], eax
mov eax, edi
add eax, eax
mov edx, dword [ebx + 0xc]
lea eax, [edx + eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp]
cdq
idiv edi
mov ebp, eax
dec ebp
test ebp, ebp
jl 0x64d46c
inc ebp
push edi
mov ecx, dword [esp + 0x10]
mov edx, esi
mov eax, dword [ebx + 0xc]
call fcn.0064b0f4
mov edx, dword [ebx + 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [esp + 8]
push eax
push edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0xc]
mov eax, esi
call fcn.0064b144
lea eax, [esi + edi]
mov esi, eax
dec ebp
jne 0x64d437
mov eax, dword [esp]
cdq
idiv edi
mov ebp, edx
test ebp, ebp
jle 0x64d4a8
mov edx, dword [esp + 8]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 4]
call fcn.0064b1ac
mov edx, dword [ebx + 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec ebp
test ebp, ebp
jl 0x64d4a8
inc ebp
xor eax, eax
mov edx, dword [ebx + 0xc]
movzx edx, byte [edx + eax]
xor byte [esi + eax], dl
inc eax
dec ebp
jne 0x64d49a
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x64d4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call dword [eax + 0x18]
mov esi, eax
mov eax, esi
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0064d1fc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x64d5f0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], eax
dec edi
test edi, edi
jl 0x64d55e
inc edi
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.004068d4
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0064b1ac
lea eax, [ebx + esi]
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, esi
call fcn.004068d4
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0064b1ac
lea eax, [ebx + esi]
mov ebx, eax
dec edi
jne 0x64d50b
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
cmp esi, edi
jg 0x64d5ac
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.004068d4
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0064b1ac
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.004068d4
lea eax, [ebx + esi]
mov ebx, eax
sub edi, esi
test edi, edi
jle 0x64d5d7
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec edi
test edi, edi
jl 0x64d5d7
inc edi
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + eax]
xor byte [ebx + eax], dl
inc eax
dec edi
jne 0x64d5c6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64d5f7
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0064d230
ret