joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100017aa
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push 1
push 9
push 5
push 1
push 0x100084f4
call dword [sym.imp.OLEAUT32.dll_VarDecFix]
push 0x400
lea eax, [ebp - 0x810]
push eax
push 1
push dword [0x1000ace0]
call dword [sym.imp.USER32.dll_LoadStringA]
xor ebx, ebx
xor eax, eax
cmp dword [str.CLSID9493BF10_6A0A_11D3_AFB2_00C06C397814], ebx
je 0x100017fa
mov ecx, 0x1000a044
add ecx, 0x10
inc eax
cmp dword [ecx], ebx
jne 0x100017f2
dec eax
js 0x100018c8
push esi
mov esi, eax
shl esi, 4
add esi, 0x1000a048
inc eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x810]
push eax
push dword [esi - 4]
lea eax, [ebp - 0x410]
push eax
call fcn.1000210d
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
lea eax, [ebp - 0x410]
push eax
push dword [esi - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100018ba
mov eax, dword [esi]
cmp eax, ebx
je 0x10001861
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x100018b5
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x100018ba
cmp dword [ebp - 0xc], ebx
jne 0x100018a1
cmp dword [ebp - 0x10], 1
ja 0x100018a1
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x410]
push eax
push dword [esi - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x100018ba
push 1
push 0x100081fc
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call edi
sub esi, 0x10
dec dword [ebp - 8]
jne 0x10001818
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10001aa8
Capabilities:
Create process on windows
Read file via mapping
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
je 0x10001aca
push dword [ebp + 0x10]
call fcn.10002050
mov edi, eax
pop ecx
add edi, 8
jmp 0x10001acd
push 8
pop edi
push dword [ebp + 0xc]
call fcn.10002050
mov dword [esp], str.HotKeyboard_FileMapping
lea edi, [edi + eax + 1]
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10001c6f
push esi
push edi
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [edi - 4]
mov dword [eax], ecx
lea esi, [eax + 4]
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x14]
mov byte [esi], al
inc esi
mov byte [esi], 1
inc esi
mov byte [esi], bl
inc esi
cmp dword [ebp + 0x10], ebx
je 0x10001b40
push dword [ebp + 0x10]
push esi
call fcn.10001d40
push dword [ebp + 0x10]
call fcn.10002050
add esp, 0xc
lea esi, [esi + eax + 1]
jmp 0x10001b43
mov byte [esi], bl
inc esi
push dword [ebp + 0xc]
push esi
call fcn.10001d40
pop ecx
pop ecx
push ebx
push str.HotKeyboardFakeWnd
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x10001b71
push ebx
push ebx
push 0x8068
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x10001c5c
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x200
lea eax, [ebp - 0x20c]
push eax
push 2
push dword [0x1000ace0]
call esi
push 0x200
lea eax, [ebp - 0x40c]
push eax
push 3
push dword [0x1000ace0]
call esi
push 0x34
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x10001c5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x20006
push ebx
push 0x100081fc
push ebx
push str.SOFTWARETB_LabsHot_Keyboard
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001c0c
push edi
push dword [ebp - 4]
push 3
push ebx
push str.SmartAdd_pending_info
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea eax, [ebp - 0x80b]
push eax
push dword [0x1000ace0]
mov byte [ebp - 0x80c], 0x22
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x80b]
push 0x5c
push eax
call fcn.100020e0
cmp eax, ebx
pop ecx
pop ecx
je 0x10001c5c
inc eax
push str.HotKeyb.exe_
push eax
call fcn.10001d40
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x100021ad
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000229a
mov eax, 0x94
call fcn.10002170
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000230f
mov ecx, dword [esi + 0x10]
mov dword [0x1000b104], ecx
mov eax, dword [esi + 4]
mov dword [0x1000b110], eax
mov edx, dword [esi + 8]
mov dword [0x1000b114], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000b108], esi
je 0x10002218
or esi, 0x8000
mov dword [0x1000b108], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000b10c], eax
call fcn.10003a15
test eax, eax
pop ecx
je 0x1000230f
call fcn.10003208
test eax, eax
jne 0x10002245
call fcn.10003a66
jmp 0x1000230f
call fcn.10003973
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000c8f4], eax
call fcn.10003851
mov dword [0x1000b0f0], eax
call fcn.10003332
test eax, eax
jl 0x10002293
call fcn.100037af
test eax, eax
jl 0x1000228e
call fcn.1000357c
test eax, eax
jl 0x1000228e
call fcn.10002ea3
test eax, eax
jne 0x1000228e
inc dword [0x1000b0ec]
jmp 0x10002320
call fcn.10003530
call fcn.10002ffb
jmp 0x1000223b
test eax, eax
jne 0x100022ca
cmp dword [0x1000b0ec], eax
jle 0x1000230f
dec dword [0x1000b0ec]
cmp dword [0x1000b140], eax
jne 0x100022b9
call fcn.10002fec
call fcn.10003530
call fcn.10002ffb
call fcn.10003a66
jmp 0x10002320
cmp eax, 2
jne 0x10002313
push 0x88
push 1
call fcn.10003277
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000230f
push esi
push dword [0x1000a17c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10002309
call fcn.10003019
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10002320
call fcn.100023fb
pop ecx
xor eax, eax
jmp 0x10002323
cmp eax, 3
jne 0x10002320
push 0
call fcn.1000309d
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10002f08
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10003dc7
xor esi, esi
inc esi
cmp dword [0x1000b144], esi
pop ecx
jne 0x10002f30
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x1000b140], esi
mov byte [0x1000b13c], al
jne 0x10002f96
mov ecx, dword [0x1000c8e8]
test ecx, ecx
je 0x10002f77
mov eax, dword [0x1000c8e4]
sub eax, 4
cmp eax, ecx
jmp 0x10002f70
mov eax, dword [eax]
test eax, eax
je 0x10002f62
call eax
mov eax, dword [0x1000c8e4]
sub eax, 4
cmp eax, dword [0x1000c8e8]
mov dword [0x1000c8e4], eax
jae 0x10002f5a
mov eax, 0x1000a020
mov esi, 0x1000a028
cmp eax, esi
mov edi, eax
jae 0x10002f96
mov eax, dword [edi]
test eax, eax
je 0x10002f8f
call eax
add edi, 4
cmp edi, esi
jb 0x10002f87
mov eax, 0x1000a02c
mov esi, 0x1000a030
cmp eax, esi
mov edi, eax
jae 0x10002fb5
mov eax, dword [edi]
test eax, eax
je 0x10002fae
call eax
add edi, 4
cmp edi, esi
jb 0x10002fa6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10002fc6
push 8
call fcn.10003d33
jmp 0x10002fd8
push dword [ebp + 8]
mov dword [0x1000b144], 1
call fcn.10002e61
pop ecx
pop ebp
ret
Function at 0x10003ae5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1000a5f8]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1000a1a8]
je 0x10003b12
inc eax
cmp eax, 0x12
jb 0x10003b03
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000a1a8]
jne 0x10003c46
mov eax, dword [0x1000b0f8]
cmp eax, 1
je 0x10003c21
cmp eax, edx
jne 0x10003b42
cmp dword [0x1000b0fc], 1
je 0x10003c21
cmp ecx, 0xfc
je 0x10003c46
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10003b7b
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10001d40
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10002050
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10003bbd
lea eax, [ebp - 0x10c]
push eax
call fcn.10002050
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10008a98
push edi
call fcn.10001f10
add esp, 0x10
push edi
call fcn.10002050
push dword [esi + 0x1000a1ac]
mov ebx, eax
call fcn.10002050
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10002170
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10001d40
push edi
push ebx
call fcn.10001d50
push 0x10008a78
push ebx
call fcn.10001d50
push dword [esi + 0x1000a1ac]
push ebx
call fcn.10001d50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10005c0d
add esp, 0x2c
jmp 0x10003c46
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1000a1ac]
push dword [esi]
call fcn.10002050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10004f79
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004aa2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1000a5f8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x10004acb
xor eax, eax
jmp 0x10004c39
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1000c7e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10004afe
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.10006305
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10004bd0
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x10004c0b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x10004b59
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10004b4a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x10004b2d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004b99
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10004ba2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10004b1e
jmp 0x10004ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10004c34
cmp dword [ebp - 8], edi
je 0x10004c0b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x10004bfd
call fcn.10005d06
mov dword [eax], 9
call fcn.10005d0f
mov dword [eax], esi
jmp 0x10004c06
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10004bf2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10004ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10004ba4
push dword [ebp - 8]
call fcn.10005d18
pop ecx
or eax, 0xffffffff
jmp 0x10004c37
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10004c20
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x10004c20
xor eax, eax
jmp 0x10004c37
call fcn.10005d06
mov dword [eax], 0x1c
call fcn.10005d0f
mov dword [eax], edi
jmp 0x10004c06
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.10004f79
leave
ret
Function at 0x10005c0d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000b3c8], ebx
push esi
push edi
jne 0x10005c8d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10005cc8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10009144
push edi
call esi
test eax, eax
mov dword [0x1000b3c8], eax
je 0x10005cc8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000b3cc], eax
call esi
cmp dword [0x1000b104], 2
mov dword [0x1000b3d0], eax
jne 0x10005c8d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000b3d8], eax
je 0x10005c8d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000b3d4], eax
mov eax, dword [0x1000b3d4]
test eax, eax
je 0x10005cd2
call eax
test eax, eax
je 0x10005cb9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000b3d8]
test eax, eax
je 0x10005cb9
test byte [ebp - 8], 1
jne 0x10005cd2
cmp dword [0x1000b110], 4
jb 0x10005ccc
or byte [ebp + 0x12], 0x20
jmp 0x10005cf1
xor eax, eax
jmp 0x10005d01
or byte [ebp + 0x12], 4
jmp 0x10005cf1
mov eax, dword [0x1000b3cc]
test eax, eax
je 0x10005cf1
call eax
mov ebx, eax
test ebx, ebx
je 0x10005cf1
mov eax, dword [0x1000b3d0]
test eax, eax
je 0x10005cf1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000b3c8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000759e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.10002170
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10007633
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1000b104]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10007633
cmp eax, 1
je 0x1000764b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10007633
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10007608
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1000762f
xor eax, eax
inc eax
jmp 0x10007667
cmp esi, ebx
jae 0x10007637
xor eax, eax
jmp 0x10007667
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1000b104]
jmp 0x1000764d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x73aa0a47
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x33256f69
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40685b
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x445814], 2
push esi
push edi
mov edi, edx
mov esi, ecx
jl 0x40686f
call fcn.004054e2
call fcn.00406e5a
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x43d2e0]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x406876
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop edi
pop esi
ret 4
Function at 0x407d40
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, edx
test esi, esi
je 0x407d64
movzx edx, byte [edi]
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x446440]
inc edi
sub esi, 1
jne 0x407d4c
pop edi
mov eax, ecx
pop esi
ret 4
Function at 0x40bff0
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x435278
call fcn.00434186
mov edi, ecx
and dword [edi + 0x4c], 0
cmp byte [edi + 0x30], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
jne 0x40c020
test bl, 4
jne 0x40c020
xor cl, cl
jmp 0x40c022
mov cl, 1
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40c03a
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x40c049
or ebx, 2
lea ecx, [ebp - 0x88]
call fcn.004084ad
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [edi + 0x24], al
je 0x40c064
or esi, 0x100
mov ecx, dword [ebp - 0x90]
push eax
push 0x8000000
push 3
push eax
push ebx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
jne 0x40c101
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
call fcn.004021b6
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040f2df
test al, al
je 0x40c0e7
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40c0e7
push eax
pop ebx
jmp 0x40c0ed
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401e29
mov eax, dword [ebp - 0x8c]
jmp 0x40c107
mov ebx, dword [ebp - 0x94]
cmp eax, 0xffffffff
jne 0x40c118
cmp ebx, 2
jne 0x40c118
mov dword [edi + 0x4c], 1
cmp byte [edi + 0x24], 0
je 0x40c149
cmp eax, 0xffffffff
je 0x40c149
or dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0x98]
or dword [ebp - 0x94], 0xffffffff
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
cmp eax, 0xffffffff
mov byte [edi + 0x1c], cl
mov dword [edi + 0x10], ecx
setne bl
mov byte [edi + 0x15], cl
je 0x40c171
push dword [ebp - 0x90]
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.004032fd
mov byte [edi + 0x25], 0
lea ecx, [ebp - 0x88]
call fcn.004084d1
mov al, bl
call fcn.00434135
ret 8
Function at 0x40c34f
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4352af
call fcn.00434186
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40c371
mov al, 1
jmp 0x40c4a2
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40c38f
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40c470
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40c3e6
xor edi, edi
test esi, esi
je 0x40c406
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40c3b6
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x40c3fe
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40c3a7
jmp 0x40c3fe
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x40c49b
cmp byte [ebx + 0x1e], 0
je 0x40c49b
cmp dword [ebx + 0x10], 0
jne 0x40c49b
push ecx
lea edi, [ebx + 0x34]
push edi
call fcn.00407e1c
test al, al
je 0x40c478
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40c392
cmp dword [ebp - 0x30], 0
jbe 0x40c392
mov edi, dword [ebx]
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x437264]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
push 0
sbb edx, 0
push edx
push eax
call dword [0x437264]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40c392
push 0x43d29c
lea ecx, [ebp - 0x28]
call fcn.00401ce3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00407dfe
lea ecx, [ebp - 0x28]
call fcn.00401e29
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00434135
ret 8

Function at 0x40cb24
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x434c2d
call fcn.00434186
mov bl, dl
mov esi, ecx
call fcn.0040e749
movzx eax, ax
cmp eax, 0x2e
je 0x40cb5e
cmp eax, 0x20
je 0x40cb5e
push 0
mov ecx, esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x40cba8
jmp 0x40cb60
xor edi, edi
mov ecx, esi
call fcn.0040ce34
test al, al
jne 0x40cbba
lea ecx, [ebp - 0x2c]
call fcn.004021b6
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.0040f2df
test al, al
je 0x40cb98
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e29
test edi, edi
je 0x40cbba
test bl, bl
je 0x40cbb6
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0040cec1
xor eax, eax
jmp 0x40cbd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40cbd2
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00434135
ret 4
Function at 0x40ce65
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4348c7
call fcn.00434186
mov edi, ecx
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ceb9
lea ecx, [ebp - 0x28]
call fcn.004021b6
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0040f2df
test al, al
je 0x40ceb1
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00401e29
mov eax, esi
call fcn.00434135
ret

Function at 0x40cec1
Capabilities:
Set file attributes

Disassembly:
push 0x1c
mov eax, 0x4348c7
call fcn.00434186
mov esi, edx
mov edi, ecx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40cf1e
lea ecx, [ebp - 0x28]
call fcn.004021b6
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.0040f2df
test al, al
je 0x40cf16
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea ecx, [ebp - 0x28]
call fcn.00401e29
mov al, bl
call fcn.00434135
ret