joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b6f5
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
and byte [ebp - 0x210], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
and byte [ebp - 0x314], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
and byte [ebp - 0x10c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b816
lea eax, [ebp - 0x314]
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40b816
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x10c]
push str.uninrest.ini
push eax
call fcn.0040c600
add esp, 0x10
lea eax, [ebp - 0x10c]
mov ebx, 0x41d62c
mov esi, str.RmDir
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and byte [ebp - 8], 0
mov ecx, eax
xor eax, eax
lea edi, [ebp - 7]
inc ecx
stosd dword es:[edi], eax
push ecx
lea eax, [ebp - 8]
push 0x41d620
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
call edi
mov ebx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push esi
call edi
test ebx, ebx
pop ebx
je 0x40b816
test eax, eax
je 0x40b816
push 1
pop eax
jmp 0x40b818
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b81c
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
and byte [ebp - 0x210], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20f]
and byte [ebp - 0x314], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x313]
rep stosd dword es:[edi], eax
and byte [ebp - 0x10c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b93d
lea eax, [ebp - 0x314]
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x40b93d
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x10c]
push str.uninrest.ini
push eax
call fcn.0040c600
add esp, 0x10
lea eax, [ebp - 0x10c]
mov ebx, 0x41d62c
mov esi, str.RmFile
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
and byte [ebp - 8], 0
mov ecx, eax
xor eax, eax
lea edi, [ebp - 7]
inc ecx
stosd dword es:[edi], eax
push ecx
lea eax, [ebp - 8]
push 0x41d620
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
call edi
mov ebx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push esi
call edi
test ebx, ebx
pop ebx
je 0x40b93d
test eax, eax
je 0x40b93d
push 1
pop eax
jmp 0x40b93f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b943
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x44c]
push esi
push 0
push eax
call fcn.0040bf70
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x44c]
push ebx
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x44c]
push str..
push eax
call fcn.0040c600
add esp, 0x1c
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x40b9a9
xor eax, eax
jmp 0x40bac9
lea ecx, [ebp - 0x140]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40bab3
push edi
mov edi, 0x416058
lea eax, [ebp - 0x114]
push 0x41d64c
push eax
call fcn.0040cfc0
pop ecx
test eax, eax
pop ecx
je 0x40ba9a
lea eax, [ebp - 0x114]
push 0x41d648
push eax
call fcn.0040cfc0
pop ecx
test eax, eax
pop ecx
je 0x40ba9a
cmp dword [ebp - 0x140], 0x10
push esi
push 0
jne 0x40ba51
lea eax, [ebp - 0x348]
push eax
call fcn.0040bf70
lea eax, [ebp - 0x348]
push ebx
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x348]
push edi
push eax
call fcn.0040c600
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x348]
push eax
call fcn.0040c600
lea eax, [ebp - 0x348]
push eax
call fcn.0040b943
add esp, 0x28
jmp 0x40ba9a
lea eax, [ebp - 0x244]
push eax
call fcn.0040bf70
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x244]
push edi
push eax
call fcn.0040c600
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0040c600
add esp, 0x24
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b9c5
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
pop esi
pop ebx
leave
ret

Function at 0x40bacd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 9
pop ecx
mov esi, str.SOFTWAREMicrosoftInternet_Explorer
lea edi, [ebp - 0x30]
lea eax, [ebp - 4]
rep movsd dword es:[edi], dword [esi]
push eax
xor ebx, ebx
push 1
lea eax, [ebp - 0x30]
push ebx
push eax
push 0x80000002
mov dword [ebp - 8], 0x1e
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb27
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40bb2c
mov byte [esi], bl
jmp 0x40bb2c
mov eax, dword [ebp + 8]
mov byte [eax], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bbc2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.0040bf70
push dword [ebp + 8]
lea eax, [ebp - 0x34c]
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x34c]
push str..
push eax
call fcn.0040c600
add esp, 0x1c
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40bc26
xor eax, eax
jmp 0x40bcf2
lea ecx, [ebp - 0x144]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ecx
push eax
call edi
test eax, eax
je 0x40bce5
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push 0x41d64c
push eax
call fcn.0040cfc0
pop ecx
test eax, eax
pop ecx
je 0x40bcd0
lea eax, [ebp - 0x118]
push 0x41d648
push eax
call fcn.0040cfc0
pop ecx
test eax, eax
pop ecx
je 0x40bcd0
cmp dword [ebp - 0x144], 0x10
jne 0x40bcce
push esi
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.0040bf70
push dword [ebp + 8]
lea eax, [ebp - 0x248]
push eax
call fcn.0040c5f0
lea eax, [ebp - 0x248]
push 0x416058
push eax
call fcn.0040c600
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0040c600
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.0040bbc2
add esp, 0x2c
jmp 0x40bcd0
inc dword [ebx]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40bc43
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4101dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41dba0
cmp edx, dword [eax]
je 0x4101ff
add eax, 8
inc ecx
cmp eax, 0x41dc30
jl 0x4101f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41dba0]
jne 0x41032d
mov eax, dword [0x41e968]
cmp eax, 1
je 0x410307
test eax, eax
jne 0x410230
cmp dword [0x41d6d4], 1
je 0x410307
cmp edx, 0xfc
je 0x41032d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410267
lea eax, [ebp - 0x1a4]
push 0x414854
push eax
call fcn.0040c5f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c4a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4102aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c4a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414850
push edi
call fcn.004119c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x414834
push eax
call fcn.0040c5f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c600
lea eax, [ebp - 0xa0]
push 0x414830
push eax
call fcn.0040c600
push dword [esi + 0x41dba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c600
push 0x12010
lea eax, [ebp - 0xa0]
push 0x414808
push eax
call fcn.00411931
add esp, 0x2c
pop edi
jmp 0x41032d
lea eax, [ebp + 8]
lea esi, [esi + 0x41dba4]
push 0
push eax
push dword [esi]
call fcn.0040c4a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401801
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1dc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f0]
push edi
mov ebp, dword [esi + 0x3c]
mov eax, dword [esi + ebp + 0x78]
test eax, eax
je 0x401906
lea edi, [eax + esi]
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x401906
mov eax, dword [edi + 0x1c]
xor edx, edx
add eax, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x24]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
add eax, esi
mov cl, byte [eax]
test cl, cl
je 0x401885
mov esi, dword [esp + 0x10]
lea edx, [esp + 0xe8]
sub edx, eax
or cl, 0x20
inc esi
mov byte [edx + eax], cl
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x401868
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1f4]
mov edx, dword [esp + 0x10]
push dword [esp + 0x204]
lea eax, [esp + 0xec]
mov byte [esp + edx + 0xec], 0
push dword [esp + 0x204]
push eax
call fcn.004037b0
mov dword [esp + 0x24], eax
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffffc
mov dword [esp + 0x1c], edx
lea eax, [eax + ebx*4]
mov dword [esp + 0x10], eax
push dword [esp + 0x204]
mov ecx, dword [eax]
push dword [esp + 0x204]
add ecx, esi
push ecx
call fcn.004037b0
xor eax, dword [esp + 0x24]
add esp, 0xc
xor edx, dword [esp + 0x1c]
cmp eax, dword [esp + 0x1f8]
jne 0x4018f6
cmp edx, dword [esp + 0x1fc]
je 0x401913
mov eax, dword [esp + 0x10]
sub eax, 4
mov dword [esp + 0x10], eax
sub ebx, 1
jne 0x4018c1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2 - 2]
mov edx, dword [ecx + eax*4]
add edx, esi
cmp edx, edi
jb 0x40199f
mov eax, dword [esi + ebp + 0x7c]
add eax, edi
cmp edx, eax
jae 0x40199f
xor ecx, ecx
cmp byte [edx], cl
je 0x401956
lea ebx, [esp + 0x28]
mov edi, edx
sub ebx, edx
cmp ecx, 0x3c
jae 0x401956
mov al, byte [edi]
mov byte [ebx + edi], al
cmp al, 0x2e
je 0x401956
inc ecx
inc edi
cmp byte [edi], 0
jne 0x401941
inc edx
mov dword [esp + ecx + 0x29], 0x6c6c64
add ecx, edx
xor edx, edx
cmp byte [ecx], dl
je 0x40197e
lea edi, [esp + 0x68]
sub edi, ecx
cmp edx, 0x7f
jae 0x40197e
mov al, byte [ecx]
inc edx
mov byte [edi + ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x40196d
lea eax, [esp + 0x68]
mov byte [esp + edx + 0x68], 0
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1fc]
call fcn.004019a6
add esp, 0x10
mov edx, eax
mov eax, edx
jmp 0x401908
Function at 0x4019a6
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
xor ecx, ecx
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
cmp dword [esi + 0x18], ecx
je 0x4019ef
mov ebx, dword [ebp + 0xc]
test ecx, ecx
jne 0x401a0b
cmp dword [esi + 0x18], ebx
je 0x4019e3
push ecx
push dword [ebp + 0x14]
push dword [esi + 0x18]
push edi
call fcn.00403617
add esp, 0x10
mov ecx, eax
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
jne 0x4019c8
test ecx, ecx
jne 0x401a0b
push dword [ebp + 0x10]
push edi
call fcn.00403579
pop ecx
pop ecx
test eax, eax
je 0x401a09
push dword [ebp + 0x14]
push eax
call dword [edi + 0x34]
mov ecx, eax
jmp 0x401a0b
xor ecx, ecx
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x403579
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x40
xor ecx, ecx
push ebx
push esi
or ebx, 0xffffffff
push edi
cmp byte [edx], cl
je 0x4035a4
lea esi, [ebp - 0x40]
sub esi, edx
cmp ecx, 0x40
jae 0x4035a4
mov al, byte [edx]
inc ecx
mov byte [esi + edx], al
inc edx
cmp byte [edx], 0
jne 0x403593
cmp byte [ebp + ecx - 0x44], 0x2e
mov byte [ebp + ecx - 0x40], 0
je 0x4035bd
mov dword [ebp + ecx - 0x40], 0x6c6c642e
mov byte [ebp + ecx - 0x3c], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0xc]
mov esi, dword [edi + 0x18]
test esi, esi
je 0x403604
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
xor eax, eax
test ecx, ecx
je 0x4035fa
mov eax, dword [ecx + esi + 0xc]
add eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040354d
mov ebx, eax
xor eax, eax
pop ecx
pop ecx
test ebx, ebx
je 0x403613
mov edi, dword [edi]
test ebx, ebx
jne 0x4035cc
test eax, eax
jne 0x40360e
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x30]
pop edi
pop esi
pop ebx
leave
ret
mov eax, esi
jmp 0x40360e
Function at 0x403617
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
xor esi, esi
test edi, edi
je 0x403760
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x78]
test eax, eax
je 0x403760
lea ebx, [eax + edi]
mov eax, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
add eax, edi
mov dword [esp + 0x10], eax
add edx, edi
mov eax, dword [ebx + 0x24]
add eax, edi
mov dword [esp + 0x18], edx
cmp dword [esp + 0xa8], esi
je 0x40374c
mov ebp, dword [ebx + 0x18]
test ebp, ebp
je 0x403760
lea eax, [eax + ebp*2]
add eax, 0xfffffffe
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea eax, [eax + ebp*4]
add eax, 0xfffffffc
mov dword [esp + 0x10], eax
mov eax, dword [eax]
push dword [esp + 0xa8]
add eax, edi
push eax
call fcn.00403501
pop ecx
pop ecx
test eax, eax
jne 0x4036b2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax]
mov esi, dword [ecx + eax*4]
add esi, edi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], 2
sub eax, 4
mov dword [esp + 0x10], eax
sub ebp, 1
je 0x4036cb
test esi, esi
je 0x40368b
mov ecx, dword [edi + 0x3c]
cmp esi, ebx
jb 0x403748
mov eax, dword [ecx + edi + 0x7c]
add eax, ebx
cmp esi, eax
jae 0x403748
xor ecx, ecx
cmp byte [esi], cl
je 0x4036ff
lea ebx, [esp + 0x1c]
mov edx, esi
sub ebx, esi
cmp ecx, 0x3c
jae 0x4036ff
mov al, byte [edx]
mov byte [ebx + edx], al
cmp al, 0x2e
je 0x4036ff
inc ecx
inc edx
cmp byte [edx], 0
jne 0x4036ea
mov dword [esp + ecx + 0x1d], 0x6c6c64
xor edx, edx
inc ecx
add ecx, esi
cmp byte [ecx], dl
je 0x403727
lea esi, [esp + 0x5c]
sub esi, ecx
cmp edx, 0x3f
jae 0x403727
mov al, byte [ecx]
inc edx
mov byte [esi + ecx], al
inc ecx
cmp byte [ecx], 0
jne 0x403716
lea eax, [esp + 0x5c]
mov byte [esp + edx + 0x5c], 0
push eax
lea eax, [esp + 0x20]
push eax
push edi
push dword [esp + 0xac]
call fcn.004019a6
add esp, 0x10
mov esi, eax
mov eax, esi
jmp 0x403762
mov eax, dword [esp + 0xac]
sub eax, dword [ebx + 0x10]
mov esi, dword [edx + eax*4]
add esi, edi
jmp 0x4036ce
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret

Function at 0x40376d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
xor ecx, ecx
push esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
jmp 0x4037a4
test ecx, ecx
jne 0x4037ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00401801
mov esi, dword [esi]
add esp, 0x18
mov ecx, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x403784
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x403877
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x20]
and dword [esp + 0x20], 0
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
lea edi, [esp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov eax, edx
mov esi, edi
shl eax, 0x18
mov edi, ebp
shr edx, 8
or edx, eax
shl edi, 0x18
mov eax, dword [esp + 0x10]
add edx, ebx
xor edx, ecx
shr ebp, 8
mov ecx, ebx
or edi, ebp
mov ebp, dword [esp + 0x14]
add edi, eax
xor edi, dword [esp + 0x30]
shr ecx, 0x1d
shl ebx, 3
or ebx, ecx
mov dword [esp + 0x14], esi
mov ecx, eax
xor ebx, edx
shr ecx, 0x1d
shl eax, 3
or ecx, eax
mov eax, dword [esp + 0x30]
xor ecx, edi
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], eax
cmp eax, 0x1b
jb 0x4038af
pop edi
pop esi
mov eax, edx
mov edx, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x403911
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov edx, ecx
push esi
mov esi, dword [esp + 8]
push edi
push 4
sub esi, ecx
pop edi
mov eax, dword [esi + edx]
xor dword [edx], eax
lea edx, [edx + 4]
sub edi, 1
jne 0x403922
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
push ebx
mov ebx, dword [ecx]
push ebp
push 0x10
pop ebp
add ebx, edx
add eax, edi
ror edx, 0x1b
xor edx, ebx
ror edi, 0x18
xor edi, eax
ror ebx, 0x10
add eax, edx
add ebx, edi
ror edx, 0x19
ror edi, 0x13
xor edx, eax
xor edi, ebx
ror eax, 0x10
sub ebp, 1
jne 0x40393f
push 4
mov dword [ecx + 4], edx
pop edx
pop ebp
mov dword [ecx], ebx
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], eax
pop ebx
mov eax, dword [esi + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x403976
pop edi
pop esi
ret
Function at 0x403986
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x24]
test ebx, ebx
je 0x403a24
xor eax, eax
lea ecx, [ebp + 0xf]
inc eax
mov dword [esp + 0x2c], ecx
sub eax, ebp
push esi
mov dword [esp + 0xc], eax
push edi
lea eax, [esp + 0x14]
cmp eax, ecx
ja 0x4039b9
lea eax, [esp + 0x23]
mov esi, ebp
lea edi, [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00403911
mov esi, dword [esp + 0x38]
pop ecx
pop ecx
push 0x10
pop edx
cmp ebx, edx
mov ecx, ebx
cmova ecx, edx
test ecx, ecx
je 0x4039fa
lea edi, [esp + 0x14]
mov edx, esi
sub edi, esi
mov ebp, ecx
mov al, byte [edi + edx]
xor byte [edx], al
inc edx
sub ebp, 1
jne 0x4039ef
mov ebp, dword [esp + 0x10]
sub ebx, ecx
add esi, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], esi
add byte [ecx], 1
jne 0x403a17
dec ecx
lea eax, [ecx + ebp]
test eax, eax
jg 0x403a0a
mov ebp, dword [esp + 0x2c]
lea ecx, [ebp + 0xf]
test ebx, ebx
jne 0x4039ad
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x403a2a
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x18]
and dword [esp + 0x10], 0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov al, byte [ecx]
push esi
push edi
mov byte [ebp], al
or edi, 0xffffffff
lea eax, [ebp + 1]
xor esi, esi
mov dword [esp + 0x18], eax
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.00403bce
pop ecx
test eax, eax
je 0x403ba2
lea eax, [esp + 0x14]
push eax
call fcn.00403bce
test eax, eax
lea eax, [esp + 0x18]
pop ecx
push eax
je 0x403b00
call fcn.00403bce
pop ecx
test eax, eax
je 0x403ac4
push 4
xor esi, esi
pop ebx
lea eax, [esp + 0x14]
push eax
call fcn.00403bce
pop ecx
lea esi, [eax + esi*2]
sub ebx, 1
jne 0x403a92
mov edx, dword [esp + 0x18]
test esi, esi
je 0x403ab7
mov eax, edx
sub eax, esi
mov al, byte [eax]
mov byte [edx], al
jmp 0x403aba
mov byte [edx], 0
mov ebx, dword [esp + 0x10]
inc edx
jmp 0x403bb4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx edi, byte [eax]
inc eax
mov ecx, edi
mov dword [esp + 0x14], eax
and ecx, 1
add ecx, 2
shr edi, 1
je 0x403af4
mov esi, edx
sub esi, edi
mov al, byte [esi]
mov byte [edx], al
inc edx
inc esi
sub ecx, 1
jne 0x403ae4
jmp 0x403b99
xor ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x403b9d
call fcn.00403c05
mov edx, eax
pop ecx
test esi, esi
jne 0x403b37
cmp edx, 2
jne 0x403b37
lea eax, [esp + 0x14]
push eax
call fcn.00403c05
mov edx, dword [esp + 0x1c]
mov esi, eax
pop ecx
test esi, esi
je 0x403b9d
mov ecx, edx
sub ecx, edi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
sub esi, 1
jne 0x403b2a
jmp 0x403b99
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
xor esi, 1
sub edx, esi
shl edx, 8
movzx edi, byte [ecx]
add edi, 0xfffffe00
add edi, edx
inc ecx
push eax
mov dword [esp + 0x18], ecx
call fcn.00403c05
mov edx, dword [esp + 0x1c]
cmp edi, 0x7d00
pop ecx
lea ecx, [eax + 1]
cmovb ecx, eax
cmp edi, 0x500
lea eax, [ecx + 1]
cmovb eax, ecx
cmp edi, 0x80
lea esi, [eax + 2]
cmovae esi, eax
test esi, esi
je 0x403b9d
mov ecx, edx
sub ecx, edi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
sub esi, 1
jne 0x403b8e
mov dword [esp + 0x18], edx
xor esi, esi
inc esi
jmp 0x403bba
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x18], edx
test ebx, ebx
je 0x403a5c
pop edi
pop esi
sub edx, ebp
pop ebp
mov eax, edx
pop ebx
add esp, 0x14
ret