joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43adc0
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
je 0x43ae1a
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 0x43ade4
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x43addc
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
mov ecx, 0x80004005
call fcn.0047636a
int3

Function at 0x43aeee
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
je 0x43af33
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x43af06
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
mov ecx, 0x80004005
call fcn.0047636a
int3

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

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor bl, bl
push esi
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerW]
test eax, eax
jne 0x43da07
push esi
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsUNCServerShareW]
test eax, eax
jne 0x43da07
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43da07
test al, 0x10
je 0x43da07
inc bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x43df7c
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x818
mov eax, 0x46be4a
call fcn.0046791c
mov edi, ecx
test edi, edi
je 0x43e033
xor ebx, ebx
cmp word [edi], bx
je 0x43e033
push ebx
push ebx
push 0x408324
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
mov edx, edi
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
cmp cx, bx
jne 0x43dfb2
sub edx, esi
lea ecx, [ebp - 0x824]
sar edx, 1
lea esi, [eax + 0x104]
add esi, edx
call fcn.004212a3
push esi
push esi
mov dword [ebp - 4], ebx
call fcn.00434f80
push eax
mov esi, 0x408324
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
push ecx
lea ecx, [ebp - 0x824]
call fcn.0041fb1c
push 0xffffffffffffffff
push 0x408330
lea ecx, [ebp - 0x824]
call fcn.00433b6f
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x824]
call fcn.00433b6f
push dword [ebp - 0x820]
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
test eax, eax
je 0x43e03b
lea ecx, [ebp - 0x824]
call fcn.004215b6
xor eax, eax
call fcn.004678b9
ret
push 0x408338
push 0x8c
push 0x4083e8
call fcn.0043494a
add esp, 0xc
mov ecx, 0x8000ffff
call fcn.00421990
mov ecx, dword [ebp + 4]
mov edx, 0x8d
push eax
push 0x4082e4
call fcn.0047e814
int3
Function at 0x43e49c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4a13b4]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov eax, edx
mov dword [esp + 0x10], ecx
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [ebp + 8]
inc esi
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x43e4ec
test ecx, ecx
je 0x43e5d4
test edi, edi
jne 0x43e4f5
mov edi, 0x104
push 0x407ffc
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c568
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x43e51f
xor esi, esi
jmp 0x43e5d4
xor eax, eax
mov dword [esp + 0x10], eax
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 0x104
push ecx
push 0
lea ecx, [esp + 0x2c]
push ecx
push ebx
push eax
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x43e5aa
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, ebx
push dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
push dword [esp + 0x3c]
push dword [esp + 0x2c]
call fcn.0043e5f3
mov esi, eax
test esi, esi
je 0x43e5b8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43e5b8
cmp dword [esp + 0x1c], edi
jae 0x43e5a6
push dword [esp + 0x20]
mov ecx, eax
push ebx
push dword [esp + 0x1c]
call dword [0x4a47a8]
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
inc eax
jmp 0x43e521
xor esi, esi
jmp 0x43e5b8
cmp eax, 0x103
je 0x43e5cd
cmp eax, 0xea
jne 0x43e5cb
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
test esi, esi
jne 0x43e525
jmp 0x43e5cd
xor esi, esi
push ebx
call fcn.0042c5d6
pop ecx
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042bef0
mov esp, ebp
pop ebp
ret 0x14
Function at 0x43efa8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bf78
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x36b4
call fcn.00467d40
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov esi, 0xdac
and dword [ebp - 4], 0
mov edx, esi
mov eax, dword [ebp + 0xc]
push dword [ecx]
lea ecx, [ebp - 0x36c4]
push eax
call fcn.0042f178
test eax, eax
js 0x43f0a1
lea eax, [ebp - 0x36c4]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
push eax
push 0x40871c
lea eax, [ebp - 0x1b6c]
push esi
push eax
call fcn.0042f13a
add esp, 0x14
test eax, eax
js 0x43f044
cmp byte [0x4a197d], 0
je 0x43f044
lea eax, [ebp - 0x1b6c]
push eax
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea eax, [ebp - 0x1b6c]
push eax
call fcn.0043f869
cmp byte [0x4a197e], 0
jne 0x43f05e
call fcn.0041ceed
cmp byte [0x4a197d], 0
jne 0x43f082
push 0x404e78
push dword [0x4a081c]
push dword [0x4a0818]
call dword [sym.imp.api_ms_win_eventing_provider_l1_1_0.dll_EventEnabled]
test al, al
je 0x43f0a1
test byte [0x4a2fc2], 0x20
je 0x43f0a1
lea eax, [ebp - 0x36c4]
mov edx, 0x404e78
push eax
mov ecx, 0x4a0818
call fcn.00479376
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bef0
leave
ret 0xc
Function at 0x43fe8b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x46c104
call fcn.00467994
mov esi, ecx
mov dword [ebp - 0x230], esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, dword [esi + 0x9c]
test eax, eax
jne 0x43fecc
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
call fcn.004678ce
ret 8
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], 0x208
push ecx
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
push 0
push edi
push eax
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
mov eax, 0xea
test esi, esi
je 0x43ff04
cmp esi, eax
jne 0x43ff19
mov ecx, dword [ebp - 0x22c]
cmp ecx, 1
je 0x43ff1c
cmp ecx, 7
je 0x43ff1c
cmp ecx, 2
je 0x43ff1c
push esi
jmp 0x43febc
and dword [ebp - 4], 0
cmp ecx, 2
jne 0x43ff8e
cmp esi, eax
je 0x44004d
mov edi, 0x104
mov ecx, ebx
push edi
call fcn.00434f80
push edi
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x228], eax
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x43ff7a
add eax, eax
mov dword [ebp - 0x228], eax
test esi, esi
je 0x440003
push esi
push 0x408830
mov edx, 0x2fd
jmp 0x44005c
push 0xce
push 0x408830
mov edx, 0x2e9
jmp 0x44005c
mov ecx, ebx
cmp esi, eax
jne 0x43ffca
mov eax, dword [ebp - 0x228]
shr eax, 1
push eax
call fcn.00434f80
lea ecx, [ebp - 0x228]
push ecx
push eax
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
push 0
push edi
push dword [eax + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
jmp 0x43ff62
mov edi, dword [ebp - 0x228]
mov eax, edi
shr eax, 1
push eax
call fcn.00434f80
shr edi, 1
jne 0x43ffe5
mov eax, 0x80070057
jmp 0x43fff7
push ecx
lea ecx, [ebp - 0x224]
mov edx, edi
push ecx
push ecx
mov ecx, eax
call fcn.0042f1f5
mov ecx, dword [ebp + 4]
test eax, eax
js 0x440064
jmp 0x43ff62
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x228]
shr edx, 1
mov dword [ebp - 0x228], edx
lea ecx, [edx - 1]
neg edx
sbb edx, edx
and edx, ecx
mov ecx, ebx
push edx
call fcn.00425195
xor eax, eax
inc eax
jmp 0x43fec4
push 0xce
push 0x408830
mov edx, 0x2e3
mov ecx, dword [ebp + 4]
call fcn.0047907d
push eax
push 0x408830
mov edx, 0x2f8
call fcn.0047e814
int3
Function at 0x4402d6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ecx + 0x9c]
test edx, edx
jne 0x4402f1
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x44033d
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4402fb
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push edi
push dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x440331
push eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x44033b
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 0x440393
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x9c], ebx
jne 0x4403b2
push 6
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
jmp 0x4403ec
mov ecx, dword [ebp + 0xc]
push esi
push ebx
mov eax, dword [ecx + 0xc]
lea esi, [eax*2 + 2]
call fcn.00434f80
push esi
push eax
push 1
push ebx
push dword [ebp + 8]
push dword [edi + 0x9c]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop esi
test eax, eax
je 0x4403e2
push eax
jmp 0x4403a8
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
inc eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4404ba
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x4405d1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 3
jne 0x4405bf
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00440b1c
test al, al
je 0x44058c
mov ebx, dword [esp + 0xc]
xor ecx, ecx
push 0x407ffc
push 2
pop edx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c568
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x440540
mov ecx, dword [ebp + 4]
mov esi, 0x8007000e
push esi
push 0x408870
push 0x7b
pop edx
call fcn.0047442c
mov eax, esi
jmp 0x4405d3
push ebx
push esi
lea edx, [ebx + 1]
mov ecx, edi
call fcn.004318d6
mov ebx, eax
test ebx, ebx
jns 0x44055c
push ebx
push 0x408870
push 0x7c
jmp 0x440571
mov ecx, edi
call fcn.004404ba
mov ebx, eax
test ebx, ebx
jns 0x440585
push ebx
push 0x408870
push 0x7d
mov ecx, dword [ebp + 4]
pop edx
call fcn.0047442c
push edi
call fcn.0042c5d6
pop ecx
mov eax, ebx
jmp 0x4405d3
push edi
call fcn.0042c5d6
pop ecx
push 0
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x4405d1
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x4405d1
test eax, eax
je 0x4405d1
mov edx, 0x84
mov ecx, dword [ebp + 4]
push eax
push 0x408870
call fcn.00478a66
jmp 0x4405d3
cmp eax, 0xb7
je 0x4405d1
test eax, eax
je 0x4405d1
mov edx, 0x8a
jmp 0x4405af
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4405e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x300
mov eax, 0x46c17f
call fcn.00467994
mov dword [ebp - 0x300], edx
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x304], edi
inc ebx
test edi, edi
je 0x440614
push 0x4070f0
push edi
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
jne 0x440616
xor ebx, ebx
and dword [ebp - 4], 0
test ebx, ebx
je 0x4407a8
push edi
lea ecx, [ebp - 0xa8]
call fcn.0043333c
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.0047e871
push 0xffffffffffffffff
push 0x4089f8
lea ecx, [ebp - 0xa8]
call fcn.00433b6f
and dword [ebp - 0x30c], 0
lea eax, [ebp - 0x2f8]
and dword [ebp - 0x308], 0
push eax
push dword [ebp - 0xa4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2fc], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
je 0x440724
test esi, esi
je 0x440724
push 0x407c8c
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x44070e
push 0x408a00
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x44070e
push edi
lea ecx, [ebp - 0xa8]
call fcn.004337a2
lea ecx, [ebp - 0xa8]
call fcn.0047e871
push 0xffffffffffffffff
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00433b6f
test byte [ebp - 0x2f8], 0x10
je 0x440702
mov edx, dword [ebp - 0x300]
mov ecx, dword [ebp - 0xa4]
push 0
call fcn.004405e0
jmp 0x44070e
push dword [ebp - 0xa4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
lea eax, [ebp - 0x2f8]
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
jne 0x44067c
lea ecx, [ebp - 0x2fc]
call fcn.0047ecf1
cmp dword [ebp - 0x300], 0
je 0x440764
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x440764
xor ebx, ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push edi
push 0x408a08
push 0xe6
push 0x408918
call fcn.0043dd9f
add esp, 0x14
lea ecx, [ebp - 0xa8]
call fcn.0041d922
jmp 0x4407a8
mov eax, ebx
call fcn.004678ce
ret 4
Function at 0x4409ed
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push esi
mov ebx, edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x440a61
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [ebx], eax
cmp eax, 0x50
je 0x440a3a
cmp eax, 0xb7
je 0x440a3a
push eax
push esi
push 0x4088b0
push 0x5f
push 0x408918
call fcn.0043494a
add esp, 0x14
xor eax, eax
jmp 0x440a7b
test edi, edi
je 0x440a61
push dword [edi + 4]
push 4
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_SetFileSecurityW]
test eax, eax
jne 0x440a61
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
push esi
push 0x408990
mov dword [ebx], eax
push 0x69
jmp 0x440a29
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
or eax, 0x2000
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
and dword [ebx], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x440bbc
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push edi
push dword [ecx + 0x14]
xor ebx, ebx
push 0x408a68
push 0x10
push eax
call fcn.0042f13a
add esp, 0x10
test eax, eax
js 0x440c4a
push ecx
lea eax, [ebp - 0x234]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push eax
push esi
mov edx, edi
call fcn.00441375
test al, al
je 0x440c12
lea esi, [ebp - 0x234]
lea eax, [ebp - 0x238]
push eax
push 2
push ebx
push esi
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x440c4a
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, eax
jne 0x440c3e
mov bl, 1
push dword [ebp - 0x238]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bef0
leave
ret 4
Function at 0x440cf5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x28]
xor ebx, ebx
push dword [edi + 0x14]
push 0x408a68
push 0x10
push eax
call fcn.0042f13a
add esp, 0x10
test eax, eax
js 0x440d8f
push ecx
lea eax, [ebp - 0x234]
mov esi, 0x405050
push eax
push esi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00441375
test al, al
je 0x440d4d
lea esi, [ebp - 0x234]
lea eax, [ebp - 0x238]
push eax
push 2
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x440d8f
push 0x14
push edi
push 3
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x440d83
mov bl, 1
push dword [ebp - 0x238]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bef0
leave
ret 4

Function at 0x440ebf
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ebx, 0x408b78
movzx eax, word [esi + 4]
push eax
movzx eax, di
push eax
push 0x408c38
push 0x3e
push ebx
call fcn.0043689b
add esp, 0x18
push dword [ebp + 8]
call fcn.00420e28
test al, al
jne 0x440f2f
call fcn.0042d78e
test al, al
je 0x440f2f
xor eax, eax
push eax
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
movzx eax, word [esi + 4]
push eax
push edi
push dword [esi]
call dword [sym.imp.ext_ms_win_advapi32_eventlog_l1_1_0.dll_ReportEventW]
mov esi, eax
call fcn.00478a37
test esi, esi
jne 0x440f45
jmp 0x440f34
mov eax, 0x800003f7
push eax
push 0x408cd8
push 0x62
push ebx
call fcn.0043494a
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x441a51
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x4a13b4]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x68
push 0
push ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
test edi, edi
je 0x441a94
xor eax, eax
mov word [edi], ax
lea ecx, [esp + 0xc]
call fcn.00441ce8
mov esi, eax
test esi, esi
js 0x441b67
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
mov edx, eax
mov dword [esp + 0x18], ebx
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
cmp eax, 0x1a
jae 0x441b95
mov ecx, dword [esp + 0x14]
xor eax, eax
inc eax
shl eax, cl
test edx, eax
je 0x441b51
lea eax, [ecx + 0x41]
mov dword [esp + 0x28], 0x3a0020
movzx eax, ax
mov dword [esp + 0x20], eax
mov word [esp + 0x28], ax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x30], 0x5c
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 3
jne 0x441b4d
mov dx, word [esp + 0xc]
lea eax, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push dword [esp + 0x24]
call fcn.00441d57
mov esi, eax
test esi, esi
js 0x441b4d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x30]
call fcn.00441927
mov esi, eax
cmp esi, 1
jne 0x441b38
xor esi, esi
jmp 0x441b4d
test esi, esi
js 0x441b4d
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHCORE.dll_SHStrDupW]
mov esi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 4
inc eax
mov dword [esp + 0x14], eax
test esi, esi
jns 0x441abd
xor edi, edi
push dword [ebx + edi*4]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
and dword [ebx + edi*4], 0
inc edi
cmp edi, 0x1a
jb 0x441b69
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042bef0
mov esp, ebp
pop ebp
ret 8
test edi, edi
je 0x441b7c
mov ax, word [esp + 0xc]
mov word [edi], ax
jmp 0x441b7c
Function at 0x441ba9
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 8], ebx
xor ecx, ecx
mov word [ebx], ax
mov esi, ecx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ecx
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x441c84
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xea
jne 0x441c84
mov eax, dword [ebp - 4]
xor ecx, ecx
push 0x407ffc
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c568
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x441c7a
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x441c6a
xor eax, eax
mov edi, ebx
cmp word [ebx], ax
je 0x441c71
push edi
call dword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathIsRootW]
test eax, eax
jne 0x441c5f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0xc]
jne 0x441c40
sub ecx, edx
xor eax, eax
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x441c30
jmp 0x441c71
mov ecx, dword [ebp - 8]
mov ax, word [edi]
mov word [ecx], ax
jmp 0x441c71
call fcn.00478a37
mov esi, eax
push ebx
call fcn.0042c5d6
pop ecx
jmp 0x441c7f
mov esi, 0x8007000e
mov ebx, dword [ebp - 8]
jmp 0x441c8b
call fcn.00478a37
mov esi, eax
test esi, esi
js 0x441c9b
xor eax, eax
cmp word [ebx], ax
jne 0x441c9b
mov esi, 0x80070057
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x441ce8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a13b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 1
push esi
push 0x24
push esi
call dword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x441d41
push dword [ebp - 0x20c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
pop ecx
mov word [edi], ax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042bef0
leave
ret