joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push esi
mov esi, ebx
push edi
mov edi, edx
test ecx, ecx
jne 0x40605a
xor eax, eax
jmp 0x40614f
lea eax, [ebp - 0x10]
push eax
push eax
push eax
push dword [ecx + 8]
mov eax, dword [ecx + 0x18]
push str.audiomode:i:0_r_nredirectprinters:i:1_r_nredirectcomports:i:0_r_nredirectsmartcards:i:1_r_nredirectclipboard:i:1_r_nredirectposdevices:i:0_r_nautoreconnection_enabled:i:1_r_nauthentication_level:i:2_r_nprompt_for_credentials:i:0_r_nnegotiate_security_layer:i:1_r_nremoteapplicationmode:i:0_r_nalternate_shell:s:_r_nshell_working_directory:s:_r_ngatewayhostname:s:_r_ngatewayusagemethod:i:4_r_ngatewaycredentialssource:i:4_r_ngatewayprofileusagemethod:i:0_r_npromptcredentialonce:i:0_r_ngatewaybrokeringtype:i:0_r_nuse_redirection_server_name:i:0_r_nrdgiskdcproxy:i:0_r_nkdcproxyname:s:_r_nusername:s:_s_r_n
push dword [ecx + 0x10]
and eax, 1
push str.session_bpp:i:32_r_ncompression:i:1_r_nkeyboardhook:i:2_r_naudiocapturemode:i:0_r_nvideoplaybackmode:i:1_r_nconnection_type:i:7_r_nnetworkautodetect:i:1_r_nbandwidthautodetect:i:1_r_ndisplayconnectionbar:i:1_r_nenableworkspacereconnect:i:0_r_ndisable_wallpaper:i:0_r_nallow_font_smoothing:i:0_r_nallow_desktop_composition:i:0_r_ndisable_full_window_drag:i:1_r_ndisable_menu_anims:i:1_r_ndisable_themes:i:0_r_ndisable_cursor_setting:i:0_r_nbitmapcachepersistenable:i:1_r_nfull_address:s:_s_r_n
push eax
push str.screen_mode_id:i:2_r_nuse_multimon:i:_d_r_n
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00423860
lea eax, [ebp - 0xc]
push eax
push eax
push eax
mov eax, dword [0x5514ec]
add eax, 0x384
push eax
push str._sSessions
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00423860
add esp, 0x48
push dword [ebp - 0xc]
push ebx
call fcn.0041da60
lea eax, [ebp - 0xc]
push eax
push eax
push eax
mov eax, dword [0x5514ec]
push edi
add eax, 0x384
push eax
push str._sSessions_s.rdp
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00423860
push ebx
push ebx
push 2
push ebx
push 3
push 0x40000000
push dword [ebp - 0xc]
call fcn.0041dce0
mov edi, eax
add esp, 0x44
cmp edi, 0xffffffff
je 0x40611a
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4060f7
push ebx
lea eax, [ebp - 8]
sub ecx, edx
push eax
push ecx
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
cmp dword [ebp - 0x10], ebx
je 0x406135
lea eax, [ebp - 0x10]
push eax
call fcn.0041f010
push dword [ebp - 0x10]
call fcn.0048690c
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0xc], ebx
je 0x40614d
lea eax, [ebp - 0xc]
push eax
call fcn.0041f010
push dword [ebp - 0xc]
call fcn.0048690c
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
leave
ret
Function at 0x406305
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov dword [ebp - 4], ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x14], edx
and dword [ebp - 0x1c], ecx
and dword [ebp - 0x18], ecx
push edi
push 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
call fcn.00486927
mov esi, eax
pop ecx
test esi, esi
je 0x4064e9
mov edi, esi
xor eax, eax
mov ecx, edi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x4064e9
cmp dword [ebp + 8], ebx
mov edx, dword [ebp - 0x14]
push 0x28
pop edi
cmovne edi, dword [ebp + 8]
cmp byte [edx], bl
je 0x4064de
mov ecx, ebx
mov eax, dword [0x5514ec]
test byte [eax + 0x5dc], 8
jne 0x40647d
movzx eax, byte [edx]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp - 0x10]
movzx eax, ax
mov dword [ebp - 0x20], eax
movzx eax, ax
mov edx, eax
mov dword [ebp - 0xc], eax
shr edx, 8
and edx, 1
mov dword [ebp - 0x24], edx
cmp edx, ecx
je 0x4063bb
lea eax, [ecx + ecx]
mov ecx, esi
push eax
push 0x10
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add esp, 0xc
add ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov edx, dword [ebp - 0x18]
mov ecx, eax
shr ecx, 9
and ecx, 1
mov dword [ebp - 0x28], ecx
cmp ecx, edx
je 0x4063f0
lea eax, [edx + edx]
mov ecx, esi
push eax
push 0x11
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add esp, 0xc
add ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 0x1c]
shr eax, 0xa
and eax, 1
mov dword [ebp - 0xc], eax
cmp eax, ecx
je 0x406420
lea eax, [ecx + ecx]
mov ecx, esi
push eax
push 0x12
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add esp, 0xc
add ebx, eax
mov dword [ebp - 8], ebx
mov bl, byte [ebp - 0x20]
mov ecx, esi
push 0
push ebx
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add dword [ebp - 8], eax
mov ecx, esi
push 2
push ebx
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
mov ebx, dword [ebp - 8]
add esp, 0x18
mov edx, dword [ebp - 0x14]
add ebx, eax
mov eax, dword [ebp - 0x28]
inc edx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
cmp byte [edx], 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
jne 0x40635e
test ecx, ecx
je 0x40649c
push 2
push 0x10
mov ecx, esi
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add esp, 0xc
add ebx, eax
cmp dword [ebp - 0x18], 0
je 0x4064bd
push 2
push 0x11
mov ecx, esi
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add esp, 0xc
add ebx, eax
cmp dword [ebp - 0x1c], 0
je 0x4064de
push 2
push 0x12
mov ecx, esi
call fcn.0040615e
mov ecx, dword [ebp - 4]
mov edx, esi
push edi
call fcn.004062af
add esp, 0xc
add ebx, eax
mov ecx, esi
call fcn.00406256
mov eax, ebx
jmp 0x4064eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ade
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x556a20
mov esi, ecx
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x406b89
test esi, esi
je 0x406b82
cmp dword [esi + 0x10], edi
mov eax, 0x4b1aef
cmovne eax, dword [esi + 0x10]
cmp byte [eax], 0
jne 0x406b18
test byte [esi + 0x18], 2
je 0x406b82
cmp dword [esi + 0x2c], edi
jne 0x406b5a
and dword [esi + 0x1c], 0xfffffff7
cmp dword [esi + 0x64], edi
je 0x406b40
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406b40
push esi
push dword [esi + 0x64]
call fcn.004065fa
test eax, eax
je 0x406b4c
push esi
push fcn.004065fa
call dword [sym.imp.USER32.dll_EnumWindows]
test byte [esi + 0x1c], 8
jne 0x406b5a
cmp dword [esi + 0x24], edi
je 0x406b5a
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x24]
cmp dword [esi + 0x28], eax
je 0x406b74
mov eax, dword [0x5514ec]
xor edi, edi
or dword [eax + 0x5dc], 0x10
inc edi
mov eax, dword [esi + 0x24]
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x406b8b
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x406f3a
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4070d8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
cmp dword [0x5534ac], ebx
je 0x406f7b
push 0x5534ac
call fcn.0041f010
push dword [0x5534ac]
call fcn.0048690c
pop ecx
pop ecx
mov dword [0x5534ac], ebx
cmp dword [0x55348c], ebx
je 0x406fa0
push 0x55348c
call fcn.0041f010
push dword [0x55348c]
call fcn.0048690c
pop ecx
pop ecx
mov dword [0x55348c], ebx
mov eax, dword [0x5535ec]
test eax, eax
je 0x406fb6
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x5535ec], ebx
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov edi, dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x407016
push 1
call edi
mov ebx, eax
test ebx, ebx
je 0x407016
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x407016
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406fe4
xor eax, eax
sub ecx, edx
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.00486927
pop ecx
mov dword [0x5534ac], eax
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x407005
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0xf
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4070a7
push 0xf
call edi
mov ebx, eax
test ebx, ebx
je 0x4070a7
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4070a7
mov edx, dword [esi]
mov ecx, 0x4b1aef
add edx, esi
cmovne ecx, edx
cmp byte [ecx], 0
je 0x40707a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x407056
sub ecx, dword [ebp - 8]
mov eax, 0x4b1aef
sar ecx, 1
lea edx, [edx + ecx*2]
add edx, 2
cmovne eax, edx
cmp byte [eax], 0
jne 0x40704e
sub edx, esi
add edx, 2
push edx
mov dword [0x553358], edx
call fcn.00486927
push dword [0x553358]
mov dword [0x55348c], eax
push esi
push eax
call fcn.00480c20
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 2
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4070cf
push 2
call edi
test eax, eax
je 0x4070cf
push 2
call edi
push eax
xor eax, eax
push eax
call fcn.0042a7c0
pop ecx
pop ecx
mov dword [0x5535ec], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4070da
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407219
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, dword [0x5534ac]
test ecx, ecx
je 0x407154
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4070fe
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4071af
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x4071af
mov ecx, dword [0x5534ac]
mov esi, 0x4b1aef
test ecx, ecx
cmovne esi, ecx
mov al, byte [esi]
inc esi
mov byte [edx], al
inc edx
test al, al
jne 0x40713e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
jmp 0x4071a9
cmp dword [0x55348c], 0
je 0x40719d
push dword [0x553358]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4071af
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4071af
push dword [0x553358]
push dword [0x55348c]
push eax
call fcn.00480c20
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xf
jmp 0x4071a9
mov eax, dword [0x5535ec]
test eax, eax
je 0x407211
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
xor esi, esi
cmp dword [0x5534ac], esi
je 0x4071d6
push 0x5534ac
call fcn.0041f010
push dword [0x5534ac]
call fcn.0048690c
pop ecx
pop ecx
mov dword [0x5534ac], esi
cmp dword [0x55348c], esi
je 0x4071fb
push 0x55348c
call fcn.0041f010
push dword [0x55348c]
call fcn.0048690c
pop ecx
pop ecx
mov dword [0x55348c], esi
mov eax, dword [0x5535ec]
test eax, eax
je 0x407211
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x5535ec], esi
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret
Function at 0x4082ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, edx
mov dword [ebp - 8], ecx
push edi
test esi, esi
je 0x4082dc
cmp dword [esi + 0x10], 0
mov eax, 0x4b1aef
cmovne eax, dword [esi + 0x10]
cmp byte [eax], 0
jne 0x4082e2
test byte [esi + 0x18], 2
jne 0x4082e2
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
xor eax, eax
pop edi
pop esi
leave
ret
xor edi, edi
push ebx
cmp dword [esi + 0x2c], edi
je 0x4082f4
cmp dword [ebp + 8], edi
jne 0x4082f4
lea ebx, [esi + 0x1c]
jmp 0x408317
push 0x556a20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x1c]
mov dword [esi + 0x2c], 2
and dword [ebx], 0xffffffcf
push 0x556a20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 8]
push 1
push ebx
call fcn.004223b0
and dword [ebx], 0xfffffff9
push dword [ebp + 0x10]
mov dword [esi + 0x20], edi
mov eax, dword [0x5514ec]
add eax, 0x5dc
push 4
push eax
call fcn.004223b0
push dword [ebp + 0x14]
mov eax, dword [0x5514ec]
add eax, 0x5dc
push 0x80
push eax
call fcn.004223b0
add esp, 0x24
cmp dword [ebp + 0xc], edi
je 0x4083e7
push esi
push 0x406d9b
call dword [sym.imp.USER32.dll_EnumWindows]
call fcn.00435f20
test eax, eax
je 0x4083e7
call fcn.00435f20
cmp dword [eax], edi
je 0x4083e7
mov eax, dword [0x4edee0]
test eax, eax
je 0x408390
mov eax, dword [eax + 0x190]
jmp 0x408395
mov eax, dword [0x4edee4]
mov dword [ebp - 4], eax
call fcn.00435f20
test eax, eax
je 0x4083aa
call fcn.00435f20
mov ecx, dword [eax]
jmp 0x4083ac
mov ecx, edi
cmp dword [ebp + 8], edi
mov edx, str.Logging_on
push str._s_session__s____s
push dword [esi + 0x10]
mov eax, str.Activating
push dword [esi + 4]
cmove eax, edx
push eax
push str._s_session__s____s
push dword [0x4edee0]
push dword [ebp - 4]
push edi
push 0x723
push str.D:MyProjectsProPilotTestMain.c
push edi
call ecx
add esp, 0x2c
push esi
push 0x40728c
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [ebx]
mov eax, dword [esi + 0x24]
shr ebx, 1
and ebx, 1
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], edi
je 0x40840b
cmp dword [esi + 0x2c], 2
je 0x408419
mov eax, dword [0x5514ec]
test byte [eax + 0x5dc], 8
je 0x40842d
mov dword [esi + 0x2c], edi
cmp dword [ebp + 0x10], edi
jne 0x40842d
push edi
push 0x405a09
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 8]
call fcn.0040b9a5
mov eax, ebx
pop ebx
jmp 0x4082de
Function at 0x40da81
Capabilities:
Log keystrokes via application hook

Disassembly:
push esi
push edi
xor edi, edi
push edi
push edi
push 0x40d77e
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov esi, eax
test esi, esi
jne 0x40db04
call fcn.00435f20
test eax, eax
je 0x40db85
call fcn.00435f20
cmp dword [eax], edi
je 0x40db85
mov eax, dword [0x4edee0]
test eax, eax
je 0x40dac5
mov esi, dword [eax + 0x190]
jmp 0x40dacb
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x40dadd
call fcn.00435f20
mov eax, dword [eax]
jmp 0x40dadf
mov eax, edi
mov ecx, str.Hook_failed
push ecx
push ecx
push dword [0x4edee0]
push esi
push edi
push 0x113b
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
jmp 0x40db85
mov eax, dword [0x5523d8]
test eax, eax
je 0x40db7f
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
jne 0x40db7f
call fcn.00435f20
test eax, eax
je 0x40db76
call fcn.00435f20
cmp dword [eax], edi
je 0x40db76
mov eax, dword [0x4edee0]
test eax, eax
je 0x40db3b
mov edi, dword [eax + 0x190]
jmp 0x40db41
mov edi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x40db53
call fcn.00435f20
mov eax, dword [eax]
jmp 0x40db55
xor eax, eax
mov ecx, str.Unhook_failed
push ecx
push ecx
push dword [0x4edee0]
push edi
push 0
push 0x1140
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
push esi
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
jmp 0x40db85
mov dword [0x5523d8], esi
pop edi
pop esi
ret
Function at 0x40e3dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push eax
push 0x20019
xor esi, esi
mov dword [ebp - 0x134], 0x12c
push esi
mov eax, str.Software_s
push eax
push str.ClassesApplicationsRdpZapper.exe
push eax
lea eax, [ebp - 0x130]
push 0x12b
push eax
call fcn.0041ff80
add esp, 0x14
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e46d
lea eax, [ebp - 0x134]
push eax
push edi
push esi
push esi
push str.FriendlyAppName
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x138]
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0047f41c
leave
ret
Function at 0x417520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
call fcn.004811a0
xor ebx, ebx
add esp, 0xc
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], ebx
jle 0x4175ae
lea ecx, [edi - 1]
lea edx, [esi + 1]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push esi
mov al, byte [ebx + eax]
xor al, byte [esi]
mov byte [ebp - 1], al
call fcn.00480c20
add esp, 0xc
mov byte [edi + esi - 1], 0
test edi, edi
jle 0x41759f
mov eax, dword [ebp + 8]
mov bl, byte [ebp - 1]
sub eax, esi
mov dword [ebp - 8], edi
mov edi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov cl, byte [edi + esi]
mov dl, bl
call fcn.004175b3
xor byte [esi], al
inc esi
sub dword [ebp - 8], 1
jne 0x417583
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
inc ebx
lea ecx, [edi - 1]
lea edx, [esi + 1]
mov dword [ebp - 0xc], ebx
cmp ebx, dword [ebp - 0x10]
jl 0x417551
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4175b3
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 7
mov ch, cl
mov byte [ebp - 1], dl
pop eax
mov byte [ebp - 2], ch
xor bh, bh
mov dword [ebp - 8], eax
mov cl, al
mov bl, dl
shr bl, cl
movzx eax, ch
and bl, 1
movzx edx, bl
imul edx, eax
mov al, bh
shr al, 7
add bh, bh
movzx eax, al
imul ecx, eax, 0x1d
mov eax, dword [ebp - 8]
mov ch, byte [ebp - 2]
xor dl, cl
xor bh, dl
mov dl, byte [ebp - 1]
sub eax, 1
mov dword [ebp - 8], eax
jns 0x4175c9
mov al, bh
pop ebx
leave
ret
Function at 0x417938
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx*4 + 0x4b1ce0]
push edi
shl esi, 3
or esi, edx
push 0xa
mov edx, esi
pop edi
mov eax, edx
add edx, edx
sar eax, 9
imul ecx, eax, 0x537
xor edx, ecx
sub edi, 1
jne 0x417950
shl esi, 0xa
or esi, edx
push 5
xor esi, 0x5412
pop ebx
mov ecx, edi
mov eax, esi
sar eax, cl
mov ecx, 0x553618
and al, 1
movzx eax, al
push eax
push edi
push 8
pop edx
call fcn.0041809e
inc edi
pop ecx
pop ecx
cmp edi, ebx
jle 0x417972
mov eax, esi
mov ecx, 0x553618
sar eax, 6
and al, 1
movzx eax, al
push eax
push 7
push 8
pop edi
mov edx, edi
call fcn.0041809e
mov eax, esi
mov edx, edi
sar eax, 7
mov ecx, 0x553618
and al, 1
movzx eax, al
push eax
push edi
call fcn.0041809e
mov eax, esi
mov ecx, 0x553618
sar eax, 8
and al, 1
movzx eax, al
push eax
push edi
push 7
pop edx
call fcn.0041809e
add esp, 0x18
push 9
pop edi
mov ecx, edi
mov eax, esi
sar eax, cl
mov edx, ebx
and al, 1
mov ecx, 0x553618
movzx eax, al
push eax
push 8
call fcn.0041809e
inc edi
dec ebx
pop ecx
pop ecx
cmp ebx, 0xffffffff
jg 0x4179e6
movzx eax, byte [0x553618]
xor ebx, ebx
mov dword [ebp - 4], eax
lea edi, [eax - 1]
mov ecx, ebx
mov eax, esi
sar eax, cl
mov edx, edi
and al, 1
mov ecx, 0x553618
movzx eax, al
push eax
push 8
call fcn.0041809e
inc ebx
dec edi
pop ecx
pop ecx
cmp ebx, 8
jl 0x417a18
mov ebx, dword [ebp - 4]
push 8
pop edi
mov ecx, edi
mov eax, esi
sar eax, cl
mov ecx, 0x553618
and al, 1
movzx eax, al
push eax
lea eax, [ebx - 0xf]
add eax, edi
push eax
push 8
pop edx
call fcn.0041809e
inc edi
pop ecx
pop ecx
cmp edi, 0xf
jl 0x417a41
push 1
lea eax, [ebx - 8]
mov ecx, 0x553618
push eax
push 8
pop edx
call fcn.0041809e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418318
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x4ccbf8]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x18]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc0], eax
mov eax, ebx
mov dword [esp + 0x1c], edx
movlpd qword [esp + 0xc8], xmm0
movlpd qword [esp + 0xd0], xmm0
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0xe4], ebx
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
movlpd qword [esp + 0x10], xmm0
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xd8], edi
cmp ecx, ebx
jb 0x4183f6
ja 0x4183c6
cmp edi, ebx
jbe 0x4183f6
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add esi, dword [edx + eax*8]
adc ecx, dword [edx + eax*8 + 4]
inc eax
mov dword [esp + 0x18], eax
cdq
cmp edx, dword [ebp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
jb 0x4183ce
ja 0x4183fe
cmp dword [esp + 0x10], edi
jb 0x4183ce
jmp 0x4183fe
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push ecx
push ecx
push esi
lea edx, [esp + 0x12c]
lea ecx, [esp + 0x44]
call fcn.004184da
add esp, 0xc
mov dword [esp + 0x24], 0x67452301
lea esi, [esp + 0x24]
mov dword [esp + 0x28], 0xefcdab89
lea edi, [esp + 0x10c]
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
push 5
pop ecx
mov dword [esp + 0x34], 0xc3d2e1f0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0xb8]
mov edi, dword [esp + 0xbc]
shrd esi, edi, 6
shr edi, 6
cmp edi, ebx
jb 0x418489
ja 0x41846b
cmp esi, ebx
jbe 0x418489
lea edx, [esp + 0x10c]
lea ecx, [esp + 0x38]
call fcn.004189b4
inc ebx
mov eax, ebx
cdq
cmp edx, edi
jb 0x41846b
ja 0x418489
cmp eax, esi
jb 0x41846b
mov edi, dword [esp + 0x20]
lea esi, [esp + 0x10c]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret