joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7941b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00794140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00794140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00794140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00794140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x794bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x794c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7a687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x794c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x794c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4025d0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push str.IimServer
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402633
cmp eax, 0xb7
jne 0x402633
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402757
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [0x4394b8], eax
call fcn.0040a290
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402733
lea eax, [ebp - 0x24]
push eax
call fcn.00419d10
add esp, 4
lea eax, [ebp - 0x24]
push eax
push 0
push 0x800
push 0x800
push 0xff
push 6
push 3
push 0x42fee8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.00419dd0
add esp, 4
cmp esi, 0xffffffff
je 0x402728
nop
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4026bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x4026bd
push esi
jmp 0x4026df
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push esi
push 0x401210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402728
push eax
call edi
lea eax, [ebp - 0x24]
push eax
call fcn.00419d10
add esp, 4
lea eax, [ebp - 0x24]
push eax
push 0
push 0x800
push 0x800
push 0xff
push 6
push 3
push 0x42fee8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
call fcn.00419dd0
add esp, 4
cmp esi, 0xffffffff
jne 0x4026a0
push dword [ebp - 0x14]
call fcn.0040a360
add esp, 4
test ebx, ebx
je 0x40273a
push ebx
call edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.0040a360
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ba40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x40ba70
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x40ba90
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x40bad6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x598
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bad6
mov edx, dword [ebp - 4]
add edx, 0x598
push edx
call fcn.00418480
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40bd00
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x598
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_stc.map
mov ecx, dword [ebp - 4]
add ecx, 0x598
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 4]
add edx, 0x598
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bd55
mov eax, dword [ebp - 4]
add eax, 0x598
push eax
call fcn.00418480
add esp, 4
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 4]
add ecx, 0x598
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x40bd8a
xor eax, eax
jmp 0x40be53
push str.Iime_STTrie_Codetable
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x574]
push edx
push 0
push 4
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x40bdd6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
xor eax, eax
jmp 0x40be53
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x40be2f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0xffffffff
xor eax, eax
jmp 0x40be53
mov ecx, dword [ebp - 4]
add ecx, 0x580
call fcn.00401fe0
push eax
mov ecx, dword [ebp - 4]
call fcn.0040be60
test eax, eax
jne 0x40be4e
xor eax, eax
jmp 0x40be53
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40dd90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x40ddbe
push 0x8000
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x40dde7
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
je 0x40de07
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0xffffffff
je 0x40de4c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
add edx, 0x6fc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40de4c
mov eax, dword [ebp - 4]
add eax, 0x6fc
push eax
call fcn.00418480
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x904], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x90c], 0
mov esp, ebp
pop ebp
ret
Function at 0x4102e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
mov eax, dword [ebp - 0x210]
add eax, 0x6fc
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_imc.map
mov ecx, dword [ebp - 0x210]
add ecx, 0x6fc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x210]
add edx, 0x6fc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410353
mov eax, dword [ebp - 0x210]
add eax, 0x6fc
push eax
call fcn.00418480
add esp, 4
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x210]
add ecx, 0x6fc
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x210]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x210]
cmp dword [eax + 4], 0xffffffff
jne 0x410391
xor eax, eax
jmp 0x410500
push str.Iime_Trie_Codetable
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 0x904]
push edx
push 0
push 4
push 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 0x210]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x210]
cmp dword [eax + 8], 0
jne 0x4103f2
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x210]
mov dword [eax + 4], 0xffffffff
xor eax, eax
jmp 0x410500
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x210]
cmp dword [edx + 0xc], 0
jne 0x410463
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x210]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x210]
mov dword [edx + 4], 0xffffffff
xor eax, eax
jmp 0x410500
push 0
mov ecx, dword [ebp - 0x210]
add ecx, 0x6e4
call fcn.00401fe0
push eax
mov ecx, dword [ebp - 0x210]
call fcn.00410510
test eax, eax
jne 0x41048a
xor eax, eax
jmp 0x410500
mov eax, dword [ebp - 0x210]
cmp dword [eax + 0x6c8], 0
je 0x4104a8
mov ecx, dword [ebp - 0x210]
cmp dword [ecx + 0x6c8], 2
jne 0x4104fb
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.0041de40
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.00418110
add esp, 4
push 0x43086c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp - 0x210]
call fcn.00410510
test eax, eax
jne 0x4104fb
xor eax, eax
jmp 0x410500
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret
Function at 0x415d20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x415d50
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x415d70
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x415db6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
add ecx, 0x6dc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415db6
mov edx, dword [ebp - 4]
add edx, 0x6dc
push edx
call fcn.00418480
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4160f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x6dc
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_enc.map
mov ecx, dword [ebp - 4]
add ecx, 0x6dc
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 4]
add edx, 0x6dc
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416145
mov eax, dword [ebp - 4]
add eax, 0x6dc
push eax
call fcn.00418480
add esp, 4
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 4]
add ecx, 0x6dc
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x41617a
xor eax, eax
jmp 0x416243
push str.Iime_EnTrie_Codetable
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x8e4]
push edx
push 0
push 4
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4161c6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
xor eax, eax
jmp 0x416243
push 0
push 0
push 0
push 0xf001f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0
jne 0x41621f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0xffffffff
xor eax, eax
jmp 0x416243
mov ecx, dword [ebp - 4]
add ecx, 0x6c4
call fcn.00401fe0
push eax
mov ecx, dword [ebp - 4]
call fcn.00416250
test eax, eax
jne 0x41623e
xor eax, eax
jmp 0x416243
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x417720
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417742
xor eax, eax
jmp 0x4177a2
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41776b
xor eax, eax
jmp 0x4177a2
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
push 0x564
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret

Function at 0x4177b0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4177da
xor eax, eax
jmp 0x4178ae
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0xffffffff
jne 0x41780c
xor eax, eax
jmp 0x4178ae
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
push 0x564
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x15c], 0
cmp dword [ebp + 0x570], 0
je 0x4178a8
push 0x14e
push 0
lea eax, [ebp - 0x158]
push eax
call fcn.0041de40
add esp, 0xc
lea ecx, [ebp - 0x158]
push ecx
call fcn.004178c0
add esp, 4
mov edx, 1
mov word [ebp - 0x13a], dx
sub esp, 0x150
mov ecx, 0x53
lea esi, [ebp - 0x158]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00417a10
add esp, 0x150
mov eax, dword [ebp - 0x160]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret
Function at 0x4178c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041de40
add esp, 0xc
push 0x11
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004181f0
add esp, 8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417941
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00417af0
add esp, 8
mov esi, dword [ebp + 8]
sub esp, 0x150
mov ecx, 0x53
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00417a10
add esp, 0x150
mov eax, 1
jmp 0x417954
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00417970
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret

Function at 0x417970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4179a9
xor eax, eax
jmp 0x4179f5
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0x14e
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x34]
cmp edx, 0xa
jne 0x4179e1
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x34], ax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret

Function at 0x417a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.0041de40
add esp, 0xc
push 0x11
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004181f0
add esp, 8
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x417ad6
mov dword [ebp - 0x210], 0
mov eax, 0x14e
mov word [ebp + 8], ax
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0x14e
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x214], 0
push 0
push 0
push 0x10
call fcn.00419e00
add esp, 0xc
mov eax, 1
jmp 0x417ad8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret
Function at 0x417e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x438040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0x20219
push 0
push str.SoftwareIime
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x417ea7
xor eax, eax
jmp 0x4180c5
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041de40
add esp, 0xc
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0
push str.Clsid
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x417f10
push str.83DB39EE_30A2_4143_9062_0C4FD8274968
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00418b50
add esp, 8
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push str.Guid
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x417f76
push str.F0970D4D_3985_46B0_B882_0EC7BA3D3BD1
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00418b50
add esp, 8
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push str.SetupLocation
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x417fdc
lea edx, [ebp - 0x20c]
push edx
call fcn.004182a0
add esp, 4
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00401ff0
mov dword [ebp - 0x210], 0x208
mov dword [ebp - 0x214], 1
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push str.DataLocation
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41805a
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00401fe0
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.IimeData
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x38
call fcn.00401ff0
mov edx, dword [ebp + 8]
mov dword [edx + 0x50], 0
mov dword [ebp - 0x210], 4
mov dword [ebp - 0x214], 4
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x50
push ecx
lea edx, [ebp - 0x214]
push edx
push 0
push str.Portable
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c52e
mov esp, ebp
pop ebp
ret