joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d4f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x1028
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1024], eax
mov ecx, dword [esp + 0x1038]
push ebx
push ebp
mov ebp, dword [esp + 0x103c]
push esi
mov esi, dword [esp + 0x1038]
push edi
mov edi, dword [esp + 0x1040]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x46d53c
mov eax, dword [edi]
or eax, dword [edi + 4]
mov byte [esp + 0x10], 1
jne 0x46d541
mov byte [esp + 0x10], 0
test ebp, ebp
je 0x46d552
mov eax, dword [ebp]
or eax, dword [ebp + 4]
mov byte [esp + 0x12], 1
jne 0x46d557
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x46d567
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov byte [esp + 0x11], 1
jne 0x46d56c
mov byte [esp + 0x11], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46d5a0
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0047cf30
test al, al
je 0x46d5da
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46d5da
test bl, 1
je 0x46d5da
push 0
push esi
mov byte [esp + 0x1b], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x46d5df
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0047cf30
test al, al
je 0x46d5df
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x46d5df
mov byte [esp + 0x13], 0
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x46d643
push 0x800
lea eax, [esp + 0x38]
push eax
push esi
call fcn.0047cf30
test al, al
je 0x46d6ce
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x46d6ce
cmp byte [esp + 0x10], 0
je 0x46d656
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00495c60
cmp byte [esp + 0x12], 0
je 0x46d669
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.00495c60
cmp byte [esp + 0x11], 0
je 0x46d67e
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call fcn.00495c60
movzx eax, byte [esp + 0x10]
lea ecx, [esp + 0x1c]
neg eax
mov edi, dword [esp + 0x14]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x24]
push eax
movzx eax, byte [esp + 0x15]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x30]
push eax
movzx eax, byte [esp + 0x1a]
neg eax
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 0
je 0x46d6ce
push ebx
push esi
call fcn.0046d6f0
mov ecx, dword [esp + 0x1034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x1028
ret 0x10
Function at 0x46d6f0
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push esi
push dword [esp + 0x1014]
mov esi, dword [esp + 0x1014]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x46d755
push 0x800
lea eax, [esp + 0xc]
push eax
push esi
call fcn.0047cf30
test al, al
je 0x46d755
push dword [esp + 0x1014]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
jmp 0x46d757
mov al, bl
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x1004
ret 8

Function at 0x46d850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5139bb
mov eax, dword fs:[0]
push eax
mov eax, 0x2054
call fcn.004f8350
mov eax, dword [0x544354]
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 esi, dword [ebp + 8]
push esi
call fcn.0047d2f0
test al, al
je 0x46d919
lea ecx, [ebp - 0x1018]
call fcn.0046e360
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1018]
push esi
call fcn.0046e560
push 0
lea eax, [ebp - 0x2060]
mov dword [ebp - 0x1050], 0
push eax
lea ecx, [ebp - 0x1018]
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0
call fcn.0046e440
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1018]
call fcn.0046e380
mov al, bl
jmp 0x46d950
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x46d94d
push 0x800
lea eax, [ebp - 0x1010]
push eax
push esi
call fcn.0047cf30
test al, al
je 0x46d94a
lea eax, [ebp - 0x1010]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
setne al
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.004f833c
mov esp, ebp
pop ebp
ret 4

Function at 0x46d970
Capabilities:
Delete directory

Disassembly:
mov eax, 0x2068
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2064], eax
push esi
push edi
mov edi, dword [esp + 0x2074]
lea eax, [esp + 0x1008]
push 0x832
push eax
push edi
call fcn.0046d380
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test al, al
je 0x46d9ec
lea eax, [esp + 0x1008]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46da20
push 0x800
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1010]
push eax
call fcn.0047cf30
test al, al
je 0x46d9ec
lea eax, [esp + 8]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46da20
push edi
call esi
test eax, eax
setne al
test al, al
jne 0x46da20
push 0x800
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0047cf30
test al, al
je 0x46da1c
lea eax, [esp + 8]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46da20
xor al, al
jmp 0x46da22
mov al, 1
mov ecx, dword [esp + 0x206c]
pop edi
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x2068
ret 4
Function at 0x46da40
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x308c]
mov eax, 0x308c
call fcn.004f8350
push 0xffffffffffffffff
push 0x513a00
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x544354]
xor eax, ebp
mov dword [ebp + 0x3088], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x3094]
lea ecx, [ebp]
mov dword [ebp - 0x18], ebx
call fcn.0046b040
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push ebx
call fcn.0046b720
test al, al
je 0x46db7c
lea ecx, [ebp]
call fcn.0046b5f0
push 0x10000
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
call fcn.004087e0
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x2c]
push 0x10000
push 0
push ebx
call fcn.004fa860
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x46db33
jg 0x46db10
cmp dword [ebp - 0x14], esi
jbe 0x46db33
lea ebx, [ebx]
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.0046bda0
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x46db10
jg 0x46db33
cmp esi, dword [ebp - 0x14]
jb 0x46db10
lea ecx, [ebp]
call fcn.0046b690
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.0046bb10
lea ecx, [ebp]
call fcn.0046bd30
lea ecx, [ebp]
call fcn.0046b1d0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x46db79
cmp byte [ebp - 0x1c], 0
je 0x46db70
push dword [ebp - 0x24]
push ebx
call fcn.00491e00
push ebx
call fcn.004fe8b9
add esp, 4
mov ebx, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1024]
push eax
push ebx
call fcn.0046d380
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test al, al
je 0x46dbd8
lea eax, [ebp + 0x1024]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46dc10
push 0x800
lea eax, [ebp + 0x2088]
push eax
lea eax, [ebp + 0x1024]
push eax
call fcn.0047cf30
test al, al
je 0x46dbd8
lea eax, [ebp + 0x2088]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46dc10
push ebx
call esi
test eax, eax
setne al
test al, al
jne 0x46dc10
push 0x800
lea eax, [ebp + 0x2088]
push eax
push ebx
call fcn.0047cf30
test al, al
je 0x46dc0c
lea eax, [ebp + 0x2088]
push eax
call esi
test eax, eax
setne al
test al, al
jne 0x46dc10
xor bl, bl
jmp 0x46dc12
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.0046b080
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3088]
xor ecx, ebp
call fcn.004f833c
lea esp, [ebp + 0x308c]
pop ebp
ret 4
Function at 0x46e580
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1268]
push edi
mov edi, dword [esp + 0x1264]
push eax
cmp edi, 0xffffffff
jne 0x46e62f
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e654
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.0047cf30
test al, al
je 0x46e5fd
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e654
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46e622
cmp eax, 3
je 0x46e622
cmp eax, 0x12
je 0x46e622
mov eax, 1
mov byte [esi + 0x1044], al
jmp 0x46e722
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x46e722
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46e654
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [esi + 0x1044], cl
jmp 0x46e724
push 0x800
push ebx
push esi
call fcn.004947d0
push 0x800
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0047d930
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [esi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x102c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1030], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1034], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1038], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x103c], eax
lea eax, [esp + 0x20]
mov dword [esi + 0x1004], ecx
lea ecx, [esi + 0x1010]
push eax
call fcn.004962f0
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x1018]
call fcn.004962f0
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1020]
call fcn.004962f0
test dword [esp + 0xc], 0x400
je 0x46e71a
cmp dword [esp + 0x30], 0xa0000003
jne 0x46e71a
mov eax, 1
jmp 0x46e71c
xor eax, eax
mov byte [esi + 0x100e], al
mov eax, edi
mov ecx, dword [esp + 0x125c]
pop edi
mov dword [esi + 0x1040], 0
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x1254
ret 0xc
Function at 0x472040
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x6148]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x10], ecx
cmp eax, ecx
je 0x472160
push ebp
push esi
push edi
lea ecx, [ecx]
mov edx, dword [ebx + 0xd0]
add edx, eax
movzx ecx, byte [edx]
movzx ebp, byte [edx + 2]
movzx esi, byte [edx + 3]
imul edi, ecx, 0x2773
movzx ecx, byte [edx + 1]
movzx edx, byte [edx + 4]
xor edi, ecx
imul ecx, edi, 0x2773
and edi, 0x3fff
add edi, dword [ebx + 0xd4]
xor ebp, ecx
imul ecx, ebp, 0x2773
and ebp, 0x3ffff
xor esi, ecx
imul ecx, esi, 0x2773
and esi, 0x3ffff
mov dword [esp + 0x18], esi
xor edx, ecx
mov cl, byte [edi]
and edx, dword [ebx + 0xec]
mov byte [esp + 0x24], cl
mov ecx, dword [ebx + 0xd8]
mov dword [esp + 0x28], edx
movzx ebx, word [ecx + ebp*2]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0xdc]
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, dword [ecx + 0xe0]
mov esi, dword [ecx + esi*4]
mov ecx, dword [esp + 0x10]
mov byte [edi], al
mov edi, dword [esp + 0x18]
mov ecx, dword [ecx + 0xd8]
mov word [ecx + ebp*2], ax
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0xdc]
mov dword [ecx + edi*4], eax
mov ecx, dword [ebp + 0xe0]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov dword [ecx + ebp*4], eax
mov cl, byte [esp + 0x24]
mov word [edi + 1], bx
mov ebx, dword [esp + 0x10]
mov dword [edi + 3], edx
mov byte [edi], cl
add edi, 7
mov dword [esp + 0x14], edi
mov ecx, dword [ebx + 0xe4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [esp + 0x1c]
jne 0x472070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x472300
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
add ebx, eax
push edi
mov edi, ecx
cmp eax, ebx
je 0x472362
push esi
jmp 0x472320
mov esi, dword [edi + 0xd0]
movzx ecx, byte [esi + eax]
imul edx, ecx, 0x2773
movzx ecx, byte [esi + eax + 1]
xor edx, ecx
movzx ecx, byte [esi + eax + 2]
imul edx, edx, 0x2773
xor edx, ecx
mov ecx, dword [edi + 0xe0]
movzx edx, dx
mov esi, dword [ecx + edx*4]
mov dword [ecx + edx*4], eax
mov ecx, dword [edi + 0xe4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, ebx
jne 0x472320
pop esi
pop edi
pop ebx
ret 8
Function at 0x474000
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push 0x4000
push 0
push dword [esi + 0xd4]
call fcn.004fa860
add esp, 0xc
cmp byte [esp + 8], 0
je 0x4740f9
cmp byte [esi + 0x6135], 0
jne 0x4740f9
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + 0x6130]
shr eax, 2
cmp ecx, eax
ja 0x4740f9
push ebx
xor ebx, ebx
test ecx, ecx
je 0x4740f4
push edi
jmp 0x474060
mov edx, dword [esi + 0xd0]
movzx eax, byte [edx + ebx]
imul ecx, eax, 0x2773
movzx eax, byte [edx + ebx + 1]
xor ecx, eax
movzx eax, byte [edx + ebx + 2]
imul edi, ecx, 0x2773
xor edx, edx
xor edi, eax
mov eax, dword [esi + 0xd8]
mov ecx, edi
and ecx, 0x3ffff
mov word [eax + ecx*2], dx
mov eax, dword [esi + 0xd0]
movzx edx, byte [eax + ebx + 3]
imul eax, edi, 0x2773
xor edx, eax
mov eax, dword [esi + 0xdc]
mov ecx, edx
and ecx, 0x3ffff
mov dword [eax + ecx*4], 0
mov eax, dword [esi + 0xd0]
movzx ecx, byte [eax + ebx + 4]
inc ebx
imul eax, edx, 0x2773
xor ecx, eax
mov eax, dword [esi + 0xe0]
and ecx, dword [esi + 0xec]
mov dword [eax + ecx*4], 0
cmp ebx, dword [esi + 0x6130]
jb 0x474060
pop edi
pop ebx
pop esi
ret 4
push 0x80000
push 0
push dword [esi + 0xd8]
call fcn.004fa860
push 0x100000
push 0
push dword [esi + 0xdc]
call fcn.004fa860
mov eax, dword [esi + 0xe8]
shl eax, 2
push eax
push 0
push dword [esi + 0xe0]
call fcn.004fa860
add esp, 0x24
pop esi
ret 4
Function at 0x478a40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xb8
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
add ecx, 0xffffff88
push ebx
push ebp
push esi
xor ebx, ebx
mov dword [esp + 0x44], 0
push edi
lea edi, [esp + 0x40]
mov dword [esp + 0x44], 0
add eax, 2
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
lea ebx, [ebx]
cmp ebx, ecx
jge 0x478bcc
lea edx, [esp + 0x4c]
mov ebp, dword [edi]
sub edx, 2
mov edi, dword [esp + 0x28]
mov ecx, edx
lea esi, [esp + 0x4c]
neg ecx
sub esi, edx
add esi, 0xfffffffd
add edi, ebx
lea eax, [edx + 3]
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x4d]
add eax, ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
sub eax, edx
dec eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4e]
add eax, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, ebx
mov dword [esp + 0x34], eax
dec ecx
mov eax, 0x88888889
mul ecx
mov ecx, edx
shr ecx, 0xa
inc ecx
mov dword [esp + 0x14], ecx
xor eax, eax
jmp 0x478b20
mov dl, byte [edi + eax - 1]
movzx ecx, byte [edi + eax - 2]
sub cl, dl
mov byte [esp + eax + 0x4d], dl
mov byte [esp + eax + 0x4c], cl
movzx ecx, byte [edi + eax]
sub cl, dl
mov byte [esp + eax + 0x4e], cl
add eax, 3
cmp eax, 0x78
jl 0x478b20
mov ebx, dword [esp + 0x2c]
mov edi, 0x27
mov edi, edi
mov eax, dword [esp + 0x30]
lea ebx, [ebx + 3]
movzx eax, byte [ebx + eax - 3]
sub al, byte [esi + ebx - 3]
movsx eax, al
cdq
mov esi, eax
mov eax, dword [esp + 0x34]
xor esi, edx
sub esi, edx
mov cl, byte [ebx + eax - 3]
mov eax, dword [esp + 0x38]
sub cl, byte [eax + ebx - 3]
movsx eax, cl
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x3c]
movzx eax, byte [ebx + eax - 3]
sub al, byte [ebx - 3]
movsx eax, al
cdq
xor eax, edx
sub eax, edx
add ebp, eax
add ebp, esi
mov esi, dword [esp + 0x18]
sub edi, 1
jne 0x478b50
mov edi, dword [esp + 0x10]
add edi, 0x780
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
jne 0x478b14
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [edi], ebp
inc ebx
add edi, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
cmp ebx, 2
jle 0x478aa0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
cmp eax, edx
ja 0x478c12
cmp eax, ecx
ja 0x478c12
xor eax, eax
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004f833c
add esp, 0xb8
ret 8
cmp ecx, edx
mov ecx, dword [esp + 0xb4]
sbb eax, eax
xor ecx, esp
neg eax
inc eax
call fcn.004f833c
add esp, 0xb8
ret 8
Function at 0x47ca80
Capabilities:
Get common file path

Disassembly:
sub esp, 8
call fcn.004a64d0
test al, al
jne 0x47ca92
add esp, 8
ret 0xc
push ebx
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, dword [esp + 0x14]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 8]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x47cb0c
push edi
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x47cb0c
cmp word [edi], 0
je 0x47cb0c
push dword [esp + 0x18]
push edi
call fcn.0047bc90
push dword [esp + 0x18]
push 0x51a224
push edi
call fcn.00494790
push edi
call fcn.0046cad0
mov bl, al
test bl, bl
jne 0x47cb0c
cmp byte [esp + 0x1c], al
je 0x47cb0c
push 0
push 0
push edi
call fcn.0046d060
test eax, eax
sete bl
mov eax, dword [esp + 0xc]
push dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
pop edi
mov al, bl
pop ebx
add esp, 8
ret 0xc

Function at 0x47cd50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
push edi
mov word [esi], ax
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x525da8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x47cda7
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
push esi
lea eax, [esp + 0x10]
push eax
push 0
push str.AppData
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
je 0x47cdb7
push esi
call fcn.0046cad0
test al, al
jne 0x47cdf3
push dword [esp + 0x18]
push edi
push esi
call fcn.0047ca80
test al, al
jne 0x47cdf3
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call fcn.0047d830
lea ecx, [esi + 4]
cmp eax, ecx
jb 0x47cdee
cmp word [esi + 2], 0x3a
jne 0x47cdeb
lea ecx, [esi + 8]
cmp eax, ecx
jb 0x47cdee
sub eax, 2
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x47cf30
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1010]
push esi
mov esi, dword [esp + 0x1010]
movzx eax, word [esi]
test ax, ax
jne 0x47cf67
xor al, al
jmp 0x47d13e
push edi
push eax
call fcn.004945a0
mov edi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x47cf73
movzx eax, word [esi]
sub edi, ecx
sar edi, 1
push ebp
cmp eax, 0x5c
jne 0x47cf94
cmp word [esi + 2], ax
lea ebp, [esi + 2]
je 0x47cfca
push eax
call fcn.004945a0
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x47d061
cmp word [esi + 2], 0x3a
lea ebp, [esi + 2]
jne 0x47d061
movzx eax, word [esi + 4]
cmp eax, 0x5c
je 0x47cfca
cmp eax, 0x2f
jne 0x47d061
movzx eax, word [esi]
push eax
call fcn.004945a0
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x47d013
cmp word [ebp], 0x3a
jne 0x47d013
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x47d13a
push edi
push 0x517c74
push ebx
call fcn.004947d0
push edi
push esi
push ebx
call fcn.00494790
mov al, 1
jmp 0x47d13c
cmp word [esi], 0x5c
jne 0x47d13a
cmp word [ebp], 0x5c
jne 0x47d13a
mov esi, dword [esp + 0x1020]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x47d13a
push esi
push 0x517c74
push ebx
call fcn.004947d0
push esi
push 0x525e70
push ebx
call fcn.00494790
push esi
push ebp
push ebx
call fcn.00494790
mov al, 1
jmp 0x47d13c
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x47d13a
cmp eax, 0x7ff
ja 0x47d13a
movzx eax, word [esi]
cmp eax, 0x5c
je 0x47d101
cmp eax, 0x2f
je 0x47d101
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.0047bc90
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d0a7
sub ecx, edx
lea eax, [edi + 4]
mov edi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp edi, eax
jbe 0x47d13a
push edi
push 0x517c74
push ebx
call fcn.004947d0
push edi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00494790
cmp word [esi], 0x2e
jne 0x47d0f5
movzx eax, word [esi + 2]
push eax
call fcn.0047d2d0
test al, al
je 0x47d0f5
add esi, 4
push edi
push esi
push ebx
call fcn.00494790
mov al, 1
jmp 0x47d13c
lea eax, [edi + 6]
mov edi, dword [esp + 0x1020]
cmp edi, eax
jbe 0x47d13a
push edi
push 0x517c74
push ebx
call fcn.004947d0
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push edi
push eax
push ebx
call fcn.00494790
push edi
push esi
push ebx
call fcn.00494790
mov al, 1
jmp 0x47d13c
xor al, al
pop ebp
pop edi
mov ecx, dword [esp + 0x1008]
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x1004
ret 0xc
Function at 0x481220
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 0x48123c
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x481234
cmp cl, byte [edx]
jne 0x48127d
push esi
push edx
push 0xffffffffffffffff
call fcn.00461ba0
xor edx, edx
not eax
xor ecx, ecx
nop
cmp dword [ecx + 0x541dfc], eax
jne 0x481260
cmp dword [ecx + 0x541df8], esi
je 0x48126d
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x481250
pop esi
ret 0xc
lea eax, [edx + edx*2]
mov ecx, dword [eax*4 + 0x541e00]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
ret 0xc