joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f7b
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 8], eax
mov esi, dword [edi]
mov dword [ebp - 4], esi
inc esi
lea eax, [esi*4 + 4]
push eax
call fcn.00401c90
pop ecx
mov dword [edi], esi
mov dword [ebx], eax
mov ecx, dword [str.sun.applet.Main]
cmp byte [ecx], 0x2d
jne 0x401fc4
cmp byte [ecx + 1], 0x4a
jne 0x401fc4
add ecx, 2
mov dword [eax], ecx
mov ecx, dword [str.sun.applet.Main]
add eax, 4
mov ebx, dword [ebp - 4]
xor edi, edi
test ebx, ebx
jle 0x401ff9
mov esi, dword [ebp + 8]
mov edx, dword [esi]
cmp byte [edx], 0x2d
jne 0x401ff1
cmp byte [edx + 1], 0x4a
jne 0x401ff1
cmp byte [edx + 2], 0
lea ecx, [edx + 2]
je 0x402032
mov dword [eax], ecx
mov ecx, dword [str.sun.applet.Main]
add eax, 4
inc edi
add esi, 4
cmp edi, ebx
jl 0x401fd0
cmp byte [ecx], 0x2d
jne 0x402004
cmp byte [ecx + 1], 0x4a
je 0x402009
mov dword [eax], ecx
add eax, 4
test ebx, ebx
jle 0x40202a
mov edx, dword [ebp + 8]
mov esi, ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x40201f
cmp byte [ecx + 1], 0x4a
je 0x402024
mov dword [eax], ecx
add eax, 4
add edx, 4
dec esi
jne 0x402012
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.00402efd
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x402048
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push str.CLASSPATH
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x4020a0
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401c90
mov edi, eax
push ebx
push str._Denv.class.path_s
push edi
call esi
push 0
push edi
call fcn.00401717
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.00402c56
pop ecx
test al, al
pop ecx
jne 0x4020ca
push 1
push str.Cant_determine_application_home
call fcn.00402efd
pop ecx
xor al, al
pop ecx
jmp 0x4021ee
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401c90
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.00401717
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x405014
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, str.sun.applet.Main
lea edx, [edx + ecx + 1]
jb 0x402114
inc edx
push edx
call fcn.00401c90
mov edx, eax
mov esi, str._Djava.class.path
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x40501c
rep movsb byte es:[edi], byte [esi]
jb 0x40214e
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.00401717
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40241d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402c18
lea eax, [ebp - 0x184]
push 0x405da0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402476
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x4024c6
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4024ba
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402490
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x402995
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402a69
pop ecx
test al, al
pop ecx
jne 0x4029c1
push 1
push str.Error:_could_not_find_Java_2_Runtime_Environment.
call fcn.00402efd
pop ecx
pop ecx
push 2
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp + 0x10]
call fcn.004024c9
cmp eax, 1
pop ecx
jge 0x4029e5
push 1
push str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
call fcn.00402efd
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401515
mov esi, dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov dword [esi], eax
push ebx
and byte [ebx], 0
push dword [esi]
push dword [ebp + 0x10]
call fcn.00402b31
add esp, 0x18
test al, al
jne 0x402a65
push edi
mov edi, dword [esi]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, str.Error:_no___s_JVM_at___s.
add edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, ecx
push edx
call fcn.00401c90
push dword [ebp + 0x18]
mov edi, eax
push dword [esi]
push ebx
push edi
call dword [sym.imp.MSVCRT.dll_sprintf]
push 1
push edi
call fcn.00402efd
add esp, 0x1c
push 4
call dword [sym.imp.MSVCRT.dll_exit]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401ef9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401f10
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x401f45
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401f41
cmp edi, eax
jae 0x401f45
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401f33
cmp edi, eax
jb 0x401f49
xor eax, eax
jmp 0x401f52
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405a2a
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
push edi
mov edi, eax
add edi, 4
push dword [edi]
call ebx
push 0x3023
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x23
pop esi
call fcn.0047b8e9
push dword [edi]
mov esi, eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
push 0x3024
push eax
call ebp
push 0x24
pop esi
call fcn.0047b8e9
push dword [edi]
mov esi, eax
call ebx
push esi
push 0x3023
push eax
call ebp
push 0x25
pop esi
call fcn.0047b8e9
push dword [edi]
mov esi, eax
call ebx
push esi
push 2
push eax
call ebp
push 0x3e9
push dword [edi]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
mov eax, edi
jne 0x405ab2
push 2
jmp 0x405ab4
push 0
call fcn.004038f2
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret

Function at 0x406a85
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, eax
add edi, 4
push 4
mov eax, edi
call fcn.004038f2
push 0x1e
pop esi
call fcn.0047b8e9
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
call esi
push ebx
push 0
push 0x479
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi]
call esi
push 2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x406b8b
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5dc]
sub esp, 0x65c
mov eax, dword [0x49a0d0]
xor eax, ebp
mov dword [ebp + 0x5d8], eax
cmp dword [0x49f310], 8
mov eax, dword [0x49f2fc]
push ebx
push esi
push edi
mov esi, 0x49f2fc
jae 0x406bbe
mov eax, esi
push eax
lea eax, [ebp + 0x3d0]
push 0x104
push eax
call fcn.0044a38e
add esp, 0xc
push str.KuaiZip.exe
lea eax, [ebp + 0x3d0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x3d0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406bfd
xor eax, eax
jmp 0x406d2d
xor ebx, ebx
inc ebx
push ebx
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x80], esp
push str.kuaizipUpdateChecker.dll
push 0x49f2f8
push eax
call fcn.00403806
add esp, 0xc
call fcn.0047e337
push 0x38
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0044d300
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [ebp + 0x3d0]
mov dword [ebp - 0x6c], eax
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x68], str._AssociateAll
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x78], 0x40
call edi
test eax, eax
je 0x406bf6
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [0x49f310], 8
mov eax, dword [0x49f2fc]
jae 0x406c7d
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push eax
lea eax, [ebp + 0x1c8]
push eax
call esi
push str.KZipShell.dll
lea eax, [ebp + 0x1c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c8]
push 0x491d50
push eax
call fcn.0044a471
pop ecx
test eax, eax
lea eax, [ebp + 0x1c8]
pop ecx
push eax
lea eax, [ebp - 0x40]
je 0x406cc7
push 0x491d54
jmp 0x406ccc
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.regsvr32.exe
lea eax, [ebp + 0x3d0]
push eax
call esi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0044d300
lea eax, [ebp + 0x3d0]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x68], eax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x78], 0x40
call edi
test eax, eax
je 0x406bf6
push 0xffffffffffffffff
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, ebx
mov ecx, dword [ebp + 0x5d8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004498d8
add ebp, 0x5dc
leave
ret
Function at 0x409aad
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x409abb
push 0xd
pop eax
jmp 0x409aee
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x409ac2
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x409b13
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x409fe4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x49a0d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00409fb1
mov ebx, eax
cmp ebx, esi
je 0x40a04f
lea esi, [ebp - 0x214]
call fcn.0040a109
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004498d8
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a06d
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.00409fe4
cmp eax, esi
jne 0x40a0b5
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40a057
lea esi, [ebp - 0x214]
call fcn.0040a109
push dword [ebp - 0x21c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.0040a109
mov eax, edi
jmp 0x40a03e
Function at 0x40b582
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b5e6
cmp dword [ebp + 0xc], 1
je 0x40b5be
cmp dword [ebp + 0xc], 2
je 0x40b5be
push 0xd
pop eax
jmp 0x40b5e6
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b5e0
test eax, eax
je 0x40b5db
test al, 1
jne 0x40b5b9
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b5e0
jmp 0x40b5b9
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40c030
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x483007
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x49a0d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.NKZ::CKZArchive.0
mov dword [esi + 4], vtable.NKZ::CKZArchive.1.0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], ebx
xor eax, eax
mov word [esi + 0x5c], ax
xor ecx, ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x52], cx
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x49], eax
mov dword [esi + 0x4d], eax
xor edx, edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0x80], dx
mov word [esi + 0x54], ax
mov byte [esi + 0x40], bl
lea ecx, [esi + 0x88]
push ecx
mov byte [esp + 0x18], 4
call fcn.0040ed10
mov dword [esi + 0xa0], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x410d10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x49a0d0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
mov ebp, dword [esp + 0x178]
push edi
cmp esi, 0xffffffff
je 0x410ede
test ebp, ebp
je 0x410ede
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
jne 0x410d71
call fcn.004093f0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004498d8
add esp, 0x16c
ret
push 0x40
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0044d300
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x13c]
push edx
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x410d54
cmp dword [esp + 0xc], 0x40
je 0x410dcf
mov eax, 0x80004005
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004498d8
add esp, 0x16c
ret
mov eax, dword [esp + 0x16c]
push 0
cdq
push 0
push edx
push eax
push esi
call edi
test eax, eax
je 0x410d54
push 0xf8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0044d300
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x410d54
cmp dword [esp + 0xc], 0xf8
jne 0x410db2
movzx eax, word [esp + 0x16]
dec eax
lea eax, [eax + eax*4]
push 1
add eax, eax
xor ecx, ecx
push ecx
add eax, eax
push ecx
add eax, eax
push eax
push esi
call edi
test eax, eax
je 0x410d54
xor eax, eax
push eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esp + 0x114]
push ecx
push esi
call ebx
test eax, eax
je 0x410d54
cmp dword [esp + 0xc], 0x28
jne 0x410db2
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add eax, edx
mov dword [ebp], eax
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.004498d8
add esp, 0x16c
ret
mov ecx, dword [esp + 0x174]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.004498d8
add esp, 0x16c
ret
Function at 0x410f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x411016
cmp eax, ebx
je 0x411016
cmp word [eax], bx
je 0x411016
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x410f42
mov dword [ecx], ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
jne 0x410f79
call fcn.004093f0
lea esi, [esp + 0xc]
mov edi, eax
call fcn.00410ce0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esp + 0x18]
push eax
push 4
push edi
push esi
mov dword [edi], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x410f60
cmp byte [edi], 0x4d
jne 0x411004
cmp byte [edi + 1], 0x5a
jne 0x411004
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call fcn.00410d10
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410fc7
lea esi, [esp + 0xc]
call fcn.00410ce0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x410f60
mov eax, dword [ebp + 8]
mov dword [edi], 0
test eax, eax
je 0x410feb
mov dword [eax], ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x410f60
lea esi, [esp + 0xc]
call fcn.00410ce0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418fc0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x88
mov eax, dword [0x49a0d0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push ebx
xor ebx, ebx
push ebp
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jmp 0x419064
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
mov esi, ecx
and esi, 0x3f
cmp ebp, ebx
jbe 0x4190aa
jmp 0x419080
mov cl, byte [edi]
mov byte [esp + esi + 0x48], cl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x4190a2
lea edx, [esp + 0x20]
xor esi, esi
call fcn.00420f80
cmp ebp, ebx
ja 0x419080
mov ecx, dword [esp + 0x40]
and ecx, 0x3f
mov ebp, 8
lea edi, [esp + 0x8c]
mov esi, ecx
jmp 0x4190c0
mov dl, byte [edi]
mov byte [esp + esi + 0x48], dl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x4190e2
lea edx, [esp + 0x20]
xor esi, esi
call fcn.00420f80
cmp ebp, ebx
ja 0x4190c0
xor eax, eax
jmp 0x4190f0
add byte [esp + eax + 0x8c], 1
jne 0x419100
inc eax
cmp eax, 8
jl 0x4190f0
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
jne 0x419119
cmp dword [esp + 0x10], 0x80000
jb 0x419060
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x20]
call fcn.00421080
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004498d8
add esp, 0x88
ret 0xc
Function at 0x41a660
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x88
mov eax, dword [0x49a0d0]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
push 0x49f844
mov dword [esp + 0x14], 8
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor ebx, ebx
cmp byte [0x49b8c8], bl
je 0x41a6a1
call fcn.0041a520
mov dword [esp + 0x14], 0xf672abd1
lea esp, [esp]
push 0x14
mov eax, 0x49b8b4
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00422b50
mov eax, 0x49b8b4
mov edi, esi
call fcn.00422cf0
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00422b50
push 0x14
mov eax, 0x49b8b4
call fcn.00422b50
lea eax, [esp + 0x80]
call fcn.00422cf0
xor eax, eax
lea esp, [esp]
mov esi, dword [esp + 0x10]
cmp esi, ebx
jbe 0x41a786
mov cl, byte [esp + eax + 0x80]
mov byte [ebp], cl
inc eax
dec esi
inc ebp
mov dword [esp + 0x10], esi
cmp eax, 0x14
jb 0x41a760
cmp esi, ebx
ja 0x41a6b0
push 0x49f844
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004498d8
add esp, 0x88
ret 4