joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f4e9
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push ecx
mov esi, edx
mov dword [ebp - 0xc], ecx
push 3
push 0x498e1c
mov ecx, esi
call fcn.0043a719
push ecx
push 3
push 0x498e24
mov ecx, esi
mov ebx, eax
call fcn.0043a719
mov edi, eax
test ebx, ebx
je 0x43f619
test edi, edi
je 0x43f619
and dword [ebp - 8], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43f539
mov eax, 0x491414
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0xc]
call sym.Dismx86.exe_DismExpandEnvironmentStrings
mov esi, eax
test esi, esi
je 0x43f58a
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43f558
mov eax, 0x491414
push esi
push eax
lea eax, [ebp - 0xc]
push str.FileMove__s
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x498e58
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x43f60c
and dword [ebp - 4], 0
mov eax, dword [edi + 4]
test eax, eax
jne 0x43f59a
mov eax, 0x491414
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
call sym.Dismx86.exe_DismExpandEnvironmentStrings
mov esi, eax
test esi, esi
je 0x43f5e8
mov eax, dword [edi + 4]
test eax, eax
jne 0x43f5b9
mov eax, 0x491414
push esi
push eax
lea eax, [ebp - 0xc]
push str.FileMove__s
push eax
call fcn.00449eea
add esp, 0x10
push dword [eax]
push 0x498e58
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
jmp 0x43f603
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x43f5fc
xor esi, esi
jmp 0x43f603
call fcn.0044bc4b
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
jmp 0x43f630
push 0x498e2c
push 0x498e58
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
mov eax, 0x8007000b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442083
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push edx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x4420be
xor ecx, ecx
call fcn.0044bc68
mov edi, eax
jmp 0x4421ed
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 3
jae 0x4420d6
push 0xb
pop edi
jmp 0x4421ed
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4421dc
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4421dc
mov cx, word [ebx]
cmp cx, word [0x489a20]
jne 0x442146
mov eax, dword [ebp - 4]
test al, 1
je 0x442132
push 0x499b58
push 0x498940
push 1
call dword [sym.imp.CBSHost.dll_DismWriteLog]
push 0xb
pop edi
jmp 0x4421e5
add eax, ebx
lea edx, [ebx + 2]
push eax
mov ecx, edi
call fcn.004419c2
mov edi, eax
jmp 0x4421d3
push 3
push 0x489a24
push ebx
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x44216c
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push eax
mov edx, ebx
call fcn.0044b14d
pop ecx
jmp 0x4421b6
call fcn.0043c5cd
push eax
lea ecx, [ebp - 8]
call fcn.0043ac50
mov eax, dword [ebp - 4]
test eax, eax
jle 0x4421b6
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
push ecx
push ecx
push eax
push ebx
push ecx
push 3
call edi
mov esi, eax
lea ecx, [ebp - 8]
push esi
call fcn.0043c822
push esi
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
push 0
push 3
call edi
push esi
lea ecx, [ebp - 8]
call fcn.0043c894
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov ecx, edi
mov edx, esi
mov eax, dword [esi - 0xc]
lea eax, [esi + eax*2]
push eax
call fcn.004419c2
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.0043c924
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x4421e5
xor ecx, ecx
call fcn.0044bc68
mov edi, eax
lea ecx, [ebp - 0x10]
call fcn.0043ab9a
lea ecx, [ebp - 0x14]
call fcn.0043ab9a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4430e3
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 1
mov ecx, dword [esi + 0x230]
call fcn.0047dbc3
push 4
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
xor ecx, ecx
test eax, eax
je 0x443106
mov dword [eax], esi
jmp 0x443108
mov eax, ecx
push ecx
push ecx
push eax
push 0x44634a
push ecx
push ecx
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
pop esi
test eax, eax
je 0x443127
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret 8

Function at 0x44352f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
push eax
push 0x2000000
push 3
push eax
push 1
mov esi, ecx
mov dword [ebp - 0x18], edx
push 0x80000000
push esi
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x443600
push str.locale.nls
push esi
lea ecx, [ebp - 0xc]
call fcn.0043b487
mov edx, eax
lea ecx, [ebp - 8]
call fcn.0043ab55
pop ecx
xor ecx, ecx
push ecx
push 0x2000000
push 3
push ecx
push 1
push 0x80000000
push dword [eax]
call edi
mov ecx, dword [ebp - 8]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp ebx, 0xffffffff
jne 0x443600
push str._system32locale.nls
push esi
lea ecx, [ebp - 0x14]
call fcn.0043b487
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.0043ab55
pop ecx
xor ecx, ecx
push ecx
push 0x2000000
push 3
push ecx
push 1
push 0x80000000
push dword [eax]
call edi
mov ecx, dword [ebp - 0x10]
mov ebx, eax
lea ecx, [ecx - 0x10]
call fcn.0043c924
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043c924
cmp ebx, 0xffffffff
jne 0x443600
push 0x57
pop eax
jmp 0x44366c
xor edi, edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
add eax, 0x28
push eax
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
pop ecx
push edi
mov esi, eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
lea eax, [esi + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x443639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x443659
mov edx, esi
lea ecx, [esi + 0x28]
call fcn.004431b6
xor ecx, ecx
cmp word [esi + 0xc], cx
ja 0x443665
push 0x57
pop edi
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, edi
jmp 0x44366c
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44457c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor eax, eax
mov dword [ebp - 8], edx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], eax
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0x10]
call fcn.0043ac50
call fcn.0043c5cd
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ac50
mov eax, dword [ebx + 0x48]
lea edx, [ebp - 4]
push edx
push 0x2000000
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
mov ecx, dword [eax]
push 0x80000002
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x44472a
push ecx
lea ecx, [edi - 0x10]
mov ebx, esp
call fcn.0043baa0
add eax, 0x10
push ecx
mov dword [ebx], eax
lea ecx, [esi - 0x10]
mov ebx, esp
call fcn.0043baa0
mov edx, dword [ebp - 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 4]
push eax
call fcn.004443a6
test eax, eax
jne 0x44472a
lea ecx, [ebp - 4]
call fcn.0043a910
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 4]
push edx
push 0x2001f
push str.SYSTEMCurrentControlSetControlTimeZoneInformation
mov eax, dword [ecx + 0x48]
push 0x80000002
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x44472a
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x48]
call fcn.0044453d
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x58]
call fcn.0044453d
mov eax, dword [ebp - 0x64]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.Bias
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x5c]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.DaylightBias
push dword [ebp - 4]
call ebx
mov ecx, dword [ebp - 4]
mov edx, str.DaylightName
push edi
call fcn.0044cd7d
pop ecx
push 0x10
lea eax, [ebp - 0x28]
push eax
push 3
push 0
push str.DaylightStart
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x60]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.StandardBias
push dword [ebp - 4]
call ebx
mov ecx, dword [ebp - 4]
mov edx, str.StandardName
push esi
call fcn.0044cd7d
pop ecx
push 0x10
lea eax, [ebp - 0x38]
push eax
push 3
push 0
push str.StandardStart
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, str.TimeZoneKeyName
call fcn.0044cd7d
pop ecx
push 4
lea ecx, [ebp - 0x18]
xor eax, eax
push ecx
push 4
push eax
push str.DynamicDaylightTimeDisabled
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call ebx
push str.ActiveTimeBias
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x44472d
mov dword [ebp - 0xc], eax
lea ecx, [edi - 0x10]
call fcn.0043c924
lea ecx, [esi - 0x10]
call fcn.0043c924
lea ecx, [ebp - 4]
call fcn.0043a910
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4484be
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4484c9
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x448585
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
sub edi, 1
jne 0x4484de
pop edi
test esi, esi
je 0x4485a1
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
inc edx
sub esi, 1
jne 0x448589
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4485a8
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x489b60]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x489b60]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x44a85c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x40
xor esi, esi
mov dword [ebp - 0x60], 0x44
lea eax, [ebp - 0x5c]
mov ebx, edx
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x34], 0x101
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x30], ax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x44a8ac
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0043c727
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push 0x400
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x44a8d5
xor ecx, ecx
call fcn.0044bc68
mov esi, eax
jmp 0x44a94e
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test ebx, ebx
je 0x44a927
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x44a8fe
push dword [ebp + 0xc]
push 0
push 0
push 0x948e
call ebx
test eax, eax
jne 0x44a911
push 0x1f4
push dword [ebp - 0x14]
call esi
cmp eax, 0x102
je 0x44a8ec
jmp 0x44a932
mov esi, 0x4c7
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x14]
call edi
jmp 0x44a94e
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call edi
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043c924
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44a960
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov byte [ebp - 5], dl
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], 0x44
push ebx
push eax
mov esi, ecx
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x38], 0x101
lea edi, [ebp - 0x1c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x44a9b3
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.0043c727
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x44a9dc
xor ecx, ecx
call fcn.0044bc68
mov ebx, eax
jmp 0x44aa25
cmp byte [ebp - 5], bl
je 0x44a9f3
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
jmp 0x44aa25
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x80004005
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0043c924
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x44b07d
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
jne 0x44b099
mov ecx, dword [ebp + 8]
call fcn.0044bc8f
mov esi, eax
push 0
push 0
push edi
push ebx
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x44b0c1
xor ecx, ecx
call fcn.0044bc68
cmp eax, 0xea
jne 0x44b0c3
mov dword [edi], esi
jmp 0x44b0c3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x44b192
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], 0
push esi
push edi
push 0xf0000000
push 0x18
push 0
push 0
push eax
mov edi, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x44b1ce
xor ecx, ecx
call fcn.0044bc68
jmp 0x44b2ae
lea eax, [ebp - 8]
push eax
push 0
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44b1f2
xor ecx, ecx
call fcn.0044bc68
mov edi, eax
jmp 0x44b2a1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x44b287
push 0xd
pop edi
jmp 0x44b239
cmp dword [ebp - 4], 0
je 0x44b267
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x44b258
push 0
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44b21a
jmp 0x44b290
xor ecx, ecx
call fcn.0044bc68
mov edi, eax
test edi, edi
jne 0x44b290
jmp 0x44b269
xor edi, edi
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x44b290
xor ecx, ecx
call fcn.0044bc68
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x10]
call fcn.0043ab9a
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x44b2b2
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0xf0000000
xor ebx, ebx
mov dword [ebp - 8], edx
push 0x18
push ebx
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 4], ebx
push eax
mov edi, ecx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x44b2e7
xor ecx, ecx
call fcn.0044bc68
jmp 0x44b366
push esi
lea eax, [ebp - 4]
mov esi, ebx
push eax
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x44b30b
xor ecx, ecx
call fcn.0044bc68
mov esi, eax
jmp 0x44b359
push ebx
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x44b32a
xor ecx, ecx
call fcn.0044bc68
mov esi, eax
test esi, esi
jne 0x44b350
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x44b350
xor ecx, ecx
call fcn.0044bc68
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x44b3a9
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, edx
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test eax, eax
jne 0x44b3c4
mov eax, 0x10da
jmp 0x44b44a
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44b3e6
test bl, 1
je 0x44b3e6
mov ecx, ebx
and ecx, 0xfffffffe
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor esi, esi
push esi
push 0x2000080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x44b430
push esi
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44b425
xor ecx, ecx
call fcn.0044bc68
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44b439
xor ecx, ecx
call fcn.0044bc68
mov esi, eax
cmp ebx, 0xffffffff
je 0x44b446
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret
Function at 0x44b4fa
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 4]
call fcn.0043b487
mov esi, dword [ebp - 4]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x44b519
push 0x57
pop edi
jmp 0x44b591
dec eax
lea ecx, [ebp - 4]
push eax
call fcn.0043a8ec
push 0x5c
pop edi
cmp ax, di
je 0x44b54c
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x44b53e
or eax, 0xffffffff
jmp 0x44b542
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 4]
push eax
call fcn.0043c894
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
jmp 0x44b582
xor eax, eax
push eax
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44b57b
xor ecx, ecx
call fcn.0044bc68
mov edi, eax
cmp edi, 0xb7
jne 0x44b591
push 0x5c
pop edi
mov word [ebx], di
lea eax, [ebx + 2]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov ebx, eax
test ebx, ebx
jne 0x44b556
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.0043c924
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44b617
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0043a54d
push 0x540
mov ecx, esi
call fcn.0043aa22
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ebx
push ecx
mov ecx, esi
push dword [eax - 8]
call fcn.0043ac39
push eax
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x44b68a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x44b6a7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 8]
add eax, 0x480
push eax
call fcn.0043aa22
mov eax, dword [esi]
lea ecx, [ebp - 4]
push 0
push ecx
mov ecx, esi
push dword [eax - 8]
call fcn.0043ac39
push eax
push 0
push 0
push 0x70050
push edi
call ebx
test eax, eax
je 0x44b656
push dword [ebp - 4]
mov ecx, esi
call fcn.0043a582
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
test eax, eax
jne 0x44b6a2
mov eax, 0x65b
jmp 0x44b6a2