joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438fc8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4672bc]
push esi
cmp ecx, 0x467188
jne 0x43901e
cmp dword [0x4683bc], 0xd2af9
je 0x4390fb
call fcn.00438f3b
test eax, eax
je 0x43900f
call fcn.00438f84
jmp 0x4390fb
mov dword [0x4683c8], 1
jmp 0x4390fb
xor esi, esi
inc esi
cmp ecx, 0x467028
jne 0x439069
cmp dword [0x4683bc], 0xd2af9
je 0x43903b
mov dword [0x4683c8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x401c04
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x4390fb
and dword [0x4683c8], 0
push esi
call fcn.0043b738
jmp 0x4390fb
mov eax, dword [0x4683bc]
cmp eax, 0xd2af8
jne 0x4390a8
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440252
test eax, eax
je 0x43909d
push 0xffff
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
call fcn.0044328c
mov eax, dword [0x4683bc]
mov ecx, dword [0x4672bc]
test eax, eax
js 0x4390d3
cmp ecx, 0x4672c0
jne 0x4390d3
cmp dword [0x4683b4], 0
jne 0x4390c9
call fcn.0042ee78
call fcn.0042eda0
jmp 0x4390ce
call fcn.0042ee78
mov eax, dword [0x4683bc]
cmp eax, 0xd2af9
je 0x4390f6
cmp eax, 0xc00d2afb
je 0x4390f6
test eax, eax
js 0x4390fb
cmp dword [0x4683f0], 0
jne 0x4390fb
mov dword [0x4683c8], esi
jmp 0x4390fb
call fcn.0043a1e7
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004655f1
leave
ret
Function at 0x43a0c3
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 3
xor ebx, ebx
push ebx
push 0x4016a0
push 0x80000002
mov dword [ebp - 4], ebx
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43a1dc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x40176c
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 1
call ebx
test eax, eax
jne 0x43a1a9
cmp dword [ebp - 0xc], reloc.ADVAPI32.dll_TraceMessage
je 0x43a13b
cmp dword [ebp - 0xc], reloc.ADVAPI32.dll_TraceMessage
jne 0x43a1a9
lea eax, [ebp - 0x18]
xor esi, esi
push eax
inc esi
call fcn.0042d7f0
test eax, eax
jne 0x43a19a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x401788
push dword [ebp - 4]
mov dword [ebp - 8], 8
call ebx
test eax, eax
jne 0x43a19a
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jb 0x43a198
ja 0x43a17e
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x43a198
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
push 0x401788
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x43a19a
xor esi, esi
call fcn.004412f6
test eax, eax
jne 0x43a1a5
xor esi, esi
test esi, esi
jne 0x43a1d3
and dword [ebp - 8], 0
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x40176c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x401788
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43a1e7
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x20006
push 1
push ebx
push ebx
push 0x403c20
mov esi, 0x80000002
push esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43a2cb
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 3
push ebx
push 0x403c80
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x43a2c3
push edi
mov edi, 0x104
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440252
test eax, eax
je 0x43a2ba
mov eax, edi
push 0x403cdc
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
test eax, eax
js 0x43a2ba
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43a288
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push ebx
push 0x403d08
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call esi
pop edi
push dword [ebp - 0x214]
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret

Function at 0x43a2eb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 4
xor ecx, ecx
pop ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
call fcn.0044100b
test eax, eax
je 0x43a3a9
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x41c120
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43a3a7
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push 0x41c180
push dword [ebp - 0x20c]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x200
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43a39b
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
jne 0x43a39b
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x41c198
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x43a39b
mov esi, edi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret
Function at 0x43a603
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0x424
push ebx
push esi
push edi
mov edi, 0x80004005
je 0x43a664
cmp dword [ebp + 8], reloc.ADVAPI32.dll_TraceMessage
je 0x43a664
cmp dword [ebp + 8], reloc.ADVAPI32.dll_TraceMessage
je 0x43a647
push 0x41c250
push 2
call fcn.004400fc
xor esi, esi
push esi
push 6
xor ecx, ecx
pop ebx
call fcn.0044100b
neg eax
sbb eax, eax
and eax, 0x87
add eax, 0xc1
jmp 0x43a691
xor esi, esi
push esi
xor ecx, ecx
push 6
inc ecx
pop ebx
call fcn.0044100b
test eax, eax
je 0x43a67d
mov eax, 0xe2
jmp 0x43a691
push esi
xor ecx, ecx
call fcn.0044100b
neg eax
sbb eax, eax
and eax, 0x1f
add eax, 0xc0
push 0x100
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
push eax
push dword [0x4683ec]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x43a6eb
push 7
lea eax, reloc.ADVAPI32.dll_TraceMessage
push reloc.KERNEL32.dll_EnterCriticalSection
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x43a6eb
push reloc.ole32.dll_CoRegisterClassObject
push esi
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb ecx, ecx
and ecx, 0x7fffbffb
add edi, ecx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 4
Function at 0x43ae8d
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x41c3a8
or eax, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - 4], esi
call fcn.004637f0
mov edi, eax
test edi, edi
js 0x43b056
lea ecx, [ebp - 0x2c]
call fcn.004636d2
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x7fff
call fcn.004636d2
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004637a7
mov edi, eax
test edi, edi
jns 0x43aef4
lea eax, [ebp - 0x20]
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
jmp 0x43b056
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x43af28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x43af18
push 0x57
pop edi
test edi, edi
jle 0x43aedf
and edi, 0xffff
or edi, 0x80070000
jmp 0x43aedf
push ebx
push 0x44
pop edi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x43af55
lea eax, [ebp - 0x20]
mov edi, 0x8007000e
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
jmp 0x43b055
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x43af9f
cmp edi, 0x7a
je 0x43af9f
test edi, edi
jle 0x43b03e
and edi, 0xffff
or edi, 0x80070000
jmp 0x43b03e
lea ecx, [ebp - 0x38]
call fcn.004636d2
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x38]
inc eax
push ecx
call fcn.004637a7
mov edi, eax
test edi, edi
js 0x43b036
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x38]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0x20]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x43aff5
test edi, edi
jle 0x43b036
and edi, 0xffff
or edi, 0x80070000
jmp 0x43b036
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x43b015
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x43afe5
push 0x57
pop edi
jmp 0x43afe3
push dword [ebp - 4]
or eax, reloc.ADVAPI32.dll_TraceMessage
lea edi, [ebp - 0x2c]
call fcn.004637f0
mov edi, eax
test edi, edi
js 0x43b036
push dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
call fcn.004639dd
mov edi, eax
lea eax, [ebp - 0x38]
call fcn.00463afc
lea eax, [ebp - 0x20]
call fcn.00463afc
lea eax, [ebp - 0x2c]
call fcn.00463afc
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
cmp dword [ebp - 4], 0
je 0x43b065
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x43b2a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push 0x41c408
push 0x80000001
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b332
push ebx
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x41c468
push dword [ebp - 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b2fc
cmp dword [ebp - 4], 1
jne 0x43b2fc
and dword [0x468454], 0xfffffffe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x41c4a8
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ebx
test eax, eax
jne 0x43b329
cmp dword [ebp - 4], 1
jne 0x43b329
and dword [0x468454], 0xfffffffd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret
Function at 0x43da16
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x43da2a
xor eax, eax
jmp 0x43da69
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
leave
ret

Function at 0x43dcb4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46925c], 0
jne 0x43dd25
push 0x105
lea eax, reloc.ADVAPI32.dll_TraceMessage
mov dword [0x46925c], 1
call fcn.00440252
test eax, eax
je 0x43dd25
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call fcn.00440bc3
test eax, eax
je 0x43dd25
xor eax, eax
push reloc.ole32.dll_CoRegisterClassObject
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push eax
cmp dword [ebp + 8], eax
je 0x43dd17
push 0x41c6e4
jmp 0x43dd1c
push 0x41c710
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004655f1
leave
ret 4
Function at 0x43ed45
Capabilities:
Create thread

Disassembly:
mov edi, edi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x43ed9b
lea eax, [esi + 0x40]
push eax
push edi
push esi
push 0x43e5a5
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x43ed8a
push 0x32
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x43ed78
cmp dword [esi + 0x3c], edi
je 0x43ed9b
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], edi
pop edi
ret

Function at 0x43ee16
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x43ee8a
push esi
lea eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440252
test eax, eax
je 0x43ee8a
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push ecx
push 0x41ccb8
mov eax, esi
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c95b
add esp, 0xc
test eax, eax
js 0x43ee8a
push 0x403c14
lea eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.0044318a
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004655f1
leave
ret

Function at 0x43f92e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x468600]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x43f963
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43f963
push dword [ebp + 8]
push esi
push 0x5c6
push dword [0x468600]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x4016a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43f9aa
cmp dword [ebp + 8], esi
jne 0x43f98a
mov dword [ebp + 8], 1
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x401a54
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4

Function at 0x43f9b4
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x468600]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x43f9e9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43f9e9
push dword [ebp + 8]
push esi
push 0x5c7
push dword [0x468600]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push 2
push esi
push 0x4016a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43fa24
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x401a24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 4
Function at 0x4409cf
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
test edx, edx
jne 0x4409f4
xor eax, eax
xor edx, edx
jmp 0x440ac4
mov eax, 0x103
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
mov eax, esi
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, eax
pop ecx
xor eax, eax
pop ecx
test edi, edi
je 0x4409ed
push 2
pop esi
add edi, esi
mov word [edi], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x440a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x440a56
push 0x57
pop eax
test eax, eax
jle 0x440a62
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x41d1b0
call fcn.00440126
pop ecx
pop ecx
jmp 0x4409eb
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
test ebx, ebx
jne 0x440ac0
test esi, esi
jne 0x440ac0
xor eax, eax
mov word [edi - 2], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x440ac0
mov ebx, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, ebx
mov edx, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret

Function at 0x440b2f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
test edx, edx
je 0x440baf
push esi
mov eax, 0x104
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
test eax, eax
js 0x440bae
jmp 0x440b86
lea ecx, reloc.ADVAPI32.dll_TraceMessage
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x440b6b
sub ecx, edx
sar ecx, 1
je 0x440b95
xor eax, eax
mov word [ebp + ecx*2 - 0x20e], ax
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.004402c6
test eax, eax
jne 0x440b62
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x440bae
test al, 0x10
je 0x440bae
xor edi, edi
inc edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004655f1
leave
ret

Function at 0x440bc3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x440be5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, reloc.ADVAPI32.dll_TraceMessage
je 0x440be5
test al, 0x10
jne 0x440be5
xor eax, eax
inc eax
jmp 0x440be7
xor eax, eax
pop ebp
ret 4
Function at 0x440bf0
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
push esi
push edi
push 2
lea edx, [ecx + 2]
pop edi
xor esi, esi
mov ax, word [ecx]
add ecx, edi
cmp ax, si
jne 0x440c05
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 0x14]
xor ecx, ecx
mov eax, esi
mul edi
seto cl
mov dword [ebp - 8], esi
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x440d10
mov edx, dword [ebp + 8]
mov eax, esi
mov esi, edi
call fcn.0042c88c
push 0x41d1e4
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x440d08
add eax, 4
and dword [ebp - 4], 0
push 0x41d1ec
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
je 0x440cff
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov edx, edi
mov dword [ebp - 0xc], eax
call fcn.00440b2f
test eax, eax
jne 0x440ccc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x440ca6
push 0x57
pop esi
test esi, esi
jle 0x440cb4
and esi, 0xffff
or esi, 0x80070000
mov edx, edi
call fcn.00440b2f
test eax, eax
je 0x440ced
push 0
push edi
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov esi, edi
call fcn.0042c88c
mov esi, dword [ebp - 4]
inc esi
mov dword [ebp - 4], esi
cmp esi, 0xa
jge 0x440cff
mov eax, dword [ebp - 0xc]
jmp 0x440c61
push esi
push edi
push 0x41d1f0
push 2
pop esi
call fcn.00440126
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov edx, dword [ebp + 8]
call fcn.00440b2f
pop edi
pop esi
leave
ret 4
Function at 0x440d23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
xor esi, esi
inc ebx
push eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x80
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x440d78
xor edx, edx
jmp 0x440e87
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
xor eax, eax
shld eax, edi, 0x10
lea eax, reloc.ADVAPI32.dll_TraceMessage
shl edi, 0x10
or edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 2
push eax
push ebx
push esi
jne 0x440e17
push 0x41d230
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x440e83
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push 0x41d28c
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x440e77
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
jne 0x440e77
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov ecx, eax
xor eax, eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ecx
shld eax, ecx, 0x10
shl ecx, 0x10
add esi, ecx
adc edi, eax
jmp 0x440e77
push 0x41d2b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x440e83
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push esi
push 0x41d30c
push dword [ebp - 0x1a4]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x440e77
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
jne 0x440e77
lea eax, [ebp - 0x88]
call fcn.0044060c
mov esi, eax
mov edi, edx
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret