joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adfb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
cmp byte [0x67ba2a], 0
jne 0x4ae0c1
push esi
push 1
push 0x5fe988
push 0x5ff26c
mov esi, str.Create_Dump_File
mov byte [0x67ba2a], 1
call fcn.0049a5f0
add esp, 0xc
test al, al
je 0x4ae0c0
push str.Dbghelp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4ae0c0
push ebx
push str.MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
setne bl
test bl, bl
je 0x4ae062
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ae062
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ae062
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x6027a0
push eax
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0x60001
jb 0x4ae062
or dword [0x666f34], 0x41800
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
pop ebx
je 0x4ae0c0
push 0x104
push 0x677d68
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.__create_minidump_from_crashed_process
push 0x677d68
push str.__s___ls__08x_XXXXXXXXX_XXXXXXXXXXXXXXXX
push 0x1000
push 0x677f70
call dword [sym.imp.MSVCR90.dll_swprintf_s]
add esp, 0x18
push 0x4ade70
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov dword [0x677d64], eax
pop esi
add esp, 8
ret
Function at 0x4ae8d0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5686b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5c]
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
or edi, 0xffffffff
lea esi, [esp + 0x14]
call fcn.00494ae0
mov dword [esp + 0x54], 0
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00407eb0
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x4ae98c
mov ecx, dword [0x676f64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00497730
mov byte [esp + 0x54], 1
lea eax, [esp + 0x18]
push eax
mov edi, ebx
call fcn.00497a80
mov byte [esp + 0x54], 0
lea ecx, [esp + 0x18]
call fcn.004978f0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00494b70
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret
mov ecx, dword [esp + 0x14]
push ebx
push esi
call fcn.004ae6e0
add esp, 8
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00494b70
mov al, bl
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x48
ret

Function at 0x4af120
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push ebx
mov edi, ecx
push esi
call fcn.004affe0
test al, al
jne 0x4af1a6
mov ecx, edi
mov dword [edi + 0x38], esi
call fcn.004c6c50
push 0x10
push eax
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edx, dword [ebx]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], 0
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4af1a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4af1a6
xor edx, edx
push edx
mov ecx, 0x4af930
push ecx
push eax
push esi
call fcn.004aff50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4af460
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx + 0x30]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4af4bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0054904e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
push ecx
lea edi, [esp + 0x14]
call fcn.004a8df0
mov ecx, dword [esp + 0x98]
mov dword [esi], eax
add esp, 4
neg eax
sbb eax, eax
pop edi
and eax, 0x1efbffbf
pop esi
xor ecx, esp
add eax, 0xe1040041
call fcn.0054904e
mov esp, ebp
pop ebp
ret 4

Function at 0x4af690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
push 0xb8
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x14], eax
xor edx, edx
mov dword [esp + 0x30], edx
cmp eax, edx
je 0x4af6ef
push edx
mov ecx, 0x4afbf0
push ecx
mov ecx, dword [ebp + 8]
push ecx
push ebx
push eax
call fcn.004aea70
mov esi, eax
jmp 0x4af6f1
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
mov edi, dword [ebp + 0xc]
mov eax, edi
mov ecx, esi
call fcn.004c72d0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
push 0
push esi
lea ecx, [esi + 0xb0]
push ecx
mov dword [esp + 0x28], eax
lea edx, [esi + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebx + 0x30]
lea ecx, [esp + 0x2c]
push ecx
push 1
lea edx, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x4af776
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4af776
push esi
push 0x4af8f0
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx + 0x2c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0150
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
xor esi, esi
test byte [ebp + 0x14], 1
mov edi, 0x4afb40
jne 0x4b0191
mov edi, 0x4afa90
push 0x30
call sub.mfc90u.dll_new_1
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x4b01c3
mov eax, dword [ebp + 0xc]
push eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov esi, ecx
call fcn.004c7260
mov esi, eax
jmp 0x4b01c8
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
mov eax, ebx
mov ecx, esi
call fcn.004c72d0
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
mov ecx, ebx
call eax
push 0
push esi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, dword [edi + 0x30]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
push 1
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x4b0236
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b0236
push esi
push 0x4af8f0
mov dword [esi + 0x2c], eax
mov edx, dword [edi + 0x2c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4b0250
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54bfcb
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
test byte [ebp + 0x10], 1
mov esi, 0x4afd50
jne 0x4b028d
mov esi, 0x4afce0
push 0x30
call sub.mfc90u.dll_new_1
mov ecx, eax
add esp, 4
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x4b02bf
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
mov esi, ecx
call fcn.004c7260
mov esi, eax
jmp 0x4b02c4
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x28], 0xffffffff
mov eax, edi
mov ecx, esi
call fcn.004c72d0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x18]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x10]
push 0
push esi
push ecx
mov ecx, dword [ebx + 0x30]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
push 1
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4b0332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4b0332
push esi
push 0x4af8f0
mov dword [esi + 0x2c], eax
mov edx, dword [ebx + 0x2c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b0610
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x54bf68
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4b06ed
mov ecx, dword [0x676f64]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push ebx
push eax
mov dword [esp + 0x30], 4
call ebp
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00497730
mov dword [esp + 0x54], 0
lea eax, [esp + 0x18]
lea edi, [esi + 0x14]
push eax
call fcn.00497a80
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b06ed
cmp dword [esp + 0x5c], 4
mov ecx, dword [0x676f64]
push ecx
je 0x4b06f1
push 0x65d
lea edx, [esp + 0x20]
push edx
call fcn.00497730
mov dword [esp + 0x54], 1
lea eax, [esp + 0x18]
push eax
call fcn.00497a80
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004978f0
xor al, al
jmp 0x4b0745
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 4]
push eax
lea ecx, [esp + 0x68]
push ecx
push 0
push ebx
push edx
call ebp
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00497730
mov dword [esp + 0x54], 2
lea ecx, [esp + 0x18]
push ecx
call fcn.00497a80
mov dword [esp + 0x54], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x4b0760
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5560c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
je 0x4b0835
mov ecx, dword [0x676f64]
mov ebp, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00497730
mov dword [esp + 0x58], esi
lea eax, [esp + 0x1c]
lea edi, [ebx + 0x14]
push eax
call fcn.00497a80
or esi, 0xffffffff
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x1c]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b0835
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4b083c
cmp eax, 2
je 0x4b083c
mov ecx, dword [0x676f64]
push ecx
push 0x65d
lea edx, [esp + 0x24]
push edx
call fcn.00497730
mov dword [esp + 0x58], 1
lea eax, [esp + 0x1c]
push eax
call fcn.00497a80
mov dword [esp + 0x58], esi
lea ecx, [esp + 0x1c]
call fcn.004978f0
xor al, al
jmp 0x4b0949
mov esi, dword [esp + 0x64]
xor eax, eax
mov ecx, esi
call fcn.00495310
mov ecx, dword [0x676f64]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
push edx
shr eax, 1
mov ecx, esi
call fcn.00494be0
mov ecx, dword [ebx + 4]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00497730
mov dword [esp + 0x58], 2
lea eax, [esp + 0x1c]
push eax
call fcn.00497a80
or ebp, 0xffffffff
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x1c]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b0835
mov ebx, dword [esp + 0x14]
shr ebx, 1
xor edi, edi
test ebx, ebx
jle 0x4b08d5
jmp 0x4b08c0
mov eax, ebp
mov ecx, esi
call fcn.00494be0
cmp word [eax + edi*2], 0
je 0x4b08d5
inc edi
cmp edi, ebx
jl 0x4b08c0
mov eax, edi
mov ecx, esi
call fcn.00495310
cmp dword [esp + 0x18], 2
jne 0x4b0947
push 0
push 0
mov eax, esi
call fcn.00407eb0
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
lea ecx, [esp + 0x60]
mov edi, eax
call fcn.004949f0
mov dword [esp + 0x58], 3
push edi
mov eax, edi
lea ecx, [esp + 0x64]
call fcn.00494be0
push eax
mov eax, esi
call fcn.00407eb0
push eax
call ebx
lea eax, [edi - 1]
lea ecx, [esp + 0x60]
call fcn.00495310
lea eax, [esp + 0x60]
mov edi, esi
call fcn.00494c50
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x60]
call fcn.00494b70
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
Function at 0x4b0a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556070
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x660038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4b0b28
mov ecx, dword [0x676f64]
mov ebx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [ebp - 0x58]
push edx
call fcn.00497730
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
lea edi, [esi + 0x14]
push eax
call fcn.00497a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b0b28
cmp dword [ebp - 0x1c], 7
je 0x4b0b2f
mov ecx, dword [0x676f64]
push ecx
push 0x65d
lea edx, [ebp - 0x58]
push edx
call fcn.00497730
mov dword [ebp - 4], 1
lea eax, [ebp - 0x58]
push eax
call fcn.00497a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004978f0
xor al, al
jmp 0x4b0c07
mov eax, dword [ebp - 0x14]
call fcn.005498a0
mov ecx, dword [0x676f64]
mov eax, esp
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x14]
push edx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea edx, [ebp - 0x58]
push edx
call fcn.00497730
mov dword [ebp - 4], 2
lea eax, [ebp - 0x58]
push eax
call fcn.00497a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
jne 0x4b0b28
mov esi, dword [ebp + 0xc]
call fcn.0049c670
mov edi, dword [ebp - 0x14]
xor ebx, ebx
test edi, edi
jbe 0x4b0c05
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + ecx]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x4b0bb0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4b0bb0
sub ecx, esi
sar ecx, 1
inc ecx
lea edx, [ecx + ecx]
mov dword [ebp - 0x24], edx
cmp ecx, 1
jne 0x4b0bd1
add edx, ebx
cmp edx, edi
jae 0x4b0c05
push 0
or edi, 0xffffffff
lea esi, [ebp - 0x18]
call fcn.00494ae0
mov dword [ebp - 4], 3
mov edx, esi
mov esi, dword [ebp + 0xc]
push edx
call fcn.00403590
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
call fcn.00494b70
add ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x14]
cmp ebx, edi
jb 0x4b0ba0
mov al, 1
lea esp, [ebp - 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054904e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b0d90
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54bef8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4b0dd4
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
mov ecx, dword [0x676f64]
push ecx
mov ecx, dword [esp + 0x54]
push 4
lea edx, [esp + 0x5c]
push edx
push 4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00497730
mov dword [esp + 0x48], 0
lea eax, [esp + 0xc]
lea edi, [esi + 0x14]
push eax
call fcn.00497a80
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8

Function at 0x4b0e50
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54bef8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x4b0e93
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
mov eax, dword [0x676f64]
mov edi, dword [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x54]
lea ecx, [eax + eax + 2]
mov eax, dword [esi + 4]
push ecx
push edi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00497730
mov dword [esp + 0x48], 0
lea edx, [esp + 0xc]
lea edi, [esi + 0x14]
push edx
call fcn.00497a80
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004978f0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret 8
Function at 0x4b0fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e648
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x660038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
cmp dword [ecx + 4], 0
jne 0x4b100b
xor al, al
jmp 0x4b1102
mov esi, dword [ebp + 0xc]
mov eax, esi
mov ebx, 1
xor edi, edi
call fcn.00452440
test eax, eax
jle 0x4b103e
mov eax, edi
mov ecx, esi
call fcn.00411e70
call fcn.00495300
lea ebx, [ebx + eax + 1]
mov eax, esi
inc edi
call fcn.00452440
cmp edi, eax
jl 0x4b1020
lea eax, [ebx + ebx]
mov dword [ebp - 0x1c], eax
call fcn.005498a0
mov ebx, esp
mov eax, esi
mov dword [ebp - 0x14], ebx
xor edi, edi
call fcn.00452440
test eax, eax
jle 0x4b109f
jmp 0x4b1060
mov eax, edi
mov ecx, esi
call fcn.00411e70
call fcn.00407eb0
mov edx, ebx
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4b1070
mov eax, edi
mov ecx, esi
call fcn.00411e70
call fcn.00495300
lea ebx, [ebx + eax*2 + 2]
mov eax, esi
inc edi
call fcn.00452440
cmp edi, eax
jl 0x4b1060
mov ecx, dword [0x676f64]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push edx
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00497730
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
lea edi, [esi + 0x14]
push ecx
call fcn.00497a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004978f0
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
neg eax
sbb eax, eax
inc eax
lea esp, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054904e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b1873
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4b193b
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov eax, 0x20
cmp byte [esi + 8], 0
mov dword [esp + 0x10], eax
je 0x4b18d9
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00494be0
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
push ebp
lea eax, [esp + 0x28]
call fcn.004b1b90
test al, al
jne 0x4b1908
mov dword [ebp], 0xffffffff
jmp 0x4b1908
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.00494be0
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov dword [ebp], 4
or eax, 0xffffffff
mov ecx, ebx
call fcn.00495310
cmp edi, 0xea
jne 0x4b1925
mov eax, dword [esp + 0x10]
add eax, eax
jmp 0x4b1890
test edi, edi
pop edi
pop ebp
pop ebx
jne 0x4b193b
mov eax, 1
add dword [esi + 0xc], eax
pop esi
add esp, 0xc
ret 8
xor al, al
pop esi
add esp, 0xc
ret 8

Function at 0x4b1a03
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4b1ad8
cmp dword [esi + 0xc], 0
mov eax, 0x20
mov dword [esp + 4], eax
jl 0x4b1ad8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, edi
cmp byte [esi + 8], 0
je 0x4b1a75
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00494be0
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
push ebp
lea eax, [esp + 0x28]
call fcn.004b1b90
test al, al
jne 0x4b1aa4
mov dword [ebp], 0xffffffff
jmp 0x4b1aa4
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.00494be0
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov dword [ebp], 4
or eax, 0xffffffff
mov ecx, ebx
call fcn.00495310
cmp edi, 0xea
jne 0x4b1ac5
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x10], eax
jmp 0x4b1a30
test edi, edi
pop edi
pop ebp
pop ebx
jne 0x4b1ad8
dec dword [esi + 0xc]
mov al, 1
pop esi
add esp, 0xc
ret 8
xor al, al
pop esi
add esp, 0xc
ret 8

Function at 0x4b2860
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4b28ac
lea ecx, [esp]
push ecx
mov eax, esi
call fcn.00494c30
mov al, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0054904e
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor al, al
call fcn.0054904e
add esp, 0x20c
ret