joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55165d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x58cb30]
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, ecx
push 0x44
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00532770
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x24], 0
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea esi, [edi + 0x44]
mov eax, dword [ebp - 0x78]
mov dword [edi], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x54]
mov dword [edi + 0x10], eax
mov ax, word [ebp - 0x64]
mov word [edi + 0x14], ax
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x18], eax
movzx eax, byte [ebp - 0x5c]
mov byte [edi + 0x1c], al
movzx eax, byte [ebp - 0x5b]
mov byte [edi + 0x1d], al
movzx eax, byte [ebp - 0x5a]
mov byte [edi + 0x1e], al
mov eax, dword [ebp - 0x58]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x24], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x2c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edi + 0x40], eax
lea eax, [ebp - 0x34]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 0x3c], ecx
cmp esi, eax
je 0x495a55
mov ecx, esi
call fcn.00403590
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
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.00530218
mov esp, ebp
pop ebp
ret
Function at 0x495bc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x5d3834], 0
jne 0x495c50
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x495c2f
jne 0x495c0c
cmp dword [esp + 0xc], 0x55f0
jb 0x495c0c
call fcn.00495c70
test al, al
je 0x495c2f
xor al, al
mov byte [0x5d3834], 1
mov byte [0x5d3835], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00530218
add esp, 0x118
ret
mov al, 1
mov byte [0x5d3835], al
mov byte [0x5d3834], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00530218
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x5d3835]
xor ecx, esp
call fcn.00530218
add esp, 0x118
ret
Function at 0x4a25e0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
call fcn.004d0960
test al, al
jne 0x4a25f2
add esp, 8
ret 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, dword [esp + 0x18]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4a266a
push edi
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a266a
cmp word [edi], 0
je 0x4a266a
mov esi, dword [esp + 0x1c]
push esi
push edi
call fcn.004a1860
push esi
push 0x55c00c
push edi
call fcn.004bda80
push edi
call fcn.00491350
mov bl, al
test bl, bl
jne 0x4a266a
cmp byte [esp + 0x20], al
je 0x4a266a
push 0
push 0
push edi
call fcn.00491b40
test eax, eax
sete bl
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0xc
Function at 0x4a2900
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
xor eax, eax
push ebp
push edi
mov edi, dword [esp + 0x18]
mov word [edi], ax
lea eax, [esp + 8]
push eax
push 1
push 0
push 0x5686dc
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [esp + 0x1c]
test eax, eax
jne 0x4a2959
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.AppData
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0
je 0x4a296d
push edi
call fcn.00491350
test al, al
jne 0x4a2a7b
call fcn.004d0960
test al, al
je 0x4a2a07
push ebx
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0x14]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4a29e9
push edi
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4a29e9
cmp word [edi], 0
je 0x4a29e9
push ebp
push edi
call fcn.004a1860
push ebp
push 0x55c00c
push edi
call fcn.004bda80
push edi
call fcn.00491350
mov bl, al
test bl, bl
jne 0x4a29e9
cmp byte [esp + 0x28], al
je 0x4a29e9
push 0
push 0
push edi
call fcn.00491b40
test eax, eax
sete bl
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55770c]
call esi
pop esi
test bl, bl
pop ebx
jne 0x4a2a7b
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2a16
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x4a2a45
lea ecx, [edi + eax*2]
nop
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x4a2a57
cmp edx, 0x2f
je 0x4a2a57
sub ecx, 2
sub eax, 1
jns 0x4a2a30
cmp word [edi], 0
je 0x4a2a5c
cmp word [edi + 2], 0x3a
jne 0x4a2a5c
lea ecx, [edi + 4]
jmp 0x4a2a6c
add ecx, 2
jmp 0x4a2a5e
mov ecx, edi
lea eax, [edi + 4]
cmp ecx, eax
jb 0x4a2a76
cmp word [edi + 2], 0x3a
jne 0x4a2a73
lea eax, [edi + 8]
cmp ecx, eax
jb 0x4a2a76
sub ecx, 2
xor eax, eax
mov word [ecx], ax
pop edi
pop ebp
add esp, 0xc
ret 0xc
Function at 0x4a2bb0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1010]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1018]
movzx eax, word [edi]
test ax, ax
je 0x4a2db4
push eax
call fcn.004bd890
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a2bf1
movzx eax, word [edi]
lea ebp, [edi + 2]
sub esi, ecx
sar esi, 1
cmp eax, 0x5c
jne 0x4a2c11
cmp word [ebp], ax
je 0x4a2c44
push eax
call fcn.004bd890
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4a2cdb
cmp word [ebp], 0x3a
jne 0x4a2cdb
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x4a2c44
cmp eax, 0x2f
jne 0x4a2cdb
movzx eax, word [edi]
push eax
call fcn.004bd890
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4a2c8d
cmp word [ebp], 0x3a
jne 0x4a2c8d
lea eax, [esi + 4]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x4a2db4
push esi
push 0x558b84
push ebx
call fcn.004bdae0
push esi
push edi
push ebx
call fcn.004bda80
mov al, 1
jmp 0x4a2db6
cmp word [edi], 0x5c
jne 0x4a2db4
cmp word [ebp], 0x5c
jne 0x4a2db4
lea eax, [esi + 6]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x4a2db4
push esi
push 0x558b84
push ebx
call fcn.004bdae0
push esi
push 0x5687a4
push ebx
call fcn.004bda80
push esi
push ebp
push ebx
call fcn.004bda80
mov al, 1
jmp 0x4a2db6
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4a2db4
cmp eax, 0x7ff
ja 0x4a2db4
movzx eax, word [edi]
cmp eax, 0x5c
je 0x4a2d7b
cmp eax, 0x2f
je 0x4a2d7b
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.004a1860
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2d21
sub ecx, edx
lea eax, [esi + 4]
mov esi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp esi, eax
jbe 0x4a2db4
push esi
push 0x558b84
push ebx
call fcn.004bdae0
push esi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004bda80
cmp word [edi], 0x2e
jne 0x4a2d6f
movzx eax, word [ebp]
push eax
call fcn.004a2f40
test al, al
je 0x4a2d6f
add edi, 4
push esi
push edi
push ebx
call fcn.004bda80
mov al, 1
jmp 0x4a2db6
lea eax, [esi + 6]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x4a2db4
push esi
push 0x558b84
push ebx
call fcn.004bdae0
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push esi
push eax
push ebx
call fcn.004bda80
push esi
push edi
push ebx
call fcn.004bda80
mov al, 1
jmp 0x4a2db6
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1004
ret 0xc
Function at 0x4a7790
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
push esi
mov esi, dword [esp + 0xc]
xor cl, cl
cmp esi, eax
jbe 0x4a77ac
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x4a77a4
cmp cl, byte [edx]
jne 0x4a77ed
push esi
push edx
push 0xffffffffffffffff
call fcn.00482e80
xor edx, edx
not eax
xor ecx, ecx
nop
cmp dword [ecx + 0x58a44c], eax
jne 0x4a77d0
cmp dword [ecx + 0x58a448], esi
je 0x4a77dd
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x4a77c0
pop esi
ret 0xc
lea eax, [edx + edx*2]
mov ecx, dword [eax*4 + 0x58a450]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
ret 0xc
Function at 0x4b66f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x41c
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x428]
mov dword [esp + 0x14], ecx
mov dword [eax], 0x28
cmp byte [ecx + 0x50], 0
mov dword [esp + 0x18], eax
je 0x4b672e
or dword [eax + 4], 0x800
cmp dword [ecx + 0x24], 0
jbe 0x4b6916
mov eax, dword [esp + 0x42c]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b6916
push ebx
push ebp
add edi, 0x14
push esi
mov eax, dword [edi - 8]
push 5
push eax
push dword [0x5d3758]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x5d3758]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x5d3758]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.005398b8
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b679d
mov dword [edi], eax
jmp 0x4b68ea
push ebx
push ebp
push esi
call fcn.00531d40
movzx ebp, word [esi + 2]
lea eax, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], 0
mov ecx, 0x5d37b8
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call fcn.004b5800
mov edx, dword [esp + 0x14]
test al, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
je 0x4b682f
mov ebx, esi
cmp ebp, 0xffff
jne 0x4b67f5
lea ebx, [esi + 8]
movsx ecx, word [ebx + 0xe]
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
movsx ecx, word [ebx + 0x10]
imul ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0xe], ax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0x10], ax
xor edx, edx
cmp ebp, 0xffff
mov ebp, 0xffff
sete dl
lea edx, [edx*8 + 0x12]
add edx, esi
cmp word [edx], bp
jne 0x4b6854
mov ecx, 2
jmp 0x4b6870
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6860
sub ecx, ebx
sar ecx, 1
inc ecx
cmp word [edx + ecx*2], bp
lea ebx, [edx + ecx*2]
jne 0x4b6880
mov ebp, 2
jmp 0x4b6897
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b6885
sub eax, edx
sar eax, 1
lea ebp, [eax + 1]
push 0x200
lea eax, [esp + 0x2c]
mov ecx, 0x5d37b8
push eax
push str.CAPTION
push dword [esp + 0x24]
call fcn.004b58b0
test al, al
lea eax, [esp + 0x28]
jne 0x4b68bf
lea eax, [ebx + ebp*2]
push eax
call fcn.00538fcb
add esp, 4
mov dword [edi], eax
cmp dword [esp + 0x14], 0x64
jne 0x4b68e3
cmp dword [esp + 0x10], 0x64
jne 0x4b68e3
push esi
call fcn.0053867f
add esp, 4
jmp 0x4b68ea
or dword [edi - 0x10], 1
mov dword [edi - 8], esi
cmp dword [edi], 0
je 0x4b68f3
or dword [edi - 0x10], 8
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x50], 0
je 0x4b6905
mov eax, dword [esp + 0x24]
or dword [eax + 4], 0x10
add edi, 0x38
sub dword [esp + 0x1c], 1
jne 0x4b6751
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
pop edi
xor ecx, esp
call fcn.00530218
add esp, 0x41c
ret 0xc
Function at 0x4b7090
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
mov esi, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
cmp edi, esi
je 0x4b70ca
push dword [esp + 0x2024]
push esi
push edi
call fcn.004bdae0
push 0x31
push dword [0x58a4a0]
call fcn.005329b0
add esp, 8
test eax, eax
je 0x4b71bf
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b71bf
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4b7110
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b7110
sub ecx, edx
mov eax, 0x7ff
sar ecx, 1
sub eax, ecx
add eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.LanguageFolder
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b71b5
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x800
push eax
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.004a1860
push 0x800
push esi
call fcn.004a3770
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004bda80
lea eax, [esp + 0x14]
push eax
call fcn.00491350
test al, al
je 0x4b71b5
push dword [esp + 0x2024]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004bdae0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.00530218
add esp, 0x2010
ret 0xc

Function at 0x4b71e0
Capabilities:
Check os version

Disassembly:
mov eax, 0x1120
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x111c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1130]
cmp byte [esi], 0
je 0x4b7221
push dword [0x5d3758]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x5d375c]
mov dword [0x5d3758], eax
mov byte [esi], 0
lea eax, [esp + 0x124]
push 0x800
test edi, edi
je 0x4b723a
push edi
push eax
call fcn.004bdae0
jmp 0x4b7243
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x12c]
push eax
call fcn.004a3880
push 0x800
lea eax, [esp + 0x128]
push eax
push eax
call fcn.004b7090
lea eax, [esp + 8]
mov dword [esp + 8], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
jne 0x4b72af
cmp dword [esp + 0xc], 5
ja 0x4b729b
jne 0x4b72af
cmp word [esp + 0x11c], 2
jb 0x4b72af
push 2
push 0
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4b72bd
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5d3758], eax
pop edi
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1128]
pop esi
mov dword [0x5d375c], eax
jne 0x4b72e0
mov dword [0x5d3758], eax
mov ecx, dword [esp + 0x111c]
xor ecx, esp
call fcn.00530218
add esp, 0x1120
ret 8
Function at 0x4b7430
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
xor ecx, ecx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x5d7c50], cl
inc ecx
cmp ecx, 0x100
jl 0x4b7432
push ebx
xor edx, edx
push esi
lea esp, [esp]
mov al, byte [edx + str.cw]
mov bl, 2
mov byte [edx*4 + 0x5d8951], al
mov cl, al
mov byte [edx*4 + 0x5d8950], al
xor ah, ah
mov byte [edx*4 + 0x5d8553], al
mov byte [edx*4 + 0x5d8550], al
mov byte [edx*4 + 0x5d8153], al
mov byte [edx*4 + 0x5d8152], al
mov byte [edx*4 + 0x5d7d52], al
mov byte [edx*4 + 0x5d7d51], al
mov ch, cl
test bl, 1
je 0x4b749d
xor ah, cl
add cl, cl
test ch, ch
jns 0x4b74a6
xor cl, 0x1b
shr bl, 1
jne 0x4b7494
mov byte [edx*4 + 0x5d8953], ah
mov cl, 3
mov byte [edx*4 + 0x5d8552], ah
xor bl, bl
mov byte [edx*4 + 0x5d8151], ah
mov byte [edx*4 + 0x5d7d50], ah
lea ebx, [ebx]
mov ah, al
test cl, 1
je 0x4b74d9
xor bl, al
add al, al
test ah, ah
jns 0x4b74e1
xor al, 0x1b
shr cl, 1
jne 0x4b74d0
mov cl, byte [edx + 0x5d7c50]
xor ah, ah
mov byte [edx*4 + 0x5d8952], bl
mov al, cl
mov byte [edx*4 + 0x5d8551], bl
mov byte [edx*4 + 0x5d8150], bl
mov byte [edx*4 + 0x5d7d53], bl
mov bl, 0xb
lea ecx, [ecx]
mov ch, al
test bl, 1
je 0x4b7519
xor ah, al
add al, al
test ch, ch
jns 0x4b7521
xor al, 0x1b
shr bl, 1
jne 0x4b7510
movzx esi, cl
mov al, cl
mov byte [edx*4 + 0x5d9952], ah
xor bl, bl
mov byte [edx*4 + 0x5d9551], ah
mov byte [edx*4 + 0x5d9150], ah
mov byte [edx*4 + 0x5d8d53], ah
mov byte [esi*4 + 0x5da952], ah
mov byte [esi*4 + 0x5da551], ah
mov byte [esi*4 + 0x5da150], ah
mov byte [esi*4 + 0x5d9d53], ah
mov ah, 9
mov ch, al
test ah, 1
je 0x4b756f
xor bl, al
add al, al
test ch, ch
jns 0x4b7577
xor al, 0x1b
shr ah, 1
jne 0x4b7566
mov byte [edx*4 + 0x5d9950], bl
mov ah, 0xd
mov byte [edx*4 + 0x5d9553], bl
mov al, cl
mov byte [edx*4 + 0x5d9152], bl
mov byte [edx*4 + 0x5d8d51], bl
mov byte [esi*4 + 0x5da950], bl
mov byte [esi*4 + 0x5da553], bl
mov byte [esi*4 + 0x5da152], bl
mov byte [esi*4 + 0x5d9d51], bl
xor bl, bl
lea esp, [esp]
mov ch, al
test ah, 1
je 0x4b75c9
xor bl, al
add al, al
test ch, ch
jns 0x4b75d1
xor al, 0x1b
shr ah, 1
jne 0x4b75c0
mov byte [edx*4 + 0x5d9951], bl
xor al, al
mov byte [edx*4 + 0x5d9550], bl
mov byte [edx*4 + 0x5d9153], bl
mov byte [edx*4 + 0x5d8d52], bl
mov byte [esi*4 + 0x5da951], bl
mov byte [esi*4 + 0x5da550], bl
mov byte [esi*4 + 0x5da153], bl
mov byte [esi*4 + 0x5d9d52], bl
mov bl, 0xe
mov ah, cl
test bl, 1
je 0x4b761a
xor al, cl
add cl, cl
test ah, ah
jns 0x4b7623
xor cl, 0x1b
shr bl, 1
jne 0x4b7611
mov byte [edx*4 + 0x5d9953], al
mov byte [edx*4 + 0x5d9552], al
mov byte [edx*4 + 0x5d9151], al
mov byte [edx*4 + 0x5d8d50], al
inc edx
mov byte [esi*4 + 0x5da953], al
mov byte [esi*4 + 0x5da552], al
mov byte [esi*4 + 0x5da151], al
mov byte [esi*4 + 0x5d9d50], al
cmp edx, 0x100
jl 0x4b7450
pop esi
pop ebx
ret
Function at 0x4b9750
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
jne 0x4b9772
push ebx
push 0
push ebp
call fcn.00532770
add esp, 0xc
push ebx
push ebp
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
push edi
call fcn.004b94a0
test al, al
jne 0x4b9830
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4b97f3
cmp dword [esi + 0x24], ebx
je 0x4b97c2
push dword [esi + 0x20]
call fcn.0053041c
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00530413
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
xor edi, edi
test ebx, ebx
je 0x4b97eb
mov ebp, dword [esp + 0x1c]
lea esp, [esp]
movzx edx, word [edi + ebp]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
mov dword [ecx + edi*4], eax
add edi, 2
cmp edi, ebx
jb 0x4b97d0
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
xor edx, edx
imul ecx, eax
mov eax, dword [esi + 0x1c]
add ecx, edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 4]
mov edi, dword [eax + ecx*4]
test ebx, ebx
je 0x4b9830
lea ecx, [ecx]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edx*4]
mov eax, dword [esi]
add ecx, edi
mov ax, word [eax + ecx*4]
xor word [edx + ebp], ax
add edx, 2
cmp edx, ebx
jb 0x4b9810
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x4ba720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1054
call fcn.00530230
mov eax, dword [0x58cb30]
xor eax, esp
mov dword [esp + 0x1050], eax
push ebx
push esi
mov esi, dword [esp + 0x1060]
mov ebx, ecx
cmp byte [esi], 0
je 0x4ba90e
push ebp
push edi
lea edi, [ebx + 0x101e]
push edi
call fcn.004a3770
mov ebp, eax
cmp ebp, edi
jbe 0x4ba785
xor eax, eax
push edi
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [ebp - 2], cx
cmp eax, 0xffffffff
je 0x4ba785
test eax, 0x400
je 0x4ba785
mov byte [esi], 0
push str.System_Volume_Information_
push edi
call fcn.00532adb
add esp, 8
test eax, eax
jne 0x4ba909
cmp byte [esi], al
je 0x4ba90c
mov ecx, dword [ebx + 0x40e8]
test ecx, ecx
je 0x4ba7c0
push 1
push 1
push eax
push edi
call fcn.0047fc90
test al, al
jne 0x4ba909
cmp byte [esi], 0
je 0x4ba90c
mov ecx, dword [ebx + 0x30d8]
test ecx, ecx
je 0x4ba7d9
push edi
call fcn.004bdbd0
mov esi, dword [ebx + 0x30dc]
test esi, esi
je 0x4ba86e
mov ecx, dword [esi + 4]
mov eax, dword [ebx + 0x30e4]
inc ecx
mov dword [esp + 0x10], eax
mov dword [esi + 4], ecx
cmp ecx, dword [esi + 8]
jbe 0x4ba861
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4ba825
cmp ecx, eax
jbe 0x4ba825
push eax
push str.Maximum_allowed_array_size___u__is_exceeded
push 0x5d381c
call fcn.00487c80
add esp, 0xc
mov ecx, 0x5d381c
call fcn.00487da0
mov eax, dword [esi + 8]
mov ebx, dword [esi + 4]
shr eax, 2
add eax, 0x20
add eax, dword [esi + 8]
cmp ebx, eax
ja 0x4ba83a
mov ebx, eax
lea eax, [ebx*4]
push eax
push dword [esi]
call fcn.0053869a
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4ba85c
mov ecx, 0x5d381c
call fcn.00487da0
mov dword [esi], ebp
mov dword [esi + 8], ebx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 - 4], edx
push 0x800
lea eax, [esp + 0x64]
push eax
push edi
call fcn.004a18e0
xor eax, eax
mov dword [esp + 0x18], 0x558718
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], 0x558718
mov dword [esp + 0x20], 0x558718
mov dword [esp + 0x24], 0x558718
mov dword [esp + 0x28], 0x558718
mov dword [esp + 0x2c], 0x558718
mov dword [esp + 0x30], 0x558718
mov dword [esp + 0x5c], 0x57
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], 1
call fcn.004bf7b0
mov ecx, 0x5d381c
call fcn.004885d0
jmp 0x4ba90c
mov byte [esi], 0
pop edi
pop ebp
mov ecx, dword [esp + 0x1058]
pop esi
pop ebx
xor ecx, esp
call fcn.00530218
add esp, 0x1054
ret 4