joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d08c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov ebx, 0x10
cmp eax, ebx
push edi
mov byte [esp + 0x10], 0x37
mov byte [esp + 0x11], 0x58
mov byte [esp + 0x12], 0x81
mov byte [esp + 0x13], 0x77
mov byte [esp + 0x14], 0x5b
mov byte [esp + 0x15], 0xf8
mov byte [esp + 0x16], 0xa
mov byte [esp + 0x17], 0x70
mov byte [esp + 0x18], 0x66
mov byte [esp + 0x19], 0x46
mov byte [esp + 0x1a], 0x9c
mov byte [esp + 0x1b], 0xb4
mov byte [esp + 0x1c], 0xff
mov byte [esp + 0x1d], 0xa0
mov byte [esp + 0x1e], 0x9e
mov byte [esp + 0x1f], 0x97
mov byte [esp + 0x20], 3
mov byte [esp + 0x21], 0x30
mov byte [esp + 0x22], 0xb7
mov byte [esp + 0x23], 0x4e
mov byte [esp + 0x24], 0xa7
mov byte [esp + 0x25], 0x39
mov byte [esp + 0x26], 0x23
mov byte [esp + 0x27], 0x5a
mov byte [esp + 0x28], 0x64
mov byte [esp + 0x29], 0x2b
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0x4f
mov byte [esp + 0x2c], 0x31
mov byte [esp + 0x2d], 0xce
mov byte [esp + 0x2e], 0x90
mov byte [esp + 0x2f], 0x9a
lea edi, [esi + 4]
jb 0x4d098b
mov ecx, dword [edi]
jmp 0x4d098d
mov ecx, edi
lea edx, [esp + 0x10]
cmp edx, ecx
jb 0x4d09c4
cmp eax, ebx
jb 0x4d099d
mov ecx, dword [edi]
jmp 0x4d099f
mov ecx, edi
mov edx, dword [esi + 0x14]
add edx, ecx
lea ecx, [esp + 0x10]
cmp edx, ecx
jbe 0x4d09c4
cmp eax, ebx
jb 0x4d09b2
mov edi, dword [edi]
push ebx
lea edx, [esp + 0x14]
sub edx, edi
push edx
push esi
mov ecx, esi
call fcn.004c7610
jmp 0x4d09ff
cmp eax, ebx
jae 0x4d09d4
mov eax, dword [esi + 0x14]
push eax
push ebx
mov ecx, esi
call fcn.004c8100
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
jb 0x4d09df
mov eax, dword [edi]
jmp 0x4d09e1
mov eax, edi
push ebx
lea edx, [esp + 0x14]
push edx
push ecx
push eax
call 0x4fc511
add esp, 0x10
cmp dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
jb 0x4d09fb
mov edi, dword [edi]
mov byte [edi + 0x10], 0
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
lea esi, [ebp + 4]
jb 0x4d0a0d
mov eax, dword [esi]
jmp 0x4d0a0f
mov eax, esi
lea edx, [esp + 0x20]
cmp edx, eax
jb 0x4d0a57
cmp ecx, ebx
jb 0x4d0a1f
mov eax, dword [esi]
jmp 0x4d0a21
mov eax, esi
mov edx, dword [ebp + 0x14]
add edx, eax
lea eax, [esp + 0x20]
cmp edx, eax
jbe 0x4d0a57
cmp ecx, ebx
jb 0x4d0a34
mov esi, dword [esi]
push ebx
lea ecx, [esp + 0x24]
sub ecx, esi
push ecx
push ebp
mov ecx, ebp
call fcn.004c7610
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call 0x4fc666
add esp, 0x24
ret
cmp ecx, ebx
jae 0x4d0a67
mov edx, dword [ebp + 0x14]
push edx
push ebx
mov ecx, ebp
call fcn.004c8100
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
jb 0x4d0a72
mov eax, dword [esi]
jmp 0x4d0a74
mov eax, esi
push ebx
lea edx, [esp + 0x24]
push edx
push ecx
push eax
call 0x4fc511
add esp, 0x10
cmp dword [ebp + 0x18], ebx
mov dword [ebp + 0x14], ebx
jb 0x4d0a8e
mov esi, dword [esi]
mov ecx, dword [esp + 0x30]
pop edi
mov byte [esi + 0x10], 0
pop esi
pop ebp
pop ebx
xor ecx, esp
call 0x4fc666
add esp, 0x24
ret
Function at 0x4d0ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b798
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 1
call fcn.004d08c0
mov ecx, dword [esp + 0x34]
mov ebp, 0x10
add esp, 4
cmp dword [esp + 0x44], ebp
mov dword [esp + 0xc], 1
jae 0x4d0b34
lea ecx, [esp + 0x30]
cmp dword [esp + 0x60], ebp
mov eax, dword [esp + 0x4c]
jae 0x4d0b42
lea eax, [esp + 0x4c]
push ebx
lea edx, [esp + 0x10]
push edx
push ecx
push eax
mov ecx, esi
lea edx, [esp + 0x20]
call fcn.004d4200
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x7c], 2
call fcn.004c7610
cmp dword [esp + 0x28], ebp
jb 0x4d0b7b
mov eax, dword [esp + 0x14]
push eax
call 0x4fc50c
add esp, 4
cmp dword [esp + 0x44], ebp
jb 0x4d0b8e
mov ecx, dword [esp + 0x30]
push ecx
call 0x4fc50c
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x4d0bb1
mov edx, dword [esp + 0x4c]
push edx
call 0x4fc50c
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call 0x4fc666
add esp, 0x68
ret
Function at 0x4d0bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b798
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x473564]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
mov eax, dword [0x473564]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 1
call fcn.004d08c0
mov eax, dword [esp + 0x34]
mov ebp, 0x10
add esp, 4
cmp dword [esp + 0x44], ebp
mov dword [esp + 0xc], 1
jae 0x4d0c54
lea eax, [esp + 0x30]
cmp dword [esp + 0x60], ebp
mov edx, dword [esp + 0x4c]
jae 0x4d0c62
lea edx, [esp + 0x4c]
lea ecx, [esp + 0xc]
push ecx
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004d4660
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x7c], 2
call fcn.004c7610
cmp dword [esp + 0x28], ebp
jb 0x4d0c98
mov edx, dword [esp + 0x14]
push edx
call 0x4fc50c
add esp, 4
cmp dword [esp + 0x44], ebp
jb 0x4d0cab
mov eax, dword [esp + 0x30]
push eax
call 0x4fc50c
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
jb 0x4d0cce
mov ecx, dword [esp + 0x4c]
push ecx
call 0x4fc50c
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call 0x4fc666
add esp, 0x68
ret
Function at 0x100e08a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e08b9
pop esi
ret
push ebx
push edi
push esi
call fcn.10087660
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10087660
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e08e1
push ebx
push esi
push edi
call fcn.100ca6c0
add esp, 0xc
push 0
call fcn.10087660
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x434080
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4340bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4340bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4340bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4340bf
cmp dword [ecx + 0x74], 0xe
jbe 0x4340bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438a98
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443810
push 0x443808
push str.FlsAlloc
push 0x1f
call fcn.004389b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438acc
push dword [ebp + 8]
mov ecx, esi
call dword [0x44110c]
call esi
jmp 0x438ad2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x438b16
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443820
push 0x443818
push str.FlsGetValue
push 0x21
call fcn.004389b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438b4d
push dword [ebp + 8]
mov ecx, esi
call dword [0x44110c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x438b55
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x443828
push 0x443820
push str.FlsSetValue
push 0x22
call fcn.004389b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x438b8f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44110c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43b5f4
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 0x43b691
push ebx
push esi
call fcn.0043b5bd
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.0043a4da
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43b63e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43b690
push edi
push eax
call fcn.00438cf4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43b65e
call fcn.00438cba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43b68f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043a4da
add esp, 0x20
test eax, eax
jne 0x43b67d
push edi
call fcn.00438cba
jmp 0x43b685
push ebx
call fcn.00438cba
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 0x43f980
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x41e5f4
pop dword [ebp - 8]
mov eax, 0x51352217
add eax, 0xaf0cc3dd
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x71468787
sub dword [ebp - 0x18], 0x22f4423c
mov dword [ebp - 0x14], 0x644c2235
sub dword [ebp - 0x14], 0x3218d5f0
mov dword [ebp - 0x10], 0xef2f6628
add dword [ebp - 0x10], 0x5d1cde06
mov dword [ebp - 0xc], 0x27ee86be
add dword [ebp - 0xc], 0xd8117942
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1daf800c
add dword [ebp - 0x18], 0x56c2e94a
mov dword [ebp - 0x14], 0xa43a99ba
add dword [ebp - 0x14], 0x9d31c7bb
mov dword [ebp - 0x10], 0xfda0cc06
add dword [ebp - 0x10], 0x65cea066
mov dword [ebp - 0xc], 0x918741f8
sub dword [ebp - 0xc], 0x918741f8
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x40640
push 0
call eax
mov ecx, 0xd0025473
add ecx, 0x2ffdf56b
mov esi, eax
mov edx, 0xac196c6a
add edx, 0x543b3f96
add edx, dword [ebp - 8]
mov edi, 0x177fe469
sub edi, 0xe9665b78
sub dword [ebp - 4], esi
mov ebx, dword [edx]
add dword [ebp - 4], 0xd694629c
xor ebx, edi
sub dword [ebp - 4], edx
mov dword [esi], ebx
xor dword [ebp - 4], edi
add esi, 4
add edx, 0xc7b67099
sub edx, 0xc7b67095
loop 0x41e70c
add eax, 0x4abafb25
add eax, 0xb5461f26
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x723f6876
sub ecx, 0x71ff6876
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4054b0
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x440e58], 2
jl 0x4054d5
movaps xmm0, xmmword [0x42f400]
movaps xmmword [0x439b70], xmm0
movaps xmm0, xmmword [0x42f3f0]
movaps xmmword [0x439b80], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.00405881
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x42f3d0]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x4054e3
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x405c15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x405c47
test dl, 7
je 0x405c47
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439b90]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x405c27
cmp esi, 8
jb 0x405cd7
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x439b90]
xor ecx, dword [eax*4 + 0x439f90]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43a390]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x43ab90]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x43af90]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43b390]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x43a790]
movzx eax, bl
xor ecx, dword [eax*4 + 0x43b790]
mov ebx, ecx
sub edi, 1
jne 0x405c56
pop edi
test esi, esi
je 0x405cf3
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x439b90]
inc edx
sub esi, 1
jne 0x405cdb
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x405e60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push 0x20
pop ebp
cmp dword [esi], 2
jne 0x405eb7
mov eax, dword [esi + 4]
push edi
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push ebp
push dword [esp + 0x58]
call fcn.00406552
mov dword [esi + 4], ebx
mov edx, ebx
mov edi, ebx
movzx eax, byte [esp + edx + 0x10]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor edi, eax
inc edx
cmp edx, ebp
jb 0x405e9d
mov dword [esi + 4], edi
pop edi
cmp dword [esi], 3
jne 0x405ee3
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
add esi, 4
push eax
push ebp
push esi
push ebp
push dword [esp + 0x54]
call fcn.00406552
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041d5c0
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x4062fb
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x264
push ebx
mov ebx, dword [esp + 0x280]
mov eax, ecx
mov dword [esp + 4], eax
cmp ebx, 0x18
ja 0x4064f7
push ebp
push esi
xor ebp, ebp
lea esi, [eax + 0x4b4]
push edi
mov edi, ebp
cmp dword [esi + 0x134], ebx
jne 0x40635f
push dword [esp + 0x27c]
mov ecx, esi
call fcn.0040d87e
test al, al
je 0x40635f
push 0x10
push dword [esp + 0x288]
lea eax, [esi + 0x102]
push eax
call fcn.0041df0a
add esp, 0xc
test eax, eax
je 0x406501
inc edi
add esi, 0x178
cmp edi, 4
jb 0x406325
mov esi, 0x200
lea eax, [esp + 0x74]
push esi
push eax
push dword [esp + 0x288]
call fcn.004103a1
xor eax, eax
mov ecx, ebx
inc eax
shl eax, cl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x10
push dword [esp + 0x298]
lea eax, [esp + 0x8c]
push eax
call fcn.00421720
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0040676d
push esi
lea eax, [esp + 0x78]
push eax
call fcn.0040daac
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x27c]
push 0x40
mov ecx, dword [edx + 0xa94]
lea ebx, [edx + 0x4b4]
mov eax, ecx
and eax, 3
imul eax, eax, 0x178
add ebx, eax
lea eax, [ecx + 1]
mov dword [edx + 0xa94], eax
mov edi, ebx
mov eax, dword [esp + 0x290]
pop ecx
mov dword [ebx + 0x134], eax
lea eax, [ebx + 0x102]
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [esp + 0x288]
push eax
movsw word es:[edi], word [esi]
call fcn.0041d5c0
push 0x20
pop edi
push edi
lea eax, [esp + 0x24]
push eax
lea esi, [ebx + 0x112]
push esi
call fcn.0041d5c0
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041d5c0
push edi
lea eax, [esp + 0x7c]
push eax
lea eax, [ebx + 0x158]
push eax
call fcn.0041d5c0
add esp, 0x30
push ebp
push 1
push edi
push esi
call fcn.0040d9b7
cmp dword [esp + 0x290], ebp
je 0x406485
push edi
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x298]
call fcn.0041d5c0
add esp, 0xc
mov esi, dword [esp + 0x294]
test esi, esi
je 0x4064b8
push 8
push ebp
push esi
call fcn.0041d460
add esp, 0xc
mov al, byte [esp + ebp + 0x34]
mov ecx, ebp
and ecx, 7
xor byte [ecx + esi], al
inc ebp
cmp ebp, edi
jb 0x40649c
push edi
lea eax, [esp + 0x38]
push eax
call fcn.0040daac
cmp dword [esp + 0x288], 0
je 0x4064e9
push dword [esp + 0x288]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0x100
push eax
push dword [esp + 0x284]
add ecx, 0xa9c
call fcn.0040cf52
push edi
lea eax, [esp + 0x18]
push eax
call fcn.0040daac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x264
ret 0x20
push 0x20
pop edi
push edi
lea eax, [esi + 0x112]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041d5c0
add esp, 0xc
lea eax, [esp + 0x14]
push ebp
push ebp
push edi
push eax
call fcn.0040d9b7
push edi
lea eax, [esi + 0x138]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0041d5c0
push edi
lea eax, [esi + 0x158]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0041d5c0
add esp, 0x18
jmp 0x406467
Function at 0x406552
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1bc
push ebx
mov ebx, dword [esp + 0x1c8]
push ebp
push esi
push edi
push 0x40
pop edi
cmp ebx, edi
jbe 0x4065a7
lea eax, [esp + 0x164]
push eax
call fcn.0040e679
push ebx
push dword [esp + 0x1d4]
lea eax, [esp + 0x16c]
push eax
call fcn.0040e6bf
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x168]
push eax
call fcn.0040e58a
push 0x20
lea eax, [esp + 0x58]
pop ebx
jmp 0x4065ae
mov eax, dword [esp + 0x1d0]
mov ebp, dword [esp + 0x1e4]
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4065d9
mov edx, dword [esp + 0x1e8]
cmp byte [edx], 0
je 0x4065d9
push 0x1a
pop ecx
mov esi, ebp
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
jmp 0x40663a
xor edx, edx
test ebx, ebx
je 0x4065f9
mov esi, eax
lea eax, [esp + 0x14]
sub esi, eax
lea ecx, [esp + 0x14]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x4065e7
cmp ebx, edi
jae 0x406613
mov eax, edi
lea ecx, [esp + 0x14]
sub eax, ebx
add ecx, ebx
push eax
push 0x36
push ecx
call fcn.0041d460
add esp, 0xc
lea eax, [esp + 0x94]
push eax
call fcn.0040e679
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.0040e6bf
mov edx, dword [esp + 0x1e8]
test ebp, ebp
je 0x406654
cmp byte [edx], 0
jne 0x406654
push 0x1a
pop ecx
lea esi, [esp + 0x94]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1dc]
lea eax, [esp + 0x98]
push dword [esp + 0x1dc]
push eax
call fcn.0040e6bf
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0040e58a
cmp dword [esp + 0x1ec], 0
je 0x4066ac
mov eax, dword [esp + 0x1f0]
cmp byte [eax], 0
je 0x4066ac
mov esi, dword [esp + 0x1ec]
lea edi, [esp + 0xfc]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x406712
test ebx, ebx
je 0x4066ce
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
sub edx, eax
xor esi, esi
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor al, 0x5c
inc esi
mov byte [ecx], al
cmp esi, ebx
jb 0x4066bc
cmp ebx, 0x40
jae 0x4066ea
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x14]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.0041d460
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
call fcn.0040e679
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e6bf
mov eax, dword [esp + 0x1f0]
test ebp, ebp
je 0x406738
cmp byte [eax], 0
jne 0x406738
mov eax, dword [esp + 0x1e8]
lea esi, [esp + 0xfc]
mov edi, dword [esp + 0x1ec]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.0040e6bf
push dword [esp + 0x1e0]
lea eax, [esp + 0x100]
push eax
call fcn.0040e58a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1bc
ret 0x24
Function at 0x40676d
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x18c
push ebx
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x406787
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041d5c0
add esp, 0xc
mov dword [ebp + esi - 0x44], 0x1000000
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x20]
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406552
push 0x20
pop ebx
push ebx
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041d5c0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov byte [ebp + 0x6b], 0
mov dword [ebp + 0x4c], eax
xor esi, esi
mov byte [ebp + 0x6f], 0
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
mov edi, dword [ebp + esi + 0x4c]
test edi, edi
je 0x406853
lea eax, [ebp + 0x6f]
push eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp + 0x6b]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.00406552
push ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041d5c0
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx + 0x20]
xor byte [ebp + ecx], al
inc ecx
cmp ecx, ebx
jb 0x406841
sub edi, 1
jne 0x406804
push ebx
lea eax, [ebp]
push eax
push dword [ebp + esi + 0x40]
call fcn.0041d5c0
add esi, 4
add esp, 0xc
cmp esi, 0xc
jb 0x4067fc
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040daac
push ebx
lea eax, [ebp]
push eax
call fcn.0040daac
push ebx
lea eax, [ebp + 0x20]
push eax
call fcn.0040daac
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.0040daac
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret 0x20