joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
jmp 0x414b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b80
mov eax, 1
add ebx, ebx
jne 0x414ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b98
jne 0x414bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b98
xor ecx, ecx
sub eax, 3
jb 0x414bc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c3a
mov ebp, eax
add ebx, ebx
jne 0x414bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414be0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414c04
inc ecx
add ebx, ebx
jne 0x414bf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414be5
jne 0x414c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414be5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414c24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414c15
jmp 0x414b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414c24
add edi, ecx
jmp 0x414b86
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c42
cmp byte [edi], 5
jne 0x414c42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414c47
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414cbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19be8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414c74
mov ecx, edi
jns 0x414ca3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19c2c]
or eax, eax
je 0x414cb9
mov dword [ebx], eax
add ebx, 4
jmp 0x414c91
call dword [esi + 0x19c28]
mov ebp, dword [esi + 0x19c30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414cf3
sub esp, 0xffffff80
jmp 0x401150

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1b008769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b00c190
cmp edx, dword [eax]
je 0x1b00878b
add eax, 8
inc ecx
cmp eax, 0x1b00c220
jl 0x1b00877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b00c190]
jne 0x1b0088b9
mov eax, dword [0x1b00cbb0]
cmp eax, 1
je 0x1b008893
test eax, eax
jne 0x1b0087bc
cmp dword [0x1b00c0e4], 1
je 0x1b008893
cmp edx, 0xfc
je 0x1b0088b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0087f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b009670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b009490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b008836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b009490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b00b45c
push edi
call fcn.1b009f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b009670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b009680
lea eax, [ebp - 0xa0]
push 0x1b00b43c
push eax
call fcn.1b009680
push dword [esi + 0x1b00c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b009680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b009e75
add esp, 0x2c
pop edi
jmp 0x1b0088b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b00c194]
push 0
push eax
push dword [esi]
call fcn.1b009490
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]
pop esi
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x66e91ec1
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4e186a94
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
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.00438fc2
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 [0x469744]
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.00439b32
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 [0x46be9c]
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.00438876
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.00439b32
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.00439b32
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.00438953
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.00438876
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.0043e800
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.00438fc2
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 [0x469744]
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 [0x46be9c]
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 [0x46be9c]
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.00438876
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.00438876
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.00438876
mov esp, ebp
pop ebp
ret 4
Function at 0x403550
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f1fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x469744]
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.00437dad
push 4
mov dword [ebp - 4], 0
call fcn.00439d81
mov edi, eax
add esp, 4
test edi, edi
je 0x4035cc
call fcn.004380bd
mov dword [edi], eax
call fcn.00437e7c
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00437d6e
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4035c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00437d96
jmp 0x4035ce
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 0x41b8d0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x469744]
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.0043a583
add esp, 0xc
push 0x457648
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 0x41b970
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 0x41bae5
mov ecx, 0x457654
lea eax, [ebp - 0x848]
jmp 0x41b980
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b9a6
test dx, dx
je 0x41b9a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b9a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b980
xor eax, eax
jmp 0x41b9ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41baad
mov ecx, 0x457658
lea eax, [ebp - 0x848]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b9e6
test dx, dx
je 0x41b9e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b9e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b9c0
xor eax, eax
jmp 0x41b9eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41baad
push esi
lea eax, [ebp - 0x41c]
push 0x104
push eax
call fcn.0043a583
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.0043a583
add esp, 0xc
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x214]
push eax
call esi
test byte [ebp - 0x874], 0x10
je 0x41ba7d
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.0041b8d0
jmp 0x41baa1
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.0041bc80
mov esi, eax
test esi, esi
jne 0x41bad8
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 0x41b970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x41bad8
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.00438876
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x41bb00
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x469744]
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 0x45b528
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 0x41bbb6
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 0x41bc23
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 0x41bc23
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.00438876
mov esp, ebp
pop ebp
ret 4
Function at 0x41c3b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450406
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x469744]
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 0x41c56c
add eax, 0x1c
push str.Uninstall
push eax
lea eax, [ebp - 0xa50]
push eax
call fcn.0040ebd0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0xa34]
mov byte [ebp - 4], 1
call fcn.00404010
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0xa3c], esi
jb 0x41c46a
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.00439c00
add esp, 4
mov eax, dword [ebp - 0xa34]
cmp dword [ebp - 0xa20], esi
jae 0x41c47e
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 0x41c4b0
mov ebx, dword [ebp - 0xa5c]
lea ecx, [ebp - 0xa18]
push ecx
lea eax, [ebp - 0xa58]
call fcn.00436ff0
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 0x41c547
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 0x41c56c
mov edx, dword [ebp - 0xa34]
push edx
call fcn.00439c00
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.00438876
mov esp, ebp
pop ebp
ret 4
Function at 0x41f6f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f258
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x469744]
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 0x4579f4
push eax
mov dword [ebp - 4], ebx
call fcn.0043a445
add esp, 8
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41f745
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 0x41f77c
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 0x41f8d8
mov ebx, dword [ebp + 0x10]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f791
sub eax, edx
sar eax, 1
je 0x41f8d8
push str._default_
push ebx
call fcn.0043a445
add esp, 8
test eax, eax
jne 0x41f7bd
mov dword [ebp + 0x10], eax
mov ebx, eax
mov esi, dword [ebp + 0x14]
push 0x45c074
push esi
call fcn.0043a445
add esp, 8
test eax, eax
jne 0x41f7e3
push ebx
lea ecx, [ebp - 0x18]
push ecx
mov edx, edi
call fcn.0042d400
jmp 0x41f8c8
push 0x45c07c
push esi
call fcn.0043a445
add esp, 8
test eax, eax
jne 0x41f806
push ebx
lea edx, [ebp - 0x18]
push edx
mov edx, edi
call fcn.0042d450
jmp 0x41f8c8
push 0x45c084
push esi
call fcn.0043a445
add esp, 8
test eax, eax
jne 0x41f878
movzx eax, word [edi]
cmp eax, 0x78
jne 0x41f832
push 0x10
push 0
add edi, 2
push edi
call fcn.0043ad57
add esp, 0xc
jmp 0x41f859
cmp eax, 0x30
jne 0x41f850
cmp word [edi + 2], 0x78
jne 0x41f850
push 0x10
push 0
add edi, 4
push edi
call fcn.0043ad57
add esp, 0xc
jmp 0x41f859
push edi
call fcn.0043a84b
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 0x41f8c8
push 0x45a09c
push esi
call fcn.0043a445
add esp, 8
test eax, eax
jne 0x41f8cc
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f890
sub eax, edx
sar eax, 1
test al, 1
je 0x41f8bc
push str.Hex_string_should_be_even
push 0x46a9d4
mov eax, 2
call fcn.0042d150
add esp, 8
jmp 0x41f8cc
push ebx
lea edx, [ebp - 0x18]
push edx
mov eax, edi
call fcn.0042d520
test eax, eax
jne 0x41f8d5
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 0x41f8e6
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