joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c81f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 0x2c], eax
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0x20], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 0x1c]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0xd], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 0xa], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], edi
mov esi, dword [edi]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 9], dl
test eax, eax
je 0x5c8379
mov edi, dword [ebp + 8]
sub dword [ebp - 0x14], edi
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5c830c
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.005c7bb0
mov ebx, dword [ebp - 0x20]
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0x10], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xe], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, edx
shr eax, 8
inc dword [ebp - 0x18]
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xa], al
mov byte [ebp - 9], dl
mov al, byte [ebp + esi - 0x10]
inc esi
mov ecx, dword [ebp - 0x14]
and esi, 7
xor al, byte [edi]
mov byte [ecx + edi], al
inc edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
test eax, eax
jne 0x5c82b6
test ecx, ecx
je 0x5c8363
mov edi, dword [ebp - 0x2c]
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], bl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp - 0x24]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a127
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [edi], esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049a127
mov esp, ebp
pop ebp
ret
Function at 0x5d0810
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xe8
push 0
push esi
call fcn.005e1180
add esp, 0xc
mov dword [esi], 0xf3bcc908
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0x84caa73b
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0xfe94f82b
mov dword [esi + 0x14], 0x3c6ef372
mov dword [esi + 0x18], 0x5f1d36f1
mov dword [esi + 0x1c], 0xa54ff53a
mov dword [esi + 0x20], 0xade682d1
mov dword [esi + 0x24], 0x510e527f
mov dword [esi + 0x28], 0x2b3e6c1f
mov dword [esi + 0x2c], 0x9b05688c
mov dword [esi + 0x30], 0xfb41bd6b
mov dword [esi + 0x34], 0x1f83d9ab
mov dword [esi + 0x38], 0x137e2179
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x5d24e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x74
push 0
push esi
call fcn.005e1180
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov eax, dword [ecx]
xor eax, 0x6a09e667
mov dword [esi], eax
mov eax, dword [ecx + 4]
xor eax, 0xbb67ae85
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
xor eax, 0x3c6ef372
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
xor eax, 0xa54ff53a
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
xor eax, 0x510e527f
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
xor eax, 0x9b05688c
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
xor eax, 0x1f83d9ab
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
xor eax, 0x5be0cd19
mov dword [esi + 0x1c], eax
pop esi
pop ebp
ret

Function at 0x5d3060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
shr ecx, 3
mov dword [ebp - 8], ecx
cmp esi, dword [ebp + 0x14]
jb 0x5d3160
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
nop dword [eax + eax]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x5d3143
mov esi, dword [ebp - 8]
movzx eax, byte [ebx + 7]
cdq
mov edi, eax
mov ecx, edx
movzx eax, byte [ebx + 6]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebx + 5]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebx + 4]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebx + 3]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebx + 2]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebx + 1]
shld ecx, edi, 8
cdq
shl edi, 8
or ecx, edx
or edi, eax
movzx eax, byte [ebx]
shld ecx, edi, 8
cdq
add ebx, 8
or ecx, edx
shl edi, 8
or edi, eax
push ecx
push edi
call fcn.005d26a0
mov ecx, dword [ebp - 4]
add esp, 8
mov edi, dword [ebp + 8]
xor dword [edi + ecx*8], eax
xor dword [edi + ecx*8 + 4], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, esi
jb 0x5d30a2
mov esi, dword [ebp + 0x10]
push edi
call fcn.005d27b0
sub esi, dword [ebp + 0x14]
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], esi
cmp esi, dword [ebp + 0x14]
jae 0x5d3090
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5d33b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x5d3583
push ebx
dec edi
lea ebx, [edx + 0xc]
add edx, 0x14
shr edi, 3
push esi
mov esi, dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], edx
nop
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ecx, byte [esi - 8]
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 3]
shl eax, 8
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [esi - 4]
or ecx, eax
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx]
and al, 0xdf
mov dword [ebp - 0x8c], ecx
or al, 0x40
mov dword [ebp - 0x98], ecx
mov byte [ebx], al
movzx eax, byte [edx]
and al, 0xbf
mov dword [ebp - 0xa0], ecx
or al, 0x20
push ebx
mov byte [edx], al
call fcn.0052d300
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.0052d0c0
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0056b8c0
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.0052d300
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.0052d0c0
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0056b8c0
mov ecx, dword [ebp - 0x8c]
add esp, 0x30
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
xor edx, ecx
xor ecx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x9c]
xor ebx, eax
mov dword [ebp - 0x8c], ecx
xor eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x88]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x88]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, dword [ebp - 0x94]
mov byte [ecx + 4], dl
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov edx, ecx
sub edi, 1
jne 0x5d33f0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049a127
mov esp, ebp
pop ebp
ret

Function at 0x5d36e0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x60
push 0
push esi
call fcn.005e1180
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
pop esi
pop ebp
ret
Function at 0x5ddd0f
Capabilities:
Check for sandbox and av modules

Disassembly:
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x5de4be
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.005e1180
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x5de542
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x5de536
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.005f1428
pop ecx
pop ecx
test eax, eax
je 0x5de53c
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5de512
jmp 0x5de53e
mov bl, 1
test esi, esi
je 0x5de549
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a127
leave
ret

Function at 0x5de559
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x424
mov eax, 0x61286d
call fcn.0060ab4d
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x428]
xor bl, bl
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5de669
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor esi, esi
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e1180
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.005f363d
push 0xffffffffffffffff
push dword [esi + 0x6bcb74]
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.005fc806
add esp, 0x2c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5de667
lea ecx, [ebp - 0x430]
call fcn.005ddb8b
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5de64b
mov dword [ebp - 4], 1
cmp dword [ebp - 0x430], eax
je 0x5de639
push dword [ebp - 0x42c]
call fcn.005df377
or dword [ebp - 4], 0xffffffff
add esi, 4
cmp esi, 0x14
jb 0x5de5a9
jmp 0x5de669
mov bl, 1
and dword [ebp - 4], 0
cmp dword [ebp - 0x430], 0
je 0x5de669
push dword [ebp - 0x42c]
call fcn.005df377
jmp 0x5de669
mov bl, 1
mov al, bl
call fcn.0060ab08
ret
Function at 0x5de754
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5de7d9
push esi
push edi
push 0x80
call fcn.005f0453
pop ecx
mov esi, eax
mov dword [ebp - 8], 0x50
lea eax, [ebp - 8]
xor edi, edi
push eax
push esi
lea eax, [ebp - 0xc]
inc edi
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5de7c3
push dword [ebp + 0x14]
push esi
call fcn.005e2b0d
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
test esi, esi
je 0x5de7ce
push esi
call fcn.005efad3
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x5de824
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x424
mov eax, 0x61286d
call fcn.0060ab4d
mov edi, 0x20a
lea eax, [ebp - 0x428]
push edi
push 0
push eax
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x428]
mov esi, 0x104
xor bl, bl
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5de903
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e1180
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.005f363d
push 0xffffffffffffffff
push dword [0x6bcb98]
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.005fc806
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x21c]
add esp, 0x2c
push eax
call esi
test eax, eax
jne 0x5de901
lea ecx, [ebp - 0x430]
call fcn.005ddb8b
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
jne 0x5de8f9
mov dword [ebp - 4], 1
cmp dword [ebp - 0x430], 0
je 0x5de903
push dword [ebp - 0x42c]
call fcn.005df377
jmp 0x5de903
mov bl, 1
and dword [ebp - 4], 0
jmp 0x5de8e3
mov bl, 1
mov al, bl
call fcn.0060ab08
ret
Function at 0x5de9ae
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x228], eax
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], esi
mov ebx, ecx
mov dword [ebp - 0x21c], esi
push esi
push eax
mov dword [ebp - 0x214], ebx
mov edi, esi
mov dword [ebp - 0x218], esi
call fcn.005e1180
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea ecx, [ebp - 0x220]
push 0x20019
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00416598
test eax, eax
jne 0x5deaf0
lea eax, [ebp - 0x230]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc edi
mov dword [ebp - 0x224], edi
test eax, eax
jne 0x5deaf0
xor edi, edi
inc edi
add ebx, 0x48
xor eax, eax
cmp ax, word [ebp - 0x20c]
je 0x5dea9f
cmp ax, word [ebx]
je 0x5dea9f
push ebx
call fcn.005efad8
pop ecx
cmp eax, 1
jb 0x5dea9f
cmp dword [ebp - 0x210], eax
jbe 0x5dea9f
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.005f159d
add esp, 0xc
test eax, eax
je 0x5dead8
inc edi
add ebx, 0x40
cmp edi, 3
jb 0x5dea66
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.005e1180
mov ebx, dword [ebp - 0x214]
add esp, 0xc
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x210], 0x104
jmp 0x5dea2c
mov eax, dword [ebp - 0x214]
xor esi, esi
mov ecx, dword [ebp - 0x228]
shl edi, 6
inc esi
mov eax, dword [edi + eax + 4]
mov dword [ecx], eax
cmp dword [ebp - 0x220], 0
je 0x5deb05
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a127
leave
ret 4

Function at 0x5deb50
Capabilities:
Query environment variable

Disassembly:
push 0x10
push 0x6b45c0
call fcn.00499f20
xor esi, esi
mov dword [ebp - 0x1c], esi
cmp dword [ebp + 8], esi
je 0x5dec06
cmp dword [ebp + 0xc], esi
je 0x5dec06
cmp dword [ebp + 0x10], 1
jb 0x5dec06
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 1
jb 0x5dec06
mov eax, dword [ebp + 0x10]
dec eax
cmp edi, eax
ja 0x5dec06
mov dword [ebp - 4], esi
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499313
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x5debff
lea eax, [edi + edi]
push eax
push esi
push ecx
call fcn.005e1180
add esp, 0xc
push edi
mov edi, dword [ebp - 0x1c]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x5debff
mov ecx, dword [ebp + 0x10]
dec ecx
cmp eax, ecx
ja 0x5debff
push eax
push edi
push ecx
push dword [ebp + 0xc]
call fcn.005f363d
add esp, 0x10
inc esi
jmp 0x5debfc
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x5dec15
push dword [ebp - 0x1c]
call fcn.0049930e
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5dec27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
je 0x5dedc8
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.005e1180
add esp, 0xc
mov ecx, esi
push edi
push 0x683ae8
call fcn.0040a98a
or ebx, 0xffffffff
cmp eax, ebx
je 0x5dec80
mov edi, 0x683ae8
jmp 0x5ded94
push edi
push 0x683b0c
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5dec9b
mov edi, 0x683b0c
jmp 0x5ded94
push edi
push 0x683b20
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5decb6
mov edi, 0x683b20
jmp 0x5ded94
push edi
push 0x683b30
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5decf2
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5dedc8
lea eax, [ebp - 0x210]
push eax
push 0x683b30
jmp 0x5dedb5
push edi
push 0x683b44
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5ded2e
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5dedc8
lea eax, [ebp - 0x210]
push eax
push 0x683b44
jmp 0x5dedb5
push edi
push 0x683b58
mov ecx, esi
call fcn.0040a98a
cmp eax, ebx
je 0x5ded82
push 0x20a
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.005e1180
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x105
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push 0x683b58
jmp 0x5dedb5
push edi
mov edi, str._Systemroot_
mov ecx, esi
push edi
call fcn.0040a98a
cmp eax, ebx
je 0x5dedbc
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.005deb50
add esp, 0xc
test eax, eax
je 0x5dedc8
lea eax, [ebp - 0x210]
push eax
push edi
mov ecx, esi
call fcn.0043b772
push esi
call fcn.005deb18
xor eax, eax
pop ecx
inc eax
jmp 0x5dedca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a127
leave
ret

Function at 0x5deeb8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x5def44
push 1
push edi
call fcn.005efac8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5def44
push esi
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x5def3d
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5def3d
cmp dword [ebp - 4], edi
je 0x5def3d
push 0x10
call fcn.00430c2b
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x5def39
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.005dee84
mov edi, eax
mov eax, edi
jmp 0x5def46
push esi
call fcn.005efad3
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5df01f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6b900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
push esi
mov ax, word [ebx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [ebx + 8]
push edi
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
mov edi, 0x4e4
mov ax, word [ebx + 8]
mov word [ebp - 0xe], ax
mov ax, word [ebx + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], di
call esi
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], di
push dword [ebp - 0x224]
movzx eax, word [ebp + ecx*2 - 0x12]
lea edi, [ecx + 2]
push eax
movzx eax, word [ebp + ecx*2 - 0x14]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.00403e80
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x22c]
add esp, 0x1c
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebx]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x5df0ee
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x5df108
mov ecx, edi
cmp edi, 8
jb 0x5df08a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a127
leave
ret 8
push esi
call fcn.005efad8
pop ecx
mov ecx, dword [ebp - 0x228]
push eax
push esi
call fcn.005df184
mov al, 1
jmp 0x5df0f7

Function at 0x5fef59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005fedd8

Function at 0x604def
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00604aaf

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x4012e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0xc27b30]
shr eax, 3
push esi
mov esi, dword [0xc26a80]
test eax, eax
jbe 0x401353
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [ebp - 4], eax
jmp 0x401310
cmp dword [0xc27b30], 0x959
jne 0x401342
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00401100
add esi, 8
sub dword [ebp - 4], 1
jne 0x401310
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret