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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd418
cmp edx, dword [eax]
je 0x7c64af
add eax, 8
inc ecx
cmp eax, 0x7cd4a8
jl 0x7c64a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd418]
jne 0x7c65dd
mov eax, dword [0xbcfdb4]
cmp eax, 1
je 0x7c65b7
test eax, eax
jne 0x7c64e0
cmp dword [0x7cd344], 1
je 0x7c65b7
cmp edx, 0xfc
je 0x7c65dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6517
lea eax, [ebp - 0x1a4]
push 0x7cb540
push eax
call fcn.007c6e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c7300
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c655a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c7300
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cb53c
push edi
call fcn.007c91d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cb520
push eax
call fcn.007c6e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c6e80
lea eax, [ebp - 0xa0]
push 0x7cb51c
push eax
call fcn.007c6e80
push dword [esi + 0x7cd41c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c6e80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cb4f4
push eax
call fcn.007c9144
add esp, 0x2c
pop edi
jmp 0x7c65dd
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd41c]
push 0
push eax
push dword [esi]
call fcn.007c7300
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42e001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c29171d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6ef93a8d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1933cfc
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1933d06
lea esp, [esp - 4]
pushfd
push edx
mov edx, dword [esp + 8]
or edx, 0xffffffff
push esi
mov esi, 1
add edx, esi
pop esi
push ecx
mov ecx, edx
push edx
mov edx, esi
lea esp, [esp - 4]
mov dword [esp], ecx
not ecx
push ecx
or ecx, edx
sub ecx, edx
sub ecx, dword [esp]
add esp, 4
sub ecx, 1
push ecx
mov ecx, dword [esp + 4]
not edx
and edx, ecx
not edx
pop ecx
push ecx
or ecx, edx
sub ecx, edx
sub ecx, dword [esp]
add esp, 4
sub ecx, 1
pop edx
pop edx
mov edx, ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
mov dword [esp + 8], edx
pop edx
popfd
push edx
pushfd
call fcn.019372ff
add edx, 0x35cd
lea esp, [esp - 4]
mov dword [esp], ecx
lea esp, [esp - 4]
mov dword [esp], 0xd38eaaf6
pop ecx
lea esp, [esp - 4]
push edi
mov edi, dword [esp + 4]
push eax
mov eax, edi
push ecx
mov ecx, 0xffffffff
not eax
not ecx
push edx
mov edx, eax
push eax
mov eax, ecx
not edx
not eax
or edx, eax
not edx
pop eax
mov eax, edx
pop edx
not eax
pop ecx
mov edi, eax
pop eax
sub edi, 0xffffffff
xor edi, ecx
mov dword [esp + 4], edi
pop edi
rol dword [esp], 0x10
mov ecx, 0xaaf6d388
push edi
mov edi, ecx
push eax
or eax, 0xffffffff
add eax, 1
sub eax, edi
mov edi, eax
pop eax
push edx
mov edx, dword [esp + 8]
push edx
lea esp, [esp - 4]
mov dword [esp], ecx
mov ecx, edx
push edx
mov edx, edi
push ecx
or ecx, 0xffffffff
sub ecx, 0xffffffff
push edx
push ecx
not edx
not ecx
and edx, ecx
or edx, dword [esp]
pop ecx
push edx
mov edx, dword [esp + 8]
push edx
not dword [esp]
and edx, ecx
or dword [esp], edx
pop edx
pop ecx
not edx
push ebx
Function at 0x403d50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403e10
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x403300
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
mov dword [0x58e720], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push 0
call esi
push eax
call fcn.004385cf
test eax, eax
jne 0x40333d
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x58eaac], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x40336b
push str.IsWow64Process
push str.kernel32
call esi
push eax
call edi
mov dword [0x58eab0], eax
mov dword [0x58eaac], 1
cmp dword [0x58eaa8], 0
jne 0x403394
push str.IsWow64Process2
push str.kernel32
call esi
push eax
call edi
mov dword [0x58eab4], eax
mov dword [0x58eaa8], 1
jmp 0x403399
mov eax, dword [0x58eab4]
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x403404
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [0x58eab4]
mov esi, dword [ebp - 4]
mov eax, 0x14c
cmp si, ax
je 0x403429
mov eax, 0x8664
cmp si, ax
je 0x40344b
mov eax, 0xaa64
cmp si, ax
je 0x40344b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, esi
mov edx, eax
call fcn.004143a0
push eax
push str.Unsupported_platform__s
push edx
call fcn.00401a80
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x58eab0], esi
je 0x4033c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push eax
call dword [0x58eab0]
cmp dword [ebp - 8], esi
je 0x403429
mov esi, 0x8664
jmp 0x4033c4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0x402d00
push eax
push 0x66
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp + 8]
call fcn.004048a0
mov edx, dword [ebp + 0x14]
lea eax, [ebp + 8]
mov ecx, dword [ebp + 0x10]
push eax
push esi
call fcn.00404e40
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
cmp dword [esi - 0xc], 0
je 0x403486
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push esi
push 0x479c58
push eax
call fcn.00401a80
add esp, 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4034ca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x471758
jne 0x4034d5
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4034d5
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call edx
jmp 0x4034ca
Function at 0x403e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x403e59
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403e6f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403e66
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403ea2
nop
cmp esi, ecx
jae 0x403e66
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403e90
cmp esi, ecx
jae 0x403e66
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x40402d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40402d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40402d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x403fc3
cmp esi, ecx
jae 0x40402d
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x403fb1
cmp esi, ecx
jae 0x40402d
movzx eax, word [esi]
test ax, ax
je 0x40402d
mov edx, dword [ebx]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x403ff6
push edi
mov ecx, ebx
call fcn.00404670
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x403ff9
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00453ef8
push eax
call fcn.00403ec0
mov ecx, dword [ebx]
add esp, 0x14
cmp edi, dword [ecx - 8]
jg 0x404036
mov dword [ecx - 0xc], edi
xor edx, edx
mov ecx, dword [ebx]
lea eax, [edx + 1]
mov word [ecx + edi*2], dx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.00404830
int3
Function at 0x404050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x40414d
test eax, 0xffff0000
jne 0x40414d
push ebx
push edi
movzx edi, ax
push edi
call fcn.00438003
mov ebx, eax
test ebx, ebx
je 0x404149
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x404149
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404149
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404148
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4040e5
cmp esi, ecx
jae 0x404148
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4040d3
cmp esi, ecx
jae 0x404148
movzx eax, word [esi]
test ax, ax
je 0x404148
mov ebx, dword [ebp - 4]
mov edi, eax
mov dword [ebp + 8], eax
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x40411b
push edi
mov ecx, ebx
call fcn.00404670
mov edx, dword [ebx]
movzx eax, word [esi]
jmp 0x40411e
mov eax, dword [ebp + 8]
movzx ecx, ax
lea eax, [esi + 2]
push ecx
push eax
push edi
push edx
call fcn.00453ef8
push eax
call fcn.00403ec0
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x404155
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + edi*2], cx
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00404830
int3
Function at 0x4060b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x495574]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov eax, edx
mov dword [esp + 0x10], ecx
mov edx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov bl, 1
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
test bl, bl
je 0x40619f
lea ecx, [esp + 0x18]
push ecx
push dword [eax + esi*4]
call edx
cmp eax, 0xffffffff
je 0x406135
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x18], 0x10
jne 0x406135
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406135
mov eax, dword [esp + 0xc]
push dword [eax + esi*4]
push str.Couldnt_delete_old_version_of_file__s_r_nMake_sure_you_have_full_write_access_to_the_Windows_System_directory
push edi
call fcn.00403a80
add esp, 0xc
xor bl, bl
mov eax, dword [esp + 0xc]
inc esi
mov edx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp esi, 1
jl 0x4060e8
test bl, bl
je 0x406199
mov esi, dword [esp + 0x14]
xor edi, edi
sub eax, esi
mov dword [esp + 0xc], eax
test bl, bl
je 0x406195
push dword [eax + esi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x406184
mov eax, dword [esp + 0xc]
xor bl, bl
push dword [eax + esi]
push dword [esi]
push str.Couldnt_rename_temp_file__s_to__s_r_nMake_sure_you_have_full_write_access_to_the_Windows_System_directory
push dword [esp + 0x1c]
call fcn.00403a80
add esp, 0x10
mov eax, dword [esp + 0xc]
inc edi
add esi, 4
cmp edi, 1
jl 0x406155
test bl, bl
jne 0x4061db
mov edi, dword [esp + 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push dword [esi]
call edx
cmp eax, 0xffffffff
je 0x4061db
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x18], 0x10
jne 0x4061db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4061db
push dword [esi]
push str._r_nWarning:_couldnt_delete_file__s
push edi
call fcn.00407030
add esp, 0xc
mov ecx, dword [esp + 0x26c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044c2a6
mov esp, ebp
pop ebp
ret
Function at 0x4085d0
Capabilities:
Terminate process

Disassembly:
push esi
push str.1.0.3__15_Feb_2005
mov esi, ecx
push esi
push str._n_nbzip2_libbzip2:_internal_error_number__d._nThis_is_a_bug_in_bzip2_libbzip2___s._nPlease_report_it_to_me_at:_jseward_bzip.org.__If_this_happened_nwhen_you_were_using_some_program_which_uses_libbzip2_as_a_ncomponent__you_should_also_report_this_bug_to_the_author_s__nof_that_program.__Please_make_an_effort_to_report_this_bug__ntimely_and_accurate_bug_reports_eventually_lead_to_higher_nquality_software.__Thanks.__Julian_Seward__15_February_2005._n_n
push 2
call fcn.00454dea
add esp, 4
push eax
call fcn.004085b0
add esp, 0x10
cmp esi, 0x3ef
jne 0x408611
push str._n_A_special_note_about_internal_error_number_1007__n_nExperience_suggests_that_a_common_cause_of_i.e._1007_nis_unreliable_memory_or_other_hardware.__The_1007_assertion_njust_happens_to_cross_check_the_results_of_huge_numbers_of_nmemory_reads_writes__and_so_acts__unintendedly__as_a_stress_ntest_of_your_memory_system._n_nI_suggest_the_following:_try_compressing_the_file_again__npossibly_monitoring_progress_in_detail_with_the__vv_flag._n_n_If_the_error_cannot_be_reproduced__and_or_happens_at_different_n__points_in_compression__you_may_have_a_flaky_memory_system._n__Try_a_memory_test_program.__I_have_used_Memtest86_n___www.memtest86.com_.__At_the_time_of_writing_it_is_free__GPLd_._n__Memtest86_tests_memory_much_more_thorougly_than_your_BIOSs_n__power_on_test__and_may_find_failures_that_the_BIOS_doesnt._n_n_If_the_error_can_be_repeatably_reproduced__this_is_a_bug_in_n__bzip2__and_I_would_very_much_like_to_hear_about_it.__Please_n__let_me_know__and__ideally__save_a_copy_of_the_file_causing_the_n__problem____without_which_I_will_be_unable_to_investigate_it._n_n
push 2
call fcn.00454dea
add esp, 4
push eax
call fcn.004085b0
add esp, 8
push 3
call fcn.00454d0c
int3

Function at 0x409530
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov edx, dword [esi + 0x9c]
cmp edx, 0xffffffff
jne 0x409551
pop esi
or eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edx + ebx]
cmp eax, 0x40
jbe 0x4095c0
push edi
lea edi, [esi + 0x40]
cmp edx, 0x40
ja 0x4095a6
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi], 0
mov dword [edi + 8], 0x67452301
mov dword [edi + 0xc], 0xefcdab89
mov dword [edi + 0x10], 0x98badcfe
mov dword [edi + 0x14], 0x10325476
mov dword [edi + 0x18], 0xc3d2e1f0
mov edx, dword [esi + 0x9c]
push edi
call fcn.0040d8b0
mov ecx, dword [ebp - 4]
add esp, 4
push edi
mov edx, ebx
call fcn.0040d8b0
add dword [esi + 0x9c], ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
lea eax, [edx + esi]
push eax
call fcn.0044dec0
add dword [esi + 0x9c], ebx
add esp, 0xc
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4095e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x9c]
lea esi, [edi + 0x40]
cmp ecx, 0xffffffff
je 0x4096bb
cmp ecx, 0x40
jbe 0x409620
mov edx, esi
mov ecx, edi
call fcn.0040db70
mov dword [edi + 0x9c], 0x14
mov ecx, 0x14
mov eax, 0x40
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.0044e9c0
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [str.6666666666666666]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [edi + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
pxor xmm2, xmm0
movups xmmword [edi + 0x30], xmm2
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.0040d8b0
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [edi + 0x9c], 0xffffffff
test ebx, ebx
je 0x4096cc
push esi
mov edx, ebx
mov ecx, eax
call fcn.0040d8b0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4096e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x495574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [edi + 0x9c], 0xffffffff
je 0x409710
push edi
xor edx, edx
xor ecx, ecx
call fcn.004095e0
add esp, 4
push esi
lea esi, [edi + 0x40]
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0040db70
movups xmm0, xmmword [edi]
mov edx, 0x40
mov ecx, edi
movaps xmm2, xmmword [0x48aea0]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi], xmm1
push esi
movups xmm0, xmmword [edi + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [edi + 0x10], xmm1
movups xmm0, xmmword [edi + 0x20]
pxor xmm0, xmm2
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
pxor xmm2, xmm0
movups xmmword [edi + 0x30], xmm2
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
call fcn.0040d8b0
push esi
mov edx, 0x14
lea ecx, [ebp - 0x18]
call fcn.0040d8b0
add esp, 8
lea ecx, [ebp - 0x18]
mov edx, esi
call fcn.0040db70
pop esi
test ebx, ebx
je 0x4097c6
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.0044dec0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0044c2a6
mov esp, ebp
pop ebp
ret
Function at 0x40d680
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x495574]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x154], edi
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
lea esi, [esi + 4]
mov eax, ecx
rol ecx, 8
ror eax, 8
and ecx, 0xff00ff
and eax, 0xff00ff00
or eax, ecx
mov dword [ebp + edx*4 - 0x144], eax
inc edx
cmp edx, 0x10
jb 0x40d6a3
lea eax, [ebp - 0x13c]
mov edx, 0x40
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x40d6d5
mov ecx, dword [ebp - 0x154]
mov eax, dword [edi + 8]
mov esi, eax
mov ebx, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
mov dword [ebp - 0x158], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], edx
nop dword [eax]
mov ecx, ebx
mov edx, esi
not ecx
rol esi, 5
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x150]
add esi, ecx
add eax, 0x5a827999
mov ecx, dword [ebp - 0x14c]
add esi, dword [ebp + ecx*4 - 0x144]
inc ecx
add esi, eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
ror edi, 2
mov ebx, edx
cmp ecx, 0x14
jb 0x40d720
mov edx, 0x14
nop dword [eax]
xor eax, edi
mov ecx, esi
xor eax, ebx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x150]
add esi, dword [ebp + edx*4 - 0x144]
add eax, 0x6ed9eba1
add esi, eax
inc edx
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
ror edi, 2
mov ebx, ecx
cmp edx, 0x28
jb 0x40d780
mov dword [ebp - 0x14c], 0x28
nop word [eax + eax]
mov ecx, edi
mov edx, esi
xor ecx, ebx
rol esi, 5
add esi, dword [ebp - 0x150]
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x14c]
add ecx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, edi
mov edi, ebx
add esi, ecx
mov ecx, dword [ebp - 0x148]
mov ebx, edx
mov edx, dword [ebp - 0x14c]
inc edx
ror edi, 2
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
cmp edx, 0x3c
jb 0x40d7d0
mov edx, 0x3c
nop
xor eax, edi
mov dword [ebp - 0x14c], esi
xor eax, ebx
rol esi, 5
add eax, 0xca62c1d6
add esi, ecx
add eax, dword [ebp + edx*4 - 0x144]
inc edx
mov ecx, dword [ebp - 0x148]
add esi, eax
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0x14c]
ror edi, 2
mov dword [ebp - 0x148], eax
cmp edx, 0x50
jb 0x40d830
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
add eax, esi
add dword [edx + 0x10], edi
add dword [edx + 0x18], ecx
mov ecx, dword [ebp - 4]
mov dword [edx + 8], eax
xor ecx, ebp
mov eax, ebx
add dword [edx + 0xc], eax
mov eax, dword [ebp - 0x148]
add dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
call fcn.0044c2a6
mov esp, ebp
pop ebp
ret