joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f5e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00411175
mov dword [esi], vtable.boost::gregorian::bad_year.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x445c7a
add edi, 0x28
jmp 0x445c7c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x445c94
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x445cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f5e8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00411175
mov dword [esi], vtable.boost::gregorian::bad_month.0
test edi, edi
mov dword [esp + 0x18], 0
je 0x445d1a
add edi, 0x28
jmp 0x445d1c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
test ecx, ecx
mov dword [esi + 0x2c], ecx
je 0x445d34
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x445e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f623
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.00445b90
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month__.0
je 0x445ec5
lea ebx, [edi + 0x28]
jmp 0x445ec7
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x445ed8
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x445ee8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x445f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f653
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.00445c30
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year__.0
je 0x445f85
lea ebx, [edi + 0x28]
jmp 0x445f87
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x445f98
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x445fa8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x445fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f683
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5675a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov edi, dword [esp + 0x24]
push edi
call fcn.00445cd0
mov dword [esp + 0x1c], 0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_base.0
test edi, edi
mov byte [esp + 0x1c], 1
mov dword [esi], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month__.2.0
mov dword [esi + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month__.1.0
mov dword [esi + 0x3c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month__.0
je 0x446045
lea ebx, [edi + 0x28]
jmp 0x446047
xor ebx, ebx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov edi, dword [ebx + 4]
je 0x446058
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test edi, edi
mov dword [esi + 0x2c], edi
je 0x446068
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov eax, dword [ebx + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [ebx + 0x10]
mov dword [esi + 0x38], edx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x447dd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5675a0]
jne 0x447ddb
repz ret
jmp fcn.0044fa21
Function at 0x44b667
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44b6a4
cmp dword [ebp + 0x14], edi
je 0x44b6a4
cmp ecx, edi
jne 0x44b6ab
call fcn.0044f616
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00447bbc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44b6bf
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44b6e0
cmp ebx, 0xffffffff
je 0x44b6cf
push ebx
push edi
push ecx
call fcn.00449940
add esp, 0xc
cmp esi, edi
je 0x44b68c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44b68c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44b6fc
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44b703
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44b7f4
test word [esi + 0xc], 0x10c
je 0x44b757
mov eax, dword [esi + 4]
test eax, eax
je 0x44b757
jl 0x44b855
cmp ebx, eax
mov edi, ebx
jb 0x44b728
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44b7fc
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00448141
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44b7ec
cmp ebx, dword [ebp - 0xc]
jb 0x44b7c4
cmp dword [ebp - 0xc], 0
je 0x44b781
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44b776
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44b77d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44b78c
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44b78c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44b828
push eax
push dword [ebp - 8]
push esi
call fcn.00458405
pop ecx
push eax
call fcn.004594e0
add esp, 0xc
test eax, eax
je 0x44b867
cmp eax, 0xffffffff
je 0x44b855
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44b7ec
push esi
call fcn.00458dff
cmp eax, 0xffffffff
pop ecx
je 0x44b859
cmp dword [ebp - 4], 0
je 0x44b828
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44b70b
mov eax, dword [ebp + 0x14]
jmp 0x44b6a6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44b813
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00449940
add esp, 0xc
call fcn.0044f616
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44b69c
cmp dword [ebp + 0xc], 0xffffffff
je 0x44b83e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00449940
add esp, 0xc
call fcn.0044f616
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44b69c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44b6a6
or dword [esi + 0xc], 0x10
jmp 0x44b859
Function at 0x4516ac
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x567ec8]
je 0x4516c7
inc edi
cmp edi, 0x17
jb 0x4516b8
cmp edi, 0x17
jae 0x451847
push ebp
push 3
call fcn.0045b672
cmp eax, 1
pop ecx
je 0x451813
push 3
call fcn.0045b672
test eax, eax
pop ecx
jne 0x4516fb
cmp dword [0x56759c], 1
je 0x451813
cmp ebx, 0xfc
je 0x451846
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5756c8
push ebp
call fcn.0044aa81
add esp, 0xc
test eax, eax
je 0x451731
push esi
push esi
push esi
push esi
push esi
call fcn.00447ac0
add esp, 0x14
push 0x104
mov esi, 0x5756e1
push esi
push 0
mov byte [0x5757e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x451775
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044aa81
add esp, 0xc
test eax, eax
je 0x451775
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00447ac0
add esp, 0x14
push esi
call fcn.0044c310
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4517ba
push esi
call fcn.0044c310
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5759dc
push 0x52762c
sub ecx, eax
push ecx
push eax
call fcn.00448d32
add esp, 0x14
test eax, eax
je 0x4517ba
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00447ac0
add esp, 0x14
jmp 0x4517bc
xor esi, esi
push 0x527628
push ebx
push ebp
call fcn.0045a022
add esp, 0xc
test eax, eax
je 0x4517dc
push esi
push esi
push esi
push esi
push esi
call fcn.00447ac0
add esp, 0x14
push dword [edi*8 + 0x567ecc]
push ebx
push ebp
call fcn.0045a022
add esp, 0xc
test eax, eax
je 0x4517fe
push esi
push esi
push esi
push esi
push esi
call fcn.00447ac0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045b4b5
add esp, 0xc
jmp 0x451846
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x451846
cmp ebp, 0xffffffff
je 0x451846
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x567ecc]
push dword [esi]
call fcn.0044c310
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x466a79
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, eax
jne 0x466a9e
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.00464aff
xor al, al
jmp 0x466b43
call fcn.0046629d
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push esi
call fcn.0044b2c8
push esi
call fcn.0044b4e5
push ebx
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.0044b2c8
mov eax, dword [ebp - 4]
add esp, 0x1c
cmp eax, ebx
jg 0x466ad5
push ebx
push ebx
push 0xc
jmp 0x466a8f
inc eax
push eax
call fcn.004440c6
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.0044b903
add esp, 0x14
cmp eax, 1
je 0x466aff
push esi
call fcn.00448953
pop ecx
jmp 0x466a8b
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
cmp byte [esi], bl
mov ecx, esi
mov eax, esi
je 0x466b28
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x466b20
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x466b24
jmp 0x466b23
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x466b0d
push ebx
push ebx
mov byte [eax], bl
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.00448953
xor eax, eax
cmp byte [edi + 0x44], bl
pop ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x469969
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x469992
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x528f98]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [esp + 8]
cmp dword [esp + 8], 0
jg 0x469972
pop esi
ret
Function at 0x47455f
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x474577
xor eax, eax
jmp 0x47465d
mov esi, dword [ebp + 8]
push 0x44
call fcn.00470df9
mov esi, eax
test esi, esi
pop ecx
je 0x474570
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.00472b5b
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00472a25
add esp, 0x14
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00474664
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.00472b5b
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.00474664
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.00472b5b
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.0047455f
add esp, 0x3c
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.00474664
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.00474664
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
and ax, 0xfff7
add esp, 0x20
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47648c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x5675a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5768a8]
test eax, eax
push ebx
push esi
je 0x4764c6
push eax
push 0x5469e0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.00474dbe
add esp, 0x10
jmp 0x47653e
call fcn.004698b2
test eax, eax
mov esi, 0xe6
je 0x476506
lea eax, [ebp - 0x318]
push eax
push esi
call dword [0x574e18]
lea eax, [ebp - 0x318]
push eax
call fcn.00469807
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x476522
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00447dd1
leave
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x218]
push eax
call fcn.0046ced7
jmp 0x4764ee
push ebx
push 0x5469e0
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.00474dbe
push ebx
call fcn.00448430
add esp, 0x14
lea ecx, [ebp - 0x110]
call fcn.0046a192
test eax, eax
jbe 0x476557
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x476557
dec eax
jne 0x47654e
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push edi
push 0xe7
call fcn.00474dbe
mov ecx, edi
call fcn.0046a192
mov esi, eax
lea eax, [edi + esi]
push eax
push 0x14
call fcn.0046eb72
add esp, 0x18
push 0x14
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x476590
mov byte [edi + esi], cl
xor eax, eax
jmp 0x4764f8

Function at 0x4786eb
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5675a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x118], 0x200
call fcn.004762fd
add esp, 0x10
test eax, eax
jne 0x4787ca
lea eax, [ebp - 0x110]
push eax
call fcn.0046eaf6
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x4787c0
call fcn.004698b2
test eax, eax
mov eax, esi
je 0x478784
cmp word [esi], bx
je 0x478765
cmp word [eax], 0x5c
je 0x478762
inc eax
inc eax
cmp word [eax], bx
jne 0x478753
jmp 0x478765
mov word [eax], bx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [0x574dc4]
jmp 0x4787b3
cmp byte [esi], bl
je 0x478796
cmp byte [eax], 0x5c
je 0x478794
inc eax
cmp byte [eax], bl
jne 0x478788
jmp 0x478796
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.00448430
cmp edi, ebx
pop ecx
jne 0x4787ca
mov dword [ebp - 0x118], 0x200
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447dd1
leave
ret
Function at 0x4a5733
Capabilities:
Reference sql statements

Disassembly:
push 0x1c
mov eax, 0x5203fb
call fcn.0044c7ac
push str.DELETE_FROM_moz_places_WHERE_id_IN__SELECT_h.id_FROM_moz_places_h_WHERE_h.id_IN__
lea eax, [ebp - 0x10]
push eax
call fcn.00412c0a
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00411b1c
push 6
push str.__AND
lea eax, [ebp - 0x10]
call fcn.00411b1c
push 0x40
push str._NOT_EXISTS__SELECT_b.id_FROM_moz_bookmarks_b_WHERE_b.fk__h.id_
lea eax, [ebp - 0x10]
call fcn.00411b1c
push 5
push str._AND
lea eax, [ebp - 0x10]
call fcn.00411b1c
push 0x42
push str.NOT_EXISTS__SELECT_a.id_FROM_moz_annos_a_WHERE_a.place_id__h.id__
lea eax, [ebp - 0x10]
call fcn.00411b1c
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
call fcn.004a6c28
lea ecx, [ebp - 0x28]
call fcn.004a6a8b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00410d34
call fcn.0044c884
ret 8

Function at 0x4a5a4a
Capabilities:
Gather firefox profile information

Disassembly:
push 0x30
mov eax, 0x52078d
call fcn.0044c7df
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
je 0x4a5aff
mov eax, dword [ebp + 8]
dec eax
mov byte [ebp - 4], 2
je 0x4a5b32
dec eax
je 0x4a5b08
dec eax
jne 0x4a5aff
push str.Select_id__place_id_from_moz_historyvisits
lea eax, [ebp - 0x34]
call fcn.004a6c28
lea ecx, [ebp - 0x34]
call fcn.004a6a8b
push str.Select_place_id_from_moz_inputhistory
lea eax, [ebp - 0x34]
mov ecx, esi
call fcn.004a6c28
lea ecx, [ebp - 0x34]
call fcn.004a6a8b
push 0x544eb4
lea eax, [ebp - 0x34]
mov ecx, esi
call fcn.004a6c28
lea ecx, [ebp - 0x34]
call fcn.004a6a8b
push str.SELECT_b.id_FROM_moz_bookmarks_b
lea eax, [ebp - 0x34]
mov ecx, esi
call fcn.004a6c28
lea ecx, [ebp - 0x34]
call fcn.004a6a8b
push str.SELECT_a.id_FROM_moz_annos_a
lea eax, [ebp - 0x34]
mov ecx, esi
call fcn.004a6c28
lea ecx, [ebp - 0x34]
call fcn.004a6a8b
mov byte [ebp - 0x11], 1
mov al, byte [ebp - 0x11]
call fcn.0044c884
ret
push str.webappsstore2
call fcn.004a6d80
cmp al, bl
je 0x4a5b1d
push str.SELECT_scope_FROM_webappsstore2_
jmp 0x4a5b37
push str.webappsstore
call fcn.004a6d80
cmp al, bl
je 0x4a5aff
push str.SELECT_domain_FROM_webappsstore_
jmp 0x4a5b37
push str.SELECT_id__name__value__host__path__expiry__isSecure__isHttpOnly_FROM_moz_cookies_
lea eax, [ebp - 0x34]
mov ecx, esi
call fcn.004a6c28
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x11], 1
call fcn.004a6a8b
jmp 0x4a5aff
Function at 0x4a5e37
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x20
mov eax, 0x510ea0
call fcn.0044c7df
mov ebx, ecx
xor esi, esi
push 0x30
mov dword [ebp - 0x20], esi
call fcn.004484be
cmp eax, esi
pop ecx
je 0x4a5e5f
mov edi, eax
call fcn.0043b6d8
mov esi, eax
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
call fcn.0043bac1
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00427699
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 4]
add esp, 0xc
test ecx, ecx
mov dword [ebx + 4], eax
mov dword [ebp - 0x18], ecx
je 0x4a5e98
call fcn.00411e0e
push dword [ebp + 8]
mov eax, dword [ebx]
push eax
call fcn.00412116
or dword [ebp - 0x18], 0xffffffff
and dword [ebp - 4], 0
push 3
push 3
push SysReAllocString
push dword [ebp + 8]
lea esi, [ebp - 0x18]
call fcn.0041c902
test eax, eax
jne 0x4a5ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4a5edb
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
call fcn.0044c884
ret 4
xor edi, edi
push edi
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x220
jne 0x4a5f37
mov byte [ebp + 0xb], 0
mov eax, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [ebp - 0x14]
push ecx
push 8
add eax, 8
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
call esi
test eax, eax
je 0x4a5ecc
mov eax, dword [ebx]
push edi
lea ecx, [ebp - 0x14]
add eax, 0x10
cmp byte [ebp + 0xb], 0
mov dword [ebp - 0x14], edi
push ecx
je 0x4a5f50
push 7
jmp 0x4a5f52
cmp eax, 0x21f
jne 0x4a5f44
mov byte [ebp + 0xb], 1
jmp 0x4a5f01
mov dword [ebp - 0x20], 0xd
jmp 0x4a5ecc
push 8
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4a5ecc
mov eax, dword [ebx]
push edi
lea ecx, [ebp - 0x14]
push ecx
push 8
add eax, 0x18
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
call esi
test eax, eax
je 0x4a5ecc
mov eax, dword [ebx]
push 1
mov ebx, 0x208
push ebx
add eax, 0x20
lea edi, [ebp - 0x2c]
call fcn.00406f36
mov eax, dword [eax + 4]
and dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp - 0x18]
call esi
mov ecx, edi
call fcn.00406f75
jmp 0x4a5ecc