joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4643a8
Capabilities:
Get common file path

Disassembly:
push 0x220
mov eax, 0x44c49f
call fcn.0043bc61
mov edi, edx
mov ebx, ecx
call fcn.0043c192
test al, al
jne 0x4643ce
mov esi, 0x80004001
jmp 0x464503
xor eax, eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
xor edx, edx
mov dword [ebp - 4], eax
mov ecx, 0x409820
call fcn.00431cd8
lea ecx, [ebp - 0x224]
test al, al
je 0x464415
call fcn.0045e3cb
lea eax, [ebp - 0x224]
push eax
push 0xffffffffffffffff
push 0x4400
push 0x408f74
jmp 0x46442d
call fcn.0045e3cb
lea eax, [ebp - 0x224]
push eax
push 0xffffffffffffffff
push 0x4400
push 0x408f84
or dword [ebp - 0x220], 0xffffffff
or dword [ebp - 0x21c], 0xffffffff
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov esi, eax
test esi, esi
js 0x46448c
push dword [ebp - 0x224]
mov edx, 0x104
lea ecx, [ebp - 0x218]
call fcn.00422867
mov esi, eax
test esi, esi
js 0x46448c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
jne 0x464488
mov esi, 0x8007000e
test esi, esi
jns 0x4644f8
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0046496f
push dword [edi + 8]
lea ecx, [ebp - 0x22c]
push dword [edi + 4]
push 0x7de
call fcn.004649a0
lea ecx, [ebp - 0x22c]
mov dword [edi + 0xc], eax
call fcn.0043a882
lea ecx, [ebp - 0x224]
call fcn.0045e3cb
mov eax, esi
call fcn.0043bc10
ret

Function at 0x464828
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x4a2a30], 0
je 0x46484b
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [0x4a2a2c]
cmp eax, 0x4e20
jbe 0x4648b0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
push 0
push 0x18
push 0x4097ec
push 0x407210
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
je 0x46489d
mov dword [ebp - 4], 1
call fcn.004648b7
mov ecx, eax
call fcn.00464305
test eax, eax
je 0x46489d
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
jmp 0x4648a0
mov eax, dword [ebp - 4]
mov dword [0x4a2a30], eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [0x4a2a2c], eax
mov eax, dword [0x4a2a30]
leave
ret
Function at 0x464a5c
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
test byte [0x4a2941], 8
mov dword [ebp - 8], ecx
je 0x464a80
push ecx
mov edx, 0x409e28
mov ecx, 0x4a05c0
call fcn.00466513
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push eax
push 0xf003f
push ecx
push 0x407210
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0043fa36
mov esi, eax
mov ebx, 0x80070000
test esi, esi
jle 0x464ab1
movzx esi, si
or esi, ebx
test esi, esi
jns 0x464acb
mov ecx, dword [ebp + 4]
mov edx, 0x701
push esi
push 0x409960
call fcn.0045e47c
jmp 0x464b7d
cmp dword [ebp - 8], 1
push edi
mov edi, 0x409960
jne 0x464b26
call fcn.00466343
mov esi, eax
test esi, esi
jns 0x464aee
push esi
push edi
mov edx, 0x70a
jmp 0x464b74
push 0x40984c
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x464b08
cmp esi, 3
jne 0x464b0a
xor esi, esi
test esi, esi
jle 0x464b15
movzx esi, si
or esi, ebx
test esi, esi
jns 0x464b2a
mov ecx, dword [ebp + 4]
mov edx, 0x715
push esi
push edi
call fcn.0045e47c
test esi, esi
js 0x464b7c
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0x407844
push 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
mov esi, eax
test esi, esi
jle 0x464b4f
movzx esi, si
or esi, ebx
test esi, esi
jns 0x464b59
push esi
mov edx, 0x71d
jmp 0x464b73
lea ecx, [ebp - 0x14]
call fcn.0043ead2
lea ecx, [ebp - 0x14]
call fcn.0043eb5a
test eax, eax
jns 0x464b7c
push eax
mov edx, 0x721
push edi
mov ecx, dword [ebp + 4]
call fcn.0045e47c
pop edi
cmp dword [ebp - 4], 0
je 0x464b8c
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x465418
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push 2
push ecx
push 0x40e6d0
call fcn.0043fa36
mov esi, eax
mov edi, 0x80070000
test esi, esi
jle 0x465449
movzx esi, si
or esi, edi
test esi, esi
js 0x46547e
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0x40e720
push 0
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
mov esi, eax
test esi, esi
jle 0x465475
movzx esi, si
or esi, edi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4654ce
Capabilities:
Set registry value

Disassembly:
push 0x21c
mov eax, 0x44c59b
call fcn.0043bc61
mov ebx, edx
mov dword [ebp - 0x228], ecx
lea eax, [ebp - 0x21c]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push 0xf003f
push ecx
push 0x407210
call fcn.0043fa36
mov edi, eax
test edi, edi
jle 0x465510
movzx edi, di
or edi, 0x80070000
mov ecx, dword [ebp + 4]
xor esi, esi
test edi, edi
jns 0x46552b
push edi
push 0x409960
mov edx, 0x2e3
call fcn.0045e47c
jmp 0x465582
push 4
lea eax, [ebp - 0x228]
push eax
push 4
push esi
push 0x4097ec
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x465557
movzx edi, di
or edi, 0x80070000
mov ecx, dword [ebp + 4]
test edi, edi
jns 0x46556e
push edi
push 0x409960
mov edx, 0x2e8
call fcn.0045e47c
push dword [ebp - 0x21c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jns 0x465608
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], esi
push esi
push eax
mov dword [ebp - 0x220], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.0046496f
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x224]
push dword [ebx + 8]
push dword [ebx + 4]
push 0x7d0
call fcn.004649a0
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
push 0x40e49c
mov esi, dword [edx + 0x10]
mov ecx, esi
mov dword [ebx + 0xc], eax
call dword [0x4a3670]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x224]
call fcn.0043a882
mov eax, edi
call fcn.0043bc10
ret
Function at 0x4660d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x410]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
push eax
push 9
push ecx
push 0x40e900
call fcn.0043fa36
test eax, eax
jne 0x4661ef
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x414]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x204]
mov edi, ebx
push eax
push ebx
jmp 0x46618c
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x208
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push 2
push 0x40e9b0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x410]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x466178
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x40c]
push 0x40e344
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x4661ae
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
inc edi
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push dword [ebp - 0x410]
mov dword [ebp - 0x414], 0x100
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x466122
jmp 0x4661d2
push ecx
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 1
push eax
push ecx
push 0x40e9c0
mov edx, 0x40e9f0
call fcn.00471980
mov esi, eax
push dword [ebp - 0x410]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
lea eax, [esi - 0x103]
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebx
jmp 0x4661fb
cmp eax, 2
je 0x4661f9
cmp eax, 3
jne 0x4661fb
xor eax, eax
test eax, eax
jle 0x466207
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043b590
leave
ret
Function at 0x46622e
Capabilities:
Delete file
Get common file path
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a0cb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x466333
push 0x40e2c0
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00420c07
mov esi, eax
test esi, esi
js 0x466333
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x4662ba
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4662a8
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x4662b8
cmp esi, 0x80070003
jne 0x4662ba
mov esi, ebx
test esi, esi
js 0x466333
push edi
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4662f5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x466332
movzx esi, si
or esi, 0x80070000
jmp 0x466332
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
push ebx
push ebx
lea eax, [ebp - 0x214]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
test eax, eax
jne 0x46632b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46632b
movzx esi, si
or esi, 0x80070000
push edi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b590
leave
ret
Function at 0x466343
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x4a0cb8]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 0xf003f
push ecx
push 0x407210
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebx
call fcn.0043fa36
mov esi, eax
mov edi, 0x80070000
test esi, esi
jle 0x466394
movzx esi, si
or esi, edi
test esi, esi
js 0x466472
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push eax
push 0x407704
push 1
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetNLSVersionEx]
test eax, eax
je 0x466457
push 0x32
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromGUID2]
mov esi, eax
test esi, esi
js 0x466468
push 0xc8
lea eax, [esp + 0x9c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa0]
push dword [esp + 0x1c]
push 6
push 0x40dfa0
push 0x64
push eax
call fcn.0041d6f4
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x466468
lea ecx, [esp + 0x98]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x466424
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x9c]
push eax
push 1
push 0x407730
push ebx
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHSetValueW]
jmp 0x46645d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x466468
movzx esi, si
or esi, edi
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [esp + 0x164]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b590
mov esp, ebp
pop ebp
ret
Function at 0x46a8ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x44cae4
call fcn.0043bccd
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x46a92f
call fcn.00465484
mov esi, eax
jmp 0x46aa47
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x46a94e
call fcn.00465484
jmp 0x46aa3e
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x46a944
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x46a99a
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x46a990
lea ecx, [ebp - 0x418]
call fcn.00469624
mov esi, 0x8007000e
jmp 0x46aa60
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.004666bb
cmp eax, 0x400
jbe 0x46a9c1
push eax
lea ecx, [ebp - 0x418]
call fcn.004684cb
mov eax, dword [ebp - 0x418]
jmp 0x46a9cd
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x46a9f7
test eax, eax
jne 0x46aa02
mov esi, 0x8007000e
jmp 0x46aa40
push ebx
push eax
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x46a944
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.0046a777
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x46aa60
lea ecx, [ebp - 0x418]
call fcn.00469624
lea ecx, [ebp - 0x428]
call fcn.00466c40
mov eax, esi
call fcn.0043bc1f
ret 0x10
Function at 0x46b56a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x46b587
mov ecx, 0x80004005
call fcn.0045fefb
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x46b598
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x46b590
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x46b634
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x46b64f
mov ecx, 0x80004005
call fcn.0045fefb
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x46b656
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x46c0d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
je 0x46c12b
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46c12b
push edi
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x46c11d
cmp esi, ecx
jae 0x46c12b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x46c10b
cmp esi, ecx
jae 0x46c12b
cmp word [esi], 0
je 0x46c12b
mov eax, esi
jmp 0x46c12d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x46d68a
Capabilities:
Print debug messages

Disassembly:
push 0x13c
mov eax, 0x44cc3e
call fcn.0043bc61
mov edi, ecx
sub esp, 0x94
mov dword [ebp - 4], 1
lea eax, [ebp + 0x9c]
mov dword [ebp - 0x144], esp
mov ecx, esp
push eax
call fcn.004312b5
sub esp, 0x94
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004312b5
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.0046d366
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.0046ed60
mov esi, eax
test esi, esi
js 0x46d749
push 0x40f8f4
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
push ecx
mov ecx, dword [edi + 4]
push 2
call fcn.0041b9f0
push 0x7d0
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x46d6f5
test eax, eax
jne 0x46d729
mov esi, dword [ebp - 0x18]
jmp 0x46d73e
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46d73e
movzx esi, si
or esi, 0x80070000
push 0x40f910
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea ecx, [ebp - 0x140]
call fcn.0046d4f2
mov eax, dword [ebp + 0xc]
mov edi, 0x401028
mov dword [ebp + 8], edi
test eax, eax
je 0x46d772
lea ecx, [ebp + 0x18]
cmp eax, ecx
je 0x46d772
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp + 0xa0]
mov dword [ebp + 8], 0x401558
mov dword [ebp + 0x9c], edi
test eax, eax
je 0x46d79b
lea ecx, [ebp + 0xac]
cmp eax, ecx
je 0x46d79b
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, esi
call fcn.0043bc10
ret 0x128
Function at 0x46ed60
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push esi
push 0x46d650
push edi
push edi
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x46ed97
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x46ed97
movzx edi, di
or edi, 0x80070000
mov eax, edi
pop edi
pop esi
ret

Function at 0x46f48d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x230
mov eax, 0x44cfbe
call fcn.0043bc61
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 8]
inc edi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
test edx, edx
jne 0x46f4d5
test eax, eax
je 0x46f5e5
test ebx, ebx
jne 0x46f4de
mov ebx, 0x104
mov esi, dword [0x402f5c]
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov ecx, esi
call dword [0x4a3670]
call esi
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
jne 0x46f512
xor edi, edi
jmp 0x46f5e5
xor eax, eax
mov dword [ebp - 0x22c], eax
push 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x224], ebx
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], 0x104
push ecx
push 0
lea ecx, [ebp - 0x224]
push ecx
push esi
push eax
push dword [ebp - 0x220]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x46f5f3
push dword [ebp + 0x18]
mov esi, dword [ebp - 0x23c]
push dword [ebp - 0x234]
mov edx, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
push ebx
push dword [ebp - 0x228]
push dword [ebp - 0x238]
push esi
call fcn.0046f609
mov edi, eax
test edi, edi
je 0x46f5b5
test esi, esi
je 0x46f5b5
cmp dword [ebp - 0x224], ebx
jae 0x46f5ef
push dword [ebp - 0x228]
mov ecx, esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [0x4a3670]
call esi
mov esi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x22c]
inc eax
mov dword [ebp - 0x22c], eax
test edi, edi
jne 0x46f51a
and dword [ebp - 4], 0
push esi
mov esi, dword [0x402f60]
mov ecx, esi
call dword [0x4a3670]
call esi
mov eax, edi
call fcn.0043bc10
ret 0x14
xor edi, edi
jmp 0x46f5b5
cmp eax, 0x103
je 0x46f5d0
sub eax, 0xea
neg eax
sbb eax, eax
not eax
and edi, eax
jmp 0x46f5bb
Function at 0x46fd50
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x44d02f
call fcn.0043bc97
mov edi, ecx
xor ebx, ebx
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
cmp dword [edi + 0x9c], ebx
jne 0x46fd7b
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x46fde8
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
push dword [ebp + 8]
push dword [edi + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x46fdd4
mov eax, dword [ebp - 0x14]
mov ecx, esi
add eax, eax
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.0042e5c5
or dword [ebp - 4], 0xffffffff
jmp 0x46fd84
test eax, eax
je 0x46fddb
push eax
jmp 0x46fd71
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00424f02
xor eax, eax
inc eax
call fcn.0043bbfc
ret 8

Function at 0x46ffb6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x9c], edi
jne 0x46ffd5
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x47000d
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
lea eax, [eax*2 + 2]
push eax
push edi
call fcn.0042e5c5
push eax
push 1
push edi
push dword [ebp + 8]
push dword [esi + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x470003
push eax
jmp 0x46ffcb
push edi
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x47029b
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x44b729
call fcn.0043bc2e
mov ebx, ecx
push 0
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x4703b4
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 3
jne 0x470394
lea edx, [ebp - 0x10]
mov ecx, ebx
call fcn.00470ccf
test al, al
je 0x470375
mov edi, dword [ebp - 0x10]
xor ecx, ecx
push 0x4084c8
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b996
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x47031a
mov ecx, dword [ebp + 4]
mov edi, 0x8007000e
push edi
push 0x40fd5c
push 0x79
pop edx
call fcn.0045d953
jmp 0x470352
push edi
push ebx
lea edx, [edi + 1]
mov ecx, esi
call fcn.00420c5b
mov edi, eax
test edi, edi
jns 0x470356
mov ecx, dword [ebp + 4]
push edi
push 0x40fd5c
push 0x7a
pop edx
call fcn.0045d953
and dword [ebp - 4], 0
push esi
mov esi, dword [0x402f60]
mov ecx, esi
call dword [0x4a3670]
call esi
mov eax, edi
jmp 0x4703b6
mov ecx, esi
call fcn.0047029b
mov dword [ebp - 4], 1
push esi
mov esi, dword [0x402f60]
mov ecx, esi
call dword [0x4a3670]
call esi
push 0
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x4703b4
mov ecx, dword [ebp + 4]
push 0x40fd5c
push 0x7d
pop edx
call fcn.0045d93a
jmp 0x4703b6
cmp eax, 0xb7
je 0x4703b4
test eax, eax
je 0x4703b4
mov ecx, dword [ebp + 4]
mov edx, 0x81
push eax
push 0x40fd5c
call fcn.00465497
jmp 0x4703b6
xor eax, eax
call fcn.0043bbfc
ret