joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e1f60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10318c2e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1043900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov ecx, esi
push 0x31
mov dword [ebp - 0x10], 1
call fcn.1001a120
mov edi, 0x103f65f0
mov al, byte [edi]
mov ecx, esi
xor al, 0xa5
movzx eax, al
push eax
call fcn.1001a280
add edi, 2
cmp edi, 0x103f664e
jne 0x100e1fd0
cmp dword [esi + 0x14], 0x10
mov edi, esi
mov eax, dword [esi + 0x10]
jb 0x100e1ff7
mov edi, dword [esi]
test eax, eax
je 0x100e208d
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x100e208d
sub edx, edi
cmp edx, 0xffffffff
je 0x100e208d
nop dword [eax + eax]
mov ecx, dword [esi + 0x14]
mov edi, 1
cmp ecx, 0x10
jb 0x100e203e
mov ecx, dword [esi + 0x10]
mov eax, ecx
sub eax, edx
mov dword [ebp + 8], ecx
cmp eax, edi
cmovb edi, eax
jmp 0x100e2059
mov eax, esi
sub eax, esi
add edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 8], eax
sub eax, edx
cmp eax, 1
cmovb edi, eax
mov eax, esi
cmp ecx, 0x10
jb 0x100e205b
mov eax, dword [esi]
lea ecx, [eax + edx]
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp + 8], eax
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, esi
mov dword [esi + 0x10], eax
push 0
call fcn.1001a0e0
mov edx, eax
cmp edx, 0xffffffff
jne 0x100e2020
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 0x100e20b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10313e3e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1043900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov ecx, esi
push 0x28
mov dword [ebp - 0x10], 1
call fcn.1001a120
lea eax, [edi + 0x4c]
mov dword [ebp - 0x14], eax
cmp edi, eax
je 0x100e2147
nop dword [eax]
mov al, byte [edi]
mov ecx, esi
xor al, 0xa5
movzx eax, al
push eax
call fcn.1001a280
add edi, 2
cmp edi, dword [ebp - 0x14]
jne 0x100e2130
cmp dword [esi + 0x14], 0x10
mov edi, esi
mov eax, dword [esi + 0x10]
jb 0x100e2154
mov edi, dword [esi]
test eax, eax
je 0x100e21e2
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x100e21e2
sub edx, edi
cmp edx, 0xffffffff
je 0x100e21e2
mov ecx, dword [esi + 0x14]
mov edi, 1
cmp ecx, 0x10
jb 0x100e2193
mov ecx, dword [esi + 0x10]
mov eax, ecx
sub eax, edx
mov dword [ebp + 8], ecx
cmp eax, edi
cmovb edi, eax
jmp 0x100e21ae
mov eax, esi
sub eax, esi
add edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 8], eax
sub eax, edx
cmp eax, 1
cmovb edi, eax
mov eax, esi
cmp ecx, 0x10
jb 0x100e21b0
mov eax, dword [esi]
lea ecx, [eax + edx]
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp + 8], eax
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, esi
mov dword [esi + 0x10], eax
push 0
call fcn.1001a0e0
mov edx, eax
cmp edx, 0xffffffff
jne 0x100e2175
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 0x100e2200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10318c2e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1043900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov ecx, esi
push 0x25
mov dword [ebp - 0x10], 1
call fcn.1001a120
mov edi, 0x103f5de0
mov al, byte [edi]
mov ecx, esi
xor al, 0xa5
movzx eax, al
push eax
call fcn.1001a280
add edi, 2
cmp edi, 0x103f5e26
jne 0x100e2270
cmp dword [esi + 0x14], 0x10
mov edi, esi
mov eax, dword [esi + 0x10]
jb 0x100e2297
mov edi, dword [esi]
test eax, eax
je 0x100e232d
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memchr
mov edx, eax
add esp, 0xc
test edx, edx
je 0x100e232d
sub edx, edi
cmp edx, 0xffffffff
je 0x100e232d
nop dword [eax + eax]
mov ecx, dword [esi + 0x14]
mov edi, 1
cmp ecx, 0x10
jb 0x100e22de
mov ecx, dword [esi + 0x10]
mov eax, ecx
sub eax, edx
mov dword [ebp + 8], ecx
cmp eax, edi
cmovb edi, eax
jmp 0x100e22f9
mov eax, esi
sub eax, esi
add edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp + 8], eax
sub eax, edx
cmp eax, 1
cmovb edi, eax
mov eax, esi
cmp ecx, 0x10
jb 0x100e22fb
mov eax, dword [esi]
lea ecx, [eax + edx]
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp + 8], eax
sub eax, edx
inc eax
push eax
lea eax, [ecx + edi]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, esi
mov dword [esi + 0x10], eax
push 0
call fcn.1001a0e0
mov edx, eax
cmp edx, 0xffffffff
jne 0x100e22c0
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 0x10108f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edx
mov esi, 1
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0xc]
sub ecx, dword [eax]
sub ecx, 0x10
sar ecx, 4
sub ecx, ebx
je 0x101090a5
dec ecx
mov edx, ebx
mov dword [esp + 0x34], ecx
mov ecx, edi
call fcn.100f5800
mov dl, byte [eax + 8]
test dl, 0xf
jne 0x10108f64
mov ecx, dword [edi + 0x10]
add ecx, 0x38
cmp eax, ecx
je 0x10109023
and dl, 0xf
cmp dl, 3
jne 0x10109023
mov edx, ebx
mov ecx, edi
call fcn.100f5800
mov edx, ebx
mov ecx, edi
cmp byte [eax + 8], 3
jne 0x10108f96
push 0
call fcn.100f5cb0
add esp, 4
push edx
push eax
push str._lld
jmp 0x10108fce
xorps xmm0, xmm0
movsd qword [esp + 0x38], xmm0
call fcn.100f5800
cmp byte [eax + 8], 0x13
jne 0x10108fb0
movsd xmm0, qword [eax]
jmp 0x10108fc1
lea edx, [esp + 0x38]
mov ecx, eax
call fcn.10121090
movsd xmm0, qword [esp + 0x38]
sub esp, 8
movsd qword [esp], xmm0
push str._.14g
push dword [esp + 0x38]
call fcn.100f6eb0
add esp, 0x10
test esi, esi
je 0x10108fe2
test eax, eax
jg 0x10109055
xor esi, esi
mov ecx, dword [esp + 0x34]
inc ebx
test ecx, ecx
jne 0x10108f40
test esi, esi
jne 0x101090a5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
mov eax, dword [edi + 0xc]
push esi
mov byte [eax + 8], 0
add dword [edi + 0xc], 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
test eax, eax
jne 0x1010905c
mov eax, dword [edi + 0xc]
mov byte [eax + 8], 0
jmp 0x10109072
lea eax, [esp + 0x30]
mov edx, ebx
push eax
mov ecx, edi
call fcn.100f5dc0
add esp, 4
test eax, eax
je 0x101090b1
test esi, esi
je 0x10108fe2
push dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x10108fe2
mov esi, 1
jmp 0x10108fe4
mov edx, eax
mov ecx, edi
call fcn.10117960
mov ecx, dword [edi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov ecx, dword [edi + 0x10]
add dword [edi + 0xc], 0x10
cmp dword [ecx + 0xc], 0
jle 0x10109086
mov ecx, edi
call fcn.101074c0
mov ecx, dword [edi + 0xc]
mov eax, esi
cdq
mov dword [ecx], eax
mov eax, 3
mov dword [ecx + 4], edx
mov byte [ecx + 8], 3
add dword [edi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 4
mov edx, ebx
mov ecx, edi
call fcn.100f7c90
int3
Function at 0x1010ece0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov dword [ebp - 0x10], edx
mov esi, ecx
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
xor ecx, ecx
xor edi, edi
mov dword [ebp - 0xc], ecx
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
mov cl, byte [esi]
movzx eax, cl
test byte [eax + 0x103f6f21], 8
je 0x1010ed40
mov cl, byte [esi + 1]
inc esi
movzx eax, cl
test byte [eax + 0x103f6f21], 8
jne 0x1010ed30
lea edx, [esi + 1]
cmp cl, 0x2d
jne 0x1010ed51
mov dword [ebp - 0x14], 1
jmp 0x1010ed5a
cmp cl, 0x2b
mov dword [ebp - 0x14], edi
cmovne edx, esi
cmp byte [edx], 0x30
jne 0x1010ee9f
mov al, byte [edx + 1]
cmp al, 0x78
je 0x1010ed72
cmp al, 0x58
jne 0x1010ee9f
movsd xmm2, qword [0x1041eea0]
add edx, 2
xor esi, esi
nop
mov al, byte [edx]
movsx ecx, al
mov byte [ebp - 1], al
cmp ecx, dword [ebp - 0x1c]
jne 0x1010ed99
test esi, esi
jne 0x1010edef
mov esi, 1
inc edx
jmp 0x1010ed80
movzx eax, al
test byte [eax + 0x103f6f21], 0x10
je 0x1010edef
mov eax, dword [ebp - 8]
test eax, eax
jne 0x1010edb7
cmp byte [ebp - 1], 0x30
jne 0x1010edb7
inc dword [ebp - 0xc]
jmp 0x1010ede7
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x1e
jg 0x1010ede6
test byte [ecx + 0x103f6f21], 2
je 0x1010edce
add ecx, 0xffffffd0
jmp 0x1010edd4
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x1010ede7
inc edi
test esi, esi
je 0x1010edec
dec edi
inc edx
jmp 0x1010ed80
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
je 0x1010ee9f
mov eax, dword [ebp - 0x10]
shl edi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x1010ee0d
cmp al, 0x50
jne 0x1010ee6f
mov al, byte [edx + 1]
xor ecx, ecx
mov byte [ebp - 1], al
cmp al, 0x2d
jne 0x1010ee21
lea esi, [ecx + 1]
lea eax, [ecx + 2]
jmp 0x1010ee2d
xor eax, eax
xor esi, esi
cmp byte [ebp - 1], 0x2b
sete al
inc eax
add edx, eax
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x103f6f21], 2
je 0x1010ee9f
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x103f6f21], 2
jne 0x1010ee40
mov eax, ecx
neg eax
test esi, esi
cmove eax, ecx
add edi, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
cmp dword [ebp - 0x14], 0
je 0x1010ee7c
xorps xmm1, xmmword [0x1041f470]
push edi
sub esp, 8
movsd qword [esp], xmm1
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
xorps xmm0, xmm0
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1010f0e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xec
mov eax, dword [0x1043900c]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
mov ebx, edx
lea edx, [esp + 8]
push esi
push edi
mov dword [esp + 0x1c], ebx
mov edi, ecx
call fcn.1010ef30
mov esi, eax
test esi, esi
je 0x1010f140
mov ecx, dword [esp + 0x10]
sub esi, edi
mov edx, dword [esp + 0x14]
mov al, 3
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
push str..xXnN
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x1010f175
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x1010f177
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
lea edx, [esp + 0x14]
mov ecx, edi
call fcn.1010eeb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1010f20a
push 0x2e
push edi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x1010f15e
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1010f1a3
sub ecx, edx
cmp ecx, 0xc8
ja 0x1010f15e
lea edx, [esp + 0x20]
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1010f1c0
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
sub esi, edi
lea edx, [esp + 0x10]
push ebx
lea ecx, [esp + 0x24]
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + esi + 0x24], al
call fcn.1010eeb0
mov esi, eax
add esp, 4
test esi, esi
je 0x1010f15e
mov eax, edi
lea ecx, [esp + 0x20]
sub eax, ecx
add esi, eax
test esi, esi
je 0x1010f15e
mov ebx, dword [esp + 0x1c]
sub esi, edi
movsd xmm0, qword [esp + 0x10]
mov al, 0x13
mov ecx, dword [esp + 0xf4]
pop edi
movsd qword [ebx], xmm0
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop esi
pop ebx
xor ecx, esp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
Function at 0x10117370
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1043900c]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x360
push 8
push 0
push eax
mov dword [esp + 0x20], eax
call edi
add esp, 0x10
test eax, eax
jne 0x101173b6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
lea ebx, [eax + 4]
mov byte [eax + 0xc4], 8
lea esi, [eax + 0x78]
mov word [ebx + 4], 0x808
xor eax, eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x60], eax
add dword [ebx + 0x60], 0x10000
mov word [ebx + 8], ax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x2c], ebx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], eax
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
mov word [ebx + 6], 0x100
mov dword [esi + 0x58], ebx
mov dword [esi + 0xa4], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov ebx, 0xc
push 0
mov dword [esi], edi
mov dword [esi + 0x2dc], 0
mov dword [esi + 0x2e0], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], fcn.10117370
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov edi, eax
add esp, 4
xor edi, ebx
nop
movzx edx, byte [esp + ebx + 0x17]
mov ecx, edi
shl ecx, 5
mov eax, edi
add edx, ecx
shr eax, 2
add edx, eax
xor edi, edx
sub ebx, 1
jne 0x10117460
mov dword [esi + 0x1c], ebx
mov edx, 0x10117090
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0xa0], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x48], edi
mov dword [esi + 0x52], 0x19320000
mov dword [esi + 0x4d], 0x14000008
mov dword [esi + 8], 0x360
mov byte [esi + 0x40], 3
mov byte [esi + 0x56], 0xd
mov byte [esi + 0x51], 0x19
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
call fcn.10101cb0
add esp, 4
test eax, eax
je 0x1011755e
mov ecx, ebx
call fcn.10117270
xor ebx, ebx
mov ecx, dword [esp + 0x24]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
Function at 0x10117740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax + 0x10]
mov esi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
mov ebx, dword [edi + 0x48]
xor ebx, edx
test edx, edx
je 0x1011778d
mov edx, dword [ebp - 8]
nop dword [eax + eax]
movzx ecx, byte [edx + esi - 1]
mov eax, ebx
shl eax, 5
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
sub esi, 1
jne 0x10117770
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x1011780d
movzx eax, byte [edi + 7]
cmp edx, eax
jne 0x10117806
mov esi, dword [ebp + 8]
lea edx, [edi + 0x10]
mov ecx, dword [ebp - 8]
sub esi, 4
jb 0x101177d1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x101177d6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x101177c0
cmp esi, 0xfffffffc
je 0x1011783d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10117803
cmp esi, 0xfffffffd
je 0x1011783d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10117803
cmp esi, 0xfffffffe
je 0x1011783d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10117803
cmp esi, 0xffffffff
je 0x1011783d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1011783d
mov edx, dword [ebp + 8]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x101177a3
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jl 0x1011787e
cmp eax, 0x7fffffff
jne 0x1011785b
mov edx, 1
mov ecx, esi
call fcn.10107590
cmp dword [edi + 0x1c], 0x7fffffff
je 0x101178ce
jmp 0x1011785b
mov ecx, dword [ebp - 0xc]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x10117852
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x20]
cmp edx, 0x1fffffff
jg 0x1011786f
add edx, edx
mov ecx, esi
call fcn.10117670
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, 4
add eax, 0x11
mov ecx, esi
push eax
call fcn.10103f10
mov esi, eax
add esp, 4
mov dword [esi + 8], ebx
lea ecx, [esi + 0x10]
mov ebx, dword [ebp + 8]
push ebx
push dword [ebp - 8]
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov byte [esi + 7], bl
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, esi
call fcn.10101c10
int3
Function at 0x1011c9b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and edx, 0x3f
dec edx
push ebx
mov ebx, ecx
push esi
push edi
cmp edx, 0x15
ja case.0x1011c8ef.2
movzx eax, byte [edx + 0x1011ca8c]
jmp dword [eax*4 + 0x1011ca6c]
mov cl, byte [ebx + 7]
mov edx, 1
mov eax, dword [ebp + 8]
shl edx, cl
dec edx
and edx, dword [eax]
mov eax, dword [ebx + 0x10]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
movsd xmm0, qword [eax]
lea eax, [ebp - 8]
push eax
sub esp, 8
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_frexp]
fmul qword [0x1041ef90]
add esp, 0xc
fstp qword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x14]
comisd xmm0, xmmword [0x1041f238]
jb 0x1011c96b
movsd xmm1, qword [0x1041f088]
comisd xmm1, xmm0
jbe 0x1011c96b
call fcn.10312000
add eax, dword [ebp - 8]
cmp eax, 0x7fffffff
jbe 0x1011c96d
not eax
jmp 0x1011c96d
xor eax, eax
mov cl, byte [ebx + 7]
mov esi, 1
shl esi, cl
dec esi
cdq
or esi, 1
idiv esi
mov eax, dword [ebx + 0x10]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, 1
mov cl, byte [ebx + 7]
shl edx, cl
dec edx
mov eax, dword [eax]
and edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp byte [eax + 6], 0
lea edi, [eax + 8]
mov dword [ebp - 8], edi
jne 0x1011c9fd
mov esi, dword [eax + 0xc]
mov edx, dword [edi]
xor edx, esi
test esi, esi
je 0x1011c9f7
lea edi, [eax + 0xf]
add edi, esi
mov ecx, edx
lea edi, [edi - 1]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, byte [edi + 1]
add ecx, eax
xor edx, ecx
sub esi, 1
jne 0x1011c9d5
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edi], edx
mov byte [eax + 6], 1
mov cl, byte [ebx + 7]
mov eax, 1
shl eax, cl
dec eax
and eax, dword [edi]
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x10]
lea eax, [eax + ecx*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ebx + 7]
mov eax, 1
shl eax, cl
dec eax
and eax, 1
lea ecx, [eax + eax*2]
mov eax, dword [ebx + 0x10]
lea eax, [eax + ecx*8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [ebx + 7]
mov esi, 1
mov eax, dword [ebp + 8]
xor edx, edx
shl esi, cl
dec esi
or esi, 1
mov eax, dword [eax]
div esi
mov eax, dword [ebx + 0x10]
pop edi
pop esi
pop ebx
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
mov esp, ebp
pop ebp
ret