joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442e10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00444a50
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x18], esi
call dword [0x57d128]
add esp, 8
test ebp, ebp
je 0x442ef7
test eax, eax
je 0x442ef7
inc eax
push ebx
push eax
call fcn.0044d0c7
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044d280
mov esi, eax
add esp, 0xc
test esi, esi
je 0x442e8b
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x442edf
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x442ecc
cmp eax, 0xea
jne 0x442ed4
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0044d06d
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x114
ret

Function at 0x442f10
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x24c
test eax, eax
push esi
jne 0x442f3b
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x442f68
pop esi
add esp, 0x24c
ret
mov esi, dword [esp + 0x258]
push esi
call dword [0x57d128]
add esp, 4
test eax, eax
jne 0x442f58
pop esi
add esp, 0x24c
ret
mov cl, byte [esi]
mov byte [esp + 9], 0x3a
mov byte [esp + 8], cl
mov byte [esp + 0xa], 0x5c
lea edx, [esp + 0x10c]
xor esi, esi
push 0x40
push edx
push esi
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x160]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x442fbd
lea eax, [esp + 0x14c]
push eax
call dword [0x57d128]
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.004445d0
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
add esp, 0x24c
ret
Function at 0x442fe0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x443005
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44306f
jmp 0x443025
mov esi, dword [esp + 0x120]
push esi
call dword [0x57d128]
add esp, 4
test eax, eax
je 0x44306f
mov cl, byte [esi]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x14], cl
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x44306f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
imul edx, dword [esp + 4]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop esi
add esp, 0x114
ret
or eax, 0xffffffff
pop esi
add esp, 0x114
ret

Function at 0x443080
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
push esi
jne 0x4430a5
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x443102
jmp 0x4430c5
mov esi, dword [esp + 0x128]
push esi
call dword [0x57d128]
add esp, 4
test eax, eax
je 0x443102
mov cl, byte [esi]
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1c], cl
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x443102
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, 0xa
call fcn.0044d2b0
pop esi
add esp, 0x11c
ret
or eax, 0xffffffff
pop esi
add esp, 0x11c
ret
Function at 0x443110
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x443190
push edi
call dword [0x57d128]
add esp, 4
test eax, eax
jbe 0x443190
test esi, esi
je 0x44314e
cmp esi, 0xffffffff
je 0x44314e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x4431d2
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x44317c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x443190
jmp 0x44318b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x443190
mov ebp, 1
test esi, esi
je 0x4431d2
cmp esi, 0xffffffff
je 0x4431d2
test ebp, ebp
jne 0x443209
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x4431df
call edi
test eax, eax
je 0x4431d2
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x443209
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x4431ba
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x4431d2
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x443209
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x4431ec
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x57d128]
inc eax
push eax
call fcn.00440540
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x443270
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x4438c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x443952
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x443944
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44393c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x443905
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x4456cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4456f7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0044b616
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x445708
push ebx
call fcn.0044b610
add esp, 4
pop eax
mov dword [ebp - 4], eax
test eax, eax
je 0x445770
mov ecx, dword [eax + 4]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x445770
mov edx, ebx
mov esp, ecx
or bh, bl
cmp edx, 0xff
cmovbe edx, ebx
mov ebx, edx
and esp, 0xfffffffc
shl ebx, 0x10
sub ecx, esp
or bx, dx
cmp edx, 0xffff
cmovbe edx, ebx
lea ebx, [eax + 8]
test esp, esp
je 0x445751
add esp, ebx
xor dword [ebx], edx
add ebx, 4
cmp esp, ebx
jne 0x445748
test ecx, ecx
je 0x445770
xor byte [ebx], dl
test ecx, 2
je 0x445770
xor byte [ebx + 1], dh
test ecx, 1
je 0x445770
shr edx, 0x10
xor byte [ebx + 2], dl
leave
ret 8

Function at 0x4457ab
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x7fff
push 1
mov ebx, 0x184
call fcn.0044be60
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4457f7
push ebx
call fcn.0044b610
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x7fff
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x445831
push 0x4f
push 0x402e875
push 6
call fcn.0044b61c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x445848
mov eax, 0
jmp 0x4458a1
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x445865
mov eax, 0x57d446
push eax
push 2
mov ebx, 0x134
call fcn.0044bea0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x445891
push ebx
call fcn.0044b610
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x4458a1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4458b2
push ebx
call fcn.0044b610
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44a03a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x44a06f
cmp dword [ebp - 4], 0xc35e
je 0x44a06f
jmp 0x44a072
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x44a054
cmp dword [ebp - 4], 0xc25e
jne 0x44a112
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x44a0c5
push 0x1c8
push 0x40100a7
push 6
call fcn.0044b61c
add esp, 0xc
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x44a112
push 0x261
push 0x40100a7
push 6
call fcn.0044b61c
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x44cad0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46b768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x57f3f8]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0x41
mov dword [esp + 0x2c], 0x1a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x57ded8
push edx
call fcn.00465b24
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
jne 0x44cb48
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x44cb41
jmp dword [eax*4 + 0x44cbcc]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
jne case.default.0x44cb41
push 3
call fcn.0044d799
mov edi, dword [esp + 0x14]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
add ebx, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jne 0x44cb0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.004668f0
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x458505
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57e5e0]
jne 0x45850f
repz ret
jmp fcn.0045e996
Function at 0x4593bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57e5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044fe13
and dword [ebp - 0x14], 0
cmp dword [0x59c07c], 0
mov dword [ebp - 0x18], eax
jne 0x45946e
push 0x4714a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x459516
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47149c
push ebx
call edi
test eax, eax
je 0x459516
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47148c
push ebx
mov dword [0x59c07c], eax
call edi
push eax
call esi
push 0x471478
push ebx
mov dword [0x59c080], eax
call edi
push eax
call esi
push 0x47145c
push ebx
mov dword [0x59c084], eax
call edi
push eax
call esi
mov dword [0x59c08c], eax
test eax, eax
je 0x45946e
push 0x471444
push ebx
call edi
push eax
call esi
mov dword [0x59c088], eax
mov eax, dword [0x59c088]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4594c7
cmp dword [0x59c08c], ecx
je 0x4594c7
push eax
call esi
push dword [0x59c08c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4594c7
test ebx, ebx
je 0x4594c7
call edi
test eax, eax
je 0x4594be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4594be
test byte [ebp - 8], 1
jne 0x4594c7
or dword [ebp + 0x10], 0x200000
jmp 0x4594fa
mov eax, dword [0x59c080]
cmp eax, dword [ebp - 0x18]
je 0x4594fa
push eax
call esi
test eax, eax
je 0x4594fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4594fa
mov eax, dword [0x59c084]
cmp eax, dword [ebp - 0x18]
je 0x4594fa
push eax
call esi
test eax, eax
je 0x4594fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x59c07c]
call esi
test eax, eax
je 0x459516
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x459518
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458505
leave
ret
Function at 0x4630a7
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x46baf4
call fcn.0045e92b
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x46319e
cmp byte [esi + 0x4a], bl
je 0x46319e
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4630e3
xor al, al
jmp 0x4631a0
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00462e6d
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x463141
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x463146
dec eax
je 0x46314a
dec eax
dec eax
je 0x46319a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004623dd
mov al, bl
jmp 0x4631a0
mov edx, dword [ebp - 0x2c]
jmp 0x46310c
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x463156
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x46317c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x463169
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0044de5e
add esp, 0x10
cmp edi, eax
jne 0x46312f
cmp byte [esi + 0x4a], 0
je 0x46319a
test edi, edi
jne 0x4630fe
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00462dbf
jmp 0x4630fe
mov bl, 1
jmp 0x463131
mov al, 1
call fcn.0045e975
ret
Function at 0x4631a6
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x46bac7
call fcn.0045e92b
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x4631c8
xor eax, eax
jmp 0x46333b
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x4631f6
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4631f6
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x46333b
cmp dword [esi + 0x54], ebx
je 0x463336
mov ecx, esi
call fcn.004621c1
cmp dword [esi + 0x44], ebx
jne 0x463226
push dword [esi + 0x54]
push edi
call fcn.00462661
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x46333b
jmp 0x463336
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00462e6d
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4632e3
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x46332b
cmp eax, ebx
jg 0x4632eb
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x463295
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4632ba
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4632a8
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.0044de5e
add esp, 0x10
cmp edi, eax
jne 0x46332b
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x46331a
test edi, edi
jne 0x463247
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x463330
push 8
call fcn.00462dbf
jmp 0x463247
mov edx, dword [ebp - 0x2c]
jmp 0x463259
cmp eax, 3
jne 0x46332b
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.00462661
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x46330a
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004623dd
mov ax, si
jmp 0x46333b
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004623dd
mov ax, word [ebp + 8]
jmp 0x46333b
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.004623dd
mov eax, 0xffff
call fcn.0045e975
ret 4
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x575480], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x575080]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x575480]
inc edx
mov dword [edx*4 + 0x57547c], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x574b9c], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x574b9c], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x53aa14]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x53aa0c], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x53aa14]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x409d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55d3e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004c9210
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409d61
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00409e30
push 0
push 0x19
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409d86
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00409e30
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004974f6
mov esp, ebp
pop ebp
ret