joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eeb0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482982
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ae364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x40ef0c
mov dword [esi], 0x48a6ac
mov dword [esi + 0x10], 0x48a6b4
mov dword [esi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [esi + 0x18]
mov ecx, esi
push edi
call fcn.0040ecc0
lea edx, [esi + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
push 8
mov dword [ebp - 4], 4
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0044c1c2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ef9c
push 1
mov byte [ebp - 4], 5
call fcn.004493d3
add esp, 4
mov dword [ebx + 4], eax
jmp 0x40ef9e
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [edi + 0x10], ecx
mov dword [ecx], 0
mov ecx, ebx
mov eax, dword [edi + 0x20]
not ecx
and ecx, 1
shl ecx, 2
mov edx, ecx
mov dword [eax], 0
or edx, 2
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
and al, 2
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, ebx
mov dword [edi + 0x38], 0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
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 8
Function at 0x411a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411ac9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x411ac9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x411aba
cmp esi, edx
jae 0x411ac9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x411aa8
cmp esi, edx
jae 0x411ac9
cmp word [esi], 0
je 0x411ac9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x417f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ae364]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x417fe1
cmp byte [esi + 0x3d], 0
je 0x417fe1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x417f97
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x417fa9
sub eax, 1
je 0x417fad
sub eax, 2
je 0x417fe1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x417fca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00469639
add esp, 0x10
cmp edi, eax
jne 0x417f97
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0044c213
mov esp, ebp
pop ebp
ret
Function at 0x4196f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4ae364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0044c1c2
mov edi, eax
add esp, 4
test edi, edi
je 0x41978d
push 1
mov dword [ebp - 4], 0
call fcn.004493d3
add esp, 4
mov dword [edi + 4], eax
jmp 0x41978f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00403dd0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x4197f1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4197f1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x419814
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x419837
cmp byte [ebp + 0xc], 0
je 0x419823
push esi
call fcn.004495fd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x419843
mov esi, str.ios_base::badbit_set
jmp 0x419853
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00409770
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00404c80
push 0x4a2a34
lea eax, [ebp - 0x30]
push eax
call fcn.00462ed2
int3
Function at 0x419f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ae364]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x419fb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x419fec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x419fec
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41a0d1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41a014
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41a047
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00468ce4
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x41a0d1
cmp eax, 1
jle 0x41a0a4
cmp eax, 3
jne 0x41a0d1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004132c0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41a0c1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00469639
add esp, 0x10
cmp edi, eax
jne 0x41a0d1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x419fd7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c213
mov esp, ebp
pop ebp
ret 4
Function at 0x41a960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41a984
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a420
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x41a9a5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41a9a7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x41aa2f
jg 0x41a9ba
test esi, esi
je 0x41aa2f
test ecx, ecx
jl 0x41a9fc
jg 0x41a9c4
test eax, eax
je 0x41a9fc
cmp ebx, ecx
jg 0x41a9d6
jl 0x41a9ce
cmp esi, eax
jae 0x41a9d6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004632f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x41aa02
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x41aa2f
jg 0x41aa0c
test esi, esi
je 0x41aa2f
cmp dword [edi + 0x4c], 0
je 0x41aa2f
mov ecx, edi
call fcn.00418790
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.00468fcc
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41aa50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41aa74
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040a5d0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41aa95
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41aa97
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41ab14
jg 0x41aaaa
test esi, esi
je 0x41ab14
test ecx, ecx
jl 0x41aaee
jg 0x41aab4
test eax, eax
je 0x41aaee
cmp edi, ecx
jg 0x41aac6
jl 0x41aabe
cmp esi, eax
jae 0x41aac6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004632f0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41aaf1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41ab14
jg 0x41aafb
test esi, esi
je 0x41ab14
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41ab14
push eax
push esi
push 1
push edx
call fcn.00469639
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41b1b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483d34
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ae364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00404430
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.00404430
mov ax, word [esi + 0x30]
lea ecx, [edi + 0x34]
mov word [edi + 0x30], ax
lea eax, [esi + 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.00404430
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x4c]
call fcn.00404430
lea eax, [esi + 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x64]
call fcn.00404430
lea eax, [esi + 0x7c]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x7c]
call fcn.00404430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41d070
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x41d0a4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0x1d], 0
je 0x41d09c
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x41d099
mov eax, dword [eax]
push eax
call ebx
add esi, 0x20
cmp esi, edi
jne 0x41d088
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x41d0b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484078
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4ae364]
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 esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 4], ecx
cmp edi, ebx
je 0x41d1be
nop
cmp byte [edi + 0x1c], 0
je 0x41d1ad
mov esi, dword [edi]
lea eax, [ebp - 0x6c]
push 0x38
push 0
push eax
add esi, 0x144
mov dword [ebp - 0x70], 0x3c
call fcn.00463df0
add esp, 0xc
mov dword [ebp - 0x6c], 0x440
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x64], str.open
jb 0x41d152
mov eax, dword [eax]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x60], eax
jne 0x41d15f
xor esi, esi
jmp 0x41d167
cmp dword [esi + 0x14], 8
jb 0x41d167
mov esi, dword [esi]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x5c], esi
push eax
mov dword [ebp - 0x54], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x41d1ad
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 0
test eax, eax
je 0x41d1ad
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 0x20
cmp edi, ebx
jne 0x41d110
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00413e80
mov eax, esi
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.0044c213
mov esp, ebp
pop ebp
ret
Function at 0x428040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ae364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 0
push 0x105
mov dword [ebp - 0x2c], edi
call fcn.0041be00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4280bc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4280c9
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041c880
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
test esi, esi
je 0x428103
lea eax, [esi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
jne 0x4280fd
cmp eax, edx
je 0x428103
sub eax, 2
cmp word [eax], 0x5c
je 0x4280f0
sub eax, edx
sar eax, 1
jmp 0x428106
or eax, 0xffffffff
lea ecx, [eax + 1]
cmp esi, ecx
jb 0x428183
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00411890
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 8
jb 0x428164
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42815a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428188
push edx
push ecx
call fcn.0044c1f2
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret 4
call fcn.004082f0
call fcn.00466d4c
int3
Function at 0x428190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ae364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
lea ecx, [ebp - 0x28]
push 0
lea eax, [esi - 1]
push eax
call fcn.0041be00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00411890
mov edx, dword [ebp - 0x14]
add esp, 8
cmp edx, 8
jb 0x428237
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42822d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428254
push edx
push ecx
call fcn.0044c1f2
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c213
mov esp, ebp
pop ebp
ret
call fcn.00466d4c
int3

Function at 0x4284d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428541
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x42850f
cmp eax, 2
jne 0x42852b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x42853b
test ecx, ecx
je 0x428536
test cl, 1
jne 0x42852b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x42853b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x428b80
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4850b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ae364]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
call fcn.00428380
lea eax, [ebp - 0x28]
push eax
call fcn.00428190
add esp, 4
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x428bee
mov edx, dword [eax]
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x428bf8
mov ecx, dword [ebx]
mov esi, dword [ebx + 0x10]
cmp esi, dword [eax + 0x10]
jne 0x428c59
sub esi, 4
jb 0x428c16
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x428c1b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x428c05
cmp esi, 0xfffffffc
je 0x428c4f
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x428c48
cmp esi, 0xfffffffd
je 0x428c4f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x428c48
cmp esi, 0xfffffffe
je 0x428c4f
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x428c48
cmp esi, 0xffffffff
je 0x428c4f
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x428c4f
sbb eax, eax
or eax, 1
jmp 0x428c51
xor eax, eax
test eax, eax
jne 0x428c59
mov bl, 1
jmp 0x428c5b
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x428c8f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x428c85
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428d1f
push edx
push ecx
call fcn.0044c1f2
add esp, 8
test bl, bl
je 0x428ca8
cmp dword [edi + 0x14], 8
jb 0x428c9b
mov edi, dword [edi]
mov esi, dword [ebp - 0x38]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x428cf6
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.00411980
add esp, 8
mov esi, eax
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x428cc5
mov esi, dword [esi]
mov edi, dword [str.Save_path]
test esi, esi
je 0x428d24
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
mov esi, dword [ebp - 0x38]
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x28]
call fcn.00405440
test esi, esi
je 0x428d01
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0044c213
mov esp, ebp
pop ebp
ret 4
call fcn.00466d4c
push 0x80004005
call fcn.0040bdb0
int3