joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b1a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7bbcd0
push esi
call fcn.00405f4e
push esi
call fcn.00405acb
mov edi, eax
test edi, edi
jne 0x405b3b
xor eax, eax
jmp 0x405b8d
push edi
call fcn.004061d6
test byte [0x7c7af8], 0x80
je 0x405b54
mov al, byte [edi]
test al, al
je 0x405b37
cmp al, 0x5c
je 0x405b37
sub edi, esi
push esi
call fcn.00405f64
cmp eax, edi
push esi
jle 0x405b77
call fcn.0040641c
test eax, eax
je 0x405b6f
test byte [eax], 0x10
je 0x405b37
push esi
call fcn.00405a7e
jmp 0x405b56
call fcn.00405a37
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c04
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405c20
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c23
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405c52
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c97
mov eax, edi
dec edi
test eax, eax
jne 0x405c5d
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c91
Function at 0x405c9b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406443
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cbf
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405df8
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7be658], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7be658
je 0x405d03
push 1
push 0
push esi
call fcn.00405c23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405dfe
cmp eax, edi
jg 0x405dfe
mov esi, 0x7be0d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405dfe
cmp eax, edi
jg 0x405dfe
push esi
push ebp
push str._s_s_r_n
push 0x7bdcd0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7c7af0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f82
push 4
push 0xc0000000
push esi
call fcn.00405c23
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405df8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405df1
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405df1
cmp edi, dword [esp + 0x18]
jne 0x405df1
push str._Rename__r_n
push esi
call fcn.00405b92
test eax, eax
jne 0x405e05
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f4e
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7bdcd0
push eax
call fcn.00405bde
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7c7b70]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aab0
push eax
call fcn.00405b92
test eax, eax
je 0x405dbc
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e2c
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e21
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dbe
Function at 0x405e34
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ea5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405e94
cmp dword [ebp + 0x14], 1
je 0x405e96
cmp dword [ebp + 0x14], 2
je 0x405e96
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40626f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406294
mov eax, dword [0x40a880]
cmp eax, 0xffffffff
je 0x40628b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a880], 0xffffffff
jmp 0x406307
cmp dword [0x7bf260], ebx
je 0x406307
cmp byte [0x7bee60], bl
je 0x4062d3
cmp dword [0x40a880], 0xffffffff
jne 0x4062dc
push 4
push 0x40000000
push 0x7bee60
call fcn.00405c23
cmp eax, 0xffffffff
mov dword [0x40a880], eax
je 0x406307
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a880], 0xffffffff
je 0x406307
push esi
mov esi, 0x7c3280
push 0x40aac8
push esi
call fcn.00405f71
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f64
push eax
push esi
push dword [0x40a880]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064b9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x7bea5c], esi
push edi
jne 0x4064f3
mov ecx, 0x7bea58
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064cf
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7bee58
jl 0x4064ca
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406528
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7bea58]
xor eax, esi
inc ecx
dec edx
jne 0x40650b
pop edi
pop esi
not eax
ret 0xc

Function at 0x4738cf
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4735cc
push ecx
mov ecx, dword [esp]
add esp, 4
sub edx, edx
call fcn.004738fe
or edx, ecx
or edx, edx
xor dword [ebx], eax
sub ecx, edx
add ebx, 2
and ecx, ecx
add edx, edx
and edx, ecx
cmp ebx, esi
jl fcn.004738cf
mov edx, ecx
ret
Function at 0x43efb4
Capabilities:
Access the windows event log

Disassembly:
push 0x738
mov eax, 0x4a063f
call fcn.0043fd5f
lea eax, [ebp - 0x3b8]
push eax
push 0x403750
mov esi, ecx
push 2
mov dword [ebp - 0x3b8], esi
call fcn.0043f094
push esi
call fcn.0043dad8
mov edi, eax
lea eax, [ebp - 0x3b8]
push eax
push 0x403790
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x3b8], esi
call fcn.0043e5ad
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 4], ebx
jae 0x43f012
lea eax, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x3bc], eax
lea eax, [ebp - 0x3bc]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 1
push dword [0x4f11c8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test esi, esi
jns 0x43f083
xor eax, eax
mov word [ebp - 0x43c], ax
mov word [ebp - 0x53c], ax
mov word [ebp - 0x740], ax
mov dword [ebp - 0x744], edi
push 0x4a66d0
lea eax, [ebp - 0x3b4]
mov ecx, 0xe2
lea esi, [ebp - 0x744]
lea edi, [ebp - 0x3b4]
mov dword [ebp - 0x540], 1
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll__CxxThrowException
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0043d71f
call fcn.0043fde2
ret

Function at 0x43f7d6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x403b5c], eax
je 0x43f7f8
cmp dword [0x403b5c], ebx
jne 0x43f891
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x403b5c
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x403b5c], esi
test esi, esi
jne 0x43f867
mov dword [0x403b5c], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x403b5c
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x403b5c]
not eax
mov dword [0x4b36cc], eax
pop esi
pop ebx
leave
ret

Function at 0x43f894
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403b5c]
jne fcn.0043fe83
ret
Function at 0x43fb82
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4a6760
call fcn.0044016c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x4f37c4], ebx
jne 0x43f925
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x4f37b8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x43f95f
cmp eax, esi
jne 0x43f952
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x43f962
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43f939
xor esi, esi
inc esi
mov eax, dword [0x4f37b4]
cmp eax, esi
jne 0x43f975
push 0x1f
call fcn.0058f000
pop ecx
jmp 0x43f9b0
mov eax, dword [0x4f37b4]
test eax, eax
jne 0x43f9aa
mov dword [0x4f37b4], esi
push 0x4016a0
push 0x40168c
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x43f9b0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x43fac2
mov dword [0x4f1264], esi
mov eax, dword [0x4f37b4]
cmp eax, esi
jne 0x43f9d4
push 0x401688
push 0x4015ac
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x4f37b4], 2
cmp dword [ebp - 0x20], ebx
jne 0x43f9e1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4f37c8], ebx
je 0x43fa02
push 0x4f37c8
call fcn.004400a4
pop ecx
test eax, eax
je 0x43fa02
push ebx
push 2
push ebx
call dword [0x4f37c8]
mov eax, dword [sym.imp.MSVCR100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x43fa63
cmp cx, bx
je 0x43fa1e
cmp dword [ebp - 0x1c], ebx
jne 0x43fa63
movzx ecx, word [eax]
cmp cx, bx
je 0x43fa33
cmp ecx, 0x20
ja 0x43fa33
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x43fa1e
test byte [ebp - 0x40], 1
je 0x43fa3f
movzx ecx, word [ebp - 0x3c]
jmp 0x43fa42
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x4f1260], eax
cmp dword [0x4f1254], ebx
jne 0x43faa8
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp ecx, 0x22
jne 0x43fa73
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x43fa09
cmp dword [0x4f1264], ebx
jne 0x43fab6
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4f1260]
call fcn.004401b1
ret
call fcn.0043f7d6
jmp 0x43f8f7
Function at 0x43fe83
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4f1378], eax
mov dword [0x4f1374], ecx
mov dword [0x4f1370], edx
mov dword [0x4f136c], ebx
mov dword [0x4f1368], esi
mov dword [0x4f1364], edi
mov word [0x4f1390], ss
mov word [0x4f1384], cs
mov word [0x4f1360], ds
mov word [0x4f135c], es
mov word [0x4f1358], fs
mov word [0x4f1354], gs
pushfd
pop dword [0x4f1388]
mov eax, dword [ebp]
mov dword [0x4f137c], eax
mov eax, dword [ebp + 4]
mov dword [0x4f1380], eax
lea eax, [ebp + 8]
mov dword [0x4f138c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4f12c8], 0x10001
mov eax, dword [0x4f1380]
mov dword [0x4f127c], eax
mov dword [0x4f1270], 0xc0000409
mov dword [0x4f1274], 1
mov eax, dword [0x403b5c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4b36cc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x4f12c0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x403b68
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x4f12c0], 0
jne 0x43ff6f
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x4462fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4a0c4e
call fcn.0043fcf6
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x446327
cmp dword [0x4f162c], edi
je 0x446411
push 2
pop ebx
jmp 0x446341
cmp edi, 1
jne 0x446411
mov eax, ebx
call fcn.00447197
test al, al
je 0x446411
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.004471b9
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x4463f3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x446388
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.004469e8
test eax, eax
je 0x446425
push 0x1c049f
push 0
call fcn.00456c1d
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x4b4638], 0
push ebx
mov ecx, 0x4f1640
call fcn.0044617d
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.00446aa7
mov esi, eax
test esi, esi
je 0x446374
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.004471da
inc edi
cmp edi, 2
jl 0x44630f
mov eax, esi
call fcn.0043fdce
ret 0x18
push ebx
mov ecx, 0x4f1640
call fcn.004460e1
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x446405
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x446460
cmp dword [ebp - 0x20], 3
jne 0x44645b
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x44645b
and cl, 0xf
cmp cl, 4
je 0x446460
push 2
pop esi
jmp 0x446405
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.004471da
xor eax, eax
jmp 0x44641d
Function at 0x4468e9
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x4a0cbf
call fcn.0043fcf6
mov esi, dword [ebp + 8]
cmp esi, dword [0x4f1634]
jne 0x446907
xor al, al
jmp 0x4469e0
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x446918
xor ecx, ecx
cmp dword [0x4f162c], ecx
jmp 0x446923
mov eax, esi
call fcn.00447197
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x446900
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.004471b9
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x4469a1
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x446957
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.004469e8
test eax, eax
je 0x4469c6
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.00456c1d
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x4f1640
mov dword [eax + 0x4b4638], ebx
call fcn.0044617d
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.00446aa7
mov ebx, eax
test ebx, ebx
je 0x44694b
jmp 0x4469d3
push dword [ebp + 8]
mov ecx, 0x4f1640
call fcn.004460e1
lea ecx, [ebp + 0xf]
call fcn.004471da
test ebx, ebx
sete al
call fcn.0043fdce
ret 8

Function at 0x4470eb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x4470fd
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x44712e
cmp dword [ebp + 0xc], 1
je 0x44712b
cmp dword [ebp + 0xc], 2
jne 0x44712e
push 2
pop esi
mov eax, esi
call fcn.004469e8
test eax, eax
je 0x447152
push 0x1c0491
push 0
call fcn.00456c1d
push edi
mov ecx, 0x4f1640
call fcn.0044617d
jmp 0x44718f
test esi, esi
jne 0x447184
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x447163
cmp ecx, 1
jne 0x447172
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.004468bf
test eax, eax
jne 0x447184
push 2
pop esi
push edi
mov ecx, 0x4f1640
call fcn.004460e1
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4471fb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4a0d15
call fcn.0043fcf6
mov esi, dword [ebp + 8]
cmp esi, dword [0x4f1634]
jne 0x447219
xor eax, eax
jmp 0x44737e
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x44723c
cmp dword [0x4f162c], ebx
je 0x44733e
push 2
pop edi
jmp 0x447256
cmp ebx, 1
jne 0x44733e
mov eax, esi
call fcn.00447197
test al, al
je 0x44733e
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.004471b9
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x447301
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x44728a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x4472b6
cmp dword [ebp - 0x1c], 1
je 0x4472b3
cmp dword [ebp - 0x1c], 2
jne 0x4472b6
push 2
pop edi
mov eax, edi
call fcn.004469e8
test eax, eax
je 0x44731e
push 0x1c0496
xor edi, edi
push edi
call fcn.00456c1d
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x4f1640
mov dword [eax + 0x4b4638], edi
call fcn.0044617d
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.00446aa7
mov edi, eax
test edi, edi
je 0x44727e
jmp 0x44732f
push dword [ebp - 0x10]
mov ecx, 0x4f1640
call fcn.004460e1
test edi, edi
je 0x44734a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.004471da
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x447224
jmp 0x447359
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.004471da
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x447374
cmp dword [ebp - 0x1c], 2
je 0x44736c
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x44737c
push ecx
call fcn.004455dd
jmp 0x44737a
push esi
call fcn.004450c2
mov ecx, eax
mov eax, ecx
call fcn.0043fdce
ret 4
Function at 0x44742a
Capabilities:
Delete registry key

Disassembly:
push 4
mov eax, 0x4a0d38
call fcn.0043fcf6
mov esi, dword [ebp + 8]
cmp esi, dword [0x4f1634]
jne 0x44744b
mov eax, 0xa0
jmp 0x447514
mov eax, dword [esi + 8]
test byte [eax + 6], 0xf
jne 0x447441
xor ebx, ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.004471b9
movzx eax, word [esi + 0xc]
shr eax, 1
push ebx
and eax, 0x10
push eax
mov dword [ebp - 4], ebx
push ebx
jmp 0x4474da
mov eax, dword [esi + 8]
push dword [eax]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
call fcn.004469e8
test eax, eax
je 0x4474f1
push 0x1c04c6
xor edi, edi
push edi
call fcn.00456c1d
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
push ebx
mov ecx, 0x4f1640
mov dword [eax + 0x4b4638], edi
call fcn.0044617d
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], edi
call fcn.004471da
lea ecx, [ebp + 0xb]
call fcn.004471b9
movzx eax, word [esi + 0xc]
shr eax, 1
push edi
and eax, 0x10
push eax
mov dword [ebp - 4], edi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 8]
push dword [eax + 8]
call fcn.00446aa7
mov edi, eax
test edi, edi
je 0x447472
jmp 0x44750a
push ebx
mov ebx, 0x4f1640
mov ecx, ebx
call fcn.004460e1
push 0
push dword [esi + 8]
mov ecx, ebx
call fcn.00446120
lea ecx, [ebp + 0xb]
call fcn.004471da
mov eax, edi
call fcn.0043fdce
ret 4

Function at 0x44751c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call fcn.00447386
test eax, eax
jne 0x447532
push 2
pop eax
jmp 0x447591
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00445c7f
mov esi, eax
test esi, esi
je 0x447560
cmp dword [ebp - 4], 0
je 0x44755c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x447590
mov esi, dword [ebp - 4]
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test esi, esi
je 0x44758d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 0x20