joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104dfe2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x430], 0
mov eax, ecx
cmp dword [eax + 4], 3
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x434], ecx
jne 0x104e213
push ebx
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x104e212
push ebx
call fcn.010561ca
test eax, eax
je 0x104e212
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104e032
push esi
sub eax, edx
sar eax, 1
push edi
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
mov dword [ebp - 0x42c], edi
test edi, edi
je 0x104e210
push ebx
push esi
push edi
call fcn.01035811
mov ebx, 0x1007d6c
push ebx
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x104e204
push 0x80000002
push dword [ebp - 0x42c]
xor eax, eax
mov word [esi], ax
call fcn.01057a69
add esi, 2
push ebx
push esi
mov dword [ebp - 0x418], eax
call edi
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x104e0be
xor ecx, ecx
mov word [eax], cx
cmp esi, edi
je 0x104e204
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x104e0cb
sub eax, edx
sar eax, 1
je 0x104e204
lea eax, [ebp - 0x424]
push eax
push 0x20019
push edi
push esi
push dword [ebp - 0x418]
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104e204
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
xor ebx, ebx
mov esi, 0x104
push eax
inc ebx
mov dword [ebp - 0x418], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x420], ebx
jmp 0x104e1e8
inc dword [ebp - 0x418]
xor eax, eax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x428], 0x208
cmp ax, word [ebp - 0x20c]
je 0x104e1bd
cmp ax, word [ebp - 0x414]
je 0x104e1bd
cmp dword [ebp - 0x420], ebx
je 0x104e192
cmp dword [ebp - 0x420], 2
jne 0x104e1ab
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x104e19b
sub eax, edx
sar eax, 1
je 0x104e1bd
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x430], ebx
test eax, eax
je 0x104e1f8
inc dword [eax]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
push dword [ebp - 0x424]
call edi
test eax, eax
je 0x104e157
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x430]
xor ecx, ebp
call fcn.01047464
leave
ret 4
Function at 0x104e293
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], esi
cmp dword [esi], ebx
jne 0x104e3b9
push 0x80
mov dword [ebp - 4], 0x80004005
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x104e2d2
xor eax, eax
jmp 0x104e3c1
mov eax, dword [edi + 4]
cmp eax, ebx
jl 0x104e2ed
cmp eax, 1
jle 0x104e2e3
cmp eax, 3
jne 0x104e2ed
push 0x1007da0
jmp 0x104e3b0
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0xc], ebx
je 0x104e3ab
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x104e3ab
push ebx
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x104e39b
push 0x5c
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x104e334
inc eax
inc eax
jmp 0x104e337
mov eax, dword [edi + 0xc]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
push ebx
mov dword [ebp - 8], eax
call fcn.01055e3d
push dword [ebp - 8]
push esi
push ebx
call fcn.01035886
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call fcn.010569a5
test eax, eax
jl 0x104e39b
mov eax, dword [ebp - 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x10]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007d80
push esi
push ebx
call fcn.0103590d
add esp, 0x1c
push ebx
mov ecx, edi
call fcn.0104c121
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 1
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp dword [ebp - 0x14], 0
pop ecx
jne 0x104e3b9
mov esi, dword [ebp - 0x18]
push 0x1007d70
push esi
call fcn.0105847c
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], eax
setge al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x104ebdb
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], esi
mov eax, dword [ebp - 0x110]
sub eax, esi
je 0x104ec5f
dec eax
je 0x104ec53
dec eax
je 0x104ec47
dec eax
je 0x104ec3b
mov dword [ebp - 0x108], 0x1007874
jmp 0x104ec69
mov dword [ebp - 0x108], 0x1007860
jmp 0x104ec69
mov dword [ebp - 0x108], 0x1007830
jmp 0x104ec69
mov dword [ebp - 0x108], 0x1007848
jmp 0x104ec69
mov dword [ebp - 0x108], 0x1007884
lea eax, [ebp - 0x10c]
push eax
push 0x2001f
push esi
push dword [ebp - 0x108]
push dword [ebp - 0x124]
call edi
cmp eax, esi
jne 0x104ed46
mov dword [ebp - 0x118], 0x80
xor ebx, ebx
mov dword [ebp - 0x114], esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x104ed3a
lea eax, [ebp - 0x114]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
mov dword [ebp - 0x118], 0x80
inc ebx
call edi
cmp eax, esi
jne 0x104ed3a
lea eax, [ebp - 0x104]
push eax
push 0x1007fcc
push 4
call fcn.01055c69
mov ecx, dword [ebp - 0x120]
add esp, 0xc
push dword [ebp - 0x108]
push dword [ebp - 0x114]
call fcn.0104e9d8
cmp eax, esi
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], eax
jl 0x104ed34
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x104ec9e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
cmp eax, esi
jl 0x104ed63
inc dword [ebp - 0x110]
cmp dword [ebp - 0x110], 5
jl 0x104ec1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 4
Function at 0x104ed79
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd8
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 - 0xd8], eax
cmp eax, esi
jne 0x104eda8
mov eax, 0x80004003
jmp 0x104efb5
push ebx
mov ebx, dword [ecx]
cmp ebx, esi
je 0x104efb2
push edi
mov ecx, dword [ebx]
cmp ecx, esi
je 0x104efa6
mov edi, 0xc8
push edi
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xd4], esi
call fcn.0104e614
test eax, eax
jne 0x104efa6
lea eax, [ebp - 0xcc]
push eax
push 0x100789c
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x104efa6
lea eax, [ebp - 0xcc]
push eax
push 0x1007ff4
push 4
call fcn.01055c69
add esp, 0xc
push esi
lea eax, [ebp - 0xd4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x104efa6
mov ecx, dword [ebx]
push edi
lea eax, [ebp - 0xcc]
push eax
call fcn.0104e3cb
test eax, eax
je 0x104ef9a
mov eax, dword [ebx]
cmp dword [eax + 4], 3
jne 0x104ee64
cmp dword [eax], 4
je 0x104ef9a
mov edi, dword [eax + 0xc]
cmp edi, esi
je 0x104ef9a
push edi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0xd4]
call fcn.01059fbd
mov dword [ebp - 0xd0], eax
cmp eax, esi
je 0x104ef9a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x104ee95
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push esi
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebx]
push 0x64
lea eax, [ebp - 0xcc]
push eax
call fcn.0104e3cb
test eax, eax
je 0x104ef06
lea eax, [ebp - 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x104eed6
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xcc]
push eax
push 1
push esi
push 0x100760c
push dword [ebp - 0xd0]
push dword [ebp + 0xc]
call fcn.01057a03
mov ecx, dword [ebx]
push 0xc8
lea eax, [ebp - 0xcc]
push eax
call fcn.0104e614
test eax, eax
jl 0x104ef56
lea eax, [ebp - 0xcc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x104ef26
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xcc]
push eax
push 1
push esi
push 0x10077e0
push dword [ebp - 0xd0]
push dword [ebp + 0xc]
call fcn.01057a03
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
cmp ecx, esi
je 0x104ef8e
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x104ef64
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push esi
push 0x1007578
push dword [ebp - 0xd0]
push dword [ebp + 0xc]
call fcn.01057a03
push dword [ebp - 0xd0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebx + 4]
cmp ebx, esi
jne 0x104edb4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 8
Function at 0x104f047
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x48], 0
push edi
je 0x104f14a
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x104f14a
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x104f07a
sub eax, edi
sar eax, 1
cmp eax, 6
jbe 0x104f14a
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
push ebx
push 0x5c
push ecx
call edi
push dword [esi + 0x18]
mov ebx, eax
push 0x1008030
push 4
mov dword [ebp - 0x418], 1
call fcn.01055c69
add esp, 0x14
test ebx, ebx
je 0x104f0c4
xor eax, eax
mov word [ebx], ax
lea eax, [ebp - 0x414]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x104f149
lea eax, [ebp - 0x414]
push eax
call fcn.01055e3d
push dword [esi + 0x18]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01035811
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x104f10e
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x104f13c
lea eax, [ebp - 0x418]
push eax
push dword [esi + 0x18]
call fcn.0105929a
push dword [esi + 0x18]
jmp 0x104f143
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ebx
xor edi, edi
cmp dword [esi + 0x4c], edi
je 0x104f164
cmp dword [ebp + 8], edi
je 0x104f164
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x104f164
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x50], edi
je 0x104f183
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x104f183
push eax
call fcn.010587c1
test eax, eax
je 0x104f183
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4
Function at 0x104f25e
Capabilities:
Get common file path
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push eax
lea edi, [esi + 4]
push edi
call fcn.0105847c
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x104f360
mov ecx, esi
call fcn.0104f198
cmp dword [esi + 0x84], 0
je 0x104f360
push ebx
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x104f35f
lea eax, [ebp - 0x20c]
push eax
call fcn.01055e3d
push dword [edi]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01035886
lea eax, [ebp - 0x20c]
push eax
call fcn.010561ca
test eax, eax
je 0x104f35f
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x104f35f
lea eax, [ebp - 0x214]
push eax
push ebx
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x104f358
mov ecx, dword [ebp - 0x214]
xor edx, edx
or edx, eax
or ecx, edi
cmp edx, dword [esi + 0x70]
jne 0x104f358
cmp ecx, dword [esi + 0x74]
jne 0x104f358
lea eax, [ebp - 0x20c]
push eax
add esi, 0x1c
push esi
call fcn.0105847c
mov dword [ebp - 0x210], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret 4
Function at 0x1050800
Capabilities:
Create directory
Get common file path

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 esi
mov esi, ecx
cmp dword [esi + 0x23c], 0
je 0x1050828
xor eax, eax
jmp 0x10508aa
push ebx
push 0x208
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10508a0
push edi
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x105088f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x186a0
div ecx
lea eax, [ebp - 0x20c]
push edx
push eax
push 0x10085a4
push edi
push ebx
call fcn.01035948
add esp, 0x14
test eax, eax
jl 0x105088f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x105088f
mov dword [esi + 0x23c], ebx
cmp dword [esi + 0x23c], 0
pop edi
jne 0x10508a7
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov eax, 0x80004005
jmp 0x10508a9
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret
Function at 0x10508bc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 0x24]
push esi
xor esi, esi
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x298], ecx
cmp ecx, esi
jne 0x10508ff
mov eax, 0x80004005
jmp 0x1050ab0
mov eax, dword [eax + 0x1c]
push ebx
xor ebx, ebx
inc ebx
cmp eax, esi
je 0x105091e
cmp eax, ebx
je 0x105091e
cmp eax, 2
je 0x105091e
mov dword [ebp - 0x294], ebx
jmp 0x1050aa9
push esi
push 0xc
push 0x10074d0
lea eax, [ebp - 0x28c]
push 0x208
push eax
call fcn.01035948
add esp, 0x14
test eax, eax
jl 0x1050a9f
push esi
lea eax, [ebp - 0x290]
push eax
push esi
push 3
push esi
push esi
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1050a9f
push edi
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x2a4]
push eax
push esi
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a0], esi
mov dword [ebp - 0x29c], esi
mov esi, 0x10085d4
push esi
push dword [ebp - 0x290]
mov dword [ebp - 0x2b0], 0x80
mov dword [ebp - 0x2a4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1050a0e
cmp dword [ebp - 0x2a4], ebx
jne 0x1050a0e
lea eax, [ebp - 0x84]
push eax
call fcn.01055edd
push dword [ebp - 0x298]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], edx
call fcn.01055edd
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2a8], edx
cmp edx, dword [ebp - 0x29c]
jb 0x1050a3c
ja 0x1050a0e
cmp eax, dword [ebp - 0x2a0]
jbe 0x1050a3c
mov eax, dword [ebp - 0x298]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1050a17
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x298]
push ebx
push 0
push esi
push dword [ebp - 0x290]
call edi
mov eax, dword [ebp - 0x29c]
cmp dword [ebp - 0x2a8], eax
jb 0x1050a90
ja 0x1050a5a
mov eax, dword [ebp - 0x2a0]
cmp dword [ebp - 0x2ac], eax
jb 0x1050a90
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x1050a90
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1050a6c
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0
push 0x10085c4
push dword [ebp - 0x290]
call edi
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
jmp 0x1050aa9
mov dword [ebp - 0x294], 0x80004005
mov eax, dword [ebp - 0x294]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047464
leave
ret
Function at 0x105147d
Capabilities:
Check for time delay via gettickcount
Create directory
Get common file path
Get file size

Disassembly:
mov ecx, dword [ecx + 0x60]
test ecx, ecx
jne 0x105148a
mov eax, 0x80004005
ret
jmp fcn.0104f9d0
Function at 0x1051c21
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x88
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x41c], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
pop ecx
cmp eax, edx
je 0x1051c66
mov ecx, eax
call fcn.0104efc9
mov dword [ebp - 0x418], eax
jmp 0x1051c6c
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], edx
jne 0x1051c7e
mov eax, 0x8007000e
jmp 0x1051e73
push ebx
push esi
push edx
mov esi, 0x208
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1007720
push ebx
push edi
call fcn.0104de66
mov edi, eax
test edi, edi
jge 0x1051cb5
push ebx
push 0x100883c
push 2
call fcn.01055c69
add esp, 0xc
jmp 0x1051e4a
mov edi, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0104c760
cmp dword [edi + 0x2c], 1
jne 0x1051cfb
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1007784
push dword [ebp - 0x41c]
call fcn.0104de66
test eax, eax
jl 0x1051cfb
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0104c96b
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1007738
push ebx
push dword [ebp - 0x41c]
call fcn.0104de66
mov edi, eax
test edi, edi
jl 0x1051ca0
mov ecx, dword [ebp - 0x418]
cmp dword [ecx + 0x2c], 1
je 0x1051db1
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1051d7b
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1051d4c
lea ecx, [ebp - 0x20c]
push ecx
sub eax, edx
lea ecx, [ebp - 0x414]
push ecx
sar eax, 1
sub edi, eax
push 0x1008828
mov eax, ecx
push edi
push eax
call fcn.0103590d
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call fcn.010561ca
test eax, eax
jne 0x1051da3
push ebx
push 0x10087f8
xor edi, edi
push 2
inc edi
call fcn.01055c69
add esp, 0xc
jmp 0x1051e4e
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
jmp 0x1051db7
lea eax, [ebp - 0x20c]
push eax
call fcn.01051b4d
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
mov ebx, 0x1007770
push ebx
push dword [ebp - 0x41c]
call fcn.0104de66
mov edi, eax
test edi, edi
jl 0x1051ca0
mov edi, dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0104c925
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1007750
push dword [ebp - 0x41c]
call fcn.0104de66
test eax, eax
jl 0x1051e24
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.0105847c
mov ecx, edi
call fcn.0104c71c
test eax, eax
je 0x1051e47
cmp dword [edi + 0x58], 2
je 0x1051e47
mov ecx, dword [ebp - 0x420]
push 0
push edi
call fcn.0104ca33
mov edi, eax
jmp 0x1051e4a
xor edi, edi
inc edi
test edi, edi
je 0x1051e6f
mov ecx, dword [ebp - 0x418]
push 1
call fcn.01051bfb
test edi, edi
jge 0x1051e6f
push edi
push 0x10087a0
push 2
call fcn.01055c69
add esp, 0xc
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01047464
leave
ret 4
Function at 0x10546d8
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
mov dword [ebp - 0x40], esi
mov ebx, 0x8007000e
mov dword [ebp - 0x30], edi
call fcn.01054418
mov dword [ebp - 0x48], eax
cmp eax, edi
je 0x105471b
push esi
push 0x1009038
push eax
call fcn.0105a150
mov dword [ebp - 0x34], eax
jmp 0x105471e
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x1054834
xor ebx, ebx
cmp dword [ebp + 0xc], edi
je 0x105480b
lea eax, [ebp - 0x38]
push eax
xor esi, esi
inc esi
push esi
push edi
push dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x105480b
push 0x28
pop ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 0x1009030
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x44], ebx
call esi
test eax, eax
jne 0x10547a8
cmp dword [ebp - 0x3c], 1
jne 0x10547a8
lea eax, [ebp - 0x2c]
push 0x10073b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10547a8
push edi
push edi
push dword [ebp - 0x40]
call fcn.01059baa
cmp eax, edi
jge 0x10547a8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
push edi
push 0x1009020
push dword [ebp - 0x38]
mov dword [ebp - 0x44], ebx
call esi
test eax, eax
jne 0x10547f1
cmp dword [ebp - 0x3c], 1
jne 0x10547f1
lea eax, [ebp - 0x2c]
push 0x10073b0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10547f1
push edi
push dword [ebp - 0x40]
call fcn.01059efe
cmp eax, edi
jge 0x10547f1
mov dword [ebp - 0x30], eax
push 1
push edi
push edi
push 1
push edi
push dword [ebp - 0x40]
call fcn.0105aad0
push dword [ebp - 0x38]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x34]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x34]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
cmp ebx, edi
pop ecx
jge 0x1054837
cmp dword [ebp - 0x30], 0xd2af9
mov dword [ebp - 0x30], 0xc00d2afb
je 0x1054837
mov dword [ebp - 0x30], ebx
cmp ebx, 0xd2af9
jne 0x1054855
xor eax, eax
cmp dword [ebp - 0x30], edi
setl al
dec eax
and eax, 0x3ffffffe
add eax, 0xc00d2afb
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047464
leave
ret 8