joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60117e90
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6014934f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
mov dword [esp + 8], edi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x60117f22
call fcn.601180b0
test eax, eax
jl 0x60117f1b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x60117f05
call fcn.601180b0
test eax, eax
jl 0x60117f1b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
ja 0x60117f12
cmp eax, 0x10
jbe 0x60117f1b
cmp eax, 0xffffffff
jne 0x60117f2a
test ecx, ecx
jne 0x60117f2a
mov eax, 0x80004005
jmp 0x60117f7b
mov edi, eax
mov dword [esp + 8], edi
jmp 0x60117ee3
sub eax, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push eax
mov dword [esi], eax
call fcn.6014753f
mov ecx, dword [esp + 0x30]
add esp, 4
push 0
lea edx, [esp + 0x2c]
push edx
mov dword [ecx], eax
mov esi, dword [esi]
push esi
push eax
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x60117f69
call fcn.601180b0
jmp 0x60117f7a
mov ebx, dword [esp + 0x28]
xor eax, eax
cmp ebx, esi
sete al
dec eax
and eax, 0x80070026
pop esi
test eax, eax
setge bl
test edi, edi
je 0x60117f8b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
pop edi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10

Function at 0x60118120
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call sym.scnkrnl.dll_public:_void___thiscall_CHashProvider::constructor_void_
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0x6014f67c
lea esi, [edi + 8]
push 0
mov dword [edi], 0x6014f674
push esi
mov dword [esi], 0
call ebx
test eax, eax
jne 0x601181a0
call fcn.601180b0
test eax, eax
jge 0x601181a4
push 0x28
push 1
push 0x6014f67c
push 0x6014f66c
push esi
call ebx
test eax, eax
jne 0x601181a0
call fcn.601180b0
test eax, eax
jge 0x601181a4
push 0x20
push 1
push 0x6014f67c
push 0x6014f66c
push esi
call ebx
test eax, eax
jne 0x601181a0
call fcn.601180b0
test eax, eax
setge al
mov byte [edi + 4], al
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor eax, eax
test eax, eax
setge al
mov byte [edi + 4], al
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x60118cb0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x60149440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x2c]
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebp
je 0x60118dfe
push eax
lea ecx, [esp + 0x10]
call fcn.601045b0
mov eax, dword [esp + 0xc]
push 0x2e
push eax
mov byte [esp + 0x2c], 1
call dword [sym.imp.MSVCR71.dll__mbsrchr]
add esp, 8
cmp eax, ebx
je 0x60118d20
sub eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x60118d20
push eax
lea ecx, [esp + 0x10]
call fcn.6010a480
mov byte [esp + 0x2c], 1
push edi
jmp 0x60118d30
mov al, byte [esp + 0x30]
test al, al
je 0x60118dcf
mov eax, dword [ebx + 0x6014f73c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x6014f70c
push eax
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x60118dc3
test esi, esi
je 0x60118d7c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edi, dword [esp + 0x14]
mov esi, edi
mov dword [esp + 0x18], esi
jne 0x60118dc3
mov al, byte [esp + 0x34]
test al, al
je 0x60118db7
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebp
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
setne byte [esp + 0x30]
mov esi, edi
jmp 0x60118dc3
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add ebx, 4
cmp ebx, 8
jb 0x60118d30
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x60118df3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x60118dfe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x601192a0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
xor eax, eax
mov word [ebx + 0x38], 0
mov word [ebx + 0x3a], 0x4e4
mov ecx, 0xd
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x60119325
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x601192ef
push eax
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebx + 0x34], 0
push esi
call fcn.6014753f
add esp, 4
push eax
push esi
push 0
push edi
mov dword [ebx + 0x34], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x60119325
mov eax, dword [ebx + 0x34]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x6014df50
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x60119330
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 4
mov esi, dword [esp + 0x18]
mov eax, dword [ebx + 0x34]
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.VarFileInfoTranslation
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x60119369
cmp dword [esp + 0xc], 4
jb 0x60119369
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [ebx + 0x38], edx
mov ecx, dword [ebx]
pop edi
xor eax, eax
cmp ecx, 0xfeef04bd
pop esi
sete al
pop ebx
add esp, 8
ret 4
Function at 0x6011a500
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x601496e3
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x20]
push esi
xor esi, esi
cmp ecx, esi
je 0x6011a535
mov eax, dword [ebx + 0x24]
sub eax, ecx
sar eax, 2
cmp eax, esi
jne 0x6011a6a1
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov eax, dword [str.index.dat]
push eax
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x4c], esi
call fcn.60117ba0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x6011a5a9
call fcn.601180b0
cmp eax, esi
jge 0x6011a5af
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ebp, eax
mov dword [esp + 0xc], ebp
push edi
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x6011a5d6
call fcn.601180b0
cmp eax, esi
jl 0x6011a685
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, eax
or edx, ecx
mov edi, eax
mov dword [esp + 0x1c], ecx
je 0x6011a685
cmp ecx, esi
ja 0x6011a5f5
cmp eax, 0x2000000
jbe 0x6011a5fe
mov edi, 0x2000000
mov dword [esp + 0x1c], esi
push edi
call fcn.6014753f
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.6011a7a0
test eax, eax
jl 0x6011a669
cmp dword [esp + 0x14], edi
jne 0x6011a669
push edi
push esi
call fcn.6011a230
add esp, 8
push esi
mov ecx, ebx
call fcn.6011a300
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
call fcn.6011e400
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test ebp, ebp
jmp 0x6011a696
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp ebp, esi
je 0x6011a69f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x6011a7a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6011a7c6
call fcn.601180b0
ret 0xc
xor eax, eax
ret 0xc

Function at 0x6011bc70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x601497c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x30]
push 0x6011af50
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
xor ebx, ebx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
call fcn.6011af90
add esp, 0xc
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push edi
push edx
mov byte [esp + 0x40], 1
call ebp
cmp eax, ebx
jne 0x6011bd2e
cmp edi, ebx
jne 0x6011bce0
xor eax, eax
jmp 0x6011bcee
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x6011bce5
sub eax, edx
mov esi, dword [esp + 0x38]
push eax
push edi
mov ecx, esi
call fcn.60104370
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], eax
add esi, 8
push eax
mov ecx, esi
call fcn.6011aef0
mov esi, dword [esi]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push eax
call ebp
cmp eax, ebx
je 0x6011bd6b
push eax
call fcn.6011aed0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
mov byte [esp + 0x28], bl
call dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x6011bd54
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x28], bl
call dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x6011bd86
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x6011c7b0
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x601498a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6015b6f8]
push esi
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x1c], 0
call fcn.6011be20
mov esi, eax
test esi, esi
jge 0x6011c837
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011c823
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
je 0x6011c891
push edi
jle 0x6011c858
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011c87c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x10], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011c8b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x6011c8d0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x601498c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x6015b6f8]
push esi
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x20], 0
call fcn.6011be20
mov esi, eax
test esi, esi
jge 0x6011c959
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011c945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push edx
mov dword [esp + 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x6011c9cf
push eax
call fcn.6011aed0
mov esi, eax
lea eax, [edi - 0x10]
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011c9ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
mov eax, dword [esp + 0x24]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
push esi
mov esi, dword [esp + 0x24]
push ecx
push eax
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x6011ca42
push ebp
push eax
call fcn.6011aed0
add esp, 4
test esi, esi
mov ebp, eax
je 0x6011ca0a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011ca2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebp
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 8
test esi, esi
je 0x6011ca4d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6011ca6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x6011e420
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [ecx + 4]
mov ebx, dword [esi - 0xc]
xor ecx, ecx
test ebp, ebp
jbe 0x6011e44a
push edi
mov edi, dword [esp + 0x14]
xor edx, edx
mov eax, ecx
div ebx
mov al, byte [edx + esi]
xor byte [ecx + edi], al
inc ecx
cmp ecx, ebp
jb 0x6011e438
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x6011f2a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60149a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call fcn.601041b0
mov ebx, dword [ebp + 8]
push 4
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 0x14], esi
call fcn.6011e9b0
cmp eax, esi
jl 0x6011f35f
cmp dword [ebp - 0x14], esi
jbe 0x6011f35f
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x18]
push ecx
push edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x6011f30b
call fcn.601180b0
test eax, eax
jl 0x6011f35f
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov edi, eax
xor eax, eax
test eax, eax
jl 0x6011f35f
cmp eax, esi
mov ecx, dword [ebp - 0x14]
ja 0x6011f381
jb 0x6011f323
cmp ecx, edi
jae 0x6011f381
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.60104340
mov ecx, dword [ebp - 0x14]
push ecx
push eax
mov ecx, ebx
call fcn.6011e9b0
mov edx, dword [ebp - 0x14]
push edx
mov ecx, edi
mov esi, eax
call fcn.60114210
test esi, esi
jge 0x6011f35d
mov ecx, dword [ebp + 0xc]
call fcn.601041b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x80004005
jmp 0x6011f355
Function at 0x6011f390
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6011f4db
call fcn.601180b0
mov ebp, eax
test ebp, ebp
jl 0x6011f418
cmp byte [ebx], 0
je 0x6011f418
mov ecx, dword [ebx + 4]
mov edi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div edi
mov al, byte [esi]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esi], al
xor edx, edx
mov eax, 1
div edi
mov al, byte [edx + ecx]
xor byte [esi + 1], al
xor edx, edx
mov eax, 2
div edi
mov al, byte [esi + 2]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esi + 2], al
xor edx, edx
mov eax, 3
div edi
mov al, byte [edx + ecx]
xor byte [esi + 3], al
test ebp, ebp
mov edi, ebp
jl 0x6011f4be
mov edx, dword [ebx + 8]
push 0
lea ecx, [esp + 0x14]
push ecx
push 4
lea edi, [esi + 4]
push edi
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6011f4f3
call fcn.601180b0
test eax, eax
mov dword [esp + 0x18], eax
jl 0x6011f4a3
cmp byte [ebx], 0
je 0x6011f4a3
mov ecx, dword [ebx + 4]
mov ebp, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div ebp
mov al, byte [edx + ecx]
xor byte [edi], al
xor edx, edx
mov eax, 1
div ebp
mov al, byte [edi + 1]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [edi + 1], al
xor edx, edx
mov eax, 2
div ebp
mov al, byte [edx + ecx]
xor byte [edi + 2], al
xor edx, edx
mov eax, 3
div ebp
mov al, byte [edi + 3]
mov cl, byte [edx + ecx]
xor al, cl
mov byte [edi + 3], al
mov edi, dword [esp + 0x18]
test edi, edi
jl 0x6011f4be
lea edx, [esi + 8]
push edx
push ebx
call fcn.6011f2a0
mov edi, eax
add esp, 8
test edi, edi
jge 0x6011f4d3
lea ecx, [esi + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.601041b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x10], 4
je 0x6011f4ec
mov ebp, 0x80070026
jmp 0x6011f418
xor ebp, ebp
jmp 0x6011f3cc
cmp dword [esp + 0x10], 4
je 0x6011f504
mov dword [esp + 0x18], 0x80070026
jmp 0x6011f4a3
mov dword [esp + 0x18], 0
jmp 0x6011f456
Function at 0x6011f520
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [esp + 0x18]
push edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6011f5d8
call fcn.601180b0
mov ebx, eax
test ebx, ebx
jl 0x6011f5a9
cmp byte [ebp], 0
je 0x6011f5a9
mov ecx, dword [ebp + 4]
mov edi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div edi
mov al, byte [esi]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esi], al
xor edx, edx
mov eax, 1
div edi
mov al, byte [edx + ecx]
xor byte [esi + 1], al
xor edx, edx
mov eax, 2
div edi
mov al, byte [esi + 2]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esi + 2], al
xor edx, edx
mov eax, 3
div edi
mov al, byte [edx + ecx]
xor byte [esi + 3], al
test ebx, ebx
mov edi, ebx
jl 0x6011f5c2
lea ecx, [esi + 4]
push ecx
push ebp
call fcn.6011f2a0
mov edi, eax
add esp, 8
test edi, edi
jge 0x6011f5d0
lea ecx, [esi + 4]
mov dword [esi], 0
call fcn.601041b0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esp + 0x10], 4
je 0x6011f5e6
mov ebx, 0x80070026
jmp 0x6011f5a9
xor ebx, ebx
jmp 0x6011f55c
Function at 0x6011fe10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
push ebx
xor ebx, ebx
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
jbe 0x6011ffa3
push edi
mov edi, dword [esp + 0x24]
push ebp
push esi
mov ecx, dword [edi + 8]
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6011ffaa
call fcn.601180b0
mov ebp, eax
cmp ebp, ebx
jl 0x6011ff9e
cmp byte [edi], bl
je 0x6011febb
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [esp + 0x10]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esp + 0x10], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [esp + 0x11], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [esp + 0x12]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esp + 0x12], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [esp + 0x13], al
cmp ebp, ebx
jl 0x6011ff9e
mov eax, dword [edi + 8]
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6011ffc2
call fcn.601180b0
mov ebp, eax
cmp ebp, ebx
jl 0x6011ff9e
cmp byte [edi], bl
je 0x6011ff48
mov ecx, dword [edi + 4]
mov esi, dword [ecx - 0xc]
xor eax, eax
xor edx, edx
div esi
mov al, byte [esp + 0x2c]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esp + 0x2c], al
xor edx, edx
mov eax, 1
div esi
mov al, byte [edx + ecx]
xor byte [esp + 0x2d], al
xor edx, edx
mov eax, 2
div esi
mov al, byte [esp + 0x2e]
mov dl, byte [edx + ecx]
xor al, dl
mov byte [esp + 0x2e], al
xor edx, edx
mov eax, 3
div esi
mov al, byte [edx + ecx]
xor byte [esp + 0x2f], al
cmp ebp, ebx
jl 0x6011ff9e
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x40]
xor esi, esi
call fcn.6011d8b0
cmp eax, ebx
je 0x6011ff72
lea esi, [eax + 4]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x18], edx
mov ecx, dword [esp + 0x2c]
mov eax, 5
cmp ecx, eax
jle 0x6011ff89
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x6011fe36
pop esi
mov eax, ebp
pop ebp
pop edi
pop ebx
add esp, 0x18
ret 8
cmp dword [esp + 0x14], 4
je 0x6011ffbb
mov ebp, 0x80070026
jmp 0x6011febb
xor ebp, ebp
jmp 0x6011fe68
cmp dword [esp + 0x14], 4
je 0x6011ffd3
mov ebp, 0x80070026
jmp 0x6011ff48
xor ebp, ebp
jmp 0x6011fef5