joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404010
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x404
mov eax, dword [0x40706c]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.nutlibc4.dll_memset
push str.TEMP
call sub.nutlibc4.dll_getenv
add esp, 0x10
test eax, eax
je 0x404061
cmp byte [eax], 0
je 0x404061
push 1
lea ecx, [esp + 8]
push ecx
jmp 0x404071
call fcn.00404540
test eax, eax
je 0x40407a
push 1
lea edx, [esp + 8]
push edx
push eax
call sub.nutlibc4.dll__NutPathToWin32
add esp, 0xc
lea eax, [esp + 4]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x404084
mov ecx, dword [esp + 0x404]
xor eax, eax
cmp byte [esi], al
pop esi
setne al
xor ecx, esp
call fcn.00403990
add esp, 0x404
ret

Function at 0x4041c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x40706c]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [esp + 0x808]
push ebx
mov ebx, dword [esp + 0x810]
push esi
lea edx, [esp + 8]
push edi
sub edx, eax
jmp 0x4041f0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4041f0
push str..exe
lea eax, [esp + 0x10]
push 0x400
push eax
call fcn.004040b0
add esp, 0xc
mov edi, 0x4052a9
lea esi, [esp + 0xc]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40422e
mov dword [ebx], edx
jmp 0x404376
lea eax, [esp + 0xc]
push eax
call fcn.00403ee0
add esp, 4
cmp eax, 1
jne 0x40427c
lea ecx, [esp + 0xc]
push 0
push ecx
call sub.nutlibc4.dll_access
add esp, 8
test eax, eax
jl 0x40433a
lea edx, [esp + 0xc]
push edx
call sub.nutlibc4.dll_strdup
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00403990
add esp, 0x804
ret
push str.PATH
call sub.nutlibc4.dll_getenv
mov edi, eax
add esp, 4
test edi, edi
je 0x404370
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404296
sub eax, edx
add eax, 0xa
push eax
call sub.nutlibc4.dll_malloc
mov esi, eax
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4042b4
sub eax, edx
add eax, 0xa
push eax
push 0
push esi
call sub.nutlibc4.dll_memset
push edi
push 0x4052ac
push esi
call sub.nutlibc4.dll_sprintf
push 0x405c8c
push esi
call sub.nutlibc4.dll_strtok
add esp, 0x20
test eax, eax
je 0x404331
lea esp, [esp]
lea ecx, [esp + 0xc]
push ecx
push eax
lea edx, [esp + 0x414]
push str._s__s
push edx
call sub.nutlibc4.dll_sprintf
lea eax, [esp + 0x41c]
push 0
push eax
call sub.nutlibc4.dll_access
add esp, 0x18
test eax, eax
je 0x404342
push 0x405c8c
push 0
call sub.nutlibc4.dll_strtok
add esp, 8
test eax, eax
jne 0x4042f0
push esi
call sub.nutlibc4.dll_free
add esp, 4
mov dword [ebx], 0
jmp 0x404376
push esi
call sub.nutlibc4.dll_free
lea ecx, [esp + 0x410]
push ecx
call sub.nutlibc4.dll_strdup
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00403990
add esp, 0x804
ret
mov dword [ebx], 3
mov ecx, dword [esp + 0x80c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403990
add esp, 0x804
ret
Function at 0x404390
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call sub.nutlibc4.dll_getuid
push eax
call sub.nutlibc4.dll_getpwuid
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
je 0x4043c6
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x4043c6
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4043b5
sub eax, edx
jne 0x4044f5
push str.HOME
call sub.nutlibc4.dll_getenv
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x404428
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4043e0
sub eax, edx
je 0x404428
push 0x400
push esi
push 0x407098
call sub.nutlibc4.dll_strncpy
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404405
sub eax, edx
cmp eax, 0x3ff
jbe 0x40441d
mov byte [0x407497], bl
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push str.HOMEPATH
call sub.nutlibc4.dll_getenv
push str.HOMEDRIVE
mov edi, eax
call sub.nutlibc4.dll_getenv
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4044ac
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404450
sub eax, edx
je 0x4044ac
cmp edi, ebx
jne 0x404466
mov edi, 0x405ca4
push edi
push esi
push str._s_s
push 0x400
push 0x407098
call sub.nutlibc4.dll_snprintf
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404484
mov ecx, esi
sub eax, edx
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x404494
sub ecx, esi
add ecx, eax
cmp ecx, 0x3ff
jmp 0x404415
push str.USERPROFILE
call sub.nutlibc4.dll_getenv
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4044f5
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4044c2
sub eax, edx
je 0x4044f5
push 0x400
push esi
push 0x407098
call sub.nutlibc4.dll_strncpy
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4044e7
jmp 0x40440e
cmp ebp, ebx
je 0x40452e
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x40452e
push 0x400
push eax
push 0x407098
call sub.nutlibc4.dll_strncpy
mov eax, dword [ebp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404520
jmp 0x40440e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x418660
Capabilities:
Read file via mapping

Disassembly:
push 0xa0
mov eax, 0x468a8b
call fcn.0046791c
mov edi, ecx
lea ebx, [edi + 0xc]
xor edx, edx
mov ecx, ebx
call fcn.0043baca
test al, al
jne 0x418823
mov dword [ebp - 0x94], edx
mov byte [ebp - 0x90], dl
mov dword [ebp - 0x8c], 2
mov dword [ebp - 0x98], 0x402abc
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], edx
push edx
push 1
mov esi, 0x404a68
mov dword [ebp - 4], edx
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00418ec9
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x98]
push 0xf001f
push eax
call fcn.004188c9
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00418897
push 1
push 1
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00418ec9
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, 0xf001f
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x98]
push esi
push eax
call fcn.004188c9
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00418897
push 0x12
push 1
lea eax, [ebp - 0x70]
push 0x404a60
push eax
call fcn.00418ec9
add esp, 0xc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x98]
push esi
push eax
call fcn.004188c9
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00418897
push 0
push 1
lea eax, [ebp - 0x70]
push 0x404a70
push eax
call fcn.00418ec9
add esp, 0xc
mov byte [ebp - 4], 4
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x98]
push 4
push eax
call fcn.004188c9
lea ecx, [ebp - 0x70]
call fcn.00418897
and dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 0x4010dc
push ecx
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x78]
call fcn.004184fd
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0xac]
call fcn.00418e7a
push 0x40b21c
push 4
push 0
push 4
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 6
push eax
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov ecx, dword [ebx]
mov esi, eax
test ecx, ecx
je 0x4187ef
cmp ecx, 0xffffffff
je 0x4187ef
call fcn.00431e2e
mov dword [ebx], esi
lea ecx, [ebp - 0xa0]
mov esi, 0x4010dc
mov dword [ebp - 0xa0], esi
call fcn.0041f370
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], esi
call fcn.0041f370
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0041927d
xor edx, edx
mov ecx, ebx
mov esi, edx
call fcn.0043baca
test al, al
jne 0x41884b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418847
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x418889
xor edx, edx
cmp dword [edi + 8], edx
jne 0x418881
push 4
push edx
push edx
push 0xf001f
push dword [ebx]
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x41887d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41887f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x418889
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov eax, esi
call fcn.004678b9
ret
Function at 0x41ceed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x4a197e], 0
jne 0x41cf9b
cmp byte [0x4a197d], 0
jne 0x41cf9b
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push eax
push 0x20019
xor ebx, ebx
mov edx, 0x404a78
push ecx
inc ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [0x4a197e], bl
call fcn.00441760
test eax, eax
jne 0x41cf9a
push esi
push 4
pop esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x404b78
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x4730ce
xor bl, bl
jmp 0x4730e1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x404b90
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x4730fc
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0xc], esi
jne 0x41cf65
cmp dword [ebp - 0x14], 0
jbe 0x41cf65
cmp dword [0x4a2d68], 0
mov byte [0x4a197d], bl
mov dword [ebp - 8], esi
ja 0x41cf90
jmp 0x41cf6c
cmp dword [ebp - 0xc], esi
jne 0x41cf90
cmp dword [ebp - 0x10], 0
jbe 0x41cf90
push dword [ebp - 0x10]
call fcn.0047eab2
jmp 0x41cf90
Function at 0x41ded0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469955
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a13b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
mov ecx, dword [edi + 0x9c]
call fcn.0045f620
mov esi, eax
test esi, esi
js 0x41e0b6
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push 0x40b400
call fcn.004400dd
test eax, eax
jne 0x41df55
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41e0b6
movzx esi, si
or esi, 0x80070000
jmp 0x41e0b6
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push 0x40b3ec
call fcn.004400dd
test eax, eax
je 0x41df37
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push 0x40b420
call fcn.004400dd
test eax, eax
je 0x41df37
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
push 0x40b410
call fcn.004400dd
test eax, eax
jne 0x41dfb9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
jne 0x41dfa0
xor ebx, ebx
jmp 0x41dfbc
test eax, eax
jg 0x41dfab
mov esi, eax
jmp 0x41e0b6
movzx esi, ax
or esi, 0x80070000
jmp 0x41e0b6
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x40b474
mov ecx, edi
call fcn.004400dd
test eax, eax
jne 0x41dfef
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x41dfef
test eax, eax
je 0x41dfef
jg 0x41dfab
mov esi, eax
jmp 0x41e0b6
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x40a2b8
mov ecx, edi
call fcn.004400dd
test eax, eax
jne 0x41e022
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x41e022
test eax, eax
je 0x41e022
jg 0x41dfab
mov esi, eax
jmp 0x41e0b6
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x14]
setne al
push edi
mov byte [ebp - 0x18], al
call fcn.0042b2d0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call fcn.00457835
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00438070
push edi
lea ecx, [ebp - 0x30]
call fcn.0042b2d0
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
call fcn.00457c05
lea ecx, [ebp - 0x30]
call fcn.00438070
jmp 0x41e0b6
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x41e0c6
push edi
call fcn.0042c5d6
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x423b45
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x210]
mov ecx, 0x105
xor ebx, ebx
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push ecx
lea eax, [ebp - 0x41c]
push eax
push dword [esi + 0x10]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x423c03
push edi
lea edi, [ebp - 0x41c]
cmp byte [esi + 0x21], bl
jne 0x4734cd
mov ecx, 0x404fa0
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423c0e
test dx, dx
je 0x423bc8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423c0e
add eax, 4
add ecx, 4
test dx, dx
jne 0x423ba6
mov eax, ebx
test eax, eax
setne cl
mov byte [esi + 0x20], cl
call dword [sym.imp.ntdll.dll_RtlIsStateSeparationEnabled]
test al, al
jne 0x47351f
movzx eax, byte [esi + 0x21]
lea edx, [ebp - 0x210]
mov ecx, dword [esi + 0x1c]
push eax
push edi
call fcn.00431bf7
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bef0
leave
ret
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov byte [esi + 0x20], bl
jmp 0x423bf5
sbb eax, eax
or eax, 1
jmp 0x423bca
mov ecx, dword [esi + 0x10]
call fcn.004420a1
test al, al
je 0x473515
mov edx, 0x404fa0
lea eax, [ebp - 0x210]
mov di, word [eax]
xor ecx, ecx
inc ecx
cmp di, word [edx]
jne 0x47350d
test di, di
je 0x473509
mov di, word [eax + 2]
cmp di, word [edx + 2]
jne 0x47350d
add eax, 4
add edx, 4
test di, di
jne 0x4734e4
mov eax, ebx
jmp 0x473511
sbb eax, eax
or eax, ecx
test eax, eax
jne 0x473517
mov cl, bl
mov edi, dword [esi + 0x10]
jmp 0x423bcf
test dword [ebp - 0x420], 0x80000
je 0x423be0
mov byte [esi + 0x20], bl
jmp 0x423be0
Function at 0x424ec9
Capabilities:
Query environment variable

Disassembly:
push 0x4c0
mov eax, 0x46931e
call fcn.0046791c
mov esi, ecx
mov dword [ebp - 0x4b8], esi
mov dword [ebp - 0x4c0], esi
and dword [ebp - 0x4bc], 0
xor ebx, ebx
lea eax, [ebp + 8]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004250a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x4bc], ebx
push eax
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathCanonicalizeW]
mov edi, 0x401604
test eax, eax
je 0x424f56
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.0043333c
mov byte [ebp - 4], 2
mov ecx, esi
push dword [eax + 4]
call fcn.004337a2
lea eax, [ebp - 0x4a4]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 0x4b4], edi
call fcn.00434927
push 0x104
lea eax, [ebp - 0x420]
push eax
push dword [esi + 4]
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x424f7d
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00433763
sub esp, 0x94
mov ecx, esp
push esi
call fcn.004250a4
lea ecx, [ebp - 0x4b4]
call fcn.00424e63
mov byte [ebp - 4], 3
mov ecx, esi
push dword [eax + 4]
call fcn.004337a2
lea eax, [ebp - 0x4a4]
mov byte [ebp - 4], bl
push eax
lea ecx, [ebp - 0x4b4]
mov dword [ebp - 0x4b4], edi
call fcn.00434927
cmp dword [esi + 0xc], 0xb
jb 0x425012
push 0xb
lea eax, [ebp - 0x4cc]
mov ecx, esi
push eax
call fcn.004250d4
push 0x408100
mov ecx, eax
call fcn.004381a1
test eax, eax
je 0x425012
mov eax, dword [esi + 0xc]
mov ecx, esi
sub eax, 0xb
push eax
call fcn.00425195
sub esp, 0x94
mov ecx, esp
push esi
call fcn.004250a4
lea ecx, [ebp - 0x4b4]
call fcn.00424e63
mov byte [ebp - 4], 4
jmp 0x425063
cmp dword [esi + 0xc], 6
jb 0x425085
push 6
lea eax, [ebp - 0x4cc]
mov ecx, esi
push eax
call fcn.004250d4
push 0x408118
mov ecx, eax
call fcn.004381a1
test eax, eax
je 0x425085
mov eax, dword [esi + 0xc]
mov ecx, esi
sub eax, 6
push eax
call fcn.00425195
sub esp, 0x94
mov ecx, esp
push esi
call fcn.004250a4
lea ecx, [ebp - 0x4b4]
call fcn.00424e63
mov byte [ebp - 4], 5
push dword [eax + 4]
mov ecx, esi
call fcn.004337a2
lea eax, [ebp - 0x4a4]
mov dword [ebp - 0x4b4], edi
push eax
lea ecx, [ebp - 0x4b4]
call fcn.00434927
lea eax, [ebp + 0x18]
mov dword [ebp + 8], edi
push eax
lea ecx, [ebp + 8]
call fcn.00434927
mov eax, esi
call fcn.004678b9
ret 0x94
Function at 0x425259
Capabilities:
Create directory

Disassembly:
push 0x144
mov eax, 0x46945c
call fcn.00467994
mov ebx, dword [ebp + 0x9c]
mov dword [ebp - 0x144], ebx
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x42527f
mov byte [ebx], al
push ecx
mov ecx, dword [ecx + 4]
push 2
call fcn.0042635c
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004250a4
lea ecx, [ebp - 0xa8]
call fcn.00424b51
mov byte [ebp - 4], 1
xor esi, esi
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x140], esi
call fcn.0043d9d7
test al, al
jne 0x4253c4
push dword [ebp - 0xa4]
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathSkipRootW]
mov ebx, eax
mov eax, ebx
lea ecx, [ebp - 0xa8]
sub eax, dword [ebp - 0xa4]
sar eax, 1
push eax
push 0
lea eax, [ebp - 0x150]
push eax
call fcn.00425110
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x41
lea ecx, [ebp - 0x13c]
call fcn.0043d997
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], 0x401604
call fcn.0043d9d7
test al, al
jne 0x425380
push 0
push dword [ebp - 0x138]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x425380
test esi, esi
js 0x425380
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jg 0x425350
mov dword [ebp - 0x140], eax
jmp 0x42535f
movzx esi, si
or esi, 0x80070000
mov dword [ebp - 0x140], esi
push dword [ebp - 0x138]
push 0x408168
push esi
push 0x408128
push 0x190
push dword [ebp + 4]
call fcn.0047857a
add esp, 0x18
push ebx
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFindNextComponentW]
mov ebx, eax
mov dword [ebp - 0x13c], 0x401604
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00434927
mov dword [ebp - fcn.004218f0], 0x401b08
test ebx, ebx
je 0x4253be
xor eax, eax
cmp word [ebx], ax
jne 0x4252d3
mov ebx, dword [ebp - 0x144]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa4]
call fcn.0043d9d7
test al, al
jne 0x42543b
test ebx, ebx
je 0x4253de
mov byte [ebx], 1
push ecx
mov ecx, dword [ebp - 0xa4]
call fcn.0043e076
jmp 0x42543b
lea eax, [ebp - 0x98]
mov dword [ebp - 0xa8], 0x401604
push eax
lea ecx, [ebp - 0xa8]
call fcn.00434927
lea eax, [ebp + 0x18]
mov dword [ebp - 0xa8], 0x401b08
push eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x401604
call fcn.00434927
mov eax, esi
call fcn.004678ce
ret 0x98
Function at 0x425ecc
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x46956e
call fcn.004678e3
mov esi, edx
mov edi, ecx
mov dword [edi], 3
lea ecx, [ebp - 0x1c]
mov dword [esi], 0x65
call fcn.004205ea
and dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
call fcn.0047525e
push eax
push 1
push ecx
mov edx, 0x404a78
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00441760
mov ebx, eax
test ebx, ebx
jle 0x425f21
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x425f3b
mov ecx, dword [ebp + 4]
mov edx, 0xb0
push ebx
push 0x406418
call fcn.00475b3c
jmp 0x426071
and dword [ebp - 0x14], 0
push 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x406c24
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
test eax, eax
jle 0x425f72
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x426071
mov ecx, 0x4a1a98
call fcn.00436f62
test al, al
je 0x426031
cmp dword [ebp - 0x14], 1
jne 0x426071
and dword [edi], 0
lea eax, [ebp - 0x24]
and dword [esi], 0
lea edx, [ebp - 0xd]
push eax
mov dword [ebp - 0x24], 2
call fcn.0043f380
test eax, eax
js 0x426066
cmp dword [ebp - 0x24], 0
jne 0x426017
and dword [ebp - 0x14], 0
push 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4062fc
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW]
test eax, eax
jne 0x426066
cmp dword [ebp - 0x18], 4
jne 0x426081
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x426081
lea eax, [ecx - 1]
mov dword [edi], 1
cmp eax, 0xb
ja 0x42600f
mov dword [esi], ecx
jmp 0x426066
mov dword [esi], 0x68
jmp 0x426066
xor eax, eax
inc eax
cmp dword [ebp - 0x24], eax
jne 0x42602d
mov dword [edi], 4
mov dword [esi], 0x63
jmp 0x426066
mov dword [edi], eax
jmp 0x426060
cmp dword [ebp - 0x14], 1
jne 0x426071
xor eax, eax
lea edx, [ebp - 0xd]
mov dword [edi], eax
mov dword [esi], eax
mov byte [ebp - 0xe], al
lea eax, [ebp - 0xe]
push eax
call fcn.0043f0ce
test eax, eax
js 0x426066
cmp byte [ebp - 0xe], 0
jne 0x425fbb
mov dword [edi], 1
mov dword [esi], 0x64
cmp byte [ebp - 0xd], 0
je 0x426071
call fcn.0043f8c6
lea ecx, [ebp - 0x1c]
call fcn.0041fe17
mov eax, ebx
call fcn.0046789f
ret
push 0x4062fc
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
jmp 0x426066
Function at 0x4277f4
Capabilities:
Get common file path

Disassembly:
push 0x2ec
mov eax, 0x4697ae
call fcn.00467994
mov edi, ecx
push 0x104
lea eax, [ebp - 0x21c]
xor ebx, ebx
push eax
mov byte [ebp - 0x2e1], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
mov ecx, dword [ebp + 4]
neg eax
mov esi, 0x40b910
sbb al, al
add al, 1
jne 0x427946
push 0x40b970
mov edx, 0x104
lea ecx, [ebp - 0x21c]
call fcn.0042f0c9
mov ecx, dword [ebp + 4]
test eax, eax
js 0x427951
lea eax, [ebp - 0x240]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
mov ecx, dword [ebp + 4]
test eax, eax
jne 0x42787d
push esi
mov edx, 0xde
jmp 0x42794c
push ecx
push 0x20019
push 0x404a78
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2e0]
call fcn.0043f9f4
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2ec], ebx
push eax
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2e8], ebx
push eax
push 0x4068ec
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2f0], 8
call fcn.00440080
test eax, eax
je 0x427900
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
je 0x427913
mov eax, dword [ebp - 0x22c]
mov bl, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x228]
mov dword [edi + 4], eax
lea ecx, [ebp - 0x2e0]
call fcn.004233f9
jmp 0x42793e
mov al, bl
call fcn.004678ce
ret
push esi
mov edx, 0xda
call fcn.0047e830
push eax
push esi
mov edx, 0xdb
call fcn.0047e814
int3