joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439188
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x4391a4
cmp dword [esi + 4], 0
je 0x4391d1
test byte [ebx + 0x55], 1
jne 0x4391c3
mov eax, ebx
call fcn.00437d94
test eax, eax
jne 0x4391c3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4392e1
mov edx, esi
mov eax, ebx
call fcn.00438cac
jmp 0x4392e1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4392da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b048
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00435a9c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00439188
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043b048
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4392e1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f7f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4961d8]
cmp byte [eax + 0xc], 0
je 0x43f95d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f956
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x497b64], 0
jne 0x43f844
push 0x43f964
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f96c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b64], eax
cmp dword [0x493ac4], 0
jne 0x43f93f
push 0x43f97c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x493ac4], eax
cmp dword [0x493ac4], 0
je 0x43f93f
push 0x43f988
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b68], eax
push 0x43f998
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b6c], eax
push 0x43f9ac
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b70], eax
push 0x43f9c4
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b74], eax
push 0x43f9dc
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b78], eax
push 0x43f9f0
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b7c], eax
push 0x43fa08
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b80], eax
push 0x43fa20
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b84], eax
push 0x43fa3c
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b88], eax
push 0x43fa48
mov eax, dword [0x493ac4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x497b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f95d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004045ec
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44384b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040486c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44b028
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b078]
test si, 4
je 0x44b03c
or bl, 1
test si, 8
je 0x44b046
or bl, 4
test si, 1
je 0x44b050
or bl, 8
test si, 2
je 0x44b05a
or bl, 0x10
test si, 0x10
je 0x44b064
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b073
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44b07c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44b0b4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b095
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b0a4
or bl, 4
test esi, 0x20000000
je 0x44b0af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451778
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45178a
add esp, 0xfffffff0
call fcn.00403bc0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f534
mov eax, dword [0x495cf8]
mov dword [eax + 4], ebx
mov dword [eax], 0x451b1c
mov eax, dword [0x495d08]
mov dword [eax + 4], ebx
mov dword [eax], 0x451b28
mov eax, ebx
call fcn.00451b34
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4168e8]
call fcn.0040386c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4168e8]
call fcn.0040386c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4168e8]
call fcn.0040386c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4168e8]
call fcn.0040386c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4168e8]
call fcn.0040386c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44df4c
push eax
push 0
push 0
mov eax, dword [0x495ee4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421aa4]
call fcn.004231e0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421aa4]
call fcn.004231e0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421aa4]
call fcn.004231e0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451f84
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451e4c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451e4c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451e4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4518c7
call fcn.00403c18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451c30
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 0x451ddb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451dbc
mov dl, 1
mov eax, dword [0x416f4c]
call fcn.0040386c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045ec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451dab
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.0043fb50
test al, al
je 0x451d9e
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, 0x451dec
lea eax, [ebp - 0x254]
call fcn.00409a38
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451d9e
xor eax, eax
push ebp
push 0x451d97
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 0x451e24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451d80
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040486c
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 0x451d80
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040486c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451d9e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451ca1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b5f4
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 0x451de2
lea eax, [ebp - 0x260]
call fcn.004045ec
ret

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

Disassembly:
push ecx
mov eax, dword [0x497bb0]
cmp byte [eax + 0xa5], 0
jne 0x452795
cmp dword [0x497bc8], 0
jne 0x452756
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4526e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x497bc8], eax
cmp dword [0x497bc4], 0
jne 0x452771
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x497bc4], eax
cmp dword [0x497bcc], 0
jne 0x452795
push esp
push 0
push 0
push 0x452684
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x497bcc], eax
pop edx
ret
Function at 0x452e28
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x497bb0]
cmp dword [eax + 0x30], 0
je 0x452ed2
cmp dword [ebx + 0x94], 0
jne 0x452ecc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452db8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452ecc
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 0x452e92
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452ecc
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.00418f20
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452ea1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453a30
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 0x453a65
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.004046dc
jmp 0x453a72
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404640
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454a00
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454a41
mov eax, esi
call fcn.0043b308
test al, al
je 0x454a41
mov eax, dword [ebx + 0x84]
call fcn.0043b048
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454a41
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b048
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4594b4
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 0x459518
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040486c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0045949c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45951f
lea eax, [ebp - 0xc]
call fcn.004045ec
ret

Function at 0x45d198
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45d221
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
cmp byte [esi + 0x30], 0
jne 0x45d1df
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0040875c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404640
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x34]
call fcn.00408a30
mov eax, dword [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00404c00
mov esi, eax
push ebx
mov ecx, esi
dec ecx
mov eax, dword [ebx]
mov edx, 1
call fcn.00404b1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d228
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404610
ret

Function at 0x45e48f
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
pop ebp
ret
Function at 0x45e680
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x45e69f
add edx, 3
sar edx, 2
test edx, edx
jle 0x45e7ac
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x45e6d5
je 0x45e715
sub ecx, 0x2b
je 0x45e70b
sub ecx, 4
je 0x45e710
dec ecx
sub ecx, 0xa
jb 0x45e6fe
jmp 0x45e718
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x45e6e7
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x45e6f1
jmp 0x45e718
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x45e718
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x45e718
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x45e718
mov byte [eax], 0x3e
jmp 0x45e718
mov byte [eax], 0x3f
jmp 0x45e718
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x45e6b7
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x45e769
cmp byte [esp + 7], 0xff
jne 0x45e769
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x45e7a1
cmp dl, 0xff
je 0x45e7a1
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x45e6ae
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x45f1a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x3c
mov dword [ebp - 4], eax
mov esi, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x38]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
cmp esi, dword [edx]
jbe 0x45f20b
push dword [ebp + 0x10]
push edi
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
call fcn.0045e850
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [eax + 0x38], edx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ecx], ebx
xor eax, eax
jmp 0x45f32f
cmp ebx, edi
jne 0x45f219
mov eax, 0x1001
jmp 0x45f32f
mov edx, esi
sub edx, dword [ebp - 8]
push edx
push edi
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
add ecx, 0x28
push ecx
call fcn.0045e850
add esp, 0xc
mov ecx, esi
sub ecx, dword [ebp - 8]
add edi, ecx
mov eax, esi
sub eax, dword [ebp - 8]
sub dword [ebp + 0x10], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0x28]
mov dword [ebx], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0x2c]
mov dword [ebx + 4], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x20]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0x30]
mov dword [ebx + 8], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x24]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0x34]
mov dword [ebx + 0xc], ecx
push ebx
push dword [ebp - 4]
call fcn.00460e60
add esp, 8
add ebx, esi
cmp esi, dword [ebp + 0x10]
ja 0x45f2d8
mov edx, ebx
sub edx, esi
mov ecx, dword [edx]
xor ecx, dword [edi]
mov dword [ebx], ecx
mov eax, ebx
sub eax, esi
mov edx, dword [eax + 4]
xor edx, dword [edi + 4]
mov dword [ebx + 4], edx
mov ecx, ebx
sub ecx, esi
mov eax, dword [ecx + 8]
xor eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov edx, ebx
sub edx, esi
mov ecx, dword [edx + 0xc]
xor ecx, dword [edi + 0xc]
mov dword [ebx + 0xc], ecx
push ebx
push dword [ebp - 4]
call fcn.00460e60
add esp, 8
add edi, esi
add ebx, esi
sub dword [ebp + 0x10], esi
cmp esi, dword [ebp + 0x10]
jbe 0x45f28f
mov eax, ebx
sub eax, esi
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov edx, ebx
sub edx, esi
mov ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ecx
mov edx, ebx
sub edx, esi
mov ecx, dword [edx + 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], ecx
sub ebx, esi
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], edx
push dword [ebp + 0x10]
push edi
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
call fcn.0045e850
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
sub dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x45f336
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 0x18]
mov ecx, dword [edx]
cmp ecx, dword [ebp - 8]
jae 0x45f399
push dword [ebp + 0x10]
push edi
mov ecx, dword [ebp - 0xc]
add ecx, ebx
add ecx, 0x28
push ecx
call fcn.0045e850
add esp, 0xc
mov eax, dword [ebp + 0x10]
add dword [ebx + 0x38], eax
mov edx, dword [ebp + 0x18]
xor eax, eax
mov dword [edx], eax
xor eax, eax
jmp 0x45f47b
cmp esi, edi
jne 0x45f3a7
mov eax, 0x1001
jmp 0x45f47b
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
push edx
push edi
mov ecx, dword [ebp - 0xc]
add ecx, ebx
add ecx, 0x28
push ecx
call fcn.0045e850
add esp, 0xc
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
add edi, ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
sub dword [ebp + 0x10], eax
lea edx, [ebx + 0x18]
push edx
push dword [ebp - 4]
call fcn.00460e60
add esp, 8
mov ecx, dword [ebx + 0x18]
xor ecx, dword [ebx + 0x28]
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
xor eax, dword [ebx + 0x2c]
mov dword [esi + 4], eax
mov edx, dword [ebx + 0x20]
xor edx, dword [ebx + 0x30]
mov dword [esi + 8], edx
mov ecx, dword [ebx + 0x24]
xor ecx, dword [ebx + 0x34]
mov dword [esi + 0xc], ecx
add esi, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jb 0x45f453
lea edx, [ebx + 0x18]
push edx
push dword [ebp - 4]
call fcn.00460e60
add esp, 8
mov ecx, dword [edi]
xor ecx, dword [ebx + 0x18]
mov dword [esi], ecx
mov eax, dword [edi + 4]
xor eax, dword [ebx + 0x1c]
mov dword [esi + 4], eax
mov edx, dword [edi + 8]
xor edx, dword [ebx + 0x20]
mov dword [esi + 8], edx
mov ecx, dword [edi + 0xc]
xor ecx, dword [ebx + 0x24]
mov dword [esi + 0xc], ecx
add edi, dword [ebp - 8]
add esi, dword [ebp - 8]
mov eax, dword [ebp - 8]
sub dword [ebp + 0x10], eax
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 8]
jae 0x45f40e
push dword [ebp + 0x10]
push edi
lea ecx, [ebx + 0x28]
push ecx
call fcn.0045e850
add esp, 0xc
mov eax, dword [ebx + 0x38]
and eax, 0xf0000000
add eax, dword [ebp + 0x10]
mov dword [ebx + 0x38], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
sub dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret