joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100036c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e730
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100d4480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x1000373c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x1000374d
push 0x40
push esi
call fcn.1007c444
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10003e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e6f0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100d4480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x10003e84
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x10003e95
push 0x48
push esi
call fcn.1007c444
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10007140
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x10007162
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x22]
inc eax
xor byte [edx], cl
cmp eax, 3
jb 0x10007150
mov byte [esi + 4], 0
mov eax, esi
pop esi
ret

Function at 0x10016ff0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1001702d
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0x10018230
push 0
push 0
mov dword [0x100d59ac], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push edi
push 0x100165a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov eax, 1
pop ebp
ret 0xc
Function at 0x10017040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ax, word [0x1008458c]
movq xmm0, qword [0x10084584]
movq qword [ebp - 0xc], xmm0
mov word [ebp - 4], ax
push esi
mov esi, ecx
test ah, ah
je 0x10017089
push ebx
xor ebx, ebx
mov eax, 0x4ec4ec4f
mov cl, bl
mul ebx
shr edx, 4
movsx eax, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x30
xor byte [ebp + ebx - 0xc], cl
inc ebx
cmp ebx, 0xa
jl 0x10017067
pop ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x100170b4
xor al, al
movsx ecx, al
cmp byte [ecx + edx], 0xb8
je 0x100170c7
inc al
cmp al, 0xf
jl 0x100170a5
xor eax, eax
mov ecx, esi
push eax
call fcn.100170e0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + edx + 1]
mov ecx, esi
push eax
call fcn.100170e0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x100170e0
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, ecx
test esi, esi
je 0x1001731c
movups xmm0, xmmword [0x1008459c]
mov dword [ebp - 0x30], 0xb8909090
mov byte [ebp - 0x28], 0xba
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x23], 0xd2ff
psrldq xmm0, 0xf
movd eax, xmm0
mov byte [ebp - 0x21], 0xc3
test al, al
je 0x1001729e
xor edx, edx
cmp dword [0x100d73b4], 2
mov dword [ebp - 4], edx
jl 0x10017270
movaps xmm0, xmmword [str.0000000000000000O]
lea esi, [ebp - 0x3c]
movaps xmm4, xmmword [0x100845e0]
xor ecx, ecx
movaps xmm3, xmmword [0x10084620]
movaps xmm5, xmmword [str.4444]
movaps xmmword [ebp - 0x20], xmm0
mov edx, dword [ebp - 0x20]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10084600]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x40]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x40], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10084600]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esi + ecx]
xorps xmm1, xmm0
movd dword [esi + ecx], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x10017173
mov esi, dword [ebx + 8]
jmp 0x1001729e
mov eax, 0x4ec4ec4f
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebp - 4]
movsx eax, al
mov cl, dl
imul eax, eax, 0x34
sub cl, al
add cl, 0x30
xor byte [ebp + edx - 0x40], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, 0x10
jl 0x10017270
mov ax, word [0x10084598]
movq xmm0, qword [str.EV_XeR_T9]
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x14], ax
test ah, ah
je 0x100172e1
xor ecx, ecx
nop dword [eax + eax]
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 4
movsx eax, dl
mov dl, cl
imul eax, eax, 0x34
sub dl, al
add dl, 0x30
xor byte [ebp + ecx - 0x1c], dl
inc ecx
cmp ecx, 0xa
jl 0x100172c0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push 0x10
mov eax, dword [eax]
push 0
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi], eax
test eax, eax
je 0x1001731c
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1001b030
Capabilities:
Create thread

Disassembly:
call fcn.10079620
push 0x100d5b9c
push 0x1001b110
push dword [0x100d59a8]
call fcn.10079760
push 0x100d5a48
push 0x10022630
push dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.10079760
push 0
call fcn.10079b80
push 0
push 0
push 0
push 0x1001b080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10027140
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, dword [0x100d5d4c]
mov esi, dword [edi + 0x1a6c]
mov dword [ebp - 8], esi
test cl, 0x10
jne 0x1002729c
mov ebx, dword [esi + 0x114]
lea eax, [edi + 0x1aa4]
test ebx, ebx
je 0x10027183
cmp dword [eax], ebx
jne 0x10027293
cmp byte [edi + 0xec], 0
je 0x10027293
test ebx, ebx
jne 0x10027220
test cl, 8
je 0x10027293
test byte [esi + 0x118], 1
jne 0x100271be
cmp dword [eax], ebx
je 0x10027293
cmp dword [edi + 0x1ad0], esi
jne 0x10027293
mov ecx, dword [ebp - 8]
add esi, 0x11c
push esi
call fcn.1002abb0
mov ebx, eax
mov eax, dword [ebp - 8]
push ebx
push esi
mov dword [eax + 0x114], ebx
call fcn.1002cce0
mov esi, dword [ebp - 8]
mov cl, al
add esp, 8
mov byte [ebp - 1], cl
test cl, cl
je 0x1002720a
cmp byte [edi + 0x3d8], 0
je 0x1002720a
push esi
push ebx
call fcn.10034400
push esi
call fcn.1002a460
mov cl, byte [ebp - 1]
add esp, 0xc
cmp dword [edi + 0x1aa4], ebx
lea eax, [edi + 0x1aa4]
jne 0x10027293
mov byte [edi + 0x1ab1], cl
jmp 0x10027227
mov byte [edi + 0x1ab1], 0
cmp dword [eax], ebx
jne 0x10027293
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + ecx*4 - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100d5d4c]
cmp byte [eax + 0xec], 0
jne 0x10027250
xor al, al
jmp 0x10027267
movss xmm1, dword [eax + 0x30]
movss xmm0, dword [eax + 0x444]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
mov dword [edi + 0x1ab8], 0xffffffff
mov dword [edi + 0x1abc], 0xffffffff
mov dword [edi + 0x1ac0], 0xffffffff
mov dword [edi + 0x1ac4], 0xffffffff
test al, al
jne 0x100272dc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
or ebx, 0xffffffff
mov dword [ebp - 8], esi
mov al, 0x23
mov edx, 0x100c6569
or esi, 0xffffffff
nop
cmp al, 0x23
jne 0x100272be
cmp byte [edx], al
jne 0x100272be
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x100c5fa8]
test al, al
jne 0x100272b0
mov esi, dword [ebp - 8]
not ebx
cmp byte [edi + 0x1e64], 0
jne 0x10027322
call fcn.10028600
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x1e80], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x1e7c], ebx
mov byte [edi + 0x1e64], 1
mov dword [edi + 0x1e68], eax
mov dword [edi + 0x1e70], 0
cmp ebx, dword [edi + 0x1aa4]
jne 0x10027322
mov byte [edi + 0x1ab2], 1
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x1a10]
mov dword [edi + 0x1e6c], eax
mov byte [edi + 0x1e65], 1
test bl, 1
jne 0x10027375
push 0
push 0
call fcn.10027670
add esp, 8
cmp dword [edi + 0x1ecc], 0
je 0x10027375
test dword [edi + 0x1ec0], 0x1000
je 0x10027375
mov eax, dword [edi + 0x1a6c]
mov byte [eax + 0x87], 1
mov dword [eax + 0xa0], 1
test bl, 0x12
jne 0x10027381
and dword [esi + 0x118], 0xfffffffe
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002aae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xc4]
mov eax, dword [ecx + 0xcc]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c5fa8]
sub edi, 1
jne 0x1002ab00
mov ecx, dword [0x100d5d4c]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1aa4], eax
jne 0x1002ab32
mov dword [ecx + 0x1aa8], eax
cmp dword [ecx + 0x1adc], eax
jne 0x1002ab41
mov byte [ecx + 0x1ae0], 1
pop ebp
ret 4

Function at 0x1002abb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100d4480]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xc4]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x14]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100c5fa8]
sub edi, 1
jne 0x1002ac24
mov eax, dword [0x100d5d4c]
not edx
pop edi
pop esi
cmp dword [eax + 0x1aa4], edx
jne 0x1002ac55
mov dword [eax + 0x1aa8], edx
cmp dword [eax + 0x1adc], edx
jne 0x1002ac64
mov byte [eax + 0x1ae0], 1
mov ecx, dword [ebp - 4]
mov eax, edx
xor ecx, ebp
call fcn.1007c76c
mov esp, ebp
pop ebp
ret 4
Function at 0x1002b460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1002b472
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1002b5a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002b48a
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1002b581
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1002b581
push esi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x1002b581
push 0
push dword [ebp + 0x10]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1002b581
mov eax, dword [0x100d5d4c]
test eax, eax
je 0x1002b4f0
inc dword [eax + 0x370]
push dword [0x100d5d6c]
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call dword [0x100d33f8]
add esp, 8
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1002b581
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x1002b551
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x100d5d4c]
add esp, 4
test eax, eax
je 0x1002b537
dec dword [eax + 0x370]
push dword [0x100d5d6c]
mov eax, dword [ebp + 0x10]
push eax
call dword [0x100d33fc]
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1002b569
push eax
mov eax, dword [ebp + 0x10]
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x1002b579
mov dword [edi], ebx
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1002b7b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x1002b813
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x1002b7f6
cmp edi, 2
jb 0x1002b7f6
cmp byte [esi], cl
jne 0x1002b7f6
cmp byte [esi + 1], cl
jne 0x1002b7f6
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c5fa8]
jmp 0x1002b7c7
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100c5fa8]
test edi, edi
jne 0x1002b7c7
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1002b848
nop word [eax + eax]
cmp cl, 0x23
jne 0x1002b82f
cmp byte [esi], cl
jne 0x1002b82f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100c5fa8]
test cl, cl
jne 0x1002b820
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1002ba80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
xor edx, edx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x1002baa0
cmp eax, esi
jae 0x1002bc18
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x1002bc18
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x100c63e4]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1002bad2
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp - 3]
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x1002baea
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x1002baee
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1002baf9
mov ch, byte [esi]
jmp 0x1002bafb
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x1002bb09
mov bl, byte [ebx]
jmp 0x1002bb0b
xor bl, bl
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
movzx edi, bl
mov byte [ebp - 2], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x100c6404]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x100c642c]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x100c6418]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x100c6440]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1002bbff
xor edx, edx
cmp byte [ebp - 4], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1002ba8e
add eax, ebx
test esi, esi
je 0x1002bc0e
mov edx, dword [ebp - 0x10]
inc edx
jmp 0x1002ba8e
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002bc90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x1002be4e
push esi
mov esi, dword [ebp + 0x14]
push edi
nop dword [eax]
test esi, esi
je 0x1002bccc
cmp eax, esi
jae 0x1002be49
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x1002be49
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x100c63e4]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1002bcfe
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp + 0xf]
mov byte [ebp - 3], cl
cmp esi, edx
jae 0x1002bd13
mov bh, byte [esi]
jmp 0x1002bd15
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 2], bh
cmp esi, edx
jae 0x1002bd23
mov ch, byte [esi]
jmp 0x1002bd25
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 1], ch
cmp esi, edx
jae 0x1002bd33
mov bl, byte [esi]
jmp 0x1002bd35
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp + 0xf], bl
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ebx*4 + 0x100c6404]
and ebx, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], ebx
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov ebx, dword [ebp - 8]
and ecx, 0x3f
or ebx, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x100c642c]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x100c6418]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x100c6440]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1002be26
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp + 0xf], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x1002be2c
add eax, ebx
test esi, esi
je 0x1002be46
mov ecx, dword [ebp - 0x10]
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x1002bcc0
jmp 0x1002be49
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
pop edi
pop esi
xor edx, edx
mov word [ecx], dx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1002be5c
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002c420
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
or eax, 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], str.Window
mov cl, 0x57
mov esi, 0x100c64b9
or edi, 0xffffffff
cmp cl, 0x23
jne 0x1002c452
cmp byte [esi], cl
jne 0x1002c452
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100c5fa8]
test cl, cl
jne 0x1002c443
mov esi, dword [ebp + 8]
not eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x100369b0
mov dword [ebp - 0x14], 0x10036b00
mov edi, dword [esi + 0x2ecc]
mov ecx, dword [esi + 0x2ed0]
mov dword [ebp - 0x10], 0x10036a30
mov dword [ebp - 0xc], 0x100368e0
mov dword [ebp - 8], 0x10036b40
cmp edi, ecx
jne 0x1002c547
inc edi
test ecx, ecx
je 0x1002c4ba
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1002c4bf
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1002c547
mov eax, dword [0x100d5d4c]
test eax, eax
je 0x1002c4d7
inc dword [eax + 0x370]
push ebx
push dword [0x100d5d6c]
lea eax, [edi + edi*8]
shl eax, 2
push eax
call dword [0x100d33f8]
mov ebx, eax
add esp, 8
mov eax, dword [esi + 0x2ed4]
test eax, eax
je 0x1002c53a
mov ecx, dword [esi + 0x2ecc]
lea ecx, [ecx + ecx*8]
shl ecx, 2
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi + 0x2ed4]
add esp, 0xc
test ecx, ecx
je 0x1002c52a
mov eax, dword [0x100d5d4c]
test eax, eax
je 0x1002c52a
dec dword [eax + 0x370]
push dword [0x100d5d6c]
push ecx
call dword [0x100d33fc]
add esp, 8
mov dword [esi + 0x2ed4], ebx
mov dword [esi + 0x2ed0], edi
pop ebx
mov eax, dword [esi + 0x2ecc]
movups xmm0, xmmword [ebp - 0x24]
push esi
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x2ed4]
movups xmmword [eax + ecx*4], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x20], 0
inc dword [esi + 0x2ecc]
call fcn.10049b10
add esp, 4
mov byte [esi], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002d400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x100d5d4c]
cmp byte [esi + 0x2efc], 0
je 0x1002d49b
cmp dword [esi + 0x2f04], 0
push edi
lea edi, [esi + 0x2f08]
je 0x1002d48c
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1002d446
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10037280
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.10036e30
mov edx, dword [edi]
mov ecx, 0x100d5d50
push dword [esi + 0x2f04]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2f10]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.10036e30
pop edi
pop esi
pop ebp
ret