joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083c3c]
test eax, eax
jne 0x10035bc9
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035bc9
push esi
push 0x178
call fcn.100536f0
add esp, 4
test eax, eax
je 0x10035b96
mov ecx, eax
call fcn.100536f0
mov esi, eax
jmp 0x10035b98
xor esi, esi
cmp byte [0x10083c38], 0
jne 0x10035bb2
mov ecx, esi
mov dword [0x10083c3c], esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret
push esi
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret

Function at 0x10035bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100829d0]
cmp eax, 0xffffffff
je 0x10035c26
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c17
mov ecx, dword [0x10083c3c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x10083c3c], ecx
mov ecx, esi
call fcn.1001d720
mov ecx, esi
call fcn.1001d6c0
push 0x178
push esi
call fcn.100536f0
add esp, 8
push 0
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x100536f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100536ff
pop dword [ebp - 0x38]
mov eax, 0x100536ff
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xcb629f48
sub dword [ebp - 0x48], 0x7d1059fd
mov dword [ebp - 0x44], 0xeca6fa44
add dword [ebp - 0x44], 0x458c5201
mov dword [ebp - 0x40], 0x2d7839dc
add dword [ebp - 0x40], 0x1ed40a52
mov dword [ebp - 0x3c], 0x3e5dd097
add dword [ebp - 0x3c], 0xc1a22f69
lea eax, [ebp - 0x48]
push eax
mov eax, 0x8bfd08c0
add eax, 0x8408b760
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xc8ca571
add dword [ebp - 0x48], 0x67e5c3e5
mov dword [ebp - 0x44], 0x2c246a30
sub dword [ebp - 0x44], 0xeab808bb
mov dword [ebp - 0x40], 0xa4a04621
sub dword [ebp - 0x40], 0x4130d9b5
mov dword [ebp - 0x3c], 0xa94c063c
sub dword [ebp - 0x3c], 0xa94c063c
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x905e2958
sub eax, 0x8058693c
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x53c61
push 0
call eax
mov ecx, 0xec813737
sub ecx, 0xec80ed2d
mov edx, eax
mov ebx, 0xd8ed50f7
sub ebx, 0xc8e434f7
add ebx, dword [ebp - 0x38]
mov edi, 0x3d47682
mov dword [ebp - 0xc], 0xfc164b09
mov esi, dword [ebx]
add dword [ebp - 4], 0x624fdc08
add esi, edi
xor dword [ebp - 0x2c], edx
mov dword [edx], esi
add dword [ebp - 0x34], 0xe65d9df3
add edx, 0x1d747557
add edx, 0xe28b8aad
add ebx, 0xa2da0a44
sub ebx, 0xa2da0a40
loop 0x10053816
add eax, 0xaef0b509
add eax, 0x511065f2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9f0a8907
add ecx, 0x70f576f9
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1000f188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000f197
pop dword [ebp - 0x1c]
mov eax, 0x1fc796f0
add eax, 0xf0395aa7
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x38c31
push 0
mov eax, 0xf39eb0fb
add eax, 0x1c628f69
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xa191822
sub ecx, 0xa18d168
xor ebx, ebx
add ebx, eax
mov edi, 0x14fb47d3
add edi, 0xfb063e2d
add edi, dword [ebp - 0x1c]
mov edx, 0xcaec56ee
mov esi, dword [edi]
xor dword [ebp - 0x14], 0x9257266c
xor esi, edx
mov dword [ebp - 0x18], 0x754ecc0b
mov dword [ebx], esi
sub dword [ebp - 0x18], 0x8f2bbd60
add ebx, 0x1de7cc46
sub ebx, 0x1de7cc42
add edi, 0x71960ec7
sub edi, 0x71960ec3
loop 0x1000f1f2
add eax, 0xd93d2ac3
add eax, 0x26c3e2f8
mov ebx, eax
add eax, 0xe8f04f13
sub eax, 0xe8f04f0e
mov ecx, 0xa69b1308
sub ecx, 0x969b1308
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x10001822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000182c
repz ret
jmp fcn.10001bc2
Function at 0x1001f7d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
push ebx
push esi
push edi
push 0xe
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
push esi
rep stosd dword es:[edi], eax
call sub.IMM32.dll_ImmDisableIME
push dword [ebp + 8]
call fcn.01001ef0
mov ebx, dword [ebp + 0x10]
cmp word [ebx], si
mov dword [ebp - 4], eax
je 0x10020c8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x1001ce8
push ebx
call edi
test eax, eax
je 0x10020c8
push ebx
push 0x1001cd8
call edi
test eax, eax
jne 0x1001fe1
jmp loc.01004000
cmp dword [ebp - 0x30], esi
jne 0x100208b
and dword [ebp + 8], 0
mov esi, 0x100185c
cmp dword [ebp + 8], 0x150
jae 0x1002031
push ebx
push dword [esi - 4]
call edi
test eax, eax
jne 0x1002024
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1002018
push eax
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x1002024
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
add dword [ebp + 8], 0x10
add esi, 0x10
cmp dword [ebp - 0x30], 0
je 0x1001ff3
cmp dword [ebp - 0x30], 0
jne 0x1002089
push 0x1001104
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, 0x208
sub edi, eax
push edi
lea esi, [ebp + eax*2 - 0x46c]
push esi
lea ecx, [ebp - 0x46c]
push ebx
mov dword [ebp - 0x30], 0x10010e8
mov dword [ebp - 0x2c], ecx
call fcn.01001d10
test eax, eax
je 0x1002089
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x1002095
xor eax, eax
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x2000100
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10020f1
push esi
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x10020e7
mov dword [ebp - 0x30], 0x10010cc
mov dword [ebp - 0x2c], 0x1001140
jmp 0x100208b
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x5c]
push eax
call esi
test eax, eax
jne 0x10020d8
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0x10
Function at 0x401160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00438a9d
add esp, 0xc
pop ebp
ret 0xc

Function at 0x4011e0
Capabilities:
Create directory
Get thread local storage value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
sub eax, 2
push edi
mov edi, ecx
je 0x4012ef
dec eax
jne 0x401388
add edi, 0x118
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0043960d
mov ecx, dword [esi + 4]
add esp, 0xc
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [0x46bd9c]
mov edi, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012c3
movzx eax, word [esi + 0x1a]
movzx ecx, word [esi + 0x18]
lea edx, [ebp - 0x21c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x4012bc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x4012bc
lea ecx, [ebp - 0x214]
push ecx
push ebx
mov edx, ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [esi + 0x1c]
and eax, 0x27
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov eax, dword [esi + 4]
mov edx, dword [edx + 0x14]
push eax
call edx
test al, al
je 0x401382
lea eax, [edi + 0x118]
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0043960d
mov edx, dword [esi + 4]
add esp, 0xc
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.0043960d
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0x180
lea edx, [ebp - 0x108]
push 0x8121
push edx
call fcn.0043842e
add esp, 0xc
mov ebx, eax
inc dword [edi + 0x21c]
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
Function at 0x401520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0x8000
jl 0x401574
mov ecx, dword [esi + ebx*4 - 0x1fdd4]
mov eax, dword [esi + 0x228]
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40154e
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x224]
add eax, ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ecx
call fcn.0043e000
add esp, 0xc
add dword [esi + ebx*4 - 0x1fdd4], edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push ebx
call fcn.00438a9d
add esp, 0xc
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401630
Capabilities:
Extract resource via kernel32 functions
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov edi, eax
push 0x4b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401758
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401758
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [esi + 0x224], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edi, [esi + 8]
push edi
push 0xffffffffffffffff
push 0x4010e0
push 0x4010c0
push 0x401090
push 0x401060
push 0x401030
push 0x401020
push 0x401010
mov dword [esi + 0x228], eax
call dword [sym.imp.Cabinet.dll_FDICreate]
add esp, 0x24
mov dword [esi + 4], eax
test eax, eax
je 0x40173e
mov ecx, dword [0x46bd9c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call ebx
mov edx, dword [eax]
push 0
push 0x8020
mov ecx, eax
mov eax, dword [edx]
push 0
call eax
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
mov edi, eax
push edi
push edx
call dword [sym.imp.Cabinet.dll_FDIIsCabinet]
movzx eax, word [ebp - 0x16]
mov ecx, dword [0x46bd9c]
add esp, 0xc
push ecx
mov dword [esi + 0x220], eax
call ebx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004013a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
pop edi
pop esi
add eax, 0xb000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
Function at 0x4035a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f04b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00437888
push 4
mov dword [ebp - 4], 0
call fcn.0043985c
mov edi, eax
add esp, 4
test edi, edi
je 0x40361c
call fcn.00437b98
mov dword [edi], eax
call fcn.00437957
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00437849
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403612
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00437871
jmp 0x40361e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41b840
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x624]
push 0x104
push edx
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x884], eax
mov dword [ebp - 0x878], ecx
call fcn.0043a043
add esp, 0xc
push 0x4576d0
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x874]
push ecx
lea edx, [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x87c], eax
cmp eax, 0xffffffff
jne 0x41b8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.__Error_0x_X_retrieving_folder_contents
push 0x46a9d4
xor eax, eax
call fcn.0042d150
add esp, 0xc
jmp 0x41ba55
mov ecx, 0x4576dc
lea eax, [ebp - 0x848]
jmp 0x41b8f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b916
test dx, dx
je 0x41b912
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b916
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b8f0
xor eax, eax
jmp 0x41b91b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41ba1d
mov ecx, 0x4576e0
lea eax, [ebp - 0x848]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b956
test dx, dx
je 0x41b952
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b956
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b930
xor eax, eax
jmp 0x41b95b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41ba1d
push esi
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0043a043
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x41c]
push edx
call esi
mov eax, dword [ebp - 0x884]
push eax
lea ecx, [ebp - 0x214]
push 0x104
push ecx
call fcn.0043a043
add esp, 0xc
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x214]
push eax
call esi
test byte [ebp - 0x874], 0x10
je 0x41b9ed
mov ecx, dword [ebp - 0x878]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
push edx
push eax
push ecx
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x41c]
push eax
mov ecx, edi
call fcn.0041b840
jmp 0x41ba11
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ebx
push ecx
push edx
mov edx, dword [ebp - 0x878]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, edi
call fcn.0041bbf0
mov esi, eax
test esi, esi
jne 0x41ba48
mov esi, dword [ebp - 0x880]
mov eax, dword [ebp - 0x87c]
lea edx, [ebp - 0x874]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41ba48
xor esi, esi
mov ecx, dword [ebp - 0x87c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438351
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41ba70
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x469738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x414]
push ecx
push 0x104
mov esi, edx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x20c]
push edx
push 0
push 0x45b440
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push 0
push 3
push 0
push 1
push 0x20000
lea edx, [ebp - 0x20c]
push edx
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bb26
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
push eax
push 0
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 0
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x41bb93
push str.____Transfering_source_file_security
push 0x46a9d4
call fcn.0042d150
mov edx, dword [ebp - 0x41c]
add esp, 8
push 0
push edx
push 0
push 0
push SysStringLen
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x41bb93
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 5
push esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0x20c]
push edx
push str.____Source:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
push esi
push str.____Destination:__s
push 0x46a9d4
xor eax, eax
call fcn.0042d150
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
xor ecx, ebp
pop esi
call fcn.00438351
mov esp, ebp
pop ebp
ret 4
Function at 0x41c320
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4501a6
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x469738]
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa60], ecx
mov dword [ebp - 0xa5c], edx
xor ecx, ecx
xor edx, edx
or ebx, 0xffffffff
mov dword [ebp - 0xa58], 0x400
mov dword [ebp - 0xa20], 7
mov dword [ebp - 0xa24], ecx
mov word [ebp - 0xa34], dx
mov dword [ebp - 4], ecx
cmp byte [eax + 0x42], dl
je 0x41c4dc
add eax, 0x1c
push str.Uninstall
push eax
lea eax, [ebp - 0xa50]
push eax
call fcn.0040eba0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0xa34]
mov byte [ebp - 4], 1
call fcn.00404060
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], esi
jb 0x41c3da
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.004396db
add esp, 4
mov eax, dword [ebp - 0xa34]
cmp dword [ebp - 0xa20], esi
jae 0x41c3ee
lea eax, [ebp - 0xa34]
push 0
lea edx, [ebp - 0xa54]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea esp, [esp]
mov eax, dword [ebp - 0xa60]
inc ebx
push ebx
push eax
lea ecx, [ebp - 0x218]
push str._s_d
push ecx
call esi
mov eax, dword [ebp - 0xa54]
add esp, 0x10
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call edi
cmp eax, 2
jne 0x41c420
mov ebx, dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa18]
push ecx
lea eax, [ebp - 0xa58]
call fcn.004370c0
mov edx, dword [ebp - 0xa58]
add esp, 4
lea eax, [edx + edx]
push eax
mov eax, dword [ebp - 0xa54]
lea ecx, [ebp - 0xa18]
push ecx
push 7
push 0
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41c4b7
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 0xc
mov ecx, dword [ebp - 0xa54]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa20], 8
jb 0x41c4dc
mov edx, dword [ebp - 0xa34]
push edx
call fcn.004396db
add esp, 4
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.00438351
mov esp, ebp
pop ebp
ret 4
Function at 0x41f660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x469738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0x18]
push 0x457a7c
push eax
mov dword [ebp - 4], ebx
call fcn.00439f05
add esp, 8
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41f6b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], ebx
lea ebx, [ebp - 0x14]
lea eax, [esi + 1]
call fcn.0042d360
test eax, eax
jne 0x41f6ec
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
or eax, 0xf003f
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov dword [ebp + 0x18], esi
test eax, eax
jne 0x41f848
mov ebx, dword [ebp + 0x10]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f701
sub eax, edx
sar eax, 1
je 0x41f848
push str._default_
push ebx
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x41f72d
mov dword [ebp + 0x10], eax
mov ebx, eax
mov esi, dword [ebp + 0x14]
push 0x45bf8c
push esi
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x41f753
push ebx
lea ecx, [ebp - 0x18]
push ecx
mov edx, edi
call fcn.0042d400
jmp 0x41f838
push 0x45bf94
push esi
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x41f776
push ebx
lea edx, [ebp - 0x18]
push edx
mov edx, edi
call fcn.0042d450
jmp 0x41f838
push 0x45bf9c
push esi
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x41f7e8
movzx eax, word [edi]
cmp eax, 0x78
jne 0x41f7a2
push 0x10
push 0
add edi, 2
push edi
call fcn.0043a817
add esp, 0xc
jmp 0x41f7c9
cmp eax, 0x30
jne 0x41f7c0
cmp word [edi + 2], 0x78
jne 0x41f7c0
push 0x10
push 0
add edi, 4
push edi
call fcn.0043a817
add esp, 0xc
jmp 0x41f7c9
push edi
call fcn.0043a30b
add esp, 4
mov ecx, dword [ebp - 0x18]
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
jmp 0x41f838
push 0x459fbc
push esi
call fcn.00439f05
add esp, 8
test eax, eax
jne 0x41f83c
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f800
sub eax, edx
sar eax, 1
test al, 1
je 0x41f82c
push str.Hex_string_should_be_even
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 8
jmp 0x41f83c
push ebx
lea edx, [ebp - 0x18]
push edx
mov eax, edi
call fcn.0042d520
test eax, eax
jne 0x41f845
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x18], eax
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f856
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14