joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488ad0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6c7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x220
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], 0
push ecx
push 8
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
xorps xmm0, xmm0
lea ecx, [ebx + 8]
push eax
movlpd qword [ebp - 0x224], xmm0
call fcn.00489dd0
mov byte [ebp - 4], 2
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], 1
push eax
push 0
push esi
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x21c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x488c8c
push str.Cannot_enumerate_subkeys
mov ecx, eax
call fcn.00488490
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x218]
add esp, 4
lea esi, [ebp - 0x218]
lea ecx, [ecx + eax*2]
push 0
lea esi, [esi + eax*2]
push ecx
lea eax, [ebp - 0x218]
push eax
call fcn.0049f160
cmp eax, esi
jne 0x488c46
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x488c30
mov eax, dword [ebp - 0x21c]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x218]
movups xmmword [ecx], xmm0
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.0040a4a0
add dword [edi + 4], 0x18
jmp 0x488c46
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
mov ecx, edi
call fcn.004898a0
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x21c]
mov esi, dword [ebp - 0x224]
inc eax
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x228], eax
push ecx
push eax
push esi
mov dword [ebp - 0x21c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x488bc1
xor eax, eax
cmp byte [ebp - 0x220], al
cmove esi, eax
test esi, esi
je 0x488cad
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x488cad
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movsx eax, byte [ebx + 0x1c]
inc eax
sub eax, 0
je 0x488ce0
sub eax, 1
jne 0x488ce0
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp byte [ebx + 0xc], cl
cmove eax, ecx
mov dword [ebx + 8], eax
test eax, eax
je 0x488ce0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x488ce0
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x488f40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
mov edi, ecx
lea eax, [ebp - 0x208]
push 0
mov dword [ebp - 0x20c], edi
mov esi, edx
push eax
mov dword [ebp - 0x20c], edi
call fcn.004a3580
add esp, 0xc
mov dword [ebp - 0x20c], 0x200
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push 3
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryKey]
push str.Cannot_query_kernel_mode_registry_key_path
mov ecx, eax
call fcn.00488490
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
add esp, 4
shr ecx, 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
push ecx
push eax
mov ecx, edi
mov dword [edi + 0x14], 0
call fcn.0040a4a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a057b
mov esp, ebp
pop ebp
ret

Function at 0x488ff0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6d65
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x51c100]
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 dword [ebp - 0x3c], ecx
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push 0xb
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
movlpd qword [ebp - 0x20], xmm0
call fcn.00489dd0
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov ecx, esp
mov dword [ecx], eax
mov byte [ecx + 4], 0
mov byte [ecx + 0x14], 0
xor ecx, ecx
call fcn.00489160
add esp, 0x18
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00488f40
mov byte [ebp - 4], 3
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
push dword [ebp - 0x28]
cmovae eax, dword [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.00488e20
add esp, 0xc
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call dword [sym.imp.ntdll.dll_NtDeleteKey]
push str.Cannot_delete_registry_key
mov ecx, eax
call fcn.00488490
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x4890be
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
call fcn.0040a590
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp byte [ebp - 0x1c], cl
cmove eax, ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4890f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4890f1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movsx eax, byte [ebp + 0x1c]
inc eax
sub eax, 0
je 0x489124
sub eax, 1
jne 0x489124
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp byte [ebp + 0xc], cl
cmove eax, ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x489124
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x489124
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
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.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x489160
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6da5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x51c100]
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 dword [ebp - 0x20], ecx
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push 0xb
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
movlpd qword [ebp - 0x1c], xmm0
call fcn.00489dd0
push 0
mov byte [ebp - 4], 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push str.Cannot_delete_registry_key_tree
mov ecx, eax
call fcn.00488490
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
add esp, 4
cmp byte [ebp - 0x18], cl
cmove eax, ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4891f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4891f5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
movsx eax, byte [ebp + 0x1c]
inc eax
sub eax, 0
je 0x489228
sub eax, 1
jne 0x489228
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp byte [ebp + 0xc], cl
cmove eax, ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x489228
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x489228
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
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.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x489260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
movsx eax, byte [ecx + 0x14]
xorps xmm0, xmm0
inc eax
movlpd qword [ebp - 0x18], xmm0
sub eax, 0
je 0x489374
sub eax, 1
je 0x48930b
movups xmm0, xmmword [ecx]
mov ecx, dword [ecx + 0x10]
sub esp, 0x14
movups xmmword [ebp - 0x30], xmm0
psrldq xmm0, 0xc
movd eax, xmm0
or eax, 6
mov dword [ebp - 0x24], eax
mov eax, esp
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x1c]
call fcn.00488d00
add esp, 0x14
mov byte [ebp - 0x14], 1
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x489302
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x489302
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x1c], 0
jmp 0x489314
mov esi, dword [ecx]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
push 4
push edi
push 4
push 0
mov dword [ebp - 4], 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Cannot_write_key_value
mov ecx, eax
call fcn.00488490
xor eax, eax
add esp, 4
cmp byte [ebp - 0x14], al
cmove esi, eax
test esi, esi
je 0x489359
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x489359
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
push ecx
call fcn.00489d20
int3
Function at 0x4896b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6e9d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x51c100]
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 eax, edx
mov dword [ebp - 0xac], eax
mov ebx, ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x80
push ecx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x489780
push dword [ebp - 0x24]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.00489a10
mov ecx, dword [ebp - 0x20]
mov eax, ebx
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], ecx
jmp 0x489860
cmp eax, 0xea
je 0x489796
push str.Cannot_query_registry_value_size
mov ecx, eax
call fcn.00488490
add esp, 4
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x4897bb
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
mov eax, ebx
jmp 0x489860
xor edi, edi
nop dword [eax]
mov ebx, dword [ebp - 0x1c]
mov edx, ebx
mov ecx, dword [ebp - 0x20]
sub edx, ecx
cmp esi, edx
jae 0x4897d3
lea eax, [ecx + esi]
jmp 0x489801
jbe 0x489804
mov eax, dword [ebp - 0x18]
sub eax, ecx
cmp esi, eax
jbe 0x4897ed
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.00489c10
mov ecx, dword [ebp - 0x20]
jmp 0x489804
sub esi, edx
push esi
push 0
push ebx
call fcn.004a3580
mov ecx, dword [ebp - 0x20]
lea eax, [esi + ebx]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push ecx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xac]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x489832
inc edi
cmp edi, 5
jge 0x48987c
mov esi, dword [ebp - 0x24]
jmp 0x4897c0
push str.Cannot_query_registry_value_data
mov ecx, eax
call fcn.00488490
mov esi, dword [ebp - 0xb0]
add esp, 4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov eax, esi
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.004a057b
mov esp, ebp
pop ebp
ret
push str.Cannot_query_registry_data_due_to_value_changed_too_often
lea ecx, [ebp - 0xc8]
call fcn.00488470
push 0x5193b0
lea eax, [ebp - 0xc8]
push eax
call fcn.004a2f8b
int3
Function at 0x48ae60
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Get disk size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1b4]
call fcn.0048db50
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 8
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 0x3c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push 0
push eax
call fcn.004a3580
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x48af29
push 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 8
push 0
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x48af50
push 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 4
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimes]
test eax, eax
je 0x48afc9
push 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
push 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x48afea
push 8
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 4
rdtsc
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x1b4]
push 8
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.0048dba0
add esp, 4
lea eax, [ebp - 0x18]
push 0xf0000040
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x48b05a
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 8
push dword [ebp - 0x18]
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x48b04f
push 8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1b4]
call fcn.0048dba0
add esp, 4
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1b4]
call fcn.0048dc00
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
Function at 0x48bfc0
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e712d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0x10000
mov dword [ebp - 0x18], esi
call fcn.004a05ff
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push 0x8000
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x48c082
cmp eax, 0x8000
ja 0x48c082
xorps xmm0, xmm0
mov ecx, esi
push eax
movups xmmword [esi], xmm0
push edi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0040a4a0
push edi
call fcn.004a05f1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebp - 0x1c]
push str.Unable_to_retrieve_environment_variable__ls_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x34]
call fcn.00413560
push 0x518f50
lea eax, [ebp - 0x34]
push eax
call fcn.004a2f8b
int3
Function at 0x48d9e0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 0x2c]
mov ebx, 0x30
mov edx, dword [eax + 0x34]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov edi, edx
mov ecx, edx
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x48d9f4
mov ebx, dword [ebp - 0x28]
mov edx, 0x507048
mov dword [ebp - 0x24], edx
mov eax, dword [ebx + 8]
mov edi, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0x28]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x14]
add esi, ecx
add dword [ebp - 0x14], 4
add esi, dword [eax]
mov eax, edi
add esi, dword [edx]
mov edx, edi
add esi, dword [ebp - 0x20]
rol eax, 0xa
ror edx, 0xd
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x18]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x24]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], edx
cmp edx, 0x507148
jl 0x48da75
mov eax, dword [ebp - 0x2c]
add eax, edi
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x28]
pop edi
pop esi
add dword [ebx + 0xc], ecx
mov dword [ebx + 8], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x18], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x20]
add dword [ebx + 0x24], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48db50
Capabilities:
Hash data using sha256

Disassembly:
mov edx, ecx
xor eax, eax
push edi
mov ecx, 0x40
lea edi, [edx + 0x28]
rep stosd dword es:[edi], eax
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx + 8], 0x6a09e667
mov dword [edx + 0xc], 0xbb67ae85
mov dword [edx + 0x10], 0x3c6ef372
mov dword [edx + 0x14], 0xa54ff53a
mov dword [edx + 0x18], 0x510e527f
mov dword [edx + 0x1c], 0x9b05688c
mov dword [edx + 0x20], 0x1f83d9ab
mov dword [edx + 0x24], 0x5be0cd19
pop edi
ret

Function at 0x48eea0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 0xc], 0
jne 0x48eeba
mov dword [edi + 0x18], 6
xor al, al
pop edi
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
mov edx, 0x400000
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov byte [edi + 0xd], 0
nop dword [eax]
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ecx
push dword [edi + 0x14]
call fcn.004c008e
add esp, 0xc
test eax, eax
jle 0x48eeff
mov ecx, dword [ebp + 8]
add ebx, eax
add ecx, eax
mov edx, 0x400000
mov dword [ebp + 8], ecx
sub esi, eax
jne 0x48eed0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48ef08
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
pop esi
pop ebx
je 0x48ef25
call fcn.004b817c
mov ecx, dword [eax]
call fcn.0048f0b0
mov dword [edi + 0x18], eax
xor al, al
pop edi
pop ebp
ret 0xc
push 1
push 0
push dword [edi + 0x14]
call fcn.004bfad5
add esp, 0xc
mov dword [edi + 4], eax
mov al, 1
pop edi
pop ebp
ret 0xc
Function at 0x48f6b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x51c100]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
push esi
push edi
mov eax, dword [ebx]
cmp eax, 5
ja 0x48f6fd
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 0x10
add eax, 0xfffffffb
mov dword [esp + 0x10], ecx
push 0x200
mov dword [ebx], eax
add ecx, 5
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 5
push 0
push eax
mov dword [esp + 0x24], ecx
call fcn.004a3580
add esp, 0xc
lea eax, [esp + 0x20]
push 0x100
push eax
push str.DisableOptimization
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0x507248
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48f76d
test dx, dx
je 0x48f769
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48f76d
add eax, 4
add ecx, 4
test dx, dx
jne 0x48f747
xor eax, eax
jmp 0x48f772
sbb eax, eax
or eax, 1
mov edi, eax
neg edi
sbb edi, edi
and edi, 9
test eax, eax
jne 0x48f7cd
push str.DisableOptimization:_lzma_set_to_level
push 0x520e10
call fcn.0043c6a0
add esp, 8
push 0x502414
push ecx
push edi
mov ecx, eax
call fcn.00448740
add esp, 4
push eax
call fcn.0043c6a0
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0043ce90
movzx ecx, al
push ecx
mov ecx, esi
call fcn.0048f860
mov ecx, esi
call fcn.0043e770
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x400000
push edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x30]
push dword [ebp + 0xc]
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x48]
call fcn.004d02f0
add dword [ebx], 5
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a057b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4996d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
movzx eax, ax
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
shr esi, 8
xor eax, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], eax
jbe 0x49973c
mov ecx, dword [ebp + 0xc]
movzx ebx, word [ecx + edi*2]
mov edx, ebx
movzx ecx, bl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x49973c
movzx ecx, bl
cmp esi, ecx
jne 0x499734
cmp eax, edx
jge 0x499734
mov ecx, dword [ebp + 8]
movzx esi, cl
nop dword [eax]
mov ecx, dword [ebp + 0x14]
movzx ecx, byte [eax + ecx]
cmp cx, si
je 0x499768
inc eax
cmp eax, edx
jl 0x499720
mov esi, dword [ebp - 8]
inc edi
mov eax, edx
cmp edi, dword [ebp + 0x10]
jb 0x4996f3
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x499780
mov esi, dword [ebp + 0x18]
nop word [eax + eax]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x499771
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x499773
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ecx
sub dword [ebp - 4], edx
js 0x499780
inc eax
xor bl, 1
cmp eax, edi
jb 0x499750
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret