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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f619d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x54d104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.004919a0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 4
push ecx
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Cannot_query_registry_value
mov ecx, eax
call fcn.00490070
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add esp, 4
cmp byte [ebp - 0x20], cl
cmove eax, ecx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4902fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4902fc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x14]
cmp ecx, 4
jne 0x490320
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
call fcn.004157c0
push eax
push 4
lea ecx, [ebp - 0x40]
call fcn.0048fff0
push 0x54a0b4
lea eax, [ebp - 0x40]
push eax
call fcn.004b1dab
int3
Function at 0x490630
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 0x4f625f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x228
mov eax, dword [0x54d104]
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
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x238], edi
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x22c], 0
mov ecx, edx
push eax
movlpd qword [ebp - 0x20], xmm0
call fcn.004919a0
mov dword [ebp - 4], 1
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 - 0x20]
lea eax, [ebp - 0x18]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], 1
push eax
push 0
push esi
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x4907dd
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x234], ecx
push str.Cannot_enumerate_subkeys
mov ecx, eax
call fcn.00490070
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x220]
add esp, 4
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], eax
lea esi, [esi + eax*2]
push 0
push esi
lea eax, [ebp - 0x220]
push eax
call fcn.004adf80
cmp eax, esi
jne 0x4907a0
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x490790
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push ecx
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00422e50
add dword [edi + 4], 0x18
jmp 0x4907a0
lea ecx, [ebp - 0x234]
push ecx
push ecx
push eax
mov ecx, edi
call fcn.00491350
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x18]
mov esi, dword [ebp - 0x20]
inc eax
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], eax
push ecx
push eax
push esi
mov dword [ebp - 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x490720
xor eax, eax
cmp byte [ebp - 0x1c], al
cmove esi, eax
test esi, esi
je 0x4907fb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4907fb
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.004af3ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x490aa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54d104]
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.004b23a0
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.00490070
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.0040a960
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004af3ab
mov esp, ebp
pop ebp
ret

Function at 0x490b50
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6348
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x54d104]
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
push ecx
push 0xb
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call fcn.004919a0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x264], 0
mov byte [ebp - 0x3c], 0
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.00490cc0
mov byte [ebp - 4], 1
movsx eax, byte [ebp - 0x3c]
inc eax
sub eax, 0
je 0x490c09
sub eax, 1
je 0x490bdc
lea ecx, [ebp - 0x60]
call fcn.004384e0
jmp 0x490c09
mov eax, dword [ebp - 0x268]
xor ecx, ecx
cmp byte [ebp - 0x264], cl
cmove eax, ecx
mov dword [ebp - 0x268], eax
test eax, eax
je 0x490c09
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x490c09
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.00490aa0
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.00490980
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.00490070
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x490c64
push eax
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
call fcn.0040aa40
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 0x490c97
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x490c97
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.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x490cc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f638d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x54d104]
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
push ecx
push 0xb
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.004919a0
push 0
mov byte [ebp - 4], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
push str.Cannot_delete_registry_key_tree
mov ecx, eax
call fcn.00490070
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 0x490d4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x490d4b
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.004af3ab
mov esp, ebp
pop ebp
ret

Function at 0x490d80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f63d8
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x54d104]
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 edi, edx
mov esi, ecx
movsx eax, byte [esi + 0x22c]
xorps xmm0, xmm0
inc eax
movlpd qword [ebp - 0x18], xmm0
sub eax, 0
je 0x490ec2
sub eax, 1
je 0x490e58
mov eax, dword [esi]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x244], eax
lea eax, [esi + 4]
push eax
call fcn.004383f0
mov eax, dword [esi + 0x228]
mov ecx, dword [esi + 0x224]
mov dword [ebp - 0x1c], eax
or ecx, 6
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x248]
call fcn.00490820
mov bl, 1
mov byte [ebp - 0x14], bl
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x490e44
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x490e44
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x248], 0
call fcn.004384e0
jmp 0x490e62
mov esi, dword [esi]
xor bl, bl
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], bl
push 4
push edi
push 4
push 0
mov dword [ebp - 4], 1
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Cannot_write_key_value
mov ecx, eax
call fcn.00490070
xor eax, eax
add esp, 4
test bl, bl
cmove esi, eax
test esi, esi
je 0x490ea6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x490ea6
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 - 0x10]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
push ecx
call fcn.004917d0
int3
Function at 0x491160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f645d
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x54d104]
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 0x491230
push dword [ebp - 0x24]
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.004914c0
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 0x491310
cmp eax, 0xea
je 0x491246
push str.Cannot_query_registry_value_size
mov ecx, eax
call fcn.00490070
add esp, 4
mov esi, dword [ebp - 0x24]
test esi, esi
jne 0x49126b
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 0x491310
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 0x491283
lea eax, [ecx + esi]
jmp 0x4912b1
jbe 0x4912b4
mov eax, dword [ebp - 0x18]
sub eax, ecx
cmp esi, eax
jbe 0x49129d
push ecx
push esi
lea ecx, [ebp - 0x20]
call fcn.004916c0
mov ecx, dword [ebp - 0x20]
jmp 0x4912b4
sub esi, edx
push esi
push 0
push ebx
call fcn.004b23a0
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 0x4912e2
inc edi
cmp edi, 5
jge 0x49132c
mov esi, dword [ebp - 0x24]
jmp 0x491270
push str.Cannot_query_registry_value_data
mov ecx, eax
call fcn.00490070
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.004af3ab
mov esp, ebp
pop ebp
ret
push str.Cannot_query_registry_data_due_to_value_changed_too_often
lea ecx, [ebp - 0xc8]
call fcn.00490050
push 0x54a190
lea eax, [ebp - 0xc8]
push eax
call fcn.004b1dab
int3
Function at 0x492a60
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 [0x54d104]
xor eax, ebp
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x1b4]
call fcn.004954d0
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.00495520
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.00495520
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.00495520
push 0x3c
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push 0
push eax
call fcn.004b23a0
add esp, 0x10
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x492b29
push 8
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
push 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
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 0x492b50
push 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
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 0x492bc9
push 4
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
push 4
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
push 4
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
push 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
push 4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
push 4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
add esp, 0x18
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x492bea
push 8
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
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.00495520
add esp, 4
lea eax, [ebp - 0x18]
push 0xf0000040
push 1
push 0x537158
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x492c5a
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 0x492c4f
push 8
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1b4]
call fcn.00495520
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.00495580
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret
Function at 0x493900
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 0x4f66bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x54d104]
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.004af42f
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 0x4939c2
cmp eax, 0x8000
ja 0x4939c2
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.0040a960
push edi
call fcn.004af421
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.004af3ab
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.004125b0
push 0x549cdc
lea eax, [ebp - 0x34]
push eax
call fcn.004b1dab
int3
Function at 0x495360
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov dword [ebp - 0x28], ecx
lea eax, [ecx + 0x2c]
mov ebx, 0x30
push esi
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 0x495374
mov ebx, dword [ebp - 0x28]
mov edx, 0x537458
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, 0x537558
jl 0x4953f5
mov eax, dword [ebp - 0x2c]
add eax, edi
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x28]
pop esi
pop edi
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 0x4954d0
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 0x496810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 0xc], 0
jne 0x49682a
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.004cefbe
add esp, 0xc
test eax, eax
jle 0x49686f
mov ecx, dword [ebp + 8]
add ebx, eax
add ecx, eax
mov edx, 0x400000
mov dword [ebp + 8], ecx
sub esi, eax
jne 0x496840
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x496878
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
pop esi
pop ebx
je 0x496895
call fcn.004c6f6c
mov ecx, dword [eax]
call fcn.00496a20
mov dword [edi + 0x18], eax
xor al, al
pop edi
pop ebp
ret 0xc
push 1
push 0
push dword [edi + 0x14]
call fcn.004cea05
add esp, 0xc
mov dword [edi + 4], eax
mov al, 1
pop edi
pop ebp
ret 0xc
Function at 0x497020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x54d104]
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 0x49706d
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004af3ab
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.004b23a0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x100
push eax
push str.DisableOptimization
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 0x537658
lea eax, [esp + 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4970dd
test dx, dx
je 0x4970d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4970dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x4970b7
xor eax, eax
jmp 0x4970e2
sbb eax, eax
or eax, 1
mov edi, eax
neg edi
sbb edi, edi
and edi, 9
test eax, eax
jne 0x49713d
push str.DisableOptimization:_lzma_set_to_level
push 0x551f10
call fcn.0043d860
add esp, 8
push 0x52fabc
push ecx
push edi
mov ecx, eax
call fcn.00449f30
add esp, 4
push eax
call fcn.0043d860
mov esi, eax
add esp, 8
mov ecx, dword [esi]
push 0xa
mov ecx, dword [ecx + 4]
add ecx, esi
call fcn.0043e040
movzx ecx, al
push ecx
mov ecx, esi
call fcn.004971d0
mov ecx, esi
call fcn.0043f7e0
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.004df220
add dword [ebx], 5
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004af3ab
mov esp, ebp
pop ebp
ret 0x10