joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x606f91
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::RandomPool.0
mov byte [esi + 0x29], 0
mov dword [esi + 0x30], 0x20
cmp byte [esi + 0x29], 0
mov dword [esp + 0xc], esi
jne 0x4f326a
mov byte [esi + 0x29], 1
lea ecx, [esi + 8]
jmp 0x4f326c
xor ecx, ecx
mov dword [esi + 0x34], ecx
mov dword [esp + 0x18], 2
mov byte [esi + 0x49], 0
mov dword [esi + 0x50], 0x10
cmp byte [esi + 0x49], 0
jne 0x4f3291
mov byte [esi + 0x49], 1
lea ecx, [esi + 0x38]
jmp 0x4f3293
xor ecx, ecx
mov dword [esi + 0x54], ecx
push 0x120
mov byte [esp + 0x1c], 3
call fcn.005c9923
add esp, 4
mov ecx, eax
test ecx, ecx
je 0x4f32f4
lea edx, [ecx + 0x18]
mov byte [edx + 0xf9], 0
mov dword [edx + 0x100], 0x3c
cmp byte [edx + 0xf9], 0
jne 0x4f32dd
mov eax, edx
mov byte [edx + 0xf9], 1
neg eax
and eax, 0xf
add eax, edx
jmp 0x4f32df
xor eax, eax
mov dword [edx + 0x104], eax
mov dword [ecx], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov dword [ecx + 4], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
jmp 0x4f32f6
xor ecx, ecx
mov dword [esi + 0x58], ecx
push dword [esi + 0x30]
mov byte [esi + 0x5c], 0
push 0
push dword [esi + 0x34]
call fcn.005cd520
push dword [esi + 0x50]
push 0
push dword [esi + 0x54]
call fcn.005cd520
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x4f3a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6070e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x34]
push esi
mov dword [esp + 0x1c], esi
call fcn.004da060
add esp, 4
test esi, esi
jne 0x4f3a61
xor ebx, ebx
jmp 0x4f3a6c
push esi
call fcn.004dbaf0
add esp, 4
mov ebx, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], vtable.CryptoPP::NonblockingRng.0
push esi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.004f3970
mov byte [esp + 0x28], 0
mov ecx, edi
mov eax, dword [edi]
push esi
push ebx
call dword [eax + 0xc]
xor al, al
mov edi, ebx
mov ecx, esi
rep stosb byte es:[edi], al
push ebx
call fcn.005ca27a
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x4f70a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x607358
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x48]
push 0
mov dword [ebx + 0xc], 0xffffffff
mov byte [ebx + 0x10], 0
mov dword [ebx], vtable.CryptoPP::StringStore.0
mov dword [ebx + 4], vtable.CryptoPP::StringStore.1.0
mov dword [esp + 0x28], 0
call fcn.004da060
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x14], 0
push 1
lea eax, [esp + 0x18]
mov dword [esp + 0x44], 3
push eax
lea eax, [esp + 0x34]
push str.InputBuffer
push eax
call fcn.004da160
add esp, 0x10
push eax
mov ecx, ebx
mov byte [esp + 0x44], 4
call fcn.004dd850
mov byte [esp + 0x40], 3
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4f7150
mov eax, dword [ecx]
push 1
call dword [eax]
mov edx, dword [esp + 0x28]
xor al, al
mov ecx, dword [esp + 0x24]
mov edi, edx
rep stosb byte es:[edi], al
push edx
call fcn.005ca27a
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 8

Function at 0x4f72f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601b48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045ad40
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.004f71f0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x4f736d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.005d2321
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x4f7396
push dword [esp + 0x10]
call fcn.004dbb70
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005c9914
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f8120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x607423
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
cmp dword [0x6f4ae4], 0
jne 0x4f8160
call fcn.00504e70
mov dword [0x6f4ae4], 0x4fa640
mov dword [esi], vtable.CryptoPP::Integer.0
push 2
mov dword [esi + 8], 2
call fcn.004e1fd0
push 8
call fcn.004dbaf0
mov dword [esi + 0xc], eax
add esp, 8
mov dword [esi + 0x10], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov dword [esp + 0x14], 0
cmp dword [0x6f4ae4], 0
jne 0x4f81b8
call fcn.00504e70
mov dword [0x6f4ae4], 0x4fa640
mov dword [esi + 0x14], vtable.CryptoPP::Integer.0
push 2
mov dword [esi + 0x1c], 2
call fcn.004e1fd0
push 8
call fcn.004dbaf0
mov dword [esi + 0x20], eax
add esp, 8
mov dword [esi + 0x24], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov byte [esp + 0x14], 1
cmp dword [0x6f4ae4], 0
jne 0x4f820e
call fcn.00504e70
mov dword [0x6f4ae4], 0x4fa640
mov dword [esi + 0x28], vtable.CryptoPP::Integer.0
push 2
mov dword [esi + 0x30], 2
call fcn.004e1fd0
push 8
call fcn.004dbaf0
mov dword [esi + 0x34], eax
add esp, 8
mov dword [esi + 0x38], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0x34]
mov dword [eax], 0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4f8d60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x607604
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x58]
lea ecx, [ebx - 4]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x14], 0
mov eax, dword [ecx]
mov dword [esp + 0x18], edi
call dword [eax + 0x10]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test esi, esi
je 0x4f8ddf
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
jmp 0x4f8dd0
cmp dword [eax], 0
jne 0x4f8e64
sub eax, 4
dec esi
jne 0x4f8dd0
xor esi, esi
cmp dword [0x6f4ae4], 0
jne 0x4f8df9
call fcn.00504e70
mov dword [0x6f4ae4], 0x4fa640
mov dword [edi], vtable.CryptoPP::Integer.0
push 0
mov dword [edi + 8], 0
call fcn.004e1fd0
add esp, 4
mov dword [edi + 0xc], 0
push 0
push esi
push ebp
mov ecx, edi
mov dword [esp + 0x5c], 1
call fcn.00506bc0
mov dword [esp + 0x50], 0
mov ecx, ebx
mov eax, dword [ebx]
push 0
push edi
push 1
mov eax, dword [eax + 0x44]
mov dword [esp + 0x20], 1
call eax
test al, al
jne 0x4f8e82
lea ecx, [esp + 0x1c]
call fcn.004dfa00
push 0x684e88
lea eax, [esp + 0x20]
push eax
call fcn.005cd5b0
test esi, esi
je 0x4f8ddf
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004f7180
sub eax, 4
lea esi, [eax + esi*4]
jmp 0x4f8de1
mov eax, edi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005c9914
add esp, 0x40
ret 0xc
Function at 0x4f92b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6076b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.004f3dd0
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov word [esp + 0x34], 0x3000
mov dword [esp + 8], vtable.CryptoPP::DERSequenceEncoder.1.0
mov dword [esp + 0xc], vtable.CryptoPP::DERSequenceEncoder.0
mov dword [esp + 0x48], 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x10]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
lea edx, [esp + 8]
push edx
call dword [eax + 8]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
call dword [eax + 4]
lea ecx, [esp + 8]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [esp + 8]
call fcn.004f7a00
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f7970
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005c9914
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x607728
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
cmp dword [0x6f4ae4], 0
mov dword [esp + 0x18], 0
jne 0x4f9582
call fcn.00504e70
mov dword [0x6f4ae4], 0x4fa640
push 2
mov dword [esp + 0x34], vtable.CryptoPP::Integer.0
mov dword [esp + 0x3c], 2
call fcn.004e1fd0
push 8
call fcn.004dbaf0
mov ebx, eax
mov dword [esp + 0x48], 0
add esp, 8
mov dword [esp + 0x3c], ebx
mov dword [ebx], 1
mov dword [ebx + 4], 0
lea edi, [esi - 4]
mov dword [esp + 0x78], 0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test esi, esi
je 0x4f95eb
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x4f9600
sub eax, 4
dec esi
jne 0x4f95e0
xor esi, esi
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
imul eax, esi
cmp eax, 5
jae 0x4f9619
xor eax, eax
jmp 0x4f9679
test esi, esi
je 0x4f95eb
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004da440
lea esi, [esi - 1]
shl esi, 5
add esi, eax
jmp 0x4f95ed
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x65ea90]
movsd qword [esp + 0x1c], xmm0
call fcn.005ce6e0
movsd xmm1, qword [0x65e838]
call fcn.005cf440
movsd xmm1, qword [0x65e828]
movsd qword [esp + 0x24], xmm0
movsd xmm0, qword [esp + 0x1c]
call fcn.005cf440
mulsd xmm0, qword [str.333333]
mulsd xmm0, qword [esp + 0x24]
subsd xmm0, qword [0x65e850]
call fcn.005ce22f
add eax, eax
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00506790
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov byte [esp + 0x78], 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004dea00
add esp, 0xc
mov esi, eax
mov byte [esp + 0x78], 2
cmp dword [edi + 0x10], 1
je 0x4f96d0
cmp dword [esi + 0x10], 1
je 0x4f96c9
push esi
mov ecx, edi
call fcn.005099d0
jmp 0x4f96e5
mov eax, 1
jmp 0x4f96e5
cmp dword [esi + 0x10], 1
je 0x4f96db
or eax, 0xffffffff
jmp 0x4f96e5
push esi
mov ecx, edi
call fcn.005099d0
neg eax
mov ecx, dword [ebp + 8]
test eax, eax
cmovs esi, edi
push esi
call fcn.00506530
mov edx, dword [esp + 0x4c]
xor eax, eax
mov esi, dword [esp + 0x50]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x4f9717
call fcn.005ffcb8
jmp 0x4f971c
call fcn.005ca27a
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x4f9743
call fcn.005ffcb8
jmp 0x4f9748
call fcn.005ca27a
add esp, 4
xor eax, eax
mov edi, ebx
mov ecx, 2
rep stosd dword es:[edi], eax
push ebx
call fcn.005ca27a
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4fa2a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6060f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x19
push str.Integer:_division_by_zero
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0045a870
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.005d2384
mov byte [esp + 0x30], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x10]
mov dword [esi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045ad40
cmp dword [esp + 0x20], 0x10
jb 0x4fa350
push dword [esp + 0xc]
call fcn.004dbb70
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::DivideByZero.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005c9914
add esp, 0x2c
ret

Function at 0x4fa380
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x606340
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0x32
push str.Integer:_no_integer_satisfies_the_given_parameters
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0045a870
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.005d2384
mov byte [esp + 0x38], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x14]
mov dword [esi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045ad40
cmp dword [esp + 0x24], 0x10
jb 0x4fa436
push dword [esp + 0x10]
call fcn.004dbb70
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::RandomNumberNotFound.0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005c9914
mov esp, ebp
pop ebp
ret
Function at 0x507060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x607a58
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6a1450]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.004f3dd0
mov eax, dword [ebp + 8]
mov dword [esp + 8], vtable.CryptoPP::DERGeneralEncoder.1.0
mov dword [esp + 0xc], vtable.CryptoPP::DERGeneralEncoder.0
mov dword [esp + 0x30], eax
mov word [esp + 0x34], 0x200
push 1
sub esp, 8
mov dword [esp + 0x54], 0
mov ecx, esi
call fcn.00506d80
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00506f10
lea ecx, [esp + 8]
call fcn.004f7a00
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.004f7970
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005c9914
mov esp, ebp
pop ebp
ret 4

Function at 0x509770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x607dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.004da440
dec eax
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004fa4f0
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.005068c0
mov edx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [esp + 0x24]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5097f8
call fcn.005ffcb8
jmp 0x5097fd
call fcn.005ca27a
mov eax, dword [ebx + 0xc]
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50c560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60821a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x6a1450]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
push 0
call fcn.005c8d30
mov dword [esp + 0x20], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [esp + 0x20], 6
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x50c609
lea eax, [esp + 0x28]
mov dword [esp + 0x28], str.bad_locale_name
push eax
lea ecx, [esp + 0x10]
call fcn.005d2321
push 0x68513c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], vtable.std::runtime_error.0
push eax
call fcn.005cd5b0
push eax
push esi
call fcn.005c9473
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x5119e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + str.cw]
mov edx, esi
mov ecx, esi
shr edx, 7
imul edi, edx, 0x1b000000
shl ecx, 0x19
imul edx, edx, 0x11b
xor edi, ecx
mov ecx, esi
shl ecx, 8
or ecx, esi
shl ecx, 8
or edi, ecx
lea ecx, [esi + esi]
xor edx, ecx
xor ecx, ecx
xor edx, esi
or ecx, edi
or edx, edi
mov dword [eax*8 + 0x6f4cf0], ecx
mov dword [eax*8 + 0x6f4cf4], edx
inc eax
cmp eax, 0x100
jl 0x5119e4
xorps xmm0, xmm0
pop edi
movlpd qword [0x6f54f8], xmm0
movlpd qword [0x6f54f0], xmm0
mov byte [0x6f4a9e], 1
pop esi
ret

Function at 0x511a50
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x647fb0]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x6f7ea0], eax
mov dword [edx*8 + 0x6f7ea4], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x511a60
pop edi
pop esi
pop ebp
mov byte [0x6f4a9f], 1
pop ebx
add esp, 0x10
ret
Function at 0x5132a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movdqa xmm0, xmmword [eax]
lea edx, [esi - 1]
pxor xmm0, xmmword [edi]
movdqa xmmword [eax], xmm0
cmp edx, 1
jbe 0x5132ee
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
mov edi, edi
movdqa xmm0, xmmword [eax]
lea ecx, [ecx + 0x20]
aesenc xmm0, xmmword [ecx - 0x20]
movdqa xmmword [eax], xmm0
aesenc xmm0, xmmword [ecx - 0x10]
movdqa xmmword [eax], xmm0
dec edx
jne 0x5132d0
movdqa xmm0, xmmword [eax]
add esi, esi
aesenc xmm0, xmmword [edi + esi*8 - 0x10]
movdqa xmmword [eax], xmm0
aesenclast xmm0, xmmword [edi + esi*8]
pop edi
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x513310
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movdqa xmm1, xmmword [eax]
movdqa xmm0, xmmword [ecx]
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
push esi
mov esi, dword [ebp + 0x10]
pxor xmm0, xmm1
movdqa xmmword [edx], xmm0
push edi
mov edi, dword [ebp + 0x1c]
movdqa xmm0, xmmword [esi]
pxor xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
cmp edi, 1
jbe 0x5133c5
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add edi, 0x10
dec ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
jmp 0x513380
dec dword [esp + 0xc]
lea edi, [edi + 0x10]
movdqa xmm1, xmmword [edi - 0x10]
movdqa xmm0, xmmword [ecx]
aesenc xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
aesenc xmm0, xmm1
movdqa xmmword [edx], xmm0
movdqa xmm0, xmmword [esi]
aesenc xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x513380
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add edi, edi
movdqa xmm0, xmmword [ecx]
movdqa xmm1, xmmword [eax + edi*8]
mov eax, dword [ebp + 0x14]
aesenclast xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
aesenclast xmm0, xmm1
movdqa xmmword [edx], xmm0
movdqa xmm0, xmmword [esi]
aesenclast xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
aesenclast xmm0, xmm1
pop edi
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret