joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401890
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406068]
test esi, esi
jle 0x4019b0
mov eax, dword [0x40606c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4018c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401947
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4018b0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4019d7
mov eax, dword [0x40606c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40606c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4019b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401940
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401950
add dword [0x406068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40606c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4018ce
mov eax, dword [0x40606c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x401ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40607c]
sub esp, 4
test ebx, ebx
je 0x401f45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f3e
test esi, esi
je 0x401f3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f20
mov dword [esp], 0x406084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402280
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4022a5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4022b0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4022a5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4022f8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4022ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4022fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4022e0
xor eax, eax
pop ebx
pop esi
ret

Function at 0xb16058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb161a8
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 0xb1607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1606a
add dl, dl
jne 0xb16089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb160dc
xor eax, eax
add dl, dl
jne 0xb16096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb1617d
add dl, dl
jne 0xb160a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb160b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb160bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb160c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb160d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb16075
mov eax, 1
add dl, dl
jne 0xb160ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb160f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb160e1
sub eax, ebx
mov ebx, 1
jne 0xb16128
mov ecx, 1
add dl, dl
jne 0xb1610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb16119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb16105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb16075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb1613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb1614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb16136
cmp eax, 0x7d00
jae 0xb1616d
cmp eax, 0x500
jb 0xb16168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb16075
cmp eax, 0x7f
ja 0xb16170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb16075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb1619e
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 0xb16075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1000c150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b1373
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100ea814]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.NCompress::NRar3::CDecoder.1.0
mov dword [esi + 4], vtable.NCompress::NRar3::CDecoder.0
mov dword [esp + 0x14], 4
call fcn.1000b370
mov ecx, dword [esi + 0x1554]
call fcn.10022a2b
mov ecx, dword [esi + 0x58]
call fcn.10022a2b
lea ecx, [esi + 0x15c4]
mov edx, 0x100e46d8
call fcn.1002ce50
lea ecx, [esi + 0x159c]
mov byte [esp + 0x14], 3
call fcn.1000226b
lea ecx, [esi + 0x1588]
mov byte [esp + 0x14], 2
call fcn.1000226b
lea ecx, [esi + 0x155c]
mov byte [esp + 0x14], 1
call fcn.1000c370
mov eax, dword [esi + 0x88]
mov byte [esp + 0x14], 0
test eax, eax
je 0x1000c1fc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0xffffffff
call fcn.10006738
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x1000d6d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov dword [ebp - 8], ecx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
xor al, al
inc ecx
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 1], al
cmp esi, ecx
jbe 0x1000d6fd
xor al, byte [ecx + edi]
inc ecx
cmp ecx, esi
jb 0x1000d6f2
mov byte [ebp - 1], al
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.10002200
mov al, byte [ebp - 1]
or dword [ebx + 0x14], 0xffffffff
cmp al, byte [edi]
jne 0x1000d731
test esi, esi
jbe 0x1000d731
mov ecx, edi
call fcn.1000c5a3
mov dword [ebx + 0x14], eax
test eax, eax
jge 0x1000d76d
mov ecx, dword [ebp - 8]
push ebx
dec esi
push esi
inc edi
push edi
call fcn.1000d478
push 3
pop eax
xor ecx, ecx
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
push 8
pop ecx
mov edi, esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.1000ca5c
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
shl eax, 5
mov dword [eax + ecx - 0x20], 0x16
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000da88
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x1000da9f
add eax, eax
xor eax, 0x4c11db7
jmp 0x1000daa1
add eax, eax
dec edx
test edx, edx
jg 0x1000da92
mov dword [ecx*4 + 0x100eb810], eax
inc ecx
cmp ecx, 0x100
jb 0x1000da8a
ret
Function at 0x1000dd0a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi + eax*4]
or dword [ebp - 4], 0xffffffff
shr eax, 8
and dword [ebp - 8], 0
push ebx
mov ebx, dword [esi + eax*4]
push edi
movzx edi, bl
movzx eax, bl
shr ebx, 8
cmp dword [ebp - 8], 4
mov ebx, dword [esi + ebx*4]
mov dword [ebp - 0xc], eax
jne 0x1000dd68
test eax, eax
jbe 0x1000dd62
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
shr eax, 0x18
shl ecx, 8
xor eax, edi
xor ecx, dword [eax*4 + 0x100eb810]
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
call fcn.10006613
dec dword [ebp - 0xc]
jne 0x1000dd3c
and dword [ebp - 8], 0
jmp 0x1000dd96
cmp eax, edi
je 0x1000dd70
and dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
inc dword [ebp - 8]
shr ecx, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x100eb810]
mov ecx, dword [ebp + 0xc]
push eax
mov edi, eax
mov dword [ebp - 4], edx
call fcn.10006613
dec dword [ebp + 8]
jne 0x1000dd26
mov eax, dword [ebp - 4]
pop edi
not eax
pop ebx
leave
ret 8

Function at 0x1000dda6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [esi + ecx*4]
or dword [ebp - 4], 0xffffffff
and dword [ebp - 8], 0
xor eax, eax
inc eax
shr ecx, 8
push ebx
mov ebx, dword [esi + ecx*4]
movzx ecx, bl
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x269
mov dword [ebp - 0x10], ecx
jmp 0x1000ddd7
mov eax, dword [ebp - 0x14]
movzx edi, bl
shr ebx, 8
cmp dword [ebp - 0xc], 0
mov ebx, dword [esi + ebx*4]
jne 0x1000ddfd
movzx ecx, word [eax*2 + 0x100bec40]
xor edi, 1
inc eax
and eax, 0x1ff
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
dec dword [ebp - 0xc]
cmp dword [ebp - 8], 4
jne 0x1000de37
test edi, edi
jbe 0x1000de31
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x10]
shr eax, 0x18
xor eax, dword [ebp - 0x10]
shl ecx, 8
xor ecx, dword [eax*4 + 0x100eb810]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
call fcn.10006613
dec edi
jne 0x1000de0a
and dword [ebp - 8], 0
jmp 0x1000de67
cmp edi, dword [ebp - 0x10]
je 0x1000de40
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
inc dword [ebp - 8]
shr eax, 0x18
shl ecx, 8
xor eax, edi
xor ecx, dword [eax*4 + 0x100eb810]
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
call fcn.10006613
dec dword [ebp + 8]
jne 0x1000ddd4
mov eax, dword [ebp - 4]
pop edi
not eax
pop ebx
leave
ret 8
Function at 0x1000ff5f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x31
mov esi, ecx
call fcn.1000f830
push 0x41
mov ecx, esi
call fcn.1000f830
push 0x59
mov ecx, esi
call fcn.1000f830
push 0x26
mov ecx, esi
call fcn.1000f830
push 0x53
mov ecx, esi
call fcn.1000f830
push 0x59
mov ecx, esi
call fcn.1000f830
mov edi, dword [ebp + 8]
mov cl, byte [edi]
or eax, 0xffffffff
xor edx, edx
mov byte [ebp + 0xb], cl
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edi]
cmp edx, 4
jne 0x1000ffd8
test cl, cl
jbe 0x1000ffd4
movzx edx, byte [ebp + 0xb]
mov ebx, eax
shr ebx, 0x18
xor ebx, edx
shl eax, 8
xor eax, dword [ebx*4 + 0x100eb810]
dec cl
jne 0x1000ffbf
xor edx, edx
jmp 0x1000fffa
cmp byte [ebp + 0xb], cl
jne 0x1000ffe0
inc edx
jmp 0x1000ffe6
xor edx, edx
inc edx
mov byte [ebp + 0xb], cl
mov ebx, eax
movzx ecx, cl
shr ebx, 0x18
xor ebx, ecx
shl eax, 8
xor eax, dword [ebx*4 + 0x100eb810]
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jb 0x1000ffac
not eax
mov ebx, eax
push ebx
mov ecx, esi
call fcn.1000f854
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.1000f8cf
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x100104cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push edi
xor ebx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x8ce0]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 8
mov byte [ebp - 0x10], bl
mov dword [esi + 0x8cd4], ebx
push dword [eax + 0x170]
push dword [ebp + 8]
push dword [esi]
call fcn.10010025
mov eax, dword [esi + 0x8ce0]
cmp byte [eax + 0x19c], bl
je 0x1001053a
mov ecx, dword [esi + 0x8cd8]
mov eax, dword [eax + 0x178]
imul ecx, ecx, 0x8e00
mov ecx, dword [ecx + eax + 0x8cf0]
call fcn.100309c2
xor edx, edx
cmp dword [esi + 0x8cd4], ebx
jbe 0x10010569
lea ecx, [esi + 0x7cd4]
mov eax, dword [esi + 0x8ce0]
add eax, 0x174
mov edi, dword [eax]
rol edi, 1
xor edi, dword [ecx]
inc edx
mov dword [eax], edi
add ecx, 4
cmp edx, dword [esi + 0x8cd4]
jb 0x1001054a
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x10]
mov ecx, dword [esi + 0x8ce0]
lea eax, [eax*8 + 8]
sub eax, dword [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.100101d4
mov eax, dword [esi + 0x8ce0]
cmp byte [eax + 0x19c], bl
je 0x100105fd
mov edi, dword [esi + 0x8cd8]
inc edi
cmp edi, dword [eax + 0x198]
jne 0x100105a7
xor edi, edi
cmp dword [eax + 0x1b0], ebx
je 0x100105df
lea ecx, [eax + 0x140]
call fcn.1000f72a
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x8ce0]
mov eax, dword [eax + 0x1b0]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
lea edx, [esi + 0x8cf8]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov eax, dword [esi + 0x8ce0]
imul edi, edi, 0x8e00
mov eax, dword [eax + 0x178]
lea ecx, [eax + edi + 0x8cf0]
call fcn.10030a1a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1001a8f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x100ea814]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x4c]
push esi
push edi
push 0x40
lea eax, [esp + 0x10]
push 0
push eax
mov esi, ecx
call fcn.1009c4c0
mov edi, dword [esp + 0x64]
add esp, 0xc
cmp edi, 0x40
jbe 0x1001a946
mov ecx, esi
call fcn.1001bf30
push edi
push ebx
mov ecx, esi
mov dword [esi + 0x20], 0
call fcn.1001c770
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.1001c910
jmp 0x1001a959
test edi, edi
jbe 0x1001a959
push edi
lea edx, [esp + 0x10]
push ebx
push edx
call fcn.1009b920
add esp, 0xc
xor eax, eax
jmp 0x1001a960
xor byte [esp + eax + 0xc], 0x36
inc eax
cmp eax, 0x40
jb 0x1001a960
mov ecx, esi
call fcn.1001bf30
push 0x40
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esi + 0x20], 0
call fcn.1001c770
xor eax, eax
lea esp, [esp]
xor byte [esp + eax + 0xc], 0x6a
inc eax
cmp eax, 0x40
jb 0x1001a990
add esi, 0x68
mov ecx, esi
call fcn.1001bf30
push 0x40
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esi + 0x20], 0
call fcn.1001c770
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10098b4f
add esp, 0x44
ret 8
Function at 0x1001aa40
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc0
mov eax, dword [0x100ea814]
xor eax, esp
mov dword [esp + 0xbc], eax
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xd4]
xor ebp, ebp
push edi
mov edi, dword [esp + 0xd4]
mov ebx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
cmp esi, 0x40
jbe 0x1001abdf
lea ecx, [esp + 0x50]
call fcn.1001bf30
push esi
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x78], ebp
call fcn.1001c770
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x54]
call fcn.1001c910
movzx ecx, byte [esp + 0xb8]
movzx edx, byte [esp + 0xb9]
movzx eax, byte [esp + 0xba]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xbb]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0xbc]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xbe]
mov dword [esp + 0x10], ecx
movzx ecx, byte [esp + 0xbd]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0xbf]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0xc0]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0xc2]
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0xc1]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0xc3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esp + 0xc4]
shl edx, 8
or edx, eax
movzx eax, byte [esp + 0xc6]
shl ecx, 8
mov dword [esp + 0x18], edx
movzx edx, byte [esp + 0xc5]
or ecx, edx
movzx edx, byte [esp + 0xc7]
shl ecx, 8
or ecx, eax
movzx eax, byte [esp + 0xc8]
shl ecx, 8
or ecx, edx
movzx edx, byte [esp + 0xca]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [esp + 0xc9]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0xcb]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [esp + 0x20], eax
jmp 0x1001ac0f
xor eax, eax
cmp esi, ebp
jbe 0x1001ac0f
mov ebp, eax
and ebp, 3
mov ecx, 3
sub ecx, ebp
movzx ebp, byte [edi + eax]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, eax
shl ebp, cl
shr edx, 2
lea edx, [esp + edx*4 + 0x10]
inc eax
or dword [edx], ebp
cmp eax, esi
jb 0x1001abe5
xor ebp, ebp
xor eax, eax
xor dword [esp + eax*4 + 0x10], 0x36363636
inc eax
cmp eax, 0x10
jb 0x1001ac11
mov ecx, ebx
call fcn.1001bf30
push 0x10
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov dword [ebx + 0x20], ebp
call fcn.1001ca70
xor eax, eax
lea esp, [esp]
xor dword [esp + eax*4 + 0x10], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x1001ac40
lea esi, [ebx + 0x68]
mov ecx, esi
call fcn.1001bf30
push 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esi + 0x20], ebp
call fcn.1001ca70
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10098b4f
add esp, 0xc0
ret 8
Function at 0x1001ace0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
push edi
push 5
lea eax, [esp + 0x14]
push eax
mov edi, ecx
call fcn.1001c6b0
push 5
lea ecx, [esp + 0x54]
lea ebx, [edi + 0x68]
push ecx
mov ecx, ebx
call fcn.1001c6b0
mov esi, dword [esp + 0x94]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x98]
mov ecx, dword [esi + 8]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
test ebp, ebp
jbe 0x1001ad8d
lea ecx, [ecx]
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.1001bf60
push 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, ebx
call fcn.1001bf60
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
xor dword [esi], edx
xor dword [esi + 4], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor dword [esi + 8], ecx
xor dword [esi + 0xc], edx
xor dword [esi + 0x10], eax
sub ebp, 1
jne 0x1001ad40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 8

Function at 0x1001bf30
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
ret
Function at 0x1001d260
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xac
mov eax, dword [0x100ea814]
xor eax, esp
mov dword [esp + 0xa8], eax
movzx eax, byte [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push edi
push 0x40
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.1009c4c0
mov edi, esi
lea edx, [esp + 0x7c]
add esp, 0xc
xor ecx, ecx
sub edi, edx
nop
lea eax, [esp + ecx + 0x70]
movzx edx, byte [edi + eax]
xor byte [eax], dl
movzx edx, byte [esi + ecx + 1]
xor byte [eax + 1], dl
movzx edx, byte [esi + ecx + 2]
xor byte [eax + 2], dl
movzx edx, byte [esi + ecx + 3]
xor byte [eax + 3], dl
movzx edx, byte [esi + ecx + 4]
xor byte [eax + 4], dl
add ecx, 5
cmp ecx, 0x14
jb 0x1001d2a0
lea ecx, [esp + 8]
call fcn.1001bf30
push 0x40
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.1001c770
push ebp
lea ecx, [esp + 0xc]
call fcn.1001c910
mov ecx, dword [esp + 0xb0]
pop edi
pop ebp
xor ecx, esp
call fcn.10098b4f
add esp, 0xac
ret 8

Function at 0x10021420
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 + 0x100ef8c0], ecx
inc edx
cmp edx, 0x100
jb 0x10021422
cmp edx, 0x800
jae 0x100214f9
lea esp, [esp]
mov eax, dword [edx*4 + 0x100ef4c0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x100ef8c0]
inc edx
mov dword [edx*4 + 0x100ef8bc], eax
cmp edx, 0x800
jb 0x100214d0
mov dword [0x100ec05c], 0x10021320
call fcn.100239ad
test eax, eax
jne 0x10021516
mov dword [0x100ec05c], 0x100213d0
ret
Function at 0x10021ad0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
add eax, 3
push esi
mov dword [ecx], eax
add ecx, 0x10
xor esi, esi
mov dword [esp + 0xc], ebp
test ebx, ebx
jbe 0x10021b01
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x10021af4
cmp esi, ebp
jae 0x10021bf2
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 - 4]
test edx, edx
jne 0x10021b7e
movzx eax, byte [eax + 0x100e56e0]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x10021bd6
cmp ebx, 6
jbe 0x10021bd6
cmp edx, 4
jne 0x10021bd6
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
or eax, edx
movzx edx, byte [edi + str.cw]
shl eax, 8
or eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x10021b15
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4