joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041330
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [esp + 0x24]
push edi
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
movdqa xmmword [esp + 0x20], xmm0
lea eax, [ecx + 0x10]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x10]
mov dword [esp + 0x24], 0
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [esp + 0x20]
call fcn.10010900
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x100413b4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
xorps xmm0, xmm0
lea eax, [esp + 0x18]
push esi
movdqa xmmword [esp + 0x14], xmm0
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10010900
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3c]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 4
Function at 0x10041bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x458
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x454], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], edi
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
mov word [esp + 0x250], ax
push 0x206
push eax
lea eax, [esp + 0x25a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x24], 0x100
test esi, esi
je 0x10041c6d
test edi, edi
je 0x10041c6d
push 0x100
call fcn.1009427d
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
jne 0x10041c85
call fcn.10046710
mov dword [eax], 2
mov dword [eax + 4], edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
jne 0x10041d84
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
call sym.HncFoundation.dll_private:_int___thiscall_CHncRegistry::__LoadSubKeyAndGetCntValue_struct__iobuf___unsigned_short_int___unsigned_long_int__
xorps xmm0, xmm0
lea eax, [esp + 0x38]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], 0
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x10041c6d
mov esi, dword [esp + 0x18]
test esi, esi
je 0x10041d64
nop
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x2c]
call sym.HncFoundation.dll_private:_int___thiscall_CHncRegistry::__LoadKeyValue_struct__iobuf___unsigned_long_int___unsigned_short_int___unsigned_int__unsigned_long_int___unsigned_char____unsigned_long_int__
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push edi
push dword [esp + 0x28]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x3c], xmm0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x25c]
push 0
push eax
push dword [esp + 0x40]
mov dword [esp + 0x48], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x30]
call fcn.10010900
dec esi
jne 0x10041cf0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCR120.dll_feof]
add esp, 4
test eax, eax
je 0x10041c97
test edi, edi
je 0x10041d92
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [esp + 0x45c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
Function at 0x10041e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b88b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x240], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x248], esi
call sub.MSVCR120.dll_memset
add esp, 0xc
test esi, esi
je 0x10042023
test edi, edi
je 0x10042023
cmp dword [edi], 0
je 0x10042023
push esi
push 1
lea eax, [ebp - 0x220]
push 4
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, 1
jl 0x10042023
mov eax, dword [ebp - 0x220]
cmp eax, 0x104
jae 0x10041eff
push esi
push eax
lea eax, [ebp - 0x21c]
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x220]
jb 0x10042023
xorps xmm0, xmm0
lea eax, [ebp - 0x22c]
movdqu xmmword [ebp - 0x234], xmm0
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x24c]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
push esi
push 1
lea eax, [ebp - 0x224]
push 4
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x1c
cmp eax, 1
jl 0x10041fd1
mov ecx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x224]
push esi
push 1
mov dword [ecx], eax
lea eax, [ebp - 0x238]
push 4
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, 1
jl 0x10041fd1
mov ecx, dword [ebp - 0x240]
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x23c]
cmp eax, dword [ecx]
jbe 0x10041ff8
mov esi, dword [edi]
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
test esi, esi
je 0x10041fad
mov dword [edi], 0x8123
push dword [ebp - 0x238]
call fcn.1009427d
add esp, 4
test eax, eax
jne 0x10041fe2
call fcn.10046710
mov dword [eax], 2
mov dword [eax + 4], 0
lea ecx, [ebp - 0x234]
xor esi, esi
call fcn.10010900
mov eax, esi
jmp 0x10042025
mov ecx, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x248]
mov dword [edi], eax
mov eax, dword [ebp - 0x238]
mov dword [ecx], eax
push esi
push eax
push 1
push dword [edi]
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x238]
jb 0x10041fd1
lea ecx, [ebp - 0x234]
mov esi, 1
call fcn.10010900
mov eax, esi
jmp 0x10042025
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10042050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x224]
push edi
movdqu xmmword [ebp - 0x22c], xmm0
mov dword [ebp - 0x228], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov dword [ebp - 0x22c], 0
call sub.MSVCR120.dll_memset
mov edi, dword [sym.imp.MSVCR120.dll_fread]
lea eax, [ebp - 0x218]
push esi
push 1
push 4
push eax
call edi
add esp, 0x1c
cmp eax, 1
jl 0x1004212f
mov eax, dword [ebp - 0x218]
cmp eax, 0x104
jae 0x100420f2
push esi
push eax
lea eax, [ebp - 0x214]
push 2
push eax
call edi
add esp, 0x10
cmp eax, dword [ebp - 0x218]
jb 0x1004212f
lea eax, [ebp - 0x214]
push eax
push 0x104
push dword [ebp - 0x230]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
push esi
push 1
lea eax, [ebp - 0x21c]
push 4
push eax
call edi
add esp, 0x1c
cmp eax, 1
jl 0x1004212f
mov eax, dword [ebp - 0x21c]
mov esi, 1
mov dword [ebx], eax
jmp 0x10042131
xor esi, esi
lea ecx, [ebp - 0x22c]
call fcn.10010900
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10042160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR120.dll_memset
push esi
push 1
lea eax, [ebp - 0x210]
push 4
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x1c
cmp eax, 1
jge 0x100421c4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x210]
cmp eax, 0x104
jae 0x100421ed
push esi
push eax
lea eax, [ebp - 0x20c]
push 2
push eax
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
cmp eax, dword [ebp - 0x210]
jb 0x100421b0
xorps xmm0, xmm0
lea eax, [ebp - 0x218]
movdqu xmmword [ebp - 0x220], xmm0
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x220], 0
push ebx
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.10010900
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10042250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov ecx, ebx
xorps xmm0, xmm0
push esi
movdqu xmmword [ebp - 0x18], xmm0
push edi
mov edi, dword [ebp + 8]
lea edx, [ecx + 2]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042283
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
lea eax, [ebp - 8]
push edi
push 1
sub ecx, edx
sar ecx, 1
push 4
push eax
mov dword [ebp - 8], ecx
call esi
add esp, 0x10
cmp eax, 1
jl 0x100422c6
push edi
push dword [ebp - 8]
push 2
push ebx
call esi
add esp, 0x10
cmp eax, dword [ebp - 8]
jb 0x100422c6
mov esi, 1
jmp 0x100422c8
xor esi, esi
lea ecx, [ebp - 0x18]
call fcn.10010900
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8

Function at 0x10042820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push edi
test esi, esi
je 0x10042926
test ebx, ebx
je 0x10042926
mov ecx, ebx
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042870
mov edi, dword [sym.imp.MSVCR120.dll_fwrite]
lea eax, [ebp - 0xc]
push esi
push 1
sub ecx, edx
sar ecx, 1
push 4
push eax
mov dword [ebp - 0xc], ecx
call edi
add esp, 0x10
cmp eax, 1
jl 0x10042907
push esi
push dword [ebp - 0xc]
push 2
push ebx
call edi
add esp, 0x10
cmp eax, dword [ebp - 0xc]
jb 0x10042907
push esi
push 1
lea eax, [ebp + 0x10]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jl 0x10042907
push esi
push 1
lea eax, [ebp + 0x18]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jl 0x10042907
push esi
push dword [ebp + 0x18]
push 1
push dword [ebp - 0x20]
call edi
add esp, 0x10
cmp eax, dword [ebp + 0x18]
jb 0x10042907
lea ecx, [ebp - 0x1c]
mov esi, 1
call fcn.10010900
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x1c]
xor esi, esi
call fcn.10010900
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10042940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x100429d6
test edi, edi
je 0x100429d6
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x10042980
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10042980
mov ebx, dword [sym.imp.MSVCR120.dll_fwrite]
lea eax, [ebp - 0xc]
push esi
push 1
sub ecx, edx
sar ecx, 1
push 4
push eax
mov dword [ebp - 0xc], ecx
call ebx
add esp, 0x10
cmp eax, 1
jl 0x100429d6
push esi
push dword [ebp - 0xc]
push 2
push edi
call ebx
add esp, 0x10
cmp eax, dword [ebp - 0xc]
jb 0x100429d6
push esi
push 1
lea eax, [ebp + 0x10]
push 4
push eax
call ebx
add esp, 0x10
cmp eax, 1
jl 0x100429d6
mov esi, 1
jmp 0x100429d8
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.10010900
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10042a00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x258
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x18], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x10], edi
push 0x206
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], 0x104
test esi, esi
je 0x10042add
xorps xmm0, xmm0
lea eax, [esp + 0x28]
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push dword [esp + 0x24]
mov dword [esp + 0x30], 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.10010900
test esi, esi
jne 0x10042add
push dword [edi + 0x420]
lea eax, [esp + 0x44]
push esi
push esi
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x44]
call sym.HncFoundation.dll__HncRegQueryInfoKey_52
test eax, eax
je 0x10042af5
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
cmp dword [esp + 0x1c], 0
jbe 0x10042be1
mov eax, dword [esp + 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009427d
mov edi, eax
add esp, 4
test edi, edi
jne 0x10042b4a
call fcn.10046710
mov dword [eax], 2
mov dword [eax + 4], edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x254]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x1c]
dec esi
js 0x10042ba8
mov eax, dword [esp + 0x10]
push dword [eax + 0x420]
mov eax, dword [esp + 0x1c]
inc eax
push eax
push edi
push esi
push dword [esp + 0x24]
call sym.HncFoundation.dll_HncRegEnumKey
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push edi
call sym.HncFoundation.dll_private:_int___thiscall_CHncRegistry::_DeleteFullSubKey_unsigned_short_int_const___struct_HKEY____
test eax, eax
je 0x10042ba5
cmp dword [0x100fe21c], 0
je 0x10042ba5
mov eax, dword [esp + 0x10]
push dword [eax + 0x420]
push edi
push dword [esp + 0x1c]
call sym.HncFoundation.dll_HncRegDeleteKey
mov dword [0x100fe21c], 0
dec esi
jns 0x10042b51
push edi
push dword [esp + 0x18]
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movdqa xmmword [esp + 0x28], xmm0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x20]
call fcn.10010900
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10042beb
mov dword [0x100fe21c], 1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x25c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 8
Function at 0x10042fb0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [ecx + 4]
test esi, esi
je 0x10042fd5
mov eax, dword [esi + 4]
test eax, eax
je 0x10042fd5
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10042fd5
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x100453a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [0x100c496c]
add esp, 0xc
movdqu xmm0, xmmword [str.User32.dll]
mov dword [ebp - 0xc], eax
mov ax, word [0x100c4970]
mov word [ebp - 8], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
movdqu xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10045466
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10045410
sub ecx, edx
sar ecx, 1
je 0x1004544e
push esi
lea eax, [ebp - 0x224]
push 0x5c
push eax
lea esi, [ecx + ecx]
call dword [sym.imp.MSVCR120.dll_wcsrchr]
lea ecx, [ebp + esi - 0x226]
add esp, 8
cmp eax, ecx
je 0x1004544d
mov dword [ebp + esi - 0x224], 0x5c
pop esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
jmp 0x1004547c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [0x100fe5c8], eax
xor ecx, ebp
mov eax, 0x100fe5c8
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x100454b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [0x100c4954]
add esp, 0xc
movdqu xmm0, xmmword [str.SHCore.dll]
mov dword [ebp - 0xc], eax
mov ax, word [0x100c4958]
mov word [ebp - 8], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
movdqu xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10045576
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10045520
sub ecx, edx
sar ecx, 1
je 0x1004555e
push esi
lea eax, [ebp - 0x224]
push 0x5c
push eax
lea esi, [ecx + ecx]
call dword [sym.imp.MSVCR120.dll_wcsrchr]
lea ecx, [ebp + esi - 0x226]
add esp, 8
cmp eax, ecx
je 0x1004555d
mov dword [ebp + esi - 0x224], 0x5c
pop esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
jmp 0x1004558c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [0x100fe5d4], eax
xor ecx, ebp
mov eax, 0x100fe5d4
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x10046710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100fdddc]
cmp eax, 0xffffffff
jne 0x1004671d
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10046770
push esi
push 0x824
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10046750
push 0x10
push eax
push str.Out_of_memory.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
ret
push 0x824
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
push esi
push dword [0x100fdddc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret

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

Disassembly:
mov eax, dword [0x100fdddc]
push ebx
mov ebx, ecx
cmp eax, 0xffffffff
je 0x100467ed
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x100467b8
call sym.HncFoundation.dll_HncClearWarning
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push 0
push dword [0x100fdddc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
test ebx, ebx
jne 0x100467ed
push dword [0x100fdddc]
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0x100fdde0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x100fd948]
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov dword [0x100fd948], 0
pop ebx
ret

Function at 0x100467f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, edx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10046846
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret
Function at 0x10046860
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x214]
mov edi, ecx
push eax
xor eax, eax
mov esi, edx
test edi, edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100469a2
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
mov ecx, str.AppData
push eax
push 0
test edi, edi
mov eax, str.Common_AppData
push 0
cmove eax, ecx
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10046996
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10046934
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046910
sub ecx, edx
sar ecx, 1
jne 0x10046934
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100469a2
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046940
sub ecx, edx
sar ecx, 1
je 0x1004696d
push 0x5c
push esi
lea edi, [esi + ecx*2]
call dword [sym.imp.MSVCR120.dll_wcsrchr]
lea ecx, [edi - 2]
add esp, 8
cmp eax, ecx
je 0x1004696d
mov dword [edi], 0x5c
push 0x100c4ae0
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100944ae
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100944ae
mov esp, ebp
pop ebp
ret