joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4329a2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042bc4f
xor ebx, ebx
cmp dword [0x4502d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x432a78
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432b58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4411a0
push edi
call esi
cmp eax, ebx
je 0x432b58
push eax
call fcn.0042bbe1
mov dword [esp], 0x441190
push edi
mov dword [0x4502d4], eax
call esi
push eax
call fcn.0042bbe1
mov dword [esp], 0x44117c
push edi
mov dword [0x4502d8], eax
call esi
push eax
call fcn.0042bbe1
mov dword [0x4502dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00427c8a
test eax, eax
pop ecx
pop ecx
je 0x432a46
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a6c2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x432a78
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042bbe1
cmp eax, ebx
pop ecx
mov dword [0x4502e4], eax
je 0x432a78
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042bbe1
pop ecx
mov dword [0x4502e0], eax
mov eax, dword [0x4502e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x432afd
cmp dword [0x4502e4], ecx
je 0x432afd
push eax
call fcn.0042bc58
push dword [0x4502e4]
mov esi, eax
call fcn.0042bc58
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x432afd
cmp edi, ebx
je 0x432afd
call esi
cmp eax, ebx
je 0x432aca
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x432aca
test byte [ebp - 0x18], 1
jne 0x432afd
lea eax, [ebp - 0x10]
push eax
call fcn.00427cc1
test eax, eax
pop ecx
je 0x432ae5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a6c2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x432af4
or dword [ebp + 0x10], 0x200000
jmp 0x432b38
or dword [ebp + 0x10], 0x40000
jmp 0x432b38
mov eax, dword [0x4502d8]
cmp eax, dword [ebp - 8]
je 0x432b38
push eax
call fcn.0042bc58
cmp eax, ebx
pop ecx
je 0x432b38
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x432b38
mov eax, dword [0x4502dc]
cmp eax, dword [ebp - 8]
je 0x432b38
push eax
call fcn.0042bc58
cmp eax, ebx
pop ecx
je 0x432b38
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4502d4]
call fcn.0042bc58
cmp eax, ebx
pop ecx
je 0x432b58
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432b5a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x438258
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44c538]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004381ed
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004276e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4382a7
cmp dword [ebp - 0x1c], 5
jb 0x4382bf
jmp 0x4382bb
cmp dword [ebp - 0x10], 1
jne 0x4382bf
cmp dword [ebp - 0x1c], 4
ja 0x4382bb
jne 0x4382bf
cmp dword [ebp - 0x18], 0
jbe 0x4382bf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x442388
call fcn.004380c1
test eax, eax
jge 0x4382e0
mov byte [0x44d920], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042652f
add ebp, 0x78
leave
ret

Function at 0x502e44
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x502e57
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x502e53
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x502e84
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x502ec3
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x502eb9
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x502ec5
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x502ea9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a7a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40a800
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4fa06c]
test esi, esi
jle 0x40a920
mov eax, dword [0x4fa070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40a834
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40a8b7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40a820
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40a947
mov eax, dword [0x4fa070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4fa070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40a927
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40a8b0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40a8c0
add dword [0x4fa06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4fa070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40a8b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40a83e
mov eax, dword [0x4fa070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x40ae00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4fa088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4fa080]
sub esp, 4
test ebx, ebx
je 0x40ae55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40ae4e
test esi, esi
je 0x40ae4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40ae30
mov dword [esp], 0x4fa088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b790
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b7d0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x40b7f8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x41e070
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4b2afc], 0
jne 0x41e196
mov byte [0x4b2afc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41e164
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x41e154
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4b3295
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a835c
jmp 0x4a8354
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._fputs
jmp 0x41e11a
mov dword [esp], 2
call dword [0x4b107c]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sym._fwrite
jmp 0x4a834f
mov dword [esp], 2
call dword [0x4b107c]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sym._fwrite
call sym._abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401b5c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b9b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b9b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b9b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b9b
cmp dword [ecx + 0x74], 0xe
jbe 0x401b9b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406409
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406454
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406626
test al, al
jne 0x40644e
sub edx, 2
cmp edx, edi
jne 0x406434
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406476
lea eax, [edi + 2]
cmp edx, eax
je 0x406476
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406355
add esp, 0x10
jmp 0x406570
push esi
lea ecx, [ebp - 0x255]
call fcn.00406626
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4064b9
push dword [ebp - 0x25c]
jmp 0x406466
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4064f6
cmp word [ebp - 0x226], 0
je 0x406517
cmp word [ebp - 0x226], ax
jne 0x4064f6
cmp word [ebp - 0x224], 0
je 0x406517
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406355
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406563
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4064d0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40654b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406570
push 0x406185
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004091d0
add esp, 0x10
jmp 0x406540
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040132c
leave
ret

Function at 0x4080a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fffc
push 0x40fff4
push str.FlsAlloc
push 0x1f
call fcn.00407fe1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4080da
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e154]
call esi
jmp 0x4080e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x408124
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41000c
push 0x410004
push str.FlsGetValue
push 0x21
call fcn.00407fe1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40815b
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408163
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410014
push 0x41000c
push str.FlsSetValue
push 0x22
call fcn.00407fe1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40819d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001e89
Capabilities:
Accept command line arguments
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
and dword [0x10082f4], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
push 0x20
pop esi
push 2
pop edx
test cx, cx
je 0x1001ebd
cmp cx, si
ja 0x1001ebd
mov cx, word [eax + edx]
add eax, edx
jmp 0x1001eab
mov cx, word [eax]
cmp cx, 0x22
jne 0x1001ee1
mov cx, word [eax + edx]
add eax, edx
test cx, cx
je 0x1001ed7
cmp cx, 0x22
jne 0x1001ec6
cmp word [eax], 0x22
jne 0x1001eed
add eax, edx
jmp 0x1001eed
cmp cx, si
jbe 0x1001eed
add eax, edx
cmp word [eax], si
ja 0x1001ee6
mov cx, word [eax]
test cx, cx
je 0x1001efe
cmp cx, si
ja 0x1001efe
add eax, edx
jmp 0x1001eed
mov esi, 0x104
lea ecx, [ebp - 0x218]
push esi
mov ebx, 0x10013e4
push ecx
push ebx
push eax
call fcn.01001dfd
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1001f83
cmp word [ebp - 0x218], 0
je 0x1001f83
lea eax, [ebp - 0x218]
mov edi, 0x1008308
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push esi
push eax
push ebx
push dword [ebp - 0xc]
call fcn.01001dfd
xor ebx, ebx
cmp word [ebp - 0x218], bx
mov dword [ebp - 4], ebx
je 0x1001f6c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001f92
mov eax, dword [ebp - 4]
mov dword [0x1008978], eax
jmp 0x1001f92
mov edi, 0x1008308
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebx, ebx
push esi
push 0x10080e8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x10013cc
push edi
push 0x1008518
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
push ebx
push ebx
call fcn.01003771
lea eax, [ebp - 8]
mov edi, 0x1008720
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push 0x10013b0
push 0x1001310
push 0x80000001
mov dword [ebp - 8], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1001fed
push 0x10
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100243e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100246c
mov cx, word [eax]
cmp cx, word [0x1001524]
jne 0x100246c
push dword [ebp + 0x18]
add eax, 2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_Ordinal_294]
jmp 0x1002484
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x1001520
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14
Function at 0x100254b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x10], 0x10
push esi
mov esi, 0x80004005
je 0x1002577
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100259a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100259c
jmp 0x100259a
push 0
push dword [ebp + 0x10]
push 4
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100259c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
test esi, esi
jge 0x10025a7
push 0x76
call fcn.010024c7
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x10025e2
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x104
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.SHELL32.dll_IsLFNDriveW]
test eax, eax
je 0x100260a
push 0x1001538
jmp 0x100260f
push 0x1001528
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1002621
mov eax, 0x80004005
jmp 0x100264b
push 0x90
push 0x40000000
push esi
call fcn.0100254b
mov edi, eax
test edi, edi
jl 0x1002649
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1002649
mov edi, 0x80004005
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x1002650
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push eax
mov esi, 0x80004005
push dword [ebp + 0xc]
call fcn.010025e2
test eax, eax
jl 0x10026e3
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x10026e3
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10026e3
lea eax, [ebp - 0x208]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x208]
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10026d6
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
jmp 0x10026e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x76
call fcn.010024c7
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x1002934
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push edi
push 0x80
mov edi, 0x1008518
push 0x40000000
push edi
call fcn.0100254b
test eax, eax
jl 0x1002a96
push esi
lea eax, [ebp - 0x50]
push ebx
push eax
push 0x1001d50
call fcn.01002523
mov esi, 0x104
lea eax, [ebp - 0x668]
push esi
push eax
push 0x71
push dword [0x10080e0]
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
lea eax, [ebp - 0x258]
push esi
push eax
mov ebx, 0x1001558
lea eax, [ebp - 0x50]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_294]
cmp word [ebp - 0x258], 0
jne 0x10029bd
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x258]
push 0x1008308
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x668]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10029fc
push edi
push eax
lea eax, [ebp - 0x50]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_295]
jmp 0x1002a89
mov ebx, 0x1008308
push ebx
call dword [sym.imp.SHELL32.dll_IsLFNDriveW]
test eax, eax
push esi
je 0x1002a14
push 0x1001670
jmp 0x1002a19
push 0x100165c
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x1002a42
push esi
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatBuffW]
lea eax, [ebp - 0x460]
push eax
push ebx
push dword [ebp + 8]
call fcn.01002650
test eax, eax
jl 0x1002a89
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1002a7b
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [ebp - 0x460]
push ebx
push eax
call fcn.010026ea
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.010030f2
pop ebx
pop esi
pop edi
leave
ret 4
Function at 0x1002b16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
mov eax, 0x80070057
je 0x1002bde
push esi
mov esi, dword [ebp + 8]
push esi
push 0x10016ac
push 0x10016a0
lea eax, [ebp - 0x410]
push 0x104
push eax
mov word [edi], bx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
cmp esi, ebx
je 0x1002bdb
cmp word [esi], bx
je 0x1002bdb
lea eax, [ebp + 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x410]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002bdb
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x208
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push 0x1001690
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002bd2
push 4
lea eax, [ebp - 0x208]
push 0x1001688
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x1002bd2
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0xc