joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002fea0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x100d24e0]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1003005b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1003005b
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x100d24e0]
add esp, 4
mov edi, eax
test esi, esi
je 0x1002ff44
movsx edx, word [esi + 0x5f40]
lea eax, [esi + 0x5f44]
mov ecx, dword [esi + 0x3f30]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x1002ff3a
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5f40], ax
cwde
lea eax, [eax*8 + 0x5f44]
add eax, esi
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5f38]
test edi, edi
je 0x1002ff57
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1002ff59
xor edi, edi
or dword [ebx + 0xc], 6
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x1002ff94
mov esi, dword [esi + 0x74]
jmp 0x1002ff96
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1002ffb9
mov dword [esi], eax
mov eax, dword [0x100d24e0]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a84]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x29], 1
nop word [eax + eax]
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x10030029
inc esi
cmp esi, 5
jl 0x10030000
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a95f7
mov esp, ebp
pop ebp
ret
Function at 0x1004e8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x1004e8f4
push dword [edi + 0x74]
call eax
add esp, 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x1004e959
nop dword [eax + eax]
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x1004e952
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x1004e926
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x1004e915
jmp 0x1004e952
test edx, edx
jne 0x1004e92f
mov dword [ebx + 0x54], ecx
jmp 0x1004e932
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004e93f
push esi
call eax
add esp, 4
push esi
call fcn.1004edf0
mov eax, dword [ebp - 4]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x1004e900
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x6c]
mov dword [ebp - 8], eax
test eax, eax
je 0x1004e9e4
test ebx, ebx
je 0x1004e9e4
mov ebx, dword [eax]
test ebx, ebx
je 0x1004e9d4
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x1004e989
push esi
call eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x1004e99c
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1004e9ad
push eax
mov eax, dword [edi + 8]
push edi
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [edi + 8]
push esi
push edi
call eax
mov eax, dword [edi + 8]
push ebx
push edi
call eax
mov eax, dword [ebp - 4]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x1004e973
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x1004e9f8
push edi
call eax
add esp, 4
push ebx
push edi
call fcn.1004e850
mov eax, dword [ebp - 0xc]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1004ea12
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x1004ea48
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x1004ea35
push esi
call ecx
mov eax, dword [ebp + 0x10]
add esp, 4
test dword [ebp + 0xc], 0x400
jne 0x1004ea48
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
test eax, eax
je 0x1004ea6d
push eax
mov eax, dword [ebx + 8]
push ebx
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebx + 8]
push edi
push ebx
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a4820
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100a4836
lea eax, [esi + 0x28]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100a4865
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x100a495f
mov ecx, dword [ebp - 8]
test ecx, ecx
jg 0x100a495f
mov eax, dword [ebp - 0xc]
jl 0x100a489c
cmp eax, 0x7fffffff
ja 0x100a495f
or eax, ecx
je 0x100a495f
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x100a495f
mov ecx, dword [ebp - 0xc]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call dword [ebp + 8]
cmp dword [esi], 0
je 0x100a48ed
mov eax, 0x100a49c0
jmp 0x100a492e
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x100a495f
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a4950
add edi, dword [ebp - 4]
cmp edi, dword [esi + 4]
jne 0x100a4905
mov eax, 0x100a4990
push ebx
mov dword [esi + 0x18], eax
call dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [ebp + 8]
pop edi
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100a5e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
test edx, edx
jne 0x100a5e13
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
not eax
cmp esi, 8
jb 0x100a5ece
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
sub edi, 1
jne 0x100a5e27
pop edi
test esi, esi
je 0x100a5eec
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x100c5510]
sub esi, 1
jne 0x100a5ed2
not eax
pop esi
pop ebp
ret
Function at 0x40bb30
Capabilities:
Decompress data using quicklz

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40bcfe
sub esp, 0x38
mov eax, dword [esp + 0x3c]
cmp eax, 0x7000000
jle 0x40bb5b
mov eax, 0x7000000
jmp 0x40bb63
test eax, eax
je 0x40bcd9
mov dword [esp + 0x14], eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x94]
mov ebx, dword [ecx + 0x98]
mov dword [ecx + 0x94], ebx
mov ebp, edx
shl edx, 0x11
xor edx, ebp
mov ebp, ebx
xor ebx, edx
shr edx, 7
xor edx, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, edx
mov dword [ecx + 0x98], ebp
lea ecx, [ebp + ebx]
shr ecx, 6
inc ecx
mov dword [esp], ecx
call fcn.00461c20
movsd xmm0, qword [esp + 4]
movsd qword [esp + 0x28], xmm0
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr eax, 0x14
and eax, 0x7ff
mov edx, eax
add eax, 0xfffffc01
mov ebx, ecx
shr ecx, 0xf
and ecx, 0x1f
mov ebp, ecx
add ecx, 1
mov esi, 0
adc esi, 0
shl ebx, 5
mov edi, dword [esp + 0x28]
shr edi, 0x1b
or edi, ebx
lea ebx, [0x63dce0]
movsd xmm0, qword [ebx + ebp*8]
test esi, esi
jne 0x40bcf1
cmp ecx, 0x21
jae 0x40bce5
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x10], edi
add edx, 0xfffffc01
mov edx, 0xffffffff
adc edx, 0
movsd xmm0, qword [ebx + ecx*8]
movsd qword [esp + 0x20], xmm0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0045b970
movsd xmm0, qword [esp + 8]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x10]
and eax, 0xfffff
mov dword [esp], eax
call fcn.0045ba40
movsd xmm0, qword [esp + 0x30]
movsd xmm1, qword [esp + 0x18]
addsd xmm0, xmm1
movsd xmm2, qword [esp + 0x20]
subsd xmm2, xmm1
movsd xmm1, qword [esp + 8]
mulsd xmm1, xmm2
movsd xmm2, qword [0x581268]
mulsd xmm2, xmm1
addsd xmm0, xmm2
movsd xmm1, qword [0x5812d0]
subsd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm0, xmm1
jbe 0x40bcb4
xorps xmm0, xmm0
mov eax, dword [esp + 0x14]
cvtsi2sd xmm1, eax
movsd xmm2, qword [0x581330]
mulsd xmm1, xmm2
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
inc eax
mov dword [esp + 0x40], eax
add esp, 0x38
ret
mov dword [esp + 0x40], 0
add esp, 0x38
ret
mov eax, ecx
mov ecx, 0x21
call fcn.00461d00
mov eax, ecx
mov ecx, 0x21
call fcn.00461db0
nop
call fcn.00460860
jmp fcn.0040bb30
Function at 0x413f00
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x414124
sub esp, 0x18
mov eax, dword [0x92b340]
test eax, eax
jne 0x41410d
nop
lea eax, [0x92b32c]
mov dword [esp], eax
call fcn.00409920
mov eax, dword [0x92b330]
test eax, eax
je 0x413f49
cmp dword [eax + 8], 0xcc
jne 0x413fbf
mov edx, dword [0x92b324]
test edx, edx
jne 0x413fa1
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x92e450]
mov dword [esp + 8], eax
call fcn.0040bd10
mov eax, dword [esp + 0xc]
mov dword [0x92b324], eax
mov ecx, dword [0x92b2e8]
mov dword [eax], ecx
mov eax, dword [0x92b324]
mov dword [0x92b2e8], eax
movzx eax, byte [0x92b8c0]
test al, al
jne 0x413fa1
xor eax, eax
jmp 0x4140b9
mov edx, dword [0x92b324]
mov ebx, dword [edx + 4]
mov dword [0x92b324], ebx
mov ebx, dword [0x92b330]
mov dword [edx + 4], ebx
mov dword [0x92b330], edx
mov edx, dword [0x92b330]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x4140a1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x92b5b0]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x41401d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x41402a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.00461c70
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x92b5b0]
test edx, edx
jne 0x414056
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x414077
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.00461c70
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.00461c70
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.00461c70
nop
lea eax, [0x92b32c]
mov dword [esp], eax
call fcn.00409b20
nop
lea eax, [0x92b328]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.004022c0
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.00461d00
lea esi, [0x92b8c0]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x413fa1
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x414103
lea edx, [0x6392d8]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x4140ab
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.00461cf0
mov ecx, 5
call fcn.00461cf0
lea eax, [0x54ab0f]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00435740
nop
call fcn.00460860
jmp fcn.00413f00
Function at 0x427ae0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x427bfc
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x427b75
cmp cl, 2
je 0x427b1d
cmp cl, 3
jne 0x427be5
mov byte [eax + 8], 1
jmp 0x427be1
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042cd10
nop
lea eax, [0x90f8b8]
mov dword [esp], eax
call fcn.00409920
nop
mov eax, dword [0x90f884]
sub eax, dword [0x90f868]
mov dword [0x90f884], eax
mov eax, dword [0x90f874]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x90f874], ecx
nop
lea eax, [0x90f8b8]
mov dword [esp], eax
call fcn.00409b20
jmp 0x427be1
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00413f00
nop
lea eax, [0x90f8b8]
mov dword [esp], eax
call fcn.00409920
nop
mov eax, dword [0x90f85c]
sub eax, dword [0x90f840]
mov dword [0x90f85c], eax
mov eax, dword [0x90f84c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x90f84c], ecx
nop
nop
lea eax, [0x90f8b8]
mov dword [esp], eax
call fcn.00409b20
add esp, 0x14
ret
lea eax, [0x5466e7]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.00435740
nop
call fcn.00460860
jmp fcn.00427ae0
Function at 0x450920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x450aa7
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x450a9d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x45097c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x45097c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x45098f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x450a72
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x450a64
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x450a5b
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x4509e6
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x450a2f
mov eax, 1
cmp eax, ecx
ja 0x450a1d
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.00461d60
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x450a56
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x450a22
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x4509eb
call fcn.00461d00
xor eax, eax
mov ecx, eax
call fcn.00461cf0
call fcn.00461d60
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x450a98
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x450a69
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x450994
call fcn.00461d00
xor eax, eax
mov ecx, eax
call fcn.00461cf0
nop
call fcn.00460860
jmp fcn.00450920
Function at 0x4584e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45857f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00461e47
lea ecx, [0x458590]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.00460750
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.00460860
jmp fcn.004584e0
Function at 0x461b20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x92b6a0]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4602eb
je 0x46033e
cmp ebx, 0x20
jbe 0x460344
cmp ebx, 0x40
jbe 0x46038a
jmp 0x46042b
test ebx, ebx
je 0x460334
add eax, 0x10
test ax, 0xff0
je 0x460320
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x5820c0]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x5822c0]
jmp 0x460308
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x460308
pxor xmm1, xmmword [0x92b6b0]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x92b6b0]
pxor xmm2, xmmword [0x92b6c0]
pxor xmm3, xmmword [0x92b6d0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x92b6b0]
pxor xmm2, xmmword [0x92b6c0]
pxor xmm3, xmmword [0x92b6d0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46048a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x92b274], 0
je 0x461b3a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x4602b0
jmp fcn.00408370
Function at 0xafb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00afb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xafb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xafb06a
add dl, dl
jne 0xafb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xafb0dc
xor eax, eax
add dl, dl
jne 0xafb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xafb17d
add dl, dl
jne 0xafb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xafb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xafb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xafb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xafb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xafb075
mov eax, 1
add dl, dl
jne 0xafb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xafb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xafb0e1
sub eax, ebx
mov ebx, 1
jne 0xafb128
mov ecx, 1
add dl, dl
jne 0xafb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xafb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xafb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xafb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xafb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xafb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xafb136
cmp eax, 0x7d00
jae 0xafb16d
cmp eax, 0x500
jb 0xafb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xafb075
cmp eax, 0x7f
ja 0xafb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xafb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xafb19e
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 0xafb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10