joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b85c
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42b890
call fcn.00421452
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x42b8f8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x42b926
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x42b9c1
cmp dword [esp + 0x14], ebx
je 0x42b9c1
jmp 0x42b963
push 0x10
call fcn.0042b61d
cmp eax, ebx
je 0x42b93c
mov ecx, eax
call fcn.0042b853
mov esi, eax
jmp 0x42b93e
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42b97a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42b98a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x42b996
call fcn.00421452
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.00416700
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x42ba87
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42bab5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42bad3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042b9f1
jmp 0x42bad3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42bad3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042b9f1
test edi, edi
mov eax, edi
jne 0x42babd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44aed4]
test ecx, ecx
je 0x42bb86
jmp 0x42ba86
ret 8
Function at 0x42da58
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push ebx
push esi
push edi
push 0x5f5e100
mov dword [ebp - 0x28], 0x3f4f3c73
mov dword [ebp - 0x24], 0x28755328
mov dword [ebp - 0x20], 0x78667032
mov dword [ebp - 0x1c], 0x55344d38
mov dword [ebp - 0x18], 0x442b3935
mov dword [ebp - 0x14], 0x32734769
mov word [ebp - 0x10], 0x3664
mov byte [ebp - 0xe], 0
mov dword [ebp - 8], ecx
call eax
mov edi, eax
xor ecx, ecx
mov byte [ecx + edi], cl
inc ecx
cmp ecx, 0x5f5e100
jb 0x42daae
movzx eax, byte [edi + 2]
imul edx, eax, 0x15ac8
movzx eax, byte [edi + 0xc8]
add eax, 0x15bedd
add edx, 0x400fff
lea ecx, [eax + eax*2]
mov dword [ebp - 4], edx
movzx eax, byte [edi + 0x64]
imul eax, eax, 0x3e8
add ecx, eax
xor ebx, ebx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi]
mov esi, ebx
sub esi, eax
mov ecx, ebx
add esi, edx
mov eax, 0x2f684bdb
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
imul eax, eax, 0x1b
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x28]
lea ecx, [ebx + 1]
xor byte [esi], al
mov esi, ebx
movzx eax, byte [edi]
sub esi, eax
mov eax, 0x2f684bdb
add esi, dword [ebp - 4]
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 4
imul eax, ecx, 0x1b
mov ecx, ebx
add ebx, 2
sub ecx, eax
invalid
mov dh, 0x44
invalid
Function at 0x704457c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor ebp, ebp
push edi
mov edi, 0x70460429
push esi
push ebx
sub esp, 0xcc
mov esi, dword [esp + 0xe0]
lea eax, [esp + 0x98]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.libtsplayercore.dll_var_GetAndSet
lea edx, [esp + 0xbc]
mov eax, esi
movzx ebx, byte [esp + 0x98]
call fcn.704443b0
mov esi, dword [esp + 0xbc]
test esi, esi
mov edx, eax
je 0x70445913
mov cl, bl
xor ebp, ebp
lea edi, [esp + 0xc]
mov ebx, eax
lea esi, [esp + 0x78]
mov dl, cl
mov ecx, dword [ebx + ebp*4]
mov byte [esp + 0x78], dl
mov eax, dword [esi]
mov dword [esp + 0x6c], ecx
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, 0xc
mov ecx, dword [esi + eax]
mov dword [edi + eax], ecx
add eax, 4
mov ecx, dword [esi + eax]
mov dword [edi + eax], ecx
add eax, 4
mov ecx, dword [esi + eax]
mov dword [edi + eax], ecx
add eax, 4
mov ecx, dword [esi + eax]
mov dword [edi + eax], ecx
add eax, 4
mov ecx, dword [esi + eax]
mov dword [edi + eax], ecx
add eax, 4
cmp eax, 0x20
jae 0x704458d0
mov dword [esp + 0x3c], ebx
mov ecx, dword [esi + eax]
mov dword [edi + eax], ecx
lea ecx, [eax + 4]
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
lea ecx, [eax + 8]
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
lea ecx, [eax + 0xc]
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
lea ecx, [eax + 0x10]
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
lea ecx, [eax + 0x14]
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
lea ecx, [eax + 0x18]
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
lea ecx, [eax + 0x1c]
add eax, 0x20
mov ebx, dword [esi + ecx]
mov dword [edi + ecx], ebx
jb 0x70445880
mov ebx, dword [esp + 0x3c]
nop
mov eax, 0x20
mov ecx, 0x70460429
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
inc ebp
mov dword [esp + 4], ecx
mov byte [esp + 0x68], dl
mov dword [esp], eax
call sub.libtsplayercore.dll_var_SetChecked
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
call fcn.70458b98
movzx edx, byte [esp + 0x68]
cmp dword [esp + 0xbc], ebp
ja 0x7044582a
mov edx, ebx
mov dword [esp], edx
call sub.msvcrt.dll_free
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10008533
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008572
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008572
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008572
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008572
cmp dword [ecx + 0x74], 0xe
jbe 0x10008572
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b1ef
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b28c
push ebx
push esi
call fcn.1000b1b8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b14c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b239
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b28b
push edi
push eax
call fcn.1000c1aa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b259
call fcn.10009c94
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b28a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b14c
add esp, 0x20
test eax, eax
jne 0x1000b278
push edi
call fcn.10009c94
jmp 0x1000b280
push ebx
call fcn.10009c94
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000b4f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012678
push 0x10012670
push str.FlsAlloc
push 0x1f
call fcn.1000b415
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b52d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001114c]
call esi
jmp 0x1000b533
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b577
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012688
push 0x10012680
push str.FlsGetValue
push 0x21
call fcn.1000b415
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b5ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001114c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b5b6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10012690
push 0x10012688
push str.FlsSetValue
push 0x22
call fcn.1000b415
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b5f0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001114c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10010c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x3c
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4780b0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0x50c00
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x477c00
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x477c00
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000108c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebx
push ecx
push 1
pop eax
cpuid
test ecx, 0x40000000
setne al
test al, al
je 0x100010a9
rdrand eax
rdrand edx
pop ecx
pop ebx
ret
push 7
pop eax
xor ecx, ecx
cpuid
test ebx, 0x40000
setne al
test al, al
je 0x100010c6
rdseed eax
rdseed edx
pop ecx
pop ebx
ret
rdtsc
mov ecx, eax
ror ecx, 0xd
rdtsc
mov edx, eax
rol edx, 0xd
mov eax, ecx
pop ecx
pop ebx
ret

Function at 0x10001184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
xor dword [ecx], 0x2d03bfe2
not dword [ecx]
add ecx, 4
dec edx
jne 0x1000118f
pop edx
pop ecx
pop ebp
ret 8

Function at 0x100012e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x104]
xor al, al
stosb byte es:[edi], al
mov ecx, 0x2a
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3e
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov al, 0x3f
stosb byte es:[edi], al
mov ecx, 0xa
mov al, 0x34
stosb byte es:[edi], al
inc al
loop 0x10001316
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
xor al, al
stosb byte es:[edi], al
mov ecx, 3
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
xor al, al
stosb byte es:[edi], al
inc al
loop 0x10001337
mov dl, al
mov ecx, 6
mov al, 0xff
rep stosb byte es:[edi], al
mov ecx, 0x1a
mov al, dl
stosb byte es:[edi], al
inc al
loop 0x1000134e
mov ecx, 0x85
mov al, 0xff
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edi
mov al, byte [edi]
add edi, 4
test al, al
jne 0x10001363
lea ebx, [edi - 4]
mov eax, 0x3d
sub ebx, esi
je 0x100013f5
cmp al, byte [esi + ebx - 1]
sete dl
jne 0x10001385
mov byte [esi + ebx - 1], ah
cmp al, byte [esi + ebx - 2]
sete al
jne 0x10001392
mov byte [esi + ebx - 2], ah
add al, dl
mov edi, dword [ebp + 0xc]
shr ebx, 2
lea edx, [ebx + ebx*2]
sub edx, eax
push edx
mov dword [ebp - 4], ebx
mov ecx, dword [esi]
movzx edx, cl
movzx ebx, ch
push edi
lea edi, [ebp - 0x104]
mov al, byte [edx + edi]
mov ah, byte [ebx + edi]
shr ecx, 0x10
add esi, 4
movzx edx, cl
movzx ecx, ch
mov bl, byte [edx + edi]
mov bh, byte [ecx + edi]
pop edi
mov dl, ah
mov dh, bl
shl al, 2
shr bl, 2
shl dh, 6
shl ah, 4
shr dl, 4
or bh, dh
or al, dl
or ah, bl
mov byte [edi], al
mov byte [edi + 2], bh
mov byte [edi + 1], ah
dec dword [ebp - 4]
lea edi, [edi + 3]
jne 0x100013a3
pop eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10001400
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push ecx
push edx
push esi
push edi
lea edi, [ebp - 0x44]
mov eax, 0x44434241
stosd dword es:[edi], eax
mov eax, 0x48474645
stosd dword es:[edi], eax
mov eax, 0x4c4b4a49
stosd dword es:[edi], eax
mov eax, 0x504f4e4d
stosd dword es:[edi], eax
mov eax, 0x54535251
stosd dword es:[edi], eax
mov eax, 0x58575655
stosd dword es:[edi], eax
mov eax, 0x62615a59
stosd dword es:[edi], eax
mov eax, 0x66656463
stosd dword es:[edi], eax
mov eax, 0x6a696867
stosd dword es:[edi], eax
mov eax, 0x6e6d6c6b
stosd dword es:[edi], eax
mov eax, 0x7271706f
stosd dword es:[edi], eax
mov eax, 0x76757473
stosd dword es:[edi], eax
mov eax, 0x7a797877
stosd dword es:[edi], eax
mov eax, 0x33323130
stosd dword es:[edi], eax
mov eax, 0x37363534
stosd dword es:[edi], eax
mov eax, 0x2f2b3938
stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x10001482
jmp 0x100014dd
mov al, byte [esi]
mov dl, byte [esi + 1]
mov bl, byte [esi + 2]
mov ah, al
mov dh, dl
mov bh, bl
and ah, 3
and dh, 0xf
and bh, 0x3f
shr al, 2
shr dl, 4
shr bl, 6
shl ah, 4
shl dh, 2
or ah, dl
or bl, dh
movzx edx, al
movzx ecx, ah
push esi
lea esi, [ebp - 0x44]
mov al, byte [edx + esi]
mov ah, byte [ecx + esi]
movzx edx, bl
movzx ecx, bh
mov bl, byte [edx + esi]
mov bh, byte [ecx + esi]
pop esi
and eax, 0xffff
shl ebx, 0x10
add esi, 3
or eax, ebx
stosd dword es:[edi], eax
sub dword [ebp - 4], 3
jns 0x1000147a
cmp dword [ebp - 4], 0
je 0x100014ef
add edi, dword [ebp - 4]
mov byte [edi], 0x3d
inc edi
inc dword [ebp - 4]
jne 0x100014e6
mov eax, edi
mov word [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop edx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000af38
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
push 1
push 0
push 0
call dword [0x1002659c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000b017
lea eax, [ebp - 0x54]
mov dword [eax], 0x2d71bfb6
mov dword [eax + 4], 0x2d70bf97
mov dword [eax + 8], 0x2d66bf96
mov dword [eax + 0xc], 0x2d4abf86
mov dword [eax + 0x10], 0x2d70bf8c
mov dword [eax + 0x14], 0x2d62bf96
mov dword [eax + 0x18], 0x2d6fbf8e
mov dword [eax + 0x1c], 0x2d71bf87
mov dword [eax + 0x20], 0x2d03bfe2
mov ecx, 9
xor dword [eax], 0x2d03bfe2
add eax, 4
dec ecx
jne 0x1000afb2
push 0x14
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [0x100265a4]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000b017
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 8]
call dword [0x100265b4]
test eax, eax
jne 0x1000aff8
jmp 0x1000b017
cmp dword [ebp - 0x2c], 1
jne 0x1000b013
push 0
push 0
push dword [ebp - 8]
call dword [0x100265ac]
test eax, eax
jne 0x1000b011
jmp 0x1000b017
jmp 0x1000afd6
jmp 0x1000b017
cmp dword [ebp - 8], 0
je 0x1000b026
push dword [ebp - 8]
call dword [0x100265c0]
cmp dword [ebp - 4], 0
je 0x1000b035
push dword [ebp - 4]
call dword [0x100265c0]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x1001886c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
test dword [ebx + 0x44], 0x40000000
je 0x1001888a
ror ebx, 1
lea esi, str.c0aZ1h_
push dword [esi - 4]
call fcn.100087d8
mov edi, eax
test edi, edi
je 0x10018928
push esi
push edi
mov ecx, dword [esi - 4]
lodsb al, byte [esi]
xor al, 0x30
stosb byte es:[edi], al
dec ecx
test ecx, ecx
jne 0x100188a7
pop edi
pop esi
mov esi, dword [esi - 4]
push dword [ebp + 0xc]
pop dword [ebp - 8]
lea eax, [esi*2]
push eax
push 8
push ebx
call dword [ebp - 8]
mov esi, eax
test esi, esi
je 0x10018922
push esi
push edi
call fcn.10018b00
add esp, 8
lea esi, [esi + 0x83]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10018934
mov dword [0x1002615c], eax
lea esi, [esi + 0x41]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10018934
mov dword [0x10026154], eax
lea esi, [esi + 0xd7]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10018934
mov dword [0x10026158], eax
mov dword [ebp - 4], 1
push edi
call fcn.10008800
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10018b00
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x10018b24
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10018b0c
add dl, dl
jne 0x10018b2f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10018b80
xor eax, eax
add dl, dl
jne 0x10018b3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10018c1d
add dl, dl
jne 0x10018b4b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10018b56
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10018b61
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10018b6c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10018b76
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10018b1b
mov eax, 1
add dl, dl
jne 0x10018b8e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10018b99
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10018b85
sub eax, ebx
mov ebx, 1
jne 0x10018bcc
mov ecx, 1
add dl, dl
jne 0x10018bb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10018bbd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10018ba9
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10018b1b
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10018be3
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10018bee
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10018bda
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10018b1b
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10018c3e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10018b1b
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret