joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bf1c
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x44bf3c
mov eax, dword [edi]
jmp 0x44bf3e
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44bff0
cmp dword [esi + 0x10], 0
je 0x44bff0
cmp dword [esi + 0x14], 8
jb 0x44bf61
mov ecx, dword [esi]
jmp 0x44bf63
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x44bf6d
mov eax, dword [edi]
jmp 0x44bf6f
mov eax, edi
push ebx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x44bfeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x44bfeb
push str..new
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.004452c3
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
cmp dword [edi + 0x14], 8
jb 0x44bfb0
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
je 0x44bfdf
cmp dword [esi + 0x14], 8
jb 0x44bfc8
mov esi, dword [esi]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403236
mov eax, ebx
pop ebx
jmp 0x44bff2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret

Function at 0x44c58d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44c5f5
push str.TencentQQBrowser
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0052cbad
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408718
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x44c991
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.005278d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x24], ax
xor ecx, ecx
lea eax, [ebp - 0x10]
inc ecx
xorps xmm0, xmm0
mov dword [ebp - 0x28], ecx
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push ebx
push esi
push ebx
movdqu xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x44ca08
test edi, edi
je 0x44c9f3
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x44ca0a
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44dc6e
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jne 0x44dc8b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x44dd29
push ebx
push dword [ebp + 8]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x44dcc4
push 0x104
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x44dcbb
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44dd26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x44dd26
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
call fcn.00459d58
test eax, eax
jne 0x44dd26
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x44dd26
mov ecx, ebx
mov eax, dword [ebp + 8]
cmp dword [ecx + 0x44], eax
jne 0x44dcfa
cmp dword [ecx + 0x3c], esi
je 0x44dcfa
cmp word [ecx + 0x38], si
ja 0x44dd0c
mov eax, dword [ecx]
test eax, eax
je 0x44dd04
add ecx, eax
jmp 0x44dd06
mov ecx, esi
test ecx, ecx
jne 0x44dce7
jmp 0x44dd1f
movzx eax, word [ecx + 0x38]
shr eax, 1
push eax
push dword [ecx + 0x3c]
mov ecx, edi
call fcn.0044dae7
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x44e5e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44e69c
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.005278d0
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x58e230
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44e690
lea eax, [ebp - 0x20c]
push eax
call fcn.004086d2
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00408659
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x44f5a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x44f695
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x44f695
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push eax
call fcn.005278d0
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, byte [ebp - 0x265]
push eax
movzx eax, byte [ebp - 0x266]
push eax
movzx eax, byte [ebp - 0x267]
push eax
movzx eax, byte [ebp - 0x268]
push eax
movzx eax, word [ebp - 0x26a]
push eax
movzx eax, word [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x58]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
push eax
call fcn.0044f4da
add esp, 0x44
xor eax, eax
mov word [ebp - 0x260], ax
push 0x206
push eax
lea eax, [ebp - 0x25e]
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
jmp 0x44f697
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x450010
Capabilities:
Create directory
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x4500dc
xor ecx, ecx
cmp cx, word [eax]
je 0x4500dc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4500dc
cmp cx, word [ebx]
je 0x4500dc
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4500dc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x4500d5
cmp eax, 0x40000000
ja 0x4500d5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4500ca
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x4500c1
push esi
push ebx
push dword [ebp + 8]
push eax
call fcn.0044fbf1
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4500de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4508b1
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 2]
test eax, eax
js 0x4509c9
push 3
cdq
pop ecx
idiv ecx
cmp eax, 0x40000000
jge 0x4509c9
push esi
mov esi, dword [ebp + 0x10]
cmp ebx, 2
jle 0x450952
lea eax, [ebx - 3]
xor edx, edx
div ecx
push 3
lea edx, [eax + 1]
imul ecx, edx, 0xfffffffd
add ebx, ecx
mov dword [ebp + 0xc], ebx
pop ebx
movzx ecx, byte [edi]
shr ecx, 2
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, ebx
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, ebx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
dec edx
jne 0x4508f6
mov ebx, dword [ebp + 0xc]
push 3
pop ecx
test ebx, ebx
je 0x4509b3
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
cmp ebx, 1
jle 0x450999
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x4509b0
movzx eax, byte [edi]
and eax, ecx
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4509c1
mov eax, esi
sub eax, dword [ebp + 0x10]
mov dword [ecx], eax
mov byte [esi], 0
xor eax, eax
pop esi
jmp 0x4509cc
or eax, 0xffffffff
pop edi
pop ebx
pop ebp
ret
Function at 0x450d16
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, edi
shr eax, 4
xor eax, esi
mov dword [ebp - 8], 8
and eax, 0xf0f0f0f
xor esi, eax
shl eax, 4
xor edi, eax
mov eax, edi
shr eax, 0x10
xor eax, esi
and eax, 0xffff
xor esi, eax
shl eax, 0x10
xor edi, eax
mov eax, esi
shr eax, 2
xor eax, edi
and eax, 0x33333333
xor edi, eax
shl eax, 2
xor esi, eax
mov ebx, esi
shr ebx, 8
xor ebx, edi
and ebx, 0xff00ff
xor edi, ebx
shl ebx, 8
xor ebx, esi
rol ebx, 1
mov eax, ebx
xor eax, edi
and eax, 0xaaaaaaaa
xor ebx, eax
xor eax, edi
rol eax, 1
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, ebx
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x583770]
or esi, dword [eax*4 + 0x583570]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x583370]
or esi, dword [edx*4 + 0x583170]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
xor edx, ebx
mov ecx, edx
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
and eax, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x583670]
or ecx, dword [eax*4 + 0x583470]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x583270]
or ecx, dword [edx*4 + 0x583070]
mov eax, dword [ebp - 4]
or ecx, esi
xor edi, ecx
mov edx, edi
ror edx, 4
xor edx, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
and ecx, 0x3f
and eax, 0x3f
mov esi, dword [ecx*4 + 0x583770]
or esi, dword [eax*4 + 0x583570]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or esi, dword [eax*4 + 0x583370]
mov eax, dword [ebp - 4]
or esi, dword [edx*4 + 0x583170]
mov edx, dword [eax]
add eax, 4
xor edx, edi
mov dword [ebp - 4], eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
and ecx, 0x3f
shr eax, 0x10
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x583670]
or ecx, dword [eax*4 + 0x583470]
mov eax, edx
shr eax, 8
and edx, 0x3f
and eax, 0x3f
or ecx, dword [eax*4 + 0x583270]
or ecx, dword [edx*4 + 0x583070]
or ecx, esi
xor ebx, ecx
dec dword [ebp - 8]
jne 0x450d93
ror ebx, 1
mov edx, ebx
mov esi, dword [ebp - 0x10]
xor edx, edi
and edx, 0xaaaaaaaa
xor ebx, edx
xor edx, edi
ror edx, 1
mov eax, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor ebx, eax
shl eax, 8
xor edx, eax
mov eax, edx
shr eax, 2
xor eax, ebx
and eax, 0x33333333
xor ebx, eax
shl eax, 2
xor edx, eax
mov eax, ebx
shr eax, 0x10
xor eax, edx
and eax, 0xffff
xor edx, eax
shl eax, 0x10
xor ebx, eax
mov ecx, ebx
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov eax, ecx
shl eax, 4
xor eax, ebx
xor ecx, edx
pop edi
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451021
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov word [ebp - 0xf6], dx
mov edi, ecx
mov dword [ebp - 0xfc], eax
xor esi, esi
movzx edx, byte [esi + str.80_]
mov eax, edx
sar edx, 3
and eax, 7
movzx ecx, word [eax*2 + 0x5839c0]
movsx eax, byte [edx + edi]
test eax, ecx
setne al
mov byte [ebp + esi - 0x74], al
inc esi
cmp esi, 0x38
jl 0x45104b
push 0x1e
xor ebx, ebx
pop edi
cmp word [ebp - 0xf6], 1
mov esi, edi
je 0x451089
lea esi, [ebx + ebx]
and dword [ebp + esi*4 - 0xf0], 0
movzx eax, byte [ebx + 0x5838a0]
and dword [ebp + esi*4 - 0xf4], 0
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x100], eax
cmp ecx, 0x1c
jge 0x4510b5
mov al, byte [ebp + ecx - 0x74]
jmp 0x4510bc
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x1c
jl 0x4510aa
mov ecx, dword [ebp - 0x100]
push 0x1c
pop edx
add ecx, edx
cmp ecx, 0x38
jge 0x4510dd
mov al, byte [ebp + ecx - 0x74]
jmp 0x4510e4
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x4510d2
xor ecx, ecx
movzx eax, byte [ecx + 0x583870]
cmp byte [ebp + eax - 0x3c], 0
je 0x45110d
mov eax, dword [ecx*4 + 0x583960]
or dword [ebp + esi*4 - 0xf4], eax
movzx eax, byte [ecx + 0x583888]
cmp byte [ebp + eax - 0x3c], 0
je 0x451129
mov eax, dword [ecx*4 + 0x583960]
or dword [ebp + esi*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x4510f1
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x45107a
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
call fcn.00450f2a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x454b5d
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x454c18
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
dec edi
jne 0x454b7b
pop edi
test esi, esi
je 0x454c31
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x583a60]
inc edx
dec esi
jne 0x454c1c
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x455177
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x6af60], edi
cmp dword [esi + 0x6af58], edi
jne 0x4551a0
mov dword [esi + 0x6af60], 1
mov dword [esi + 0x6af58], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af58]
mov dword [esi + 0x6af54], edi
push edi
push eax
call fcn.005278d0
add esp, 0xc
mov dword [esi + 0x6af84], 0x20
mov eax, 0x102
mov dword [esi + 0x6af7c], 0x1000
lea ebx, [esi + 0x1af58]
mov dword [esi + 0x6af80], eax
mov ecx, esi
mov dword [esi + 0x6af88], eax
push 0x10000
push ebx
mov dword [esi + 0x6af6c], edi
mov dword [esi + 0x6af5c], edi
call fcn.00454c9c
mov dword [esi + 0x6af78], eax
test eax, eax
je 0x455247
cmp eax, 0xffffffff
je 0x455247
mov dword [esi + 0x6af74], edi
cmp eax, 0x106
jae 0x455222
mov ecx, esi
call fcn.00455042
mov dword [esi + 0x6af64], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af64], ecx
cmp edi, 2
jb 0x45522a
jmp 0x455257
mov dword [esi + 0x6af74], 1
mov dword [esi + 0x6af78], edi
pop edi
pop esi
pop ebx
ret
Function at 0x457cee
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5b606c]
push esi
xor esi, esi
push edi
mov edi, 0xfffffc18
cmp eax, 0xffffffff
jne 0x457e69
push 0x110
lea eax, [ebp - 0x324]
mov dword [0x5b606c], edi
push esi
push eax
mov dword [ebp - 0x328], 0x114
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x457e5f
cmp dword [ebp - 0x318], 2
jne 0x457e5f
cmp dword [ebp - 0x324], 5
jne 0x457df4
mov eax, dword [ebp - 0x320]
test eax, eax
jne 0x457d81
inc eax
mov dword [0x5b606c], eax
jmp 0x457f19
cmp eax, 1
jne 0x457de5
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.0052a6f3
add esp, 0xc
test eax, eax
jne 0x457da5
push 3
pop eax
jmp 0x457d77
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.0052a6f3
add esp, 0xc
test eax, eax
jne 0x457dc3
push 4
jmp 0x457da2
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_3
call fcn.0052a6f3
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x457d77
cmp eax, 2
jne 0x457e5f
push 6
pop eax
mov dword [0x5b606c], eax
jmp 0x457e64
cmp dword [ebp - 0x324], 6
jne 0x457e5f
cmp dword [ebp - 0x320], esi
jne 0x457e4b
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_1
call fcn.0052a6f3
add esp, 0xc
test eax, eax
jne 0x457e26
push 8
jmp 0x457da2
push 0x7f
lea eax, [ebp - 0x314]
push eax
push str.Service_Pack_2
call fcn.0052a6f3
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x457d77
cmp dword [ebp - 0x320], 1
mov eax, dword [0x5b606c]
push 0xa
pop ecx
cmove eax, ecx
jmp 0x457ded
mov eax, dword [0x5b606c]
cmp eax, 0xffffffff
je 0x457e71
cmp eax, edi
jne 0x457f19
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.005278d0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x210]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x32c], esi
push eax
lea edx, [ebp - 0x32c]
mov dword [ebp - 0x330], esi
lea ecx, [ebp - 0x210]
call fcn.00457a94
pop ecx
test eax, eax
je 0x457f14
mov eax, dword [ebp - 0x32c]
cmp eax, 0x60002
jne 0x457ef1
push 0xb
jmp 0x457da2
cmp eax, 0x60003
jne 0x457eff
push 0xc
jmp 0x457da2
cmp eax, 0xa0000
je 0x457f0d
cmp eax, 0x60004
jne 0x457f14
push 0xd
jmp 0x457da2
mov eax, dword [0x5b606c]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret
Function at 0x4585ea
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0052ad70
mov eax, dword [0x5b38f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
push eax
call fcn.004585bd
test al, al
je 0x4586ad
cmp dword [ebp - 0x1008], 1
jne 0x45865c
lea eax, [ebp - 0x804]
push eax
call fcn.004086d2
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
jmp 0x4586a2
cmp dword [ebp - 0x1008], 2
jne 0x4586ad
mov edi, 0x400
lea eax, [ebp - 0x1004]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x4586ad
cmp eax, edi
ja 0x4586ad
lea eax, [ebp - 0x1004]
push eax
call fcn.004086d2
pop ecx
push eax
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, esi
call fcn.00408659
mov al, 1
jmp 0x4586af
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0052b1ec
mov esp, ebp
pop ebp
ret 8

Function at 0x45892b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00458915
test al, al
je 0x458969
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x458969
mov al, 1
jmp 0x458971
xor eax, eax
mov word [esi + 0xc], ax
xor al, al
pop esi
mov esp, ebp
pop ebp
ret