joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10359d2
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1002454
lea edi, [ebp - 0x61c]
rep movsd dword es:[edi], dword [esi]
push 0x1ee
xor ebx, ebx
lea eax, [ebp - 0x602]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
push 7
pop ecx
mov esi, 0x1002434
lea edi, [ebp - 0x414]
rep movsd dword es:[edi], dword [esi]
push 0x1ea
lea eax, [ebp - 0x3f6]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x61c]
add esp, 0x18
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x628], 2
mov esi, 0x1002428
lea eax, [ebp - 0x624]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x620]
xor edi, edi
push 0x80000000
mov dword [ebp - 0x624], ebx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035abf
push 4
lea eax, [ebp - 0x62c]
push eax
push 4
push ebx
push esi
push dword [ebp - 0x624]
mov dword [ebp - 0x62c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1035aaf
push esi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor edi, edi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x1035b13
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push 0x1002408
push 0x104
push eax
call fcn.0103592d
add esp, 0x10
test eax, eax
jl 0x1035b13
push 4
push 1
mov edi, 0x10000000
push edi
push 0x1002400
lea eax, [ebp - 0x20c]
push eax
call fcn.01057c71
push 4
push 1
push edi
push 0x10023f8
lea eax, [ebp - 0x20c]
push eax
call fcn.01057c71
add dword [ebp - 0x620], 0x208
dec dword [ebp - 0x628]
jne 0x1035a52
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret
Function at 0x1035e4d
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1001c88
push 0x80000001
mov dword [ebp - 0x210], esi
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1035eb9
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001d08
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 2
push esi
push esi
push esi
push 0x1001c88
push 0x80000002
call ebx
test eax, eax
jne 0x1035fdd
cmp dword [ebp + 8], 0xd2af9
je 0x1035f03
cmp dword [ebp + 8], 0xc00d2afb
je 0x1035f03
push 0x10023dc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1035fbb
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x214], esi
call fcn.010339d2
test eax, eax
jne 0x1035f32
push 8
lea eax, [ebp - 0x21c]
push eax
push 3
push esi
push 0x10023dc
push dword [ebp - 0x210]
call edi
lea eax, [ebp - 0x214]
push eax
push 2
push esi
push 0x1002568
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1035fbb
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01058169
test eax, eax
je 0x1035faf
push 0x1002554
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x1035faf
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1035f85
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x1002534
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001d08
push dword [ebp - 0x210]
call edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
Function at 0x103602f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x214], ecx
cmp eax, ecx
je 0x10360f1
cmp esi, ecx
je 0x10360f1
cmp ebx, ecx
je 0x10360f1
lea edx, [ebp - 0x210]
push edx
push 0x20019
push ecx
xor edi, edi
push eax
inc edi
push 0x80000000
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10360f1
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10360dc
cmp dword [ebp - 0x218], edi
jne 0x10360dc
mov dword [ebp - 0x214], edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], 0
jne 0x10360f8
push 0x10026bc
jmp 0x10360ff
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.01035831
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 0x10

Function at 0x103611e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
jne 0x1036142
xor eax, eax
jmp 0x10361b9
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10361b7
lea eax, [ebp - 0x414]
cmp dword [ebp + 0xc], edi
je 0x1036170
push 0x10019d4
push eax
push 0x10026f0
jmp 0x103617b
push 0x10019a4
push eax
push 0x10026cc
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.01035968
add esp, 0x14
cmp eax, edi
jl 0x10361b7
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
je 0x10361b7
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
inc edi
call fcn.01056cb0
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 8

Function at 0x10362c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x10362d9
xor eax, eax
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0103611e
test eax, eax
jne 0x10362d5
push 0x1002714
push 2
call fcn.01055c50
pop ebp
jmp fcn.010361ce
Function at 0x1036644
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.0106e3dd
lea eax, [ebp - 0x10]
push eax
call fcn.0104192f
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 0x10020d0
test eax, eax
jl 0x10366af
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp - 0x10]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10366af
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10366b1
xor eax, eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push 2
push eax
push eax
push eax
push 0x1001b38
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10366e5
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call edi
lea ecx, [ebp - 0x10]
call fcn.0106de2a
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10366f9
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call fcn.010561eb
test eax, eax
je 0x10367ba
push edi
push 0x8000080
push 3
push edi
push edi
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1036747
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10367ba
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035831
test eax, eax
jl 0x10367ba
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010583f4
lea eax, [ebp - 0x20c]
push eax
push 0x1002758
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0103592d
add esp, 0x10
test eax, eax
jl 0x10367ba
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x10367b7
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
jmp 0x10367ba
xor edi, edi
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 4
Function at 0x10367d1
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x10027f0
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x1036835
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push edi
push 0x10027d4
push edi
push eax
call esi
mov ebx, eax
cmp ebx, edi
je 0x1036835
push edi
push 0x10027bc
push edi
push ebx
call esi
test eax, eax
je 0x1036827
xor eax, eax
inc eax
jmp 0x10368b0
push edi
push 0x10027a0
push edi
push ebx
call esi
test eax, eax
jne 0x103681f
mov esi, 0x104
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c4e
test eax, eax
je 0x1036872
push 0x1002784
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x1036872
lea eax, [ebp - 0x20c]
push eax
call fcn.010366f9
test eax, eax
jne 0x103681f
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058c4e
test eax, eax
je 0x10368ae
push 0x1002768
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x10368ae
lea eax, [ebp - 0x20c]
push eax
call fcn.010366f9
test eax, eax
jne 0x103681f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret

Function at 0x103696b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
mov esi, 0x105
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x10369d1
push 0x1002878
lea eax, [ebp - 0x210]
push eax
push 0x100286c
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0103592d
add esp, 0x14
test eax, eax
jl 0x10369d1
lea eax, [ebp - 0x41c]
push eax
call fcn.010561eb
test eax, eax
jne 0x10369d1
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret
Function at 0x1036a55
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x214], ebx
cmp edi, ebx
je 0x1036b4b
push edi
push 0x10028c8
push 0x100286c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0103592d
add esp, 0x14
test eax, eax
jl 0x1036b4b
push esi
mov dword [ebp - 0x210], ebx
mov esi, 0x2001f
call fcn.0105c74e
test eax, eax
je 0x1036ac0
mov esi, 0x2011f
lea eax, [ebp - 0x210]
push eax
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036b4a
cmp dword [ebp + 0xc], ebx
je 0x1036b1f
push 4
lea eax, [ebp - 0x218]
push eax
push 4
push ebx
push 0x10028a4
push dword [ebp - 0x210]
xor esi, esi
inc esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1036b3e
push dword [ebp + 0x10]
mov dword [ebp - 0x214], esi
push edi
call fcn.01034154
jmp 0x1036b3e
push 0x10028a4
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1036b3e
mov dword [ebp - 0x214], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 0xc

Function at 0x1036b66
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1001eb8
push 0x80000002
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036c17
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], esi
push esi
jmp 0x1036bf4
inc dword [ebp - 0x218]
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01036a55
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
test eax, eax
je 0x1036bc7
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x1001eb8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret
Function at 0x1036c39
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x2001f
xor esi, esi
push esi
push 0x1001e48
push 0x80000002
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036cea
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], esi
push esi
jmp 0x1036cc7
inc dword [ebp - 0x218]
push 1
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01036a55
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call edi
test eax, eax
je 0x1036c9a
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x1001e48
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret

Function at 0x1036d0c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x424], esi
cmp eax, esi
je 0x1036e33
push ebx
push eax
push 0x1002930
push 0x100286c
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0103592d
add esp, 0x14
test eax, eax
jl 0x1036e32
push edi
mov dword [ebp - 0x418], esi
mov edi, 0x20019
call fcn.0105c74e
test eax, eax
je 0x1036d78
mov edi, 0x20119
lea eax, [ebp - 0x418]
push eax
push edi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1036e31
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x41c], esi
push esi
jmp 0x1036e13
inc dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
cmp word [ebp - 0x20c], 0x6b
pop ecx
jne 0x1036dfb
cmp word [ebp - 0x20a], 0x62
jne 0x1036dfb
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.01036a55
mov dword [ebp - 0x424], eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push dword [ebp - 0x418]
mov dword [ebp - 0x420], ebx
call edi
test eax, eax
je 0x1036dbc
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x424]
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret 8
Function at 0x1037f6c
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.01034b63
test eax, eax
je 0x103803d
push 0x208
lea eax, [ebp - 0x20c]
push eax
call fcn.01059033
test eax, eax
jne 0x103803d
call fcn.01058fca
test eax, eax
jne 0x103803d
and dword [ebp - 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x210]
push eax
mov ebx, 0x2001f
push ebx
push 0
push 0x10033e8
mov edi, 0x80000002
push edi
call esi
test eax, eax
jne 0x1038000
push 0x10033b8
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push 0x10032e8
push edi
call esi
pop edi
pop esi
pop ebx
test eax, eax
jne 0x103803d
push 0x10032c8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047480
leave
ret
Function at 0x1038419
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10739cc], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x624], 1
jne 0x103860e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x10385fd
push edi
mov edi, 0x10034bc
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010358a6
test eax, eax
jl 0x10384b3
lea eax, [ebp - 0x414]
push eax
call fcn.010561eb
test eax, eax
jne 0x10384b3
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10384b3
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010358a6
lea eax, [ebp - 0x414]
push eax
call fcn.010561eb
test eax, eax
je 0x10385fc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10385fc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.01058203
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e5e
push 0x1002890
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x10385fc
lea eax, [ebp - 0x20c]
push eax
call fcn.010561eb
test eax, eax
je 0x10385fc
push 0xff
lea eax, [ebp - 0x61c]
push eax
push 0xaa
push dword [0x1073960]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x10385fc
mov eax, dword [0x10739dc]
mov ecx, dword [0x107255c]
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 0x28]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x630], eax
call ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov edi, 0x402
push edi
push dword [ebp - 0x620]
mov dword [ebp - 0x62c], eax
call esi
mov dword [ebp - 0x628], eax
test eax, eax
jne 0x10385ab
push edi
push dword [ebp - 0x620]
call ebx
push eax
call esi
mov dword [ebp - 0x628], eax
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x10385f5
push 0
push dword [ebp - 0x62c]
lea ecx, [ebp - 0x20c]
push dword [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
push dword [ebp - 0x628]
mov ecx, eax
push edi
push dword [ebp - 0x620]
call fcn.010454d9
mov dword [0x10739cc], eax
jmp 0x10385fc
and dword [0x10739cc], 0
pop edi
cmp dword [0x10739cc], 0
pop esi
jne 0x103860e
and dword [ebp - 0x624], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
xor ecx, ebp
pop ebx
call fcn.01047480
leave
ret 4
Function at 0x103d0d5
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push 1
push edi
push edi
push 0x1003e00
mov esi, 0x80000002
push esi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103d1ba
push ebx
lea eax, [ebp - 0x210]
push eax
push 3
push edi
push 0x1003da0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x103d1b1
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01058169
test eax, eax
je 0x103d1a9
push 0x1003d70
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010358a6
test eax, eax
jl 0x103d1a9
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x103d17b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x1003d48
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x214]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret

Function at 0x103fea2
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x107255c]
cmp eax, 0x1072428
jne 0x103feea
cmp dword [0x10739b4], 0xd2af9
je 0x103ffa7
call fcn.01035339
test eax, eax
je 0x103ff96
call fcn.0103538f
jmp 0x103ffa7
cmp eax, 0x1072270
jne 0x103ff11
cmp dword [0x10739b4], 0xd2af9
je 0x103ff07
mov dword [0x10739a8], 1
call fcn.01034057
jmp 0x103ffa7
cmp dword [0x10739b4], 0xd2af8
jne 0x103ff47
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01058169
test eax, eax
je 0x103ff47
push 0xffff
push 1
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0105983a
cmp dword [0x10739b4], 0
jl 0x103ff76
cmp dword [0x107255c], section..data
jne 0x103ff76
cmp dword [0x1073a18], 0
jne 0x103ff71
call fcn.01036f25
call fcn.01036e4d
jmp 0x103ff76
call fcn.01036f25
mov eax, dword [0x10739b4]
cmp eax, 0xd2af9
je 0x103ffa2
cmp eax, 0xc00d2afb
je 0x103ffa2
test eax, eax
jl 0x103ffa7
cmp dword [0x107399c], 0
jne 0x103ffa7
mov dword [0x10739a8], 1
jmp 0x103ffa7
call fcn.0103d0d5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01047480
leave
ret