joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42acf0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7b70f8]
sub esp, 0x47c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x43715c]
cmp eax, ebx
jbe 0x42aee6
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x42ad26
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7b70f8], 0x1c
jne 0x42ad3d
lea eax, [esp + 0x3c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x430700]
mov eax, dword [0x430704]
mov esi, dword [edi]
mov ebp, dword [0x430708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x43070c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x42ad7a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x7b607c], ebx
mov eax, dword [esp + 0x18]
add dword [0x7b607c], eax
mov edx, dword [0x7b607c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7b70f8], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x42ae14
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0x7b70f8], 0x979
mov dword [0x7b6080], 0xff6b3619
mov dword [0x7b6084], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x42ae68
mov eax, dword [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x42ad78
cmp dword [0x7b70f8], 0x8d4
jne 0x42ae9f
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0x7b70f8], 0x17
jne 0x42aed5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x42ad20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x47c
ret
Function at 0x403d00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482ab8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x48]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x34]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x20]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0xc]
call fcn.0045d290
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407eb0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483146
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x118]
mov dword [ebp - 4], 0
mov ecx, esi
push dword [esi + 8]
mov dword [esi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [esi + 0xc]
call fcn.0045d290
add esp, 4
mov dword [esi + 4], 0
lea ecx, [edi + 0xf0]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.004080e0
lea ecx, [edi + 0xc8]
call fcn.004080e0
lea ecx, [edi + 0xa0]
call fcn.004080e0
lea ecx, [edi + 0x78]
call fcn.004080e0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x64]
push dword [edi + 0x6c]
mov dword [edi + 0x64], vtable.CObjectVector_struct_NArchive::N7z::CFileItem_.0
push 0
call fcn.004099f0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x64]
push dword [edi + 0x6c]
mov dword [edi + 0x64], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x70]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [ebp - 4], 3
lea ecx, [edi + 0x50]
push dword [edi + 0x58]
mov dword [edi + 0x50], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x5c]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [ebp - 4], 4
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CObjectVector_struct_NArchive::N7z::CFolder_.0
push 0
call fcn.00409aa0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x48]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 6
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x34]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 7
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x20]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 8
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0xc]
call fcn.0045d290
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408190
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [esi + 4], vtable.ISetProperties.0
lea ecx, [esi + 0x10]
mov dword [esi + 8], 0
mov dword [esi], vtable.NArchive::N7z::CHandler.1.0
mov dword [esi + 4], vtable.NArchive::N7z::CHandler.0
mov dword [esi + 0xc], 0
call fcn.00408240
lea eax, [ebp - 0x28]
mov dword [esi + 0x1f0], 0
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x1f8], 0
mov dword [esi + 0x1fc], 8
mov dword [esi + method.CBaseRecordVector.virtual_0], vtable.CRecordVector_unsigned_long_long_unsigned___int64__.0
push eax
mov dword [esi + 0x1e8], 4
mov byte [esi + 0x1e0], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov dword [esi + 0x1e4], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x409760
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483390
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebx + 0x1e0], eax
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp + 0x14]
jge 0x409927
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov esi, dword [eax + edi*4]
xor edi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp word [esi], di
je 0x4097fb
inc edi
cmp word [esi + edi*2], 0
jne 0x4097f3
push edi
lea ecx, [ebp - 0x20]
call fcn.004039c0
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x409810
mov dword [ebp - 0x1c], edi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CharUpperW]
test edi, edi
jne 0x409845
push ebx
call fcn.0045d290
add esp, 4
mov eax, 0x80070057
jmp 0x409929
mov edi, dword [ebp - 0x48]
lea edx, [ebp - 0x48]
mov esi, edi
lea ecx, [ebp - 0x20]
shl esi, 4
add esi, dword [ebp - 0x4c]
call fcn.00410f10
test eax, eax
jne 0x409907
push 2
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409d90
mov edx, 0x495a50
mov ecx, dword [eax]
call fcn.0041baf0
push dword [ebp - 0x5c]
test eax, eax
sete bl
call fcn.0045d290
add esp, 4
test bl, bl
je 0x4098f5
push 2
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x20]
call fcn.00409dc0
mov ecx, dword [ebp - 0x50]
mov edx, esi
add ecx, 0x1e0
mov byte [ebp - 4], 2
push ecx
push dword [ebp - 0x30]
mov ecx, eax
call fcn.00410f60
add esp, 8
mov byte [ebp - 4], 1
mov esi, eax
push dword [ebp - 0x68]
call fcn.0045d290
add esp, 4
test esi, esi
je 0x4098e0
push dword [ebp - 0x20]
call fcn.0045d290
add esp, 4
mov eax, esi
jmp 0x409929
mov byte [ebp - 4], 0
push dword [ebp - 0x20]
call fcn.0045d290
add esp, 4
inc edi
jmp 0x4097b6
push dword [ebp - 0x20]
call fcn.0045d290
add esp, 4
mov eax, 0x80070057
jmp 0x409929
push ebx
mov byte [ebp - 4], 0
call fcn.0045d290
add esp, 4
inc edi
jmp 0x4097b6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4833de
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [edi + 0x3c]
push dword [edi + 0x44]
mov dword [edi + 0x3c], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x48]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [ebp - 4], 1
lea ecx, [edi + 0x28]
push dword [edi + 0x30]
mov dword [edi + 0x28], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x34]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [ebp - 4], 2
lea ecx, [edi + 0x14]
push dword [edi + 0x1c]
mov dword [edi + 0x14], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0x20]
call fcn.0045d290
add esp, 4
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 3
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CCoderInfo_.0
push 0
call fcn.00409c50
mov byte [ebp - 4], 4
mov ecx, edi
push dword [edi + 8]
mov dword [edi], vtable.CBaseRecordVector.0
push 0
call fcn.0041bc90
push dword [edi + 0xc]
call fcn.0045d290
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4113b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp dword [ebp + 0x10], ecx
push edi
cmovbe ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0
push eax
push ecx
push edx
push dword [esi + 0xc]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
test edi, edi
je 0x4113fd
mov eax, dword [ebp - 8]
mov dword [edi], eax
pop edi
pop esi
test cl, cl
je 0x411415
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411434
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
jle 0x41143e
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 0x14]
mov edx, 0x100000
push 0
push eax
mov eax, dword [ebp + 0x10]
cmp eax, edx
cmovae eax, edx
push eax
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test esi, esi
je 0x411494
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
test eax, eax
jne 0x4114dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x6d
je 0x4114dc
call esi
test eax, eax
jne 0x4114c1
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
jle 0x4114de
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4115d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push ecx
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411643
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411643
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411627
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 8
jle 0x411654
movzx eax, ax
pop edi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 8]
xor eax, eax
add eax, ebx
mov dword [edi], eax
adc ecx, 0
xor eax, eax
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 8
Function at 0x4116b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x400000
cmp dword [ebp + 0x10], ecx
push edi
cmovbe ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push 0
push eax
push ecx
push edx
push dword [esi + 8]
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [ebp - 8]
setne cl
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
test edi, edi
je 0x411704
mov dword [edi], eax
pop edi
pop esi
test cl, cl
je 0x41171c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41173b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
jle 0x411745
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x411921
mov dword [esi], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x411991
push 0
lea edx, [ebp - 8]
push edx
mov edx, 0x8000
cmp eax, edx
cmovae eax, edx
push eax
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x411952
mov ecx, dword [ebp - 8]
add dword [esi], ecx
test eax, eax
jne 0x411991
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411976
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
jle 0x411993
movzx eax, ax
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045d27f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4b0014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, ecx
push edi
mov edi, 1
cmp dword [esi + 4], 0
jne 0x412f81
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 4], eax
test eax, eax
jne 0x412f7c
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
je 0x412f7c
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 8], 0
jne 0x412fa5
push 0
push 0
push 0
push 0
call eax
mov dword [esi + 8], eax
test eax, eax
jne 0x412fa5
call ebx
test eax, eax
mov ecx, edi
cmovne ecx, eax
test ecx, ecx
jne 0x412f69
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412fb4
call ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x412fc3
call ebx
cmp dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
je 0x412fe0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x412ed0
push 0
push 0
call fcn.004646d2
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x413014
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret
call ebx
mov ecx, dword [ebp - 4]
test eax, eax
cmovne edi, eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0045d27f
mov esp, ebp
pop ebp
ret
Function at 0x413d20
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x4b0014]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov eax, dword [esi]
cmp eax, 0x3f
jne 0x413db9
cmp dword [esi + 4], edx
jbe 0x413d5e
nop dword [eax]
mov al, byte [esi + edx + 8]
mov byte [esi + edx + 0x24], al
inc edx
cmp edx, dword [esi + 4]
jb 0x413d50
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jbe 0x413d7f
cmp edx, 0x20
jae 0x413ec6
mov eax, dword [esi + 0x20]
mov al, byte [ecx + eax]
inc ecx
mov byte [esi + edx + 0x24], al
inc edx
cmp ecx, dword [esi + 0x1c]
jb 0x413d65
cmp edx, 0x20
jae 0x413ec6
mov ecx, 0x20
lea edi, [esi + 0x24]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x20], 0x6a09e667
bts ecx, eax
mov dword [esp + 0x24], 0xbb67ae85
cmp eax, 0x20
mov dword [esp + 0x28], 0x3c6ef372
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0xa54ff53a
cmovae edx, ecx
mov dword [esp + 0x30], 0x510e527f
xor ecx, edx
mov dword [esp + 0x34], 0x9b05688c
cmp eax, 0x40
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
cmovae edx, ecx
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
movlpd qword [esp + 0x18], xmm0
test edx, edx
jb 0x413eba
ja 0x413e43
test ecx, ecx
je 0x413eba
mov ebx, dword [esp + 0x1c]
lea eax, [esi + 8]
mov edi, dword [esp + 0x18]
nop
push dword [esi + 4]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0041fa70
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x24]
add esp, 4
push dword [esi + 0x1c]
call fcn.0041fa70
add esp, 4
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x20]
push 8
call fcn.0041fa70
add esp, 4
xor eax, eax
nop word [eax + eax]
add byte [esp + eax + 0x8c], 1
jne 0x413ea0
inc eax
cmp eax, 8
jl 0x413e90
add edi, 1
lea eax, [esi + 8]
adc ebx, 0
cmp ebx, dword [esp + 0x10]
jb 0x413e50
ja 0x413eba
lea eax, [esi + 8]
cmp edi, dword [esp + 0x14]
jb 0x413e50
lea edx, [esi + 0x24]
lea ecx, [esp + 0x20]
call fcn.0041fb10
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d27f
mov esp, ebp
pop ebp
ret