joyce8/EMBER2024-capa huggingface dataset:
Function at 0x348ca415
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x348ca424
pop dword [ebp - 0x34]
mov eax, 0x3d9b6602
sub eax, 0x90ec1de
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbe5df50b
sub dword [ebp - 0x44], 0x700bafc0
mov dword [ebp - 0x40], 0x60dbcf4f
add dword [ebp - 0x40], 0xd1577cf6
mov dword [ebp - 0x3c], 0xa51428e2
add dword [ebp - 0x3c], 0xa7381b4c
mov dword [ebp - 0x38], 0x1f5f4ae3
sub dword [ebp - 0x38], 0x1f5f4ae3
lea eax, [ebp - 0x44]
push eax
mov eax, 0xe0aa608d
sub eax, 0xac214f09
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x862aab34
sub dword [ebp - 0x44], 0x11b841de
mov dword [ebp - 0x40], 0x6c48bf7
add dword [ebp - 0x40], 0x3aa7d57e
mov dword [ebp - 0x3c], 0x42c6b133
sub dword [ebp - 0x3c], 0xdf5744c7
mov dword [ebp - 0x38], 0xd340267b
sub dword [ebp - 0x38], 0xd340267b
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x46847
push 0
call eax
mov ecx, 0x498af98d
sub ecx, 0x498ab55c
xor esi, esi
add esi, eax
mov edi, 0x348ee000
add edi, dword [ebp - 0x34]
mov ebx, 0x258c0876
add ebx, 0x92d2d193
xor dword [ebp - 4], esi
mov edx, dword [edi]
add dword [ebp - 0x18], 0xc3ff6f07
add edx, ebx
xor dword [ebp - 8], 0xa91b431d
mov dword [esi], edx
mov dword [ebp - 4], 0x39dba354
add esi, 4
add edi, 0x4b714edb
sub edi, 0x4b714ed7
loop 0x348ca53d
add eax, 0x9fb0763
add eax, 0xf605fc34
mov ebx, eax
add eax, 0x6759217d
add eax, 0x98a6de88
mov ecx, 0x34890000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x348de37d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x348932c4]
jne 0x348de977
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x348e8ec8], eax
mov dword [0x348e8ec4], ecx
mov dword [0x348e8ec0], edx
mov dword [0x348e8ebc], ebx
mov dword [0x348e8eb8], esi
mov dword [0x348e8eb4], edi
mov word [0x348e8ee0], ss
mov word [0x348e8ed4], cs
mov word [0x348e8eb0], ds
mov word [0x348e8eac], es
mov word [0x348e8ea8], fs
mov word [0x348e8ea4], gs
pushfd
pop dword [0x348e8ed8]
mov eax, dword [ebp]
mov dword [0x348e8ecc], eax
mov eax, dword [ebp + 4]
mov dword [0x348e8ed0], eax
lea eax, [ebp + 8]
mov dword [0x348e8edc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x348e8e18], 0x10001
mov eax, dword [0x348e8ed0]
mov dword [0x348e8dcc], eax
mov dword [0x348e8dc0], 0xc0000409
mov dword [0x348e8dc4], 1
mov eax, dword [0x348932c4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x348e42d4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x348e8e10], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x34893304
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x348e8e10], 0
jne 0x348dea67
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov dword [0x403cdc], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, dword [ebp + 4]
mov dword [0x403b2d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401031
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403b2d]
mov dword [ebp - 0x48], eax
mov eax, 0x40168b
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403b2d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.klavesn
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d28], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403d28]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010ce
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010c0
mov esp, ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40312b
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
push edi
push 0x4a7dd0
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.004018ba
lea eax, [ebp - 0x7c]
push eax
call fcn.00403395
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0046d720
mov eax, dword [ebp - 0x78]
add esp, 0x10
cmp dword [ebp - 0x64], 8
jae 0x403188
lea eax, [ebp - 0x78]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x4a7c60
push eax
lea eax, [ebp - 0x60]
push eax
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
je 0x4031f9
push 0x4a7ca0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.004019f8
mov ecx, dword [ebp - 0x80]
push 0x4a7ca8
call fcn.00401941
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a1c
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d79a
add ebp, 0x1ac
leave
ret
push ebx
push 0
push eax
call fcn.0046d720
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x403211
lea eax, [ebp - 0x78]
push 0x4a7cac
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x40322c
lea eax, [ebp - 0x60]
jmp 0x4031ad
lea eax, [ebp - 0x7c]
push eax
call fcn.0040402d
mov ecx, eax
call fcn.00404058
push ebx
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0046d720
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x403257
lea eax, [ebp - 0x78]
push 0x4a7c60
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x60]
jne 0x4031ad
push ebx
push 0
push eax
call fcn.0046d720
mov eax, dword [ebp - 0x78]
add esp, 0xc
cmp dword [ebp - 0x64], 8
jae 0x40328c
lea eax, [ebp - 0x78]
push 0x4a7cac
push eax
lea eax, [ebp - 0x60]
push eax
call esi
lea eax, [ebp - 0x60]
push eax
call edi
test eax, eax
je 0x4032e0
push 0x4a7ca0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x60]
push eax
call fcn.004019f8
mov ecx, dword [ebp - 0x80]
push 0x4a7ca8
call fcn.00401941
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x7c]
call fcn.00401a1c
mov eax, esi
jmp 0x4031e1
xor esi, esi
jmp 0x4032cd
Function at 0x4032e4
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
push esi
mov esi, ecx
push 0x4a7dd0
lea ecx, [ebp - 0x80]
call fcn.004018ba
lea eax, [ebp - 0x80]
push eax
call fcn.0040312b
pop ecx
test eax, eax
je 0x403391
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push eax
call fcn.0046d720
mov eax, dword [ebp - 0x7c]
add esp, 0xc
cmp dword [ebp - 0x68], 8
jae 0x403341
lea eax, [ebp - 0x7c]
push str.download_interface.dll
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403391
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.004019f8
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401a1c
mov ecx, dword [ebp + 0x1a4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046d79a
add ebp, 0x1a8
leave
ret
xor esi, esi
jmp 0x40336d

Function at 0x403395
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0046d720
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.instdir
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403443
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x403405
sub eax, edx
sar eax, 1
je 0x403443
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.004019f8
mov eax, dword [esi + 0x14]
dec eax
push eax
mov ecx, esi
call fcn.0041258c
cmp word [eax], 0x5c
je 0x40343e
push 0x4a7ca8
mov ecx, esi
call fcn.00401941
xor eax, eax
inc eax
jmp 0x403445
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0046d79a
add ebp, 0x390
leave
ret
Function at 0x40345b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push esi
mov esi, dword [ebp + 0x398]
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.0046d720
or dword [ebp - 0x78], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
push str.Path
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4034eb
lea eax, [ebp - 0x74]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4034cb
sub eax, edx
sar eax, 1
je 0x4034eb
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
call fcn.004019f8
xor eax, eax
inc eax
jmp 0x4034ed
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
pop esi
call fcn.0046d79a
add ebp, 0x390
leave
ret

Function at 0x403603
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov ebx, eax
cmp dword [ebp + 8], esi
je 0x40368e
cmp dword [ebp + 0xc], esi
je 0x40368e
cmp ebx, esi
jle 0x40368e
push esi
push 0x80
push 2
push esi
push esi
push 7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40363f
mov eax, 0x80004005
jmp 0x403693
push edi
push esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
push esi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push ebx
add eax, edi
push eax
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403677
cmp dword [ebp + 8], esi
jle 0x403677
sub ebx, dword [ebp + 8]
add edi, dword [ebp + 8]
cmp ebx, esi
jg 0x40364c
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x403680
mov dword [eax], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
jmp 0x403693
mov eax, 0x86180008
pop esi
pop ebx
leave
ret

Function at 0x403697
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
mov eax, 0x80
push eax
push 3
push edi
push edi
push eax
push dword [ebp + 8]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4036c7
mov eax, 0x80004005
jmp 0x4036e0
lea eax, [ebp + 0xc]
push eax
push ebx
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40375e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jg 0x40377b
mov eax, 0x80004005
jmp 0x4037f6
lea eax, [esi + 4]
push edi
push eax
call fcn.0046c52f
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4037b7
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4a7ca8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4037be
mov eax, 0x80004005
jmp 0x4037f5
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [esi], edx
movzx edx, word [eax + 0xe]
mov esi, dword [ebp + 0x14]
mov dword [esi], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], eax
call fcn.0046d446
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403b67
Capabilities:
Copy file

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x403b7f
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi]
sub esp, 0x14
push ebx
test ecx, ecx
je 0x403bfd
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x403bfd
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
mov eax, dword [esi]
push eax
push dword [eax + 0xc]
lea ecx, [ebp - 8]
call fcn.0040ebaf
jmp 0x403bdf
lea ecx, [ebp - 8]
call fcn.0040e287
cmp dword [eax + 0x18], 8
jb 0x403bc8
mov eax, dword [eax + 4]
jmp 0x403bcb
add eax, 4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x403c1e
lea ecx, [ebp - 8]
call fcn.00403d84
mov eax, dword [esi]
push eax
push dword [eax + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0040ebaf
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00403db3
test al, al
je 0x403bb5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x403c13
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi + 4]
push edi
call fcn.00403c65
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x403c21
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
call fcn.00403e6a
add esp, 0xc
test esi, esi
pop esi
je 0x403c61
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x403c61
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x403c65
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 8], 0
je 0x403c92
push dword [esp + 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c92
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
ret
Function at 0x403e6a
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x4b7f60]
xor eax, esp
mov dword [esp + 0x480], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004018ba
mov eax, dword [esp + 0x28]
dec eax
push eax
lea ecx, [esp + 0x18]
call fcn.0041258c
cmp word [eax], 0x5c
je 0x403ec1
push 0x4a7ca8
lea ecx, [esp + 0x18]
call fcn.00401941
push 0x4a7dec
lea ecx, [esp + 0x18]
call fcn.00401941
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x403ede
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x403f19
xor esi, esi
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.00401a1c
mov ecx, dword [esp + 0x48c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d79a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [esp + 0x284]
push 0
push eax
call fcn.0046d720
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x4a7c50
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403fa7
push 0x4a7ca0
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
je 0x403fa7
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [esp + 0x30], 0x10
je 0x403f9b
push esi
lea eax, [esp + 0x284]
push ebx
push eax
call fcn.00403e6a
add esp, 0xc
cmp dword [ebx], 0
je 0x403fa7
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403fa7
lea edi, [esp + 0x280]
call fcn.00403b7f
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403f30
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
inc esi
jmp 0x403ef5
Function at 0x40615b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x790]
sub esp, 0x810
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x78c], eax
mov eax, dword [ebp + 0x798]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push edi
mov edi, ecx
push str.HKCT
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 0x400
call esi
test eax, eax
je 0x4061e6
push str.HKEY_CLASSES_ROOT
push edi
call esi
test eax, eax
je 0x4061e6
push str.HKCU
push edi
call esi
test eax, eax
je 0x4061df
push str.HKEY_CURRENT_USER
push edi
call esi
test eax, eax
je 0x4061df
push str.HKLM
push edi
call esi
test eax, eax
je 0x4061d8
push 0x4a81a0
push edi
call esi
test eax, eax
jne 0x4061df
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4061eb
mov eax, closesocket
jmp 0x4061eb
mov eax, closesocket
lea ecx, [ebp - 0x7c]
push ecx
push 1
xor esi, esi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40622f
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x40622f
cmp dword [ebp - 0x78], esi
jbe 0x40622f
xor eax, eax
inc eax
jmp 0x406231
xor eax, eax
mov ecx, dword [ebp + 0x78c]
pop edi
xor ecx, ebp
pop esi
call fcn.0046d79a
add ebp, 0x790
leave
ret

Function at 0x4094f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp + 0x38c], eax
mov eax, dword [ebp + 0x3a4]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
mov esi, dword [ebp + 0x398]
push edi
mov edi, dword [ebp + 0x39c]
push 0x400
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0046d720
or dword [ebp - 0x80], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push edi
push esi
mov dword [ebp - 0x7c], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 0x78]
pop edi
pop esi
pop ebx
test eax, eax
je 0x409572
call fcn.00403c95
mov eax, 0x80004005
jmp 0x40957d
lea eax, [ebp - 0x74]
push eax
call fcn.004019f8
xor eax, eax
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.0046d79a
add ebp, 0x390
leave
ret

Function at 0x409592
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x4095a4
mov eax, dword [eax + 4]
jmp 0x4095a7
add eax, 4
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x4095cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4b7f60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x40c], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0046d720
or dword [ebp - 0x408], 0xffffffff
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x40c]
mov dword [ebp - 0x410], 0x200
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40964d
mov eax, dword [ebp + 0x18]
mov dword [esi], eax
mov eax, 0x80004005
jmp 0x409657
mov eax, dword [ebp - 0x404]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d79a
leave
ret