joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c4b0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x41c]
cmp esi, 0x80000001
jne 0x46c526
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x46c516
test cx, cx
mov ecx, 0x4d88e8
jne 0x46c4fb
mov ecx, 0x4d89fc
push eax
push ecx
lea eax, [esp + 0x14]
push str.SoftwareWinRAR_s_s
push eax
mov edx, 0x200
call fcn.00407810
add esp, 0x10
jmp 0x46c536
push 0x200
add eax, 2
push eax
lea ecx, [esp + 0x14]
push ecx
jmp 0x46c531
push 0x200
push eax
lea edx, [esp + 0x14]
push edx
call fcn.0047fbe0
lea eax, [esp + 8]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46c56d
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
test eax, eax
je 0x46c56d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
call fcn.004c1c22
add esp, 0x408
ret 0xc

Function at 0x46c830
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
push eax
lea edi, [esp + 0x14]
call fcn.0046c6a0
mov edi, eax
test edi, edi
je 0x46c888
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46c853
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
ret 0x10

Function at 0x46c940
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push eax
call fcn.0046c770
mov esi, eax
mov dword [esp + 0x10], 4
test esi, esi
je 0x46c994
push ebx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x46c994
cmp dword [esp + 0x10], 0
jne 0x46c99d
mov eax, dword [esp + 0x18]
pop esi
pop ecx
ret 0x10
mov eax, dword [esp + 0xc]
pop esi
pop ecx
ret 0x10
Function at 0x46c9b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push eax
call fcn.0046c770
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x14], ebp
test esi, esi
je 0x46ca03
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x46ca03
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x46ca2b
mov eax, dword [esp + 0x20]
push ebp
test eax, eax
je 0x46ca1e
push eax
push ebx
call fcn.004c2da0
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
push 0
push ebx
call fcn.004c2670
add esp, 0xc
xor eax, eax
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x46ce00
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
lea edi, [esp + 0x10]
mov esi, 0x80000001
mov dword [esp + 0x18], eax
call fcn.0046c6a0
mov esi, eax
test esi, esi
je 0x46ce4a
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 0xc

Function at 0x46ce60
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
lea edi, [esp + 0x10]
mov esi, 0x80000001
call fcn.0046c6a0
mov esi, eax
test esi, esi
je 0x46cea5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
push edx
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret 0x10

Function at 0x46cf30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
mov esi, 0x80000001
call fcn.0046c770
mov edi, eax
test edi, edi
jne 0x46cf4c
pop edi
pop esi
ret 8
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
ret 8

Function at 0x46d480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor esi, esi
xor ebx, ebx
xor byte [esi + ecx], bl
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ebx, [edx + ebx + 3]
inc esi
and ebx, 0xffffff
cmp esi, 0x480
jb 0x46d486
pop esi
pop ebx
ret
Function at 0x46d590
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0046d4b0
test eax, eax
je 0x46d5bf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0046d4b0
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0046d4b0
mov dword [esi + 0x18], eax
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0046d4b0
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0046d4b0
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0046d4b0
mov dword [esi + 0x24], eax
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0046d4b0
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x2c]
push edx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0046d510
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0046d4b0
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x130]
push edx
mov ecx, esi
mov dword [esi + 0x12c], eax
call fcn.0046d510
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0046d4b0
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x234]
mov dword [esi + 0x230], eax
push edx
mov ecx, esi
call fcn.0046d510
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0046d4b0
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x334], eax
call fcn.0046d4b0
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x338], eax
call fcn.0046d4b0
push ebp
mov dword [esi + 0x33c], eax
lea eax, [esp + 0x14]
push eax
push edi
push 0x20
lea ecx, [esi + 0x340]
push ecx
mov ecx, esi
call fcn.0046d510
push ebp
lea edx, [esp + 0x14]
push edx
push edi
push 0x100
lea eax, [esi + 0x380]
push eax
mov ecx, esi
call fcn.0046d510
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
jbe 0x46d718
nop
xor bl, byte [eax + edi]
inc eax
cmp eax, ecx
jb 0x46d710
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0046d4b0
movzx edx, bl
pop edi
xor ecx, ecx
cmp edx, eax
pop esi
sete cl
pop ebp
mov al, cl
pop ebx
pop ecx
ret 8
Function at 0x472fa0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0xa804
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0xa800], eax
mov ecx, dword [esp + 0xa80c]
lea eax, [esp + 0xa810]
push eax
push ecx
lea edx, [esp + 8]
push 0x1800
push edx
call fcn.004c5c19
xor eax, eax
mov word [esp + 0x300e], ax
mov eax, dword [esp + 0xa818]
add esp, 0x10
sub eax, 0
je 0x473059
sub eax, 1
je 0x473037
sub eax, 1
jne 0x47309d
push 0x1800
lea ecx, [esp + 0x3004]
push ecx
lea edx, [esp + 8]
push edx
call fcn.00487240
lea eax, [esp + 0x3000]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x473020
push esi
sub eax, edx
push eax
push 1
lea eax, [esp + 0x300c]
push eax
jmp 0x473095
lea eax, [esp]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x473040
sub eax, edx
push esi
sar eax, 1
push eax
push 2
lea ecx, [esp + 0xc]
jmp 0x473094
push 0x6000
lea edx, [esp + 0x4804]
push edx
lea eax, [esp + 8]
push eax
call fcn.00487350
lea eax, [esp + 0x4800]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x473080
push esi
sub eax, edx
push eax
push 1
lea ecx, [esp + 0x480c]
push ecx
call fcn.004c4800
add esp, 0x10
mov ecx, dword [esp + 0xa800]
xor ecx, esp
call fcn.004c1c22
add esp, 0xa804
ret

Function at 0x4730c0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1054
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1050], eax
cmp byte [0x533b59], 0
je 0x473116
push 0x800
lea eax, [esp + 4]
push eax
call fcn.004a47c0
test al, al
je 0x47315c
push 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x47315c
lea edx, [esp]
jmp 0x473148
lea eax, [esp]
push eax
mov ecx, 0x5404f0
call fcn.0044d8f0
test al, al
je 0x47315c
push 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x47315c
lea edx, [esp]
push edx
push 0x557
call fcn.00475cc0
push eax
call fcn.004ad8e0
add esp, 8
mov ecx, dword [esp + 0x1050]
xor ecx, esp
call fcn.004c1c22
add esp, 0x1054
ret
Function at 0x4758e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x418
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push ebx
mov ebx, dword [esp + 0x424]
push ebp
push esi
push edi
push 5
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x51ff0c]
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x51ff0c]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x51ff0c]
push esi
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004c2cc7
mov edi, eax
add esp, 4
test edi, edi
jne 0x475959
mov dword [ebx], eax
jmp 0x475a99
push esi
push ebp
push edi
call fcn.004c2da0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
add esp, 0xc
and eax, 0xffff0000
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
cmp eax, 0xffff0000
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
sete bl
call fcn.004752c0
mov ebp, dword [esp + 0x1c]
test al, al
je 0x4759e0
mov ecx, edi
test bl, bl
je 0x4759a6
lea ecx, [edi + 8]
movsx edx, word [ecx + 0xe]
imul edx, ebp
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx edx, word [ecx + 0x10]
imul edx, dword [esp + 0x10]
mov word [ecx + 0xe], ax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ecx + 0x10], ax
xor ecx, ecx
test bl, bl
setne cl
mov eax, 0xffff
lea ecx, [ecx*4 + 9]
cmp word [edi + ecx*2], ax
lea edx, [edi + ecx*2]
jne 0x475a03
mov eax, 2
jmp 0x475a20
mov eax, edx
lea esi, [eax + 2]
jmp 0x475a10
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475a10
sub eax, esi
sar eax, 1
inc eax
lea edx, [edx + eax*2]
mov ecx, 0xffff
cmp word [edx], cx
jne 0x475a34
mov eax, 2
jmp 0x475a50
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475a40
sub eax, esi
sar eax, 1
inc eax
mov ecx, dword [esp + 0x14]
push ecx
push 1
push 0x200
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [edx + eax*2]
push edx
call fcn.004750f0
lea eax, [esp + 0x24]
push eax
call fcn.004c3cbd
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [ecx], eax
cmp ebp, 0x64
jne 0x475a97
cmp dword [esp + 0x10], ebp
jne 0x475a97
push edi
call fcn.004c23c4
add esp, 4
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x418
ret 8
Function at 0x475b90
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2020]
push esi
mov esi, dword [esp + 0x201c]
push edi
mov edi, dword [esp + 0x2024]
cmp edi, esi
je 0x475bcc
push ebx
push esi
push edi
call fcn.0047fbe0
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x475c9d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x475bf2
sub eax, edx
sar eax, 1
mov ecx, 0x7ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x101c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LanguageFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475c92
push 0x800
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1020]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x1c]
push eax
call fcn.004607d0
push 0x800
push esi
call fcn.00460c50
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0047fc20
lea edx, [esp + 0x18]
push edx
call fcn.0043d340
test al, al
je 0x475c92
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0047fbe0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x2010
ret 0xc

Function at 0x475d80
Capabilities:
Check os version

Disassembly:
mov eax, 0x1118
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1114], eax
push esi
mov esi, ecx
cmp byte [esi], 0
je 0x475dbb
mov eax, dword [0x51ff0c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x51ff08]
mov dword [0x51ff0c], ecx
mov byte [esi], 0
mov eax, dword [esp + 0x1124]
lea edx, [esp + 0x118]
test eax, eax
je 0x475de1
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x475dd0
jmp 0x475def
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x120]
push eax
call fcn.00460e20
push 0x800
lea ecx, [esp + 0x11c]
push ecx
mov edx, ecx
push edx
call fcn.00475b90
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
jne 0x475e5b
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x475e47
jne 0x475e5b
cmp dword [esp + 0xc], 1
jbe 0x475e5b
push 2
push 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x475e69
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x51ff0c], eax
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1120]
pop esi
mov dword [0x51ff08], eax
jne 0x475e8b
mov dword [0x51ff0c], eax
mov ecx, dword [esp + 0x1114]
xor ecx, esp
call fcn.004c1c22
add esp, 0x1118
ret 8
Function at 0x4760f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov ebp, ecx
mov edi, 1
cmp dword [ebp], edi
jle 0x47622a
push ebx
push esi
lea esi, [ebp + 0x24]
lea ecx, [ebp + 0x28]
jmp 0x476120
xor eax, eax
jmp 0x476130
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x564458]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x564858]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x564c58]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x565058]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x564458]
xor dl, byte [eax + ebx*4 + 0x564858]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x564c58]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x565058]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x564458]
xor dl, byte [eax + ebx*4 + 0x564858]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x564c58]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x565058]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x18], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x564458]
xor dl, byte [eax + ebx*4 + 0x564858]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x564c58]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x565058]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x1b], dl
jl 0x476130
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
inc edi
add ecx, 0x10
add esi, 0x10
cmp edi, dword [ebp]
jl 0x476120
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.004c1c22
add esp, 0x14
ret
Function at 0x476da0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
mov ebx, ecx
test eax, eax
ja 0x476dd9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c1c22
add esp, 0x18
ret 0xc
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 0xc]
shr eax, 4
push ebp
mov ebp, eax
mov eax, dword [esi]
xor eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00476240
add esi, 0x10
add ebp, 0xffffffff
je 0x476e5e
nop
mov edx, dword [edi]
xor edx, dword [esi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
add edi, 0x10
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.00476240
add esi, 0x10
sub ebp, 1
jne 0x476e20
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 8], edx
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
shl eax, 4
call fcn.004c1c22
add esp, 0x18
ret 0xc
Function at 0x476ea0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov ebx, ecx
test esi, esi
je 0x476f95
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x476f95
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shr eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x476f65
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebx
call fcn.004765f0
mov edx, dword [esp + 0x20]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], edx
jne 0x476ef7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ebp
pop ebp
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [ebx + 0xc], ecx
pop esi
mov dword [ebx + 0x10], edx
shl eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c1c22
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004c1c22
add esp, 0x2c
ret 0xc
Function at 0x477ee0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
jne 0x477f01
push edi
push 0
push ebp
call fcn.004c2670
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push ebp
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00477a80
test al, al
jne 0x477fc0
test ebx, ebx
jne 0x477f80
cmp dword [esi + 0x24], edi
je 0x477f54
mov edx, dword [esi + 0x20]
push edx
call fcn.004c26ea
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c1c17
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
xor eax, eax
test edi, edi
jbe 0x477f80
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
movzx edx, word [eax + ecx]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
mov dword [ebx + eax*4], edx
add eax, 2
cmp eax, edi
jb 0x477f60
mov ebx, dword [esp + 0x18]
nop
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
imul eax, ebx
add eax, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
xor eax, eax
test edi, edi
jbe 0x477fc0
lea esp, [esp]
mov edx, dword [esi + 0x20]
mov edx, dword [edx + eax*4]
mov ebx, dword [esi]
add edx, ecx
mov dx, word [ebx + edx*4]
xor word [eax + ebp], dx
add eax, 2
cmp eax, edi
jb 0x477fa0
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

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

Disassembly:
mov eax, 0x1004
call fcn.004c1c40
mov eax, dword [0x4ec0b4]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
cmp byte [ebx], 0
push ebp
mov ebp, ecx
je 0x478932
push esi
push edi
lea esi, [ebp + 0x101e]
push esi
call fcn.00460c50
mov edi, eax
cmp edi, esi
jbe 0x4788c5
xor eax, eax
push esi
mov word [edi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [edi - 2], cx
cmp eax, 0xffffffff
je 0x4788c5
test eax, 0x400
je 0x4788c5
mov byte [ebx], 0
push str.System_Volume_Information_
push esi
call fcn.004c58c6
add esp, 8
test eax, eax
jne 0x4788f4
cmp byte [ebx], al
je 0x478930
mov ecx, dword [ebp + 0x4024]
test ecx, ecx
je 0x4788f9
push 1
push 1
push eax
push esi
call fcn.004218d0
test al, al
je 0x4788f9
mov byte [ebx], 0
jmp 0x478930
cmp byte [ebx], 0
je 0x478930
push 0x800
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00462230
lea eax, [esp + 0x10]
push eax
push 0x4a1
call fcn.00475cc0
push eax
call fcn.004ad8e0
add esp, 8
mov ecx, 0x51ff10
call fcn.00433f70
pop edi
pop esi
mov ecx, dword [esp + 0x1008]
pop ebp
pop ebx
xor ecx, esp
call fcn.004c1c22
add esp, 0x1004
ret 4