joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cfb3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100905e0
mov eax, dword [0x102360c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100ec587
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100cfb7d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100cfcd9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10107730
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1027e428]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100f21c6
mov ecx, dword [esi*4 + 0x1027e428]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x100cfcd2
cmp eax, dword [edi + ecx + 0x24]
jne 0x100cfcd2
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100cfcd2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100f21c6
add esp, 0x14
test edx, edx
jl 0x100cfcd2
jg 0x100cfc48
test eax, eax
jb 0x100cfcd2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100cfcd2
jl 0x100cfc62
cmp dword [ebp - 0x1008], eax
ja 0x100cfcd2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100cfc80
test ebx, ebx
je 0x100cfcb9
cmp ecx, edi
jae 0x100cfcb9
mov al, byte [ecx]
cmp al, 0xd
jne 0x100cfc9a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100cfca6
cmp byte [ecx + 1], 0xa
jne 0x100cfca6
inc ecx
jmp 0x100cfca6
movzx eax, al
movsx eax, byte [eax + 0x10236570]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100cfc80
cmp edx, ebx
jne 0x100cfc80
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100cfcd7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1008fa45
leave
ret
Function at 0x100ef893
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10211b3c
push 0x10211b34
push str.FlsAlloc
push 0x1e
call fcn.100ef563
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ef8c7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1019333c]
call esi
jmp 0x100ef8cd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100ef911
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10211b4c
push 0x10211b44
push str.FlsGetValue
push 0x20
call fcn.100ef563
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100ef948
push dword [ebp + 8]
mov ecx, esi
call dword [0x1019333c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100f1030
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f0c17

Function at 0x100f103b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f0da6
Function at 0x100f134d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1027e428]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100f138d
cmp byte [ebx], 0xa
jne 0x100f138d
or byte [eax + edi + 0x28], 4
jmp 0x100f1392
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x100f1490
mov al, byte [edx]
cmp al, 0x1a
je 0x100f1472
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x100f13c1
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x100f13e6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x100f13f0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x100f13a3
jmp 0x100f1490
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f146d
cmp dword [ebp - 0xc], 0
je 0x100f146d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1027e428]
test byte [eax + edi + 0x28], 0x48
je 0x100f1447
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100f1432
mov byte [esi], dl
jmp 0x100f1443
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1027e428]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100f1490
cmp byte [ebp - 1], 0xa
jne 0x100f1456
cmp esi, ebx
jne 0x100f1456
mov byte [esi], 0xa
jmp 0x100f148f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100f21e4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100f1490
mov byte [esi], 0xd
jmp 0x100f148f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1027e428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100f148c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100f1490
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100f1499
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1027e428]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100f14dc
cmp word [esi], dx
jne 0x100f14dc
or byte [edi + eax + 0x28], 4
jmp 0x100f14e1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x100f1634
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x100f1614
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x100f1523
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100f1559
cmp eax, edx
jae 0x100f1565
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x100f14fb
jmp 0x100f1634
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100f1610
cmp dword [ebp - 0x14], 0
je 0x100f1610
mov eax, dword [ebx*4 + 0x1027e428]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x100f15e8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x100f15b1
mov word [esi], cx
jmp 0x100f15e4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1027e428]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x1027e428]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1027e428]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x100f1634
pop ebx
cmp word [ebp - 4], bx
jne 0x100f15f9
cmp esi, dword [ebp + 0xc]
jne 0x100f15f9
mov word [esi], bx
jmp 0x100f1631
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100f21e4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x100f1634
push 0xd
jmp 0x100f162d
mov ecx, dword [ebx*4 + 0x1027e428]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100f162b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100f1634
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100f790a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x102360c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x100f7955
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.100f7ce4
test al, al
jne 0x100f794f
sub edx, 2
cmp edx, edi
jne 0x100f7935
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x100f7977
lea eax, [edi + 2]
cmp edx, eax
je 0x100f7977
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100f75d1
add esp, 0x10
jmp 0x100f7a71
push esi
lea ecx, [ebp - 0x255]
call fcn.100f7ce4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100f79ba
push dword [ebp - 0x25c]
jmp 0x100f7967
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x100f79f7
cmp word [ebp - 0x226], 0
je 0x100f7a18
cmp word [ebp - 0x226], ax
jne 0x100f79f7
cmp word [ebp - 0x224], 0
je 0x100f7a18
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100f75d1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x100f7a64
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100f79d1
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x100f7a4c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x100f7a71
push 0x100f70f0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100d0460
add esp, 0x10
jmp 0x100f7a41
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008fa45
leave
ret
Function at 0x100f8e5e
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 0x100f8efb
push ebx
push esi
call fcn.100f8e1a
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.100f118f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100f8ea8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100f8efa
push edi
push eax
call fcn.100eb4b0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100f8ec8
call fcn.100eb476
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100f8ef9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100f118f
add esp, 0x20
test eax, eax
jne 0x100f8ee7
push edi
call fcn.100eb476
jmp 0x100f8eef
push ebx
call fcn.100eb476
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 0x100f8efe
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100f8f0f
pop esi
ret
push ebx
push edi
push esi
call fcn.100f8e1a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100eb4b0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100f8f37
push ebx
push esi
push edi
call fcn.100a3f80
add esp, 0xc
push 0
call fcn.100eb476
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100f9818
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f91aa
Function at 0x10104fc4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10104de4
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1010513c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1010513c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101050eb
jg 0x1010501d
test eax, eax
je 0x101050e1
push 1
push 0x1000
call fcn.100ed6b6
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10105043
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x101050d8
push 0x8000
push ebx
call fcn.10104c19
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1010506f
jg 0x1010506a
cmp ecx, 0x1000
jb 0x1010506f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100ee563
add esp, 0x10
cmp eax, 0xffffffff
je 0x101050b4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1010506a
jl 0x1010509b
test ecx, ecx
jne 0x1010505c
push dword [ebp - 0xc]
push ebx
call fcn.10104c19
push esi
call fcn.100eb476
add esp, 0xc
xor edi, edi
jmp 0x1010514d
cmp byte [edi + 0x24], 0
je 0x101050cb
cmp dword [edi + 0x20], 5
jne 0x101050cb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101050d6
mov edi, dword [edi + 0x18]
jmp 0x101050d8
xor edi, edi
push esi
call fcn.100eb476
pop ecx
jmp 0x1010514d
test ecx, ecx
jg 0x101050ad
jl 0x101050eb
test eax, eax
jae 0x101050ad
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100f21e4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1010510e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x101050ad
jmp 0x10105145
push ebx
call fcn.100ffe51
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101050ad
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1010514d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1010514a
mov edi, dword [edi + 0x18]
jmp 0x1010514d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100f21e4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10106b18
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101069ec

Function at 0x10107610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1010763d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1010763d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10123f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1027efb4]
lea edx, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [eax + 0x1cdc]
mov esi, 4
mov eax, dword [edi + 0xc4]
add edi, 0xc4
mov dword [ebp - 4], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10223b20]
sub esi, 1
jne 0x10123f52
mov esi, dword [edi + 4]
not ebx
mov ecx, dword [edi]
cmp ecx, esi
jne 0x10123f99
inc ecx
test esi, esi
je 0x10123f87
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x10123f8c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1003bac0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1012b380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xcc]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10223b20]
sub edi, 1
jne 0x1012b3f0
mov eax, dword [0x1027efb4]
not edx
pop edi
pop esi
cmp dword [eax + 0x1d14], edx
jne 0x1012b421
mov dword [eax + 0x1d18], edx
cmp dword [eax + 0x1d4c], edx
jne 0x1012b430
mov byte [eax + 0x1d50], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x1012b5c0
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 + 0x10223b20]
sub edi, 1
jne 0x1012b5e0
mov ecx, dword [0x1027efb4]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1d14], eax
jne 0x1012b612
mov dword [ecx + 0x1d18], eax
cmp dword [ecx + 0x1d4c], eax
jne 0x1012b621
mov byte [ecx + 0x1d50], 1
pop ebp
ret 4
Function at 0x1012e920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, edx
mov eax, ecx
push edi
mov dword [ebp - 0x18], esi
xor edx, edx
mov dword [ebp - 0x10], edx
test esi, esi
je 0x1012e948
nop dword [eax]
cmp eax, esi
jae 0x1012eac7
mov cl, byte [eax]
mov byte [ebp - 3], cl
test cl, cl
je 0x1012eac7
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x102239d8]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x14], ebx
test esi, esi
jne 0x1012e97a
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 0x1012e992
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x1012e996
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x1012e9a2
mov ch, byte ds:[esi]
jmp 0x1012e9a4
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x1012e9b2
mov bl, byte [ebx]
jmp 0x1012e9b4
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 + 0x10227a60]
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 + 0x102239c4]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
cmp esi, dword [ebx*4 + 0x10227a74]
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, 0x10ffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x10227a88]
mov ebx, dword [ebp - 0x14]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1012eaab
xor edx, edx
mov esi, dword [ebp - 0x18]
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 0x1012e932
add eax, ebx
test esi, esi
je 0x1012eabd
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
inc edx
jmp 0x1012e932
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 0x1012eae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ecx
lea eax, [edx - 1]
mov dword [ebp - 0xc], ebx
lea eax, [ebx + eax*4]
mov dword [ebp - 0x1c], eax
cmp ebx, eax
mov eax, dword [ebp + 8]
jae 0x1012ec9f
push esi
mov esi, dword [ebp + 0xc]
push edi
nop dword [eax + eax]
test esi, esi
je 0x1012eb1c
cmp eax, esi
jae 0x1012ec9a
mov bl, byte [eax]
mov byte [ebp - 3], bl
test bl, bl
je 0x1012ec9a
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x102239d8]
test ecx, ecx
mov dword [ebp - 0x10], ecx
sete bl
add ebx, ecx
mov dword [ebp - 0x18], ebx
test esi, esi
jne 0x1012eb4e
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 0x1012eb63
mov bh, byte [esi]
jmp 0x1012eb65
xor bh, bh
lea esi, [eax + 2]
mov byte [ebp - 3], bh
cmp esi, edx
jae 0x1012eb73
mov ch, byte [esi]
jmp 0x1012eb75
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 2], ch
cmp esi, edx
jae 0x1012eb83
mov bl, byte [esi]
jmp 0x1012eb85
xor bl, bl
movzx edx, ch
movzx ecx, cl
movzx esi, bh
movzx edi, bl
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx*4 + 0x10227a60]
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 - 0x10]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x102239c4]
shr ebx, cl
mov esi, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x10]
cmp esi, dword [ebx*4 + 0x10227a74]
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, 0x10ffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebx*4 + 0x10227a88]
mov ebx, dword [ebp - 0x18]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x1012ec78
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp - 1], 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 - 4], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
add eax, edx
jmp 0x1012ec7e
add eax, ebx
test esi, esi
je 0x1012ec97
mov ecx, dword [ebp - 0x14]
mov dword [ecx], esi
add ecx, 4
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x1012eb10
jmp 0x1012ec9a
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
pop edi
pop esi
mov edx, dword [ebp + 0x10]
mov dword [ecx], 0
test edx, edx
je 0x1012ecae
mov dword [edx], eax
sub ecx, ebx
sar ecx, 2
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret