joyce8/EMBER2024-capa huggingface dataset:
Function at 0x618470
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x618559
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x6184b8
cmp dword [esi + 0x40], ebx
jae 0x6184b8
push ecx
call fcn.007906c5
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x6184ce
lea eax, [ebx + ebx]
push eax
call fcn.007906ca
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x618556
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x7d0c00]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
mov ebx, dword [ebp - 8]
shr edx, 8
xor edx, dword [eax*4 + 0x7d0c00]
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x6184e2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x618599
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x618574
mov dword [esi + 0x14], 0x30000
jmp 0x6185cc
push ebx
add ecx, edx
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x6185c5
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
Function at 0x618800
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x618879
mov ecx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp ecx, esi
jae 0x6188c8
sub esi, ecx
lea eax, [ecx + edx]
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x78]
mov edx, ebx
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
call fcn.00618080
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x6188c1
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6188c8
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00618080
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
Function at 0x61a4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov esi, ecx
call fcn.0061ea20
test al, al
jne 0x61a4c9
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
push dword [ebp + 8]
lea ecx, [esi + 0x70]
mov dword [esi + 0x6c], 1
call reloc.ole32.dll_GetHGlobalFromStream
mov dword [ebp - 0x64], 0x2f
xor eax, eax
mov dword [ebp - 0x60], 0xc500ea
mov dword [ebp - 0x5c], 0xd800c5
mov dword [ebp - 0x58], 0xc000c8
mov dword [ebp - 0x54], 0x9d00db
mov dword [ebp - 0x50], 0xcb00e5
mov dword [ebp - 0x4c], 0xd100c3
mov dword [ebp - 0x48], 0x96008f
mov dword [ebp - 0x44], 0xc800d6
mov dword [ebp - 0x40], 0xd600c9
mov dword [ebp - 0x3c], 0xdf00d2
mov dword [ebp - 0x38], 0xca00dc
mov dword [ebp - 0x34], 0xaf00d6
mov dword [ebp - 0x30], 0xed00af
mov dword [ebp - 0x2c], 0xe900bb
mov dword [ebp - 0x28], 0xb100b2
mov dword [ebp - 0x24], 0xe500b0
mov dword [ebp - 0x20], 0xa500af
mov dword [ebp - 0x1c], 0xa100b9
mov dword [ebp - 0x18], 0xbb00e0
mov dword [ebp - 0x14], 0xbc00bd
mov dword [ebp - 0x10], 0xbc00b4
mov dword [ebp - 0xc], 0xbb00b0
mov dword [ebp - 8], 0xb300b1
mov dword [ebp - 4], 0xd800b3
nop
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x60], cx
inc eax
mov ecx, dword [ebp - 0x64]
cmp eax, ecx
jb 0x61a590
xor eax, eax
mov word [ebp + ecx*2 - 0x60], ax
lea ecx, [ebp - 0x60]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x61a5b0
sub ecx, edx
lea eax, [ebp - 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0xc8]
call fcn.004044f0
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x61a5f0
add esi, 0x28
push esi
push edi
mov ecx, esi
call fcn.004769d0
push edi
push dword [ebp + 0xc]
push dword [esi]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x61dbd0
Capabilities:
Encode data using xor
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov eax, dword [0x831184]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x14], 0
push ebx
test eax, eax
je 0x61dd19
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0x80
push ecx
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x2a
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x61dcee
mov dword [esp + 8], 5
xor ecx, ecx
mov dword [esp + 0xc], 0xd300cb
mov dword [esp + 0x10], 0xc900df
mov dword [esp + 0x14], 0xae00de
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [esp + ecx*2 + 0xc], ax
inc ecx
mov eax, dword [esp + 8]
cmp ecx, eax
jb 0x61dc50
xor ecx, ecx
mov dword [esp + 0x30], 7
mov word [esp + eax*2 + 0xc], cx
xor eax, eax
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x38]
mov word [esp + 0x1c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x61dc85
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.004044f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x61dcb2
sub ecx, edx
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
sar ecx, 1
cmp dword [esp + 0x30], 8
cmovae eax, dword [esp + 0x1c]
cmp edx, ecx
jne 0x61dcee
push edx
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x61dcee
mov bl, 1
jmp 0x61dcf0
xor bl, bl
test byte [esp + 0x18], 1
je 0x61dd00
lea ecx, [esp + 0x1c]
call fcn.00404490
test bl, bl
je 0x61dd19
mov al, 1
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
xor al, al
pop ebx
xor ecx, esp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret
Function at 0x61ddd0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b3938
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x7cf388
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004044f0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x30], 0
jb 0x61de47
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push 0
push eax
mov eax, dword [ebp - 0x34]
push 0xffff
push dword [eax + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x61df02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x61df02
mov eax, dword [ebp - 0x30]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.007906ca
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x14], 8
jb 0x61dea2
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov eax, dword [ebp - 0x34]
push edi
push 0xffff
push dword [eax + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x61dece
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.00404070
jmp 0x61df35
mov edi, dword [ebp - 0x38]
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [edi + eax*2], cx
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x61dee0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004044f0
push edi
call fcn.007906c5
add esp, 4
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov word [ebp - 0x2c], ax
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x2c]
call fcn.00404490
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x629760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b4ce9
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], 0
jb 0x6297b8
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x20
push eax
push 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x629939
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
shr eax, 1
push ecx
push eax
call fcn.0062f790
cmp dword [edi + 0x14], 8
jb 0x629807
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
push 0
push 0x20
push edi
push 0
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x62982f
push eax
push str.Cannot_get_multi_string_value:_RegGetValue_failed.
jmp 0x62993f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
shr eax, 1
push ecx
push eax
call fcn.0062f790
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x44], 1
cmp word [edi], 0
je 0x629912
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x629880
sub esi, ecx
mov dword [ebp - 0x2c], 0
sar esi, 1
lea ecx, [ebp - 0x3c]
push esi
xor eax, eax
mov dword [ebp - 0x28], 7
push edi
mov word [ebp - 0x3c], ax
call fcn.004044f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x6298e7
movups xmm0, xmmword [ebp - 0x3c]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
add dword [eax + 4], 0x18
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], cx
jmp 0x6298f3
lea edx, [ebp - 0x3c]
push edx
push ecx
mov ecx, eax
call fcn.004081e0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00404490
lea edi, [edi + esi*2]
add edi, 2
cmp word [edi], 0
jne 0x629874
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
call fcn.0040f0a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 8
push eax
push str.Cannot_get_size_of_multi_string_value:_RegGetValue_failed.
lea ecx, [ebp - 0x34]
call fcn.0041fec0
push 0x826a10
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x629f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push ebx
mov edx, 0xa
mov dword [esp + 0x24], 0xd300fa
push esi
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0xd800d8
xor eax, eax
mov dword [esp + 0x30], 0xc300c8
mov dword [esp + 0x34], 0xc000ee
mov dword [esp + 0x38], 0xc100c1
mov dword [esp + 0x3c], 0xb3
nop dword [eax + eax]
lea ecx, [eax + 0xa9]
xor word [esp + eax*2 + 0x28], cx
inc eax
mov edx, dword [esp + 0x24]
cmp eax, edx
jb 0x629f80
xor eax, eax
lea ecx, [esp + 0x28]
mov word [esp + edx*2 + 0x28], ax
lea edx, [ecx + 2]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x629fb3
sub ecx, edx
lea eax, [esp + 0x28]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.004044f0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.00405430
lea ecx, [esp + 0xc]
mov bl, al
call fcn.00404490
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6399a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b664f
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x6c], 0
call fcn.00418540
add esp, 4
test al, al
je 0x639b76
mov dword [ebp - 0x68], 0x1b
xor eax, eax
mov dword [ebp - 0x64], 0x9000ca
mov dword [ebp - 0x60], 0xdb00f7
mov dword [ebp - 0x5c], 0xc000c4
mov dword [ebp - 0x58], 0xdf00cb
mov dword [ebp - 0x54], 0xc100c6
mov dword [ebp - 0x50], 0xc700ef
mov dword [ebp - 0x4c], 0xc500cc
mov dword [ebp - 0x48], 0xdd00c3
mov dword [ebp - 0x44], 0x8900d4
mov dword [ebp - 0x40], 0xe00089
mov dword [ebp - 0x3c], 0xcc00d9
mov dword [ebp - 0x38], 0xb600d6
mov dword [ebp - 0x34], 0xb000a4
mov dword [ebp - 0x30], 0xc400b0
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x64], cx
inc eax
mov ecx, dword [ebp - 0x68]
cmp eax, ecx
jb 0x639a53
xor eax, eax
mov word [ebp + ecx*2 - 0x64], ax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x639a81
sub ecx, edx
lea eax, [ebp - 0x64]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00403720
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00404120
lea ecx, [ebp - 0xa8]
call fcn.00404220
lea ecx, [ebp - 0xc0]
call fcn.00404490
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, 0xd
mov dword [ebp - 0x2c], eax
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x70], 8
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push edx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x639b4e
lea eax, [ebp - 0x9c]
mov ecx, esi
push eax
call fcn.00403460
mov dword [ebp - 0x2c], 0xf
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x639b32
mov eax, dword [eax]
cmp ecx, 3
jne 0x639b4e
push ecx
push 0x7dc1e4
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x639b4e
mov bl, 1
jmp 0x639b50
xor bl, bl
test byte [ebp - 0x2c], 2
je 0x639b61
lea ecx, [ebp - 0x9c]
call fcn.00404490
lea ecx, [ebp - 0x84]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 4
Function at 0x63bf50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b6898
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
sub esp, 8
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], 0
call fcn.0063cbf0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x12c], eax
jb 0x63bfc5
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
mov edi, dword [esi + 0x10]
jb 0x63bfd0
mov esi, dword [esi]
cmp edi, 0x40
jle 0x63c009
xor edx, edx
lea ecx, [ebp - 0x128]
call fcn.00712b40
push edi
mov edx, esi
lea ecx, [ebp - 0x128]
call fcn.00715120
add esp, 4
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x128]
call fcn.007151e0
mov edi, 0x20
lea esi, [ebp - 0x30]
push 0x40
lea eax, [ebp - 0xc0]
push 0x36
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp - 0x80]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
xor eax, eax
test edi, edi
jle 0x63c04c
lea ecx, [ebp - 0xc0]
sub esi, ecx
lea edx, [ebp - 0xc0]
add edx, eax
inc eax
mov cl, byte [esi + edx]
xor byte [edx], cl
xor byte [edx + 0x40], cl
cmp eax, edi
jl 0x63c037
xor edx, edx
lea ecx, [ebp - 0x128]
call fcn.00712b40
push 0x40
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x128]
call fcn.00715120
push dword [ebp - 0x12c]
mov edx, ebx
lea ecx, [ebp - 0x128]
call fcn.00715120
mov esi, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x128]
call fcn.007151e0
mov edx, esi
lea ecx, [ebp - 0x128]
call fcn.00712b40
push 0x40
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x128]
call fcn.00715120
xor eax, eax
lea edx, [ebp - 0x30]
test esi, esi
lea ecx, [ebp - 0x128]
sete al
lea eax, [eax*4 + 0x1c]
push eax
call fcn.00715120
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x128]
mov edx, esi
call fcn.007151e0
mov ecx, dword [ebp - 0x38]
mov edx, esi
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x130]
call fcn.0041d8a0
add esp, 0x14
lea ecx, [ebp - 0x3c]
call fcn.0040f050
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x63c650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b69a0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi], 0
mov esi, dword [ebp + 8]
je 0x63c7c5
mov edx, 0xa
mov dword [ebp - 0x4c], 0xd8c4d8d9
mov dword [ebp - 0x50], edx
xor eax, eax
mov dword [ebp - 0x48], 0xd9dbcdc8
mov dword [ebp - 0x44], 0xb3dcde
lea ecx, [eax - 0x57]
xor byte [ebp + eax - 0x4c], cl
inc eax
mov edx, dword [ebp - 0x50]
cmp eax, edx
jb 0x63c6a8
lea eax, [ebp - 0x4c]
mov byte [ebp + edx - 0x4c], 0
push eax
mov ecx, esi
call fcn.00772ae0
mov esi, eax
mov ecx, esi
call fcn.007740b0
test al, al
je 0x63c7c5
xor eax, eax
mov dword [ebp - 0x1c], 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0xdfc8cbc4
mov byte [ebp - 0x14], 0xad
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ebx, eax
mov ecx, ebx
call fcn.007740b0
test al, al
je 0x63c7c5
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
call fcn.00774be0
push eax
lea edx, [edi + 0xc]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0063cca0
add esp, 4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.00407a10
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0063bf50
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00575c50
lea ecx, [ebp - 0x7c]
call fcn.00407a10
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
call fcn.00772250
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 9
mov dword [ebp - 0x5c], 0xc9dbdfda
mov dword [ebp - 0x58], 0xd1c2f1df
mov dword [ebp - 0x54], 0xb2d2
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00772ae0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00772890
lea ecx, [ebp - 0x40]
call fcn.00407a10
lea ecx, [ebp - 0x28]
call fcn.00407a10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 4
Function at 0x63e190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b6cb7
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x831184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
lea esi, [edi + 4]
mov dword [ebp - 4], 0
push 2
push esi
mov word [edi], 1
mov dword [ebp - 0x2c], esi
call sub.MSVCP140.dll__Mtx_init_in_situ
add esi, 0x30
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0076e8c3
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea eax, [edi + 0x48]
push 2
push eax
call sub.MSVCP140.dll__Mtx_init_in_situ
lea eax, [edi + 0x78]
push eax
call sub.MSVCP140.dll__Cnd_init_in_situ
add esp, 0x18
lea esi, [edi + 0xa0]
mov dword [esi + 0x24], 0
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x63e261
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
push 8
mov byte [ebp - 4], 6
add edi, 0xc8
call fcn.0076e8c3
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [esi], eax
mov dword [esi + 4], 0x63e340
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
call fcn.0042fc60
mov dword [ebp - 0x24], 0x7dc3e8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], esi
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0042fd30
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x63e2d0
push 8
push eax
call fcn.0076e8f3
add esp, 8
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
push esi
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
test eax, eax
je 0x63e2f0
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
push esi
call sub.MSVCP140.dll__Mtx_destroy
push edi
call sub.MSVCP140.dll__Cnd_destroy
add esp, 8
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x63e31e
mov esi, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076eb7e
mov esp, ebp
pop ebp
ret 0x28