joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002eb5
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x100d360
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100c7a4]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002ede
push eax
call esi
and dword [0x100c7a4], 0
mov eax, dword [0x100c020]
cmp eax, 0xffffffff
je 0x1002ef2
push eax
call esi
or dword [0x100c020], 0xffffffff
mov esi, dword [0x100c004]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x100c004
jmp 0x1002f36
mov eax, dword [esi + 4]
test eax, eax
je 0x1002f34
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002f30
cmp eax, 3
je 0x1002f30
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002f05
mov esi, dword [0x100c00c]
mov edi, 0x100c00c
jmp 0x1002f78
mov eax, dword [esi + 4]
test eax, eax
je 0x1002f76
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x1002f72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002f72
cmp eax, 3
je 0x1002f72
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002f47
push 0x100d360
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret

Function at 0x10032a7
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x10032d5
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100c7c0]
dec edx
inc ecx
test edx, edx
jne 0x10032bb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10036b3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [0x100d344]
xor ebx, ebx
cmp eax, ebx
je 0x100372d
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10036e1
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp + 8]
push dword [0x100d344]
call esi
test eax, eax
je 0x1003730
mov ecx, 0x1002370
mov eax, ecx
push edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1003710
push ebx
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
push ecx
push dword [0x100d344]
call esi
test eax, eax
pop edi
je 0x1003730
xor ebx, ebx
inc ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1003b40
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101d6e0], 0
jne 0x1003bbd
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call fcn.01002e46
lea eax, [ebp - 0x280]
push eax
call fcn.01003746
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100c35c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100d104]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002eb5
test esi, esi
jne 0x1003bc7
inc esi
cmp dword [0x100c360], 0
je 0x1003be2
push 0x100d360
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100c360], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10002860
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10001e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x406a9c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x406aae
call fcn.0041a358
mov eax, dword [0x41f827]
shl eax, 2
mov dword [0x41f82b], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
mov dword [0x41f82f], edx
call fcn.0041224c
pop edx
call fcn.004100c0
call fcn.00412250
push 0x41f7d0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41f82f], eax
push 0
jmp 0x41b880
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x422374], eax
call fcn.00417880
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00417e88
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.0041343c
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call fcn.0041344c
mov dword [0x42a5cc], 1
mov dword [0x42a5d0], esi
lea eax, [esp + 0x10]
mov dword [0x42a598], eax
call fcn.0041c18c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x42a59c], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x42a5a4], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0041a810
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0041a860
mov dword [esp + 4], 0
mov dword [esp], 0x42a5cc
call fcn.0041b6c8
test byte [esi + 0x10], 1
je 0x41b96b
mov eax, dword [0x42a5a4]
nop word cs:[eax + eax]
inc eax
mov cl, byte [eax - 1]
cmp cl, 9
je 0x41b950
cmp cl, 0x22
je 0x41b98f
cmp cl, 0x20
je 0x41b950
dec eax
mov edx, 0x20
jmp 0x41b9a4
mov eax, dword [0x42a5b0]
mov ecx, dword [0x42a5b4]
mov edx, dword [0x42a5b8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [esi + 0x18]
jmp 0x41ba27
mov cl, byte [eax]
mov edx, 0x22
jmp 0x41b9a4
mov cl, byte [eax + 1]
inc eax
xor ch, ch
test cl, cl
je 0x41b9b8
cmp cl, 9
je 0x41b9b6
movsx edi, cl
cmp edi, edx
jne 0x41b9a0
mov ch, cl
lea edi, [eax + 1]
cmp ch, 0x22
cmovne edi, eax
jmp 0x41b9d1
inc edi
mov al, byte [edi]
cmp al, 9
je 0x41b9d0
cmp al, 0x20
je 0x41b9d0
mov ebx, dword [esi + 0x18]
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
mov esi, eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetStartupInfoA
sub esp, 4
mov eax, 0xa
test byte [esp + 0x44], 1
je 0x41ba0f
movzx eax, word [esp + 0x48]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], 0
call ebx
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0041a62c
add esp, 0x5c
pop esi
pop edi
pop ebx
ret
Function at 0x409880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, esp
mov dword [eax], 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov dword [ebp - 4], eax
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GetFileType
sub esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
sub eax, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
je 0x409946
jmp 0x4098bb
mov eax, dword [ebp - 0x14]
sub eax, 2
mov dword [ebp - 0x1c], eax
je 0x409912
jmp 0x4098c8
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x20], eax
jne 0x40996f
jmp 0x4098d9
mov dword [0x422b10], 3
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov edx, esp
mov dword [edx + 0xc], ecx
mov dword [edx], eax
mov dword [edx + 0x10], 0
mov dword [edx + 8], 3
mov dword [edx + 4], 0x41fce8
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x24], eax
jmp 0x409979
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_GetConsoleMode
sub esp, 8
cmp eax, 0
je 0x40993a
mov dword [0x422b10], 1
jmp 0x409944
mov dword [0x422b10], 2
jmp 0x409979
call sub.KERNEL32.DLL_GetConsoleOutputCP
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xfde9
jne 0x409963
mov dword [0x422b10], 3
jmp 0x40996d
mov dword [0x422b10], 2
jmp 0x409979
mov dword [0x422b10], 2
add esp, 0x38
pop ebp
ret
Function at 0x409980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, 0x104c
call fcn.004100c4
sub esp, 0x104c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4099a9
jmp 0x409b8b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0041249c
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x4099cb
jmp 0x409b8b
mov eax, dword [ebp - 0x1014]
sub eax, 1
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2]
cmp eax, 0xa
setne dl
and dl, 1
movzx eax, dl
mov dword [0x422b0c], eax
cmp dword [0x422b10], 0
jne 0x409a01
call fcn.00409880
mov eax, esp
mov dword [eax], 0xfffffff5
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x422b10]
mov ecx, eax
sub ecx, 3
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x101c], ecx
je 0x409b18
jmp 0x409a32
mov eax, dword [ebp - 0x1018]
sub eax, 2
mov dword [ebp - 0x1020], eax
je 0x409a95
jmp 0x409a45
mov eax, dword [ebp - 0x1018]
sub eax, 1
mov dword [ebp - 0x1024], eax
jne 0x409b8b
jmp 0x409a5c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteConsoleW
sub esp, 0x14
mov dword [ebp - 0x1028], eax
jmp 0x409b8b
lea eax, [ebp - 0x1010]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1014]
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0x1000
mov dword [esi + 4], 0
mov dword [esi], 0
call sub.KERNEL32.DLL_WideCharToMultiByte
sub esp, 0x20
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x102c], eax
jmp 0x409b8b
mov eax, 0x1000
lea ecx, [ebp - 0x1010]
mov edx, dword [ebp - 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x1000
mov dword [ebp - 0x1030], eax
call fcn.0040f438
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call fcn.0041285c
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1014]
lea esi, [ebp - 0x1014]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov dword [edi], eax
mov dword [edi + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [ebp - 0x1034], eax
add esp, 0x104c
pop esi
pop edi
pop ebp
ret
Function at 0x40a03c
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
add esp, 4
pop ebp
ret
Function at 0x40c1ac
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x28c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x260]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00412810
lea ecx, [0x41fd30]
lea edx, [ebp - 0x260]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x268], eax
call fcn.0040b41c
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi], edx
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 1
mov dword [esi + 4], 0
mov dword [ebp - 0x26c], eax
call sub.KERNEL32.DLL_FindFirstFileExA
sub esp, 0x18
mov ecx, 0xffffffff
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], ecx
jne 0x40c25e
mov dword [ebp - 0xc], 0
jmp 0x40c3df
mov dword [ebp - 0x264], 0
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0
je 0x40c395
lea eax, [0x41fd32]
lea ecx, [ebp - 0x15c]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004127c0
cmp eax, 0
je 0x40c393
lea eax, [0x41fd34]
lea ecx, [ebp - 0x15c]
add ecx, 0x2c
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004127c0
cmp eax, 0
je 0x40c393
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00412810
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
add ecx, 0x2c
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x270], eax
call fcn.0040b41c
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [ebp - 0x274], eax
call esi
cmp eax, 0
jne 0x40c33a
jmp 0x40c3be
mov eax, dword [ebp - 0x264]
add eax, 1
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x14], 0
je 0x40c391
mov eax, 1
lea ecx, [ebp - 0x260]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], esi
mov dword [ebp - 0x278], eax
call fcn.0040c1ac
mov ecx, dword [ebp - 0x264]
add ecx, eax
mov dword [ebp - 0x264], ecx
jmp 0x40c393
jmp 0x40c395
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x15c]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
cmp eax, 0
jne 0x40c3b9
jmp 0x40c3be
jmp 0x40c268
mov eax, dword [ebp - 0x160]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0xc]
add esp, 0x28c
pop esi
pop edi
pop ebp
ret
Function at 0x40c3ec
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0xc1059ed8
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x367cd507
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3070dd17
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xf70e5939
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xffc00b31
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x68581511
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x64f98fa7
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xbefa4fa4
add esp, 4
pop ebp
ret

Function at 0x40c45c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x6a09e667
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x5be0cd19
add esp, 4
pop ebp
ret
Function at 0x40cc78
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax], 0xc1059ed8
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 8], 0x367cd507
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x10], 0x3070dd17
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x18], 0xf70e5939
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x20], 0xffc00b31
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x28], 0x68581511
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x30], 0x64f98fa7
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x38], 0xbefa4fa4
add esp, 4
pop ebp
ret

Function at 0x40cd28
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x6a09e667
mov dword [eax], 0xf3bcc908
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 8], 0x84caa73b
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x10], 0xfe94f82b
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x18], 0x5f1d36f1
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x20], 0xade682d1
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x28], 0x2b3e6c1f
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x30], 0xfb41bd6b
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x38], 0x137e2179
add esp, 4
pop ebp
ret
Function at 0x40d7a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x100
mov dword [eax], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x12c], eax
call fcn.0040b85c
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x120]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
sub esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
ja 0x40d82a
mov dword [ebp - 0x10], 0
jmp 0x40d96c
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call fcn.0040fe68
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x18]
mov esi, esp
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi], ecx
mov dword [esi + 4], 0
call sub.VERSION.DLL_GetFileVersionInfoA
sub esp, 0x10
lea ecx, [ebp - 0x11c]
mov edx, dword [ebp - 0x18]
lea esi, [ebp - 0x120]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], ecx
mov dword [edi], edx
mov dword [edi + 4], 0x420178
mov dword [ebp - 0x130], eax
call sub.VERSION.DLL_VerQueryValueA
sub esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40d8cf
cmp dword [ebp - 0x120], 4
jne 0x40d8cf
mov eax, dword [ebp - 0x11c]
movzx eax, word [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x11c]
movzx ecx, word [ecx + 2]
or eax, ecx
mov dword [ebp - 0x124], eax
jmp 0x40d8d9
mov dword [ebp - 0x124], 0x40904e4
lea eax, str.StringFileInfo_08XFileDescription
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0x124]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00413f3c
lea ecx, [ebp - 0x11c]
lea edx, [ebp - 0x118]
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x120]
mov ebx, esp
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [ebx], esi
mov dword [ebp - 0x134], eax
call sub.VERSION.DLL_VerQueryValueA
sub esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40d958
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x11c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00412810
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0040fe78
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x13c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410ed8
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
sub esp, 0x14
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420ba2], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420ba1], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420ba0], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420b9f], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420b9e], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420b9d], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x420b9c], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x420b9b], al
mov dword [esp + 8], str.LocalFastMM_PID________
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.DLL_OpenFileMappingA
sub esp, 0xc
mov esi, eax
test esi, esi
je 0x410fe3
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov edi, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
jmp 0x410fe5
xor edi, edi
mov eax, edi
add esp, 0x14
pop esi
pop edi
ret

Function at 0x410ff8
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x18
xor eax, eax
mov ecx, fcn.004118c2
cmp dword [0x420438], ecx
jne 0x4110fd
mov ecx, fcn.00411c46
cmp dword [0x42043c], ecx
jne 0x4110fd
mov ecx, fcn.00411e3e
cmp dword [0x420440], ecx
jne 0x4110fd
mov ecx, fcn.00412158
cmp dword [0x420444], ecx
jne 0x4110fd
mov ecx, 0x4101f8
cmp dword [0x420448], ecx
jne 0x4110fd
xor eax, eax
mov ecx, 0x410208
cmp dword [0x42044c], ecx
jne 0x4110fd
mov ecx, dword [0x423f8c]
test ecx, ecx
jne 0x4110fd
call fcn.00410ed8
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x4110fd
mov dword [esp + 0x14], str.LocalFastMM_PID________
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
sub esp, 0x18
mov dword [0x423f8c], eax
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov dword [eax], fcn.004118c2
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov eax, 1
add esp, 0x18
ret