joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021a80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1005a818]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x220], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x10021c35
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10021c27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10021c27
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x10021c02
push edi
call fcn.10028f56
mov esi, eax
add esp, 4
test esi, esi
je 0x10021c26
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10021bc5
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], 0
push eax
push 0x1004c080
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10021be9
mov eax, dword [ebp - 0x214]
push 3
mov edi, dword [eax + 8]
mov ecx, edi
mov ebx, dword [eax + 0xc]
xor eax, eax
or eax, ebx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], eax
call fcn.10015760
test al, al
je 0x10021be9
movzx eax, bx
push eax
shr ebx, 0x10
push ebx
movzx eax, di
push eax
shr edi, 0x10
push edi
push str.Version:__hu___hu___hu___hu_n
call fcn.10020d70
add esp, 0x14
push esi
call fcn.10028f30
add esp, 4
pop ebx
pop edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10021c5a
push 3
call fcn.10015760
test al, al
je 0x10021be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UMFileUtil_GetModuleVersion
push str._s:_GetFileVersionInfo_failed_with_error_code:__u_n
call fcn.10020d70
add esp, 0xc
push esi
call fcn.10028f30
add esp, 4
pop ebx
pop edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10021c5a
push 3
call fcn.10015760
test al, al
je 0x10021c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UMFileUtil_GetModuleVersion
push str._s:_GetFileVersionInfoSize_failed_with_error_code:__u_n
call fcn.10020d70
add esp, 0xc
pop edi
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10021c5a
push 3
call fcn.10015760
test al, al
je 0x10021c5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.UMFileUtil_GetModuleVersion
push str._s:_GetModuleHandleEx_error_for_module__ls:__u_n
call fcn.10020d70
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x21c]
xor ecx, ebp
mov eax, dword [ebp - 0x220]
pop esi
call fcn.100256db
mov esp, ebp
pop ebp
ret 4
Function at 0x10024f70
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1005a818]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push edi
mov edi, dword [ebp + 8]
movq qword [ebp - 0x10], xmm0
call fcn.10025210
mov esi, eax
cmp esi, 0xffffffff
jne 0x10024fb4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100256db
mov esp, ebp
pop ebp
ret 4
push ebx
mov dword [ebp - 0x18], 0x10025080
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push 0x1a05
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
mov bl, al
test bl, bl
jne 0x1002500c
push str.WDDMCoreDump:_MiniDumpWriteDump___failed._n
call fcn.100212c0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100256db
mov esp, ebp
pop ebp
ret 4
Function at 0x10031724
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100316a6
Function at 0x10041e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x10041f52
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10041f52
mov dword [ecx], 0x74
mov dword [ecx + 4], 1
mov eax, dword [edx + 0x58]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 1
mov eax, dword [edx + 0x5c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 1
mov dword [ecx + 0x18], 0x20
mov dword [ecx + 0x1c], 1
mov dword [ecx + 0x20], 0x20
mov eax, dword [edx + 0x64]
mov dword [ecx + 0x24], eax
mov eax, dword [edx + 0x68]
mov dword [ecx + 0x28], eax
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 0x74]
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 0x78]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 0x7c]
mov dword [ecx + 0x38], eax
mov eax, dword [edx + 0x80]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x84]
mov dword [ecx + 0x40], eax
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x44], eax
mov eax, dword [edx + 0x8c]
and eax, 0xffefffff
mov dword [ecx + 0x48], eax
mov eax, dword [edx + 0x90]
mov dword [ecx + 0x4c], eax
movzx eax, word [edx + 0x94]
mov word [ecx + 0x50], ax
movzx eax, word [edx + 0x98]
mov word [ecx + 0x52], ax
mov eax, dword [edx + 0xa0]
mov dword [ecx + 0x54], eax
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x58], eax
movzx eax, word [edx + 0xa4]
mov word [ecx + 0x5c], ax
movzx eax, word [edx + 0xa8]
mov word [ecx + 0x5e], ax
mov eax, dword [edx + 0x9c]
or eax, 4
mov dword [ecx + 0x60], eax
pop ebp
ret 8
Function at 0x40192f
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xaca
jge 0x40194a
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp edi, 0x45be4d9
jg 0x401964
inc edi
cmp edi, 0x332fe31
jl 0x40193b
cmp dword [0x20904f4], 0x400
jne 0x4019a4
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
call fcn.00401ef2
call fcn.00401da1
push esi
call fcn.004020e4
pop ecx
pop ecx
xor edi, edi
cmp edi, 0xd036
jge 0x4019b5
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x4019db
inc edi
cmp edi, 0x263ff
jl 0x4019a6
mov eax, dword [0x443864]
mov dword [0x20904f4], eax
call fcn.004016c1
mov edi, 0x3078f
cmp dword [0x20904f4], 0x51f
jne 0x401a07
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x4019ef
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x4045f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429430]
jne 0x4045ff
repz ret
jmp fcn.004062f9
Function at 0x405b45
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004035d8
and dword [ebp - 0x14], 0
cmp dword [0x44e380], 0
mov dword [ebp - 0x18], eax
jne 0x405bf8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405ca0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405ca0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44e380], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44e384], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44e388], eax
call edi
push eax
call esi
mov dword [0x44e390], eax
test eax, eax
je 0x405bf8
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44e38c], eax
mov eax, dword [0x44e38c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405c51
cmp dword [0x44e390], ecx
je 0x405c51
push eax
call esi
push dword [0x44e390]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405c51
test ebx, ebx
je 0x405c51
call edi
test eax, eax
je 0x405c48
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405c48
test byte [ebp - 8], 1
jne 0x405c51
or dword [ebp + 0x10], 0x200000
jmp 0x405c84
mov eax, dword [0x44e384]
cmp eax, dword [ebp - 0x18]
je 0x405c84
push eax
call esi
test eax, eax
je 0x405c84
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405c84
mov eax, dword [0x44e388]
cmp eax, dword [ebp - 0x18]
je 0x405c84
push eax
call esi
test eax, eax
je 0x405c84
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44e380]
call esi
test eax, eax
je 0x405ca0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405ca2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f5
leave
ret
Function at 0x1009b454
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014fef1
call fcn.10147df8
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008f6dc
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call fcn.1013204f
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009b49b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009b49d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x1009b680
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
cmp ecx, 0xffffffff
jne 0x1009b4d0
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [eax + 4], ebx
jmp 0x1009b4dc
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
mov dword [eax + 4], ecx
mov eax, esi
call fcn.10147dc1
ret

Function at 0x1009b790
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x1009b7a2
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x100a1d60
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x10150bd0
call fcn.10147e2c
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], esi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
call fcn.1009b955
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.100a1e88
test eax, eax
jne 0x100a1da4
push 0xffffffffffffffff
push 0x10159980
mov ecx, esi
call fcn.1013204f
jmp 0x100a1dea
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ecx, esi
push 0xffffffffffffffff
push 0x10159980
test eax, eax
je 0x100a1d9d
call fcn.1013204f
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10165c80
push eax
call fcn.1013204f
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.1013204f
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x100a1dc3
mov eax, esi
call fcn.10147dd6
ret

Function at 0x100a1e88
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, dword [0x107d4410]
test esi, esi
jne 0x100a1edc
push edi
push esi
push 1
push esi
push esi
mov edi, 0x107d4410
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100a1ed5
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x100a1ed5
push 8
push 1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x100a1ed5
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x107d4410], esi
jmp 0x100a1edb
mov esi, dword [0x107d4410]
pop edi
mov eax, esi
pop esi
ret
Function at 0x100a2070
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x10150c7f
call fcn.10147e2c
mov ebx, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
call fcn.100a1e88
and dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], eax
call fcn.1009b955
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.1009b955
push edi
mov eax, 0x10165d08
mov dword [ebp - 0x44], 1
push eax
push esi
push eax
push edi
push ebx
call fcn.1013204f
pop ecx
pop ecx
push eax
call fcn.1013204f
pop ecx
pop ecx
push eax
call fcn.1013204f
pop ecx
pop ecx
push eax
call fcn.1013204f
pop ecx
pop ecx
push eax
call fcn.1013204f
mov eax, dword [ebp - 0x48]
pop ecx
pop ecx
test eax, eax
jne 0x100a2105
push 0xffffffffffffffff
push 0x10159980
mov ecx, ebx
call fcn.1013204f
jmp 0x100a21c1
lea ecx, [ebp - 0x3c]
xor esi, esi
push ecx
push esi
push esi
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100a20f2
push esi
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100a20f2
push 4
pop ecx
push esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x40], esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], ecx
push eax
push ecx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100a20f2
push dword [ebp - 0x40]
call fcn.1013204f
mov edi, eax
pop ecx
test edi, edi
je 0x100a20f2
push esi
lea eax, [ebp - 0x40]
push eax
push edi
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, ebx
push 0xffffffffffffffff
push 0x10159980
test eax, eax
jne 0x100a2185
call fcn.1013204f
jmp 0x100a21ba
call fcn.1013204f
cmp dword [ebp - 0x40], esi
jbe 0x100a21ba
cmp esi, 0x28
jae 0x100a21ba
movzx eax, byte [esi + edi]
push eax
lea eax, [ebp - 0x38]
push 0x10165c80
push eax
call fcn.1013204f
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.1013204f
add esp, 0x14
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x100a218f
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
cmp dword [ebp - 0x3c], 0
je 0x100a21d0
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ecx, [ebp - 0x60]
call fcn.1013204f
mov eax, ebx
call fcn.10147dd6
ret
Function at 0x100afdae
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x10152d8e
call fcn.10147df8
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x10191e8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100ab64a
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.1009b955
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1013204f
pop ecx
pop ecx
push eax
call fcn.1013204f
push 0xc
lea edi, [esi + 0x56]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call fcn.1013204f
add esp, 0x18
test al, al
je 0x100afe21
cmp dword [esi + 0x5a], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x52], eax
call fcn.1013204f
mov eax, esi
call fcn.10147dc1
ret 8

Function at 0x100affb0
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x101509dd
call fcn.10147df8
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008f6a9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1009b803
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call fcn.1013204f
push 0
xor ecx, ecx
lea eax, [esi + 0x56]
cmp dword [esi + 0x5a], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100b004b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100b004b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100b004d
xor bl, bl
lea ecx, [ebp - 0x2c]
call fcn.1013204f
lea ecx, [ebp - 0x1c]
call fcn.1013204f
mov al, bl
call fcn.10147dc1
ret 8
Function at 0x10127680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1012771b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x101276d2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x101276d2
cmp esi, ebx
jge 0x101276d2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10127715
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10127715
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10155aa8]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x10155aa8]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012772d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10127950
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
mov eax, dword [ebp + 8]
je 0x10127978
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x10127992
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1013204f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10147db0
leave
ret 4

Function at 0x10127b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10127b96
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10127bf5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1013204f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1013204f
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1013204f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10147db0
leave
ret 0x10
Function at 0x10127c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101975e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d44f4], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10127c3c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10127c6d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10127c6b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1013204f
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10127c6d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10147db0
leave
ret 8
Function at 0x1013204f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1013205e
pop dword [ebp - 0x30]
mov eax, 0x1013205e
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xca2d108c
add dword [ebp - 0x40], 0x842534bf
mov dword [ebp - 0x3c], 0xead03902
sub dword [ebp - 0x3c], 0xb89cecbd
mov dword [ebp - 0x38], 0x65c9fec
add dword [ebp - 0x38], 0x45efa442
mov dword [ebp - 0x34], 0xc8e904f0
sub dword [ebp - 0x34], 0xc8e904f0
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x858b92d1
add dword [ebp - 0x40], 0xeee6d685
mov dword [ebp - 0x3c], 0x4e783ac3
add dword [ebp - 0x3c], 0xf2f426b2
mov dword [ebp - 0x38], 0x6fd6d83c
add dword [ebp - 0x38], 0xf3989430
mov dword [ebp - 0x34], 0xde0b73f8
add dword [ebp - 0x34], 0x21f48c08
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x5c62b204
sub eax, 0x4c4d5f68
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x72b0b
push 0
call eax
mov ecx, 0x6127c357
sub ecx, 0x61277c94
xor esi, esi
add esi, eax
mov edx, 0x107ec400
add edx, dword [ebp - 0x30]
mov ebx, 0x2ca9ee62
add ebx, 0x52367d49
mov dword [ebp - 4], 0x4daf655a
mov edi, dword [edx]
sub dword [ebp - 0xc], 0x5ae9703f
xor edi, ebx
sub dword [ebp - 0x20], 0x512d14d
mov dword [esi], edi
mov dword [ebp - 0x2c], 0xa4be1563
add esi, 0xf411ee6e
add esi, 0xbee1196
add edx, 0xe2920f23
add edx, 0x1d6df0e1
loop 0x10132172
add eax, 0x40f536f
add eax, 0xfbf1ba70
mov ebx, eax
add eax, 0x82848aa
sub eax, 0x82848a5
mov ecx, 0x9a5fa5f7
add ecx, 0x75a05a09
add ecx, dword [ebp - 0x30]
call ebx
leave
ret