joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a15d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.004cba10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.005733b0
mov ebx, eax
push ebx
push esi
call fcn.00573290
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5a1659
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5a1633
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00573300
push esi
call fcn.00573450
mov edi, eax
add esp, 0x10
test edi, edi
je 0x5a1659
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.005733b0
mov ebx, eax
push ebx
push esi
call fcn.00573290
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x5a16c8
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5a16ae
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00573300
push esi
call fcn.00573450
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x5a1651
push esi
call fcn.00573450
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x5a4460
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004cba10
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x5a44e0
mov cl, byte [edi]
test cl, cl
je 0x5a44e0
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x5a4490
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x5a4580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004cba10
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x5a4603
mov al, byte [ebx]
test al, al
je 0x5a4603
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.0057d730
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x5a45a7
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x5b13a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004cba10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push esi
call fcn.00569dc0
add esp, 4
cmp eax, 0x72
jne 0x5b154e
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ebx, eax
push esi
push dword [esp + 0x2c]
and eax, 1
shr ebx, 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
lea ebp, [eax + ebx]
push ebp
push dword [esp + 0x2c]
call fcn.0059bbd0
push eax
call fcn.005b1140
add esp, 0x1c
test eax, eax
je 0x5b1573
push edi
push 0x104
push str.cryptokdf_tls1_prf.c
push esi
call fcn.00564af0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5b1437
push 0x105
push str.cryptokdf_tls1_prf.c
push 0x41
push 0x6f
push 0x34
call fcn.00575710
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x1c]
push esi
push edi
push dword [esp + 0x30]
add eax, ebx
push dword [esp + 0x30]
push ebp
push eax
call fcn.0056ccd0
push eax
call fcn.005b1140
add esp, 0x1c
test eax, eax
jne 0x5b1477
push 0x10a
push str.cryptokdf_tls1_prf.c
push esi
push edi
call fcn.00564be0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor ebx, ebx
test esi, esi
je 0x5b152f
mov edx, dword [esp + 0x2c]
cmp esi, 0x40
jb 0x5b1512
lea eax, [esi - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, esi
cmp edx, eax
ja 0x5b14a0
cmp ecx, edi
jae 0x5b1512
mov ebp, esi
lea eax, [edx + 0x10]
mov esi, edi
lea ecx, [edi + 0x30]
and ebp, 0xffffffc0
sub esi, edx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, ebp
jb 0x5b14c0
mov edx, dword [esp + 0x2c]
cmp ebx, esi
jae 0x5b152f
mov ebp, edi
lea ecx, [ebx + edx]
sub ebp, edx
mov edx, esi
sub edx, ebx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x5b1521
push 0x10f
push str.cryptokdf_tls1_prf.c
push esi
push edi
call fcn.00564be0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.005b1140
add esp, 0x1c
test eax, eax
jne 0x5b157a
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x5c8ac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.004cba10
push ebx
mov ebx, dword [esp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 8], 0x10
test edi, edi
jle 0x5c8b91
push esi
mov esi, dword [esp + 0x20]
cmp edi, 0x40
jb 0x5c8b75
lea eax, [edi - 1]
lea edx, [edi - 1]
add eax, esi
add edx, ebx
cmp ebx, eax
ja 0x5c8b06
cmp edx, esi
jae 0x5c8b75
push ebp
mov ebp, edi
lea edx, [esi + 0x30]
mov edi, esi
lea eax, [ebx + 0x10]
and ebp, 0xffffffc0
sub edi, ebx
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, ebp
jl 0x5c8b22
mov esi, dword [esp + 0x24]
pop ebp
cmp ecx, edi
jge 0x5c8b90
mov edx, edi
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x5c8b82
pop esi
push edi
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ebx
push dword [eax + 8]
call fcn.005a4d60
add esp, 0x14
test eax, eax
je 0x5c8bbd
cmp dword [esp + 8], edi
jne 0x5c8bbd
pop edi
mov eax, 1
pop ebx
add esp, 8
ret
pop edi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x5c8d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x5c8dd3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x5c8dd3
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov eax, dword [ebx + 0x14]
cmp edx, eax
mov edi, eax
cmovb edi, edx
test edi, edi
je 0x5c8da3
push esi
mov esi, ebp
lea ecx, [ebx + 0x18]
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub edi, 1
jne 0x5c8d90
mov eax, dword [ebx + 0x14]
pop esi
cmp edx, eax
jbe 0x5c8dd1
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x5c8dd1
nop dword [eax]
mov eax, dword [ebx + 0x14]
add eax, ecx
mov al, byte [eax + ebp]
xor byte [ebx + ecx + 0x38], al
inc ecx
cmp ecx, edx
jb 0x5c8dc0
pop edi
pop ebx
pop ebp
ret
Function at 0x60b3c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.004cba10
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x164]
mov edx, dword [ebp + 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x60b3f1
mov eax, 0xfffffffe
pop ebp
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x60b4c5
jb 0x60b416
test eax, eax
jne 0x60b4c5
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [esp + 0x20]
test ecx, ecx
je 0x60b468
test esi, esi
je 0x60b455
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x1c], ecx
jne 0x60b430
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call edx
add esp, 8
jmp 0x60b46b
test ecx, ecx
jne 0x60b4b5
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call edx
add esp, 8
jmp 0x60b46b
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x60b48c
push eax
push edi
push ecx
push ebx
call dword [esp + 0x20]
add edi, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x60b4b1
mov ecx, esi
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x60b492
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
add esp, 8
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
add esp, 8
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 8
ret
Function at 0x60cc80
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.004cba10
mov eax, dword [0x718924]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov bl, byte [esi]
lea eax, [esi + 0x10]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
push edi
test bl, 0x40
jne 0x60ccd5
push ecx
push eax
push esi
call edx
add esp, 0xc
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x24], edx
cmp edx, 0xf
jae 0x60cd03
nop
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x60ccf0
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x4c]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x60cd2b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004cb998
add esp, 0x2c
ret
mov ebx, edi
shr ebx, 4
test ebx, ebx
je 0x60cd64
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x28]
push ebp
call dword [esp + 0x38]
shl ebx, 4
add esp, 0x18
add dword [esp + 0x18], ebx
add ebp, ebx
sub edi, ebx
je 0x60cdbd
shr ebx, 4
push ebx
push esi
call fcn.0060d560
add esp, 8
mov ebx, dword [esp + 0x14]
test edi, edi
je 0x60cdc1
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [esp + 0x28]
add esp, 0xc
test edi, edi
je 0x60cdac
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
mov eax, ecx
lea edx, [esi + 0x10]
sub ebp, eax
sub ebx, eax
nop
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [ebx + ecx - 1], al
xor byte [edx - 1], al
sub edi, 1
jne 0x60cd90
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
lea eax, [esi + 0x10]
push ebx
push eax
push eax
call ebp
add esp, 0xc
jmp 0x60cdc5
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jae 0x60cde4
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call ebp
mov eax, dword [esp + 0x34]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x38]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cb998
add esp, 0x2c
ret
Function at 0x60ec10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.004cba10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
test edx, edx
je 0x60ed26
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x2c]
cmp edx, 0x40
jb 0x60ed04
push ebx
lea eax, [ebp - 1]
lea ebx, [edi - 1]
add eax, edx
add ebx, edx
cmp edi, eax
ja 0x60ec57
cmp ebx, ebp
jae 0x60ed03
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x60ec68
cmp ebx, esi
jae 0x60ed03
mov eax, edx
lea ebx, [edi + 0x20]
mov edx, esi
and eax, 0xffffffc0
sub edx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
lea eax, [ebp + 0x10]
mov edx, edi
sub edx, ebp
mov dword [esp + 0x14], edx
mov edx, esi
mov ebp, dword [esp + 0x14]
sub edx, edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], edx
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edx, dword [esp + 0x18]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea ebx, [ebx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ebx - 0x60], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [edx + ebx - 0x40]
mov edx, dword [esp + 0x2c]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ebx - 0x40], xmm1
movups xmm1, xmmword [ecx + esi + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [ebx - 0x30], xmm1
cmp ecx, dword [esp + 0x1c]
jb 0x60eca0
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
pop ebx
cmp ecx, edx
jae 0x60ed23
sub esi, ebp
lea eax, [ecx + ebp]
sub edi, ebp
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub edx, 1
jne 0x60ed11
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x619210
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x619224
mov dword [esp + 0x18], fcn.006179f0
jmp fcn.0060a970
mov dword [esp + 0x18], fcn.00616c90
jmp fcn.0060a670
Function at 0x654f60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x98
call fcn.004cba10
mov eax, dword [0x718924]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa0]
push ebx
push edi
mov edi, dword [esp + 0xac]
xor ebx, ebx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, edi
mov dword [esp + 0x10], ecx
cmp edx, edi
jb 0x655120
cmp edi, 0x40
ja 0x655120
lea eax, [esp + 0x1c]
neg eax
lea ecx, [esp + 0x1c]
and eax, 0x3f
add ecx, eax
lea eax, [edi + 0x100]
mov dword [esp + 0xc], ecx
cmp edx, eax
jbe 0x654fd9
mov ebx, edx
sub ebx, edi
sub ebx, 0x100
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x20], 0
push esi
push ecx
call fcn.004e30c0
mov eax, dword [esp + 0xbc]
add esp, 0xc
xor ebp, ebp
cmp ebx, dword [eax + 0xc]
jae 0x65509c
mov ecx, ebx
sub ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov edi, dword [esp + 0xb0]
mov eax, ebx
xor eax, dword [esp + 0x18]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
mov eax, dword [esp + 0xb0]
neg edx
xor ecx, dword [eax + 8]
mov eax, ebx
xor eax, dword [edi + 8]
or ecx, eax
mov eax, edx
or eax, dword [esp + 0x1c]
xor ecx, ebx
shr ecx, 0x1f
and edx, ebp
neg ecx
or esi, edx
mov edx, dword [esp + 0x14]
and ecx, eax
mov eax, dword [edi + 0x14]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x1c], ecx
mov al, byte [eax + ebx]
inc ebx
and al, cl
or byte [edx + ebp], al
inc ebp
mov ecx, ebp
mov eax, ebp
sub ecx, edi
xor eax, edi
xor ecx, edi
or ecx, eax
mov eax, dword [esp + 0xb0]
xor ecx, ebp
shr ecx, 0x1f
neg ecx
and ebp, ecx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ebx, dword [eax + 0xc]
jb 0x655010
jmp 0x6550a0
mov edx, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
je 0x655102
mov eax, esi
and eax, 0xffffffdf
mov bl, byte [eax + edx]
mov eax, esi
or eax, 0x20
mov dl, byte [eax + edx]
mov eax, esi
and eax, 0x20
inc esi
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [esp + 0x10], eax
not eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
and cl, dl
mov edx, dword [esp + 0x14]
and al, bl
or al, cl
mov ecx, dword [esp + 0x20]
mov byte [ecx + ebp], al
mov ecx, esi
sub ecx, edi
mov eax, esi
xor ecx, edi
xor eax, edi
or ecx, eax
inc ebp
xor ecx, esi
shr ecx, 0x1f
neg ecx
and esi, ecx
cmp ebp, edi
jb 0x6550a6
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004cb998
add esp, 0x98
ret
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop ebx
xor ecx, esp
call fcn.004cb998
add esp, 0x98
ret
Function at 0x666780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x666902
cmp dword [esi + 0x20], 0
je 0x666902
cmp dword [esi + 0x24], 0
je 0x666902
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x666902
cmp dword [edi], esi
jne 0x666902
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x6667e6
cmp eax, 0x39
je 0x6667e6
cmp eax, 0x45
je 0x6667e6
cmp eax, 0x49
je 0x6667e6
cmp eax, 0x5b
je 0x6667e6
cmp eax, 0x67
je 0x6667e6
cmp eax, 0x71
je 0x6667e6
cmp eax, 0x29a
jne 0x666902
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x66681b
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x66683d
call fcn.00563650
jmp 0x666842
call fcn.005633d0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.006681d0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004e30c0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x705b1a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x705b18]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x705b1c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x705b1e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
pop edi
mov eax, 0xfffffffe
pop esi
ret
Function at 0xaf9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00af91a8
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 0xaf907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaf906a
add dl, dl
jne 0xaf9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaf90dc
xor eax, eax
add dl, dl
jne 0xaf9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaf917d
add dl, dl
jne 0xaf90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaf90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaf9075
mov eax, 1
add dl, dl
jne 0xaf90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaf90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaf90e1
sub eax, ebx
mov ebx, 1
jne 0xaf9128
mov ecx, 1
add dl, dl
jne 0xaf910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaf9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaf9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaf9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaf913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaf914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaf9136
cmp eax, 0x7d00
jae 0xaf916d
cmp eax, 0x500
jb 0xaf9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaf9075
cmp eax, 0x7f
ja 0xaf9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaf9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaf919e
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 0xaf9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4707e5
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x74], 4
mov esi, dword [edi + 0x54]
mov dword [ebp - 4], esi
jne 0x470808
or esi, str.9Ch
mov dword [ebp - 4], esi
movzx eax, word [ebx + 0x78]
push 0
push 0
push dword [ebx + 0x70]
push dword [ebx + 0x30]
push dword [ebx + 0x20]
push eax
push dword [ebx + 0x10]
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
test eax, eax
jne 0x470840
push eax
push 0xdeadbeef
push 0xb
mov ecx, edi
call fcn.00471255
jmp 0x47092f
xor ecx, ecx
push ecx
push esi
push ecx
push ecx
push ecx
push dword [ebx + 0x60]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x470865
push eax
push 0xdeadbeef
push 0xc
jmp 0x470919
cmp byte [ebp + 0xc], 0
je 0x470874
push ebx
push esi
mov ecx, edi
call fcn.0047128c
test dword [ebp - 4], 0x1000
je 0x4708a9
push 4
pop ebx
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push ebx
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x470911
push esi
call fcn.004707a4
cmp eax, 0xc8
jne 0x470911
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.00422505
pop ecx
mov ecx, edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47090b
push esi
call fcn.004710c0
jmp 0x470920
push 1
push ebx
push ebx
jmp 0x47091b
push ebx
push 0xdeadbeef
push 0xd
mov ecx, edi
call fcn.00471255
mov bl, al
test esi, esi
je 0x47092d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc