joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x4153e0
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov eax, 0xf90325d7
xlatb
out 3, al
lodsb al, byte [esi]
pop esi
add ecx, dword [eax + 0x466ddfbc]
cmc
pop esp
mov bl, 0x13
jns 0x415378
bound edi, qword ss:[eax - 0x41891929]
push esp
push ds
add cl, byte [ebx - 0x7149a6b]
mov dword [0xd61180ea], eax
xchg edx, eax
adc byte [edx + 0x3f], bh
out 0x77, eax
out 0x3c, al
xlatb
jmp 0x4153e6
lodsb al, byte [esi]
pop esi
add eax, ebp
cld
aaa
xchg dword [edx - 7], eax
salc
mov ss, ebx
jnp 0x41538a
out 0x69, al
invalid
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x403203
pop dword [ebp - 4]
mov eax, 0x11f9e9a2
add eax, 0xee464861
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x80b125b4
add dword [ebp - 0x14], 0xcda11f97
mov dword [ebp - 0x10], 0x1f9d7f88
sub dword [ebp - 0x10], 0xed6a3343
mov dword [ebp - 0xc], 0xf9910a08
sub dword [ebp - 0xc], 0xad44c5da
mov dword [ebp - 8], 0x554b56c2
sub dword [ebp - 8], 0x554b56c2
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xfc637bb7
add dword [ebp - 0x14], 0x780eed9f
mov dword [ebp - 0x10], 0xa5b96f07
sub dword [ebp - 0x10], 0x644d0d92
mov dword [ebp - 0xc], 0x40da3645
add dword [ebp - 0xc], 0x22953627
mov dword [ebp - 8], 0x936b86
sub dword [ebp - 8], 0x936b86
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x3dd5d
push 0
call eax
mov ecx, 0x8d2baf64
sub ecx, 0x8d2b4a6d
mov esi, eax
mov edi, 0xdf92cf80
add edi, 0x20ae3080
add edi, dword [ebp - 4]
mov edx, 0xf24ffd6e
sub edx, 0x9afb13e7
mov ebx, dword [edi]
xor ebx, edx
mov dword [esi], ebx
add esi, 4
add edi, 4
loop 0x40331b
add eax, 0xc25484b6
add eax, 0x3dad01f9
xor ebx, ebx
add ebx, eax
add eax, 0x4f3cf840
add eax, 0xb0c307c5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401ca8
cmp byte [esi + ebx - 1], 0xa
je 0x401c7c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x402200
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x41c620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
sub esp, 0x84
lea edi, [esp + 0x80]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], edi
lea edi, [esp + 0x1c]
mov dword [esp], edi
mov dword [esp + 0x34], sym.___gxx_personality_sj0
mov dword [esp + 0x38], 0x5c1c10
mov dword [esp + 0x40], 0x41c749
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
mov dword [esp + 0x20], 0xffffffff
mov ecx, edx
mov dword [esp], eax
call dbg.CryptoPP::Integer::SquareRoot() const
sub esp, 4
lea edi, [esp + 0x68]
mov dword [esp + 0x20], 1
mov ecx, edi
call dbg.CryptoPP::Integer::Integer()
lea edx, [esp + 0x50]
mov dword [esp + 0x20], 2
mov dword [esp + 8], edx
mov dword [esp + 4], edx
lea edx, [esp + 0x68]
mov dword [esp], edx
call dbg.CryptoPP::PositiveMultiply(CryptoPP::Integer&, CryptoPP::Integer const&, CryptoPP::Integer const&)
lea edi, [esp + 0x68]
mov ecx, dword [esp + 0x18]
mov dword [esp], edi
call dbg.CryptoPP::Integer::Compare(CryptoPP::Integer const&) const
sub esp, 4
test eax, eax
mov edx, dword [esp + 0x78]
sete byte [esp + 0x18]
mov dword [esp + 0x68], 0x5f8fa0
test edx, edx
je 0x41c6fc
mov ecx, dword [esp + 0x74]
mov edi, edx
cmp dword [esp + 0x70], ecx
cmovbe ecx, dword [esp + 0x70]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp], edx
mov dword [esp + 0x20], 0
call dbg.CryptoPP::AlignedDeallocate(void*)
mov edx, dword [esp + 0x60]
mov dword [esp + 0x50], 0x5f8fa0
test edx, edx
je 0x41c72f
mov ecx, dword [esp + 0x5c]
mov edi, edx
cmp dword [esp + 0x58], ecx
cmovbe ecx, dword [esp + 0x58]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp], edx
mov dword [esp + 0x20], 0
call dbg.CryptoPP::AlignedDeallocate(void*)
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
movzx eax, byte [esp + 0x18]
add esp, 0x84
pop edi
pop ebp
ret
Function at 0x443430
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea eax, [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x34], sym.___gxx_personality_sj0
mov dword [esp + 0x38], 0x5c3ee8
mov dword [esp + 0x40], 0x4435c9
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov ecx, dword [esp + 0x70]
call dbg.CryptoPP::PolynomialMod2::BitCount() const
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call dbg.CryptoPP::PolynomialMod2::BitCount() const
add eax, dword [esp + 0x10]
mov dword [esp], 0
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call dbg.CryptoPP::PolynomialMod2::PolynomialMod2(unsigned int, unsigned int)
sub esp, 8
mov ecx, dword [esp + 0x74]
call dbg.CryptoPP::PolynomialMod2::BitCount() const
sub eax, 1
mov dword [esp + 0x10], eax
js 0x443520
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x4434f3
mov eax, dword [eax + 0xc]
sub ebx, 1
xor edx, edx
mov esi, eax
mov edi, dword [esi]
sub ebx, 1
add esi, 4
lea ecx, [edi + edi]
shr edi, 0x1f
or edx, ecx
mov dword [esi - 4], edx
mov edx, edi
cmp ebx, 0xffffffff
jne 0x4434d5
test edi, edi
jne 0x443540
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x74]
shr eax, 5
cmp dword [esi + 8], eax
jbe 0x443512
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + eax*4]
bt eax, ecx
jb 0x443571
sub dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x4434c0
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x14]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 8]
lea edi, [edx + 1]
mov dword [esp + 0x18], edi
cmp edx, edi
jb 0x4435a3
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
mov esi, dword [esp + 0x18]
mov dword [ecx + 4], 0x3fffffff
mov dword [eax + esi*4 - 4], 1
jmp 0x4434f3
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
test ecx, ecx
je 0x443512
lea ebx, [eax + ecx*4]
lea esi, [esi]
mov ecx, dword [edx]
xor dword [eax], ecx
add eax, 4
add edx, 4
cmp ebx, eax
jne 0x443590
jmp 0x443512
mov dword [esp], 1
mov ecx, edi
mov dword [esp + 0x20], 1
call method.CryptoPP::AllocatorWithCleanup_unsigned_int__false_::pointer_CryptoPP::StandardReallocate_unsigned_int__CryptoPP.AllocatorWithCleanup_unsigned_int__false____CryptoPP::AllocatorWithCleanup_unsigned_int__false___unsigned_int__CryptoPP::AllocatorWit
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], ebx
jmp 0x44355c
Function at 0x450790
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test esi, esi
je 0x4507f2
cmp esi, 3
jbe 0x450800
lea edx, [esi - 4]
shr edx, 2
lea ebp, [edx*4 + 4]
mov edx, edi
lea ebx, [eax + ebp]
nop
lea esi, [esi]
mov ecx, dword [edx]
xor dword [eax], ecx
add eax, 4
add edx, 4
cmp eax, ebx
jne 0x4507c0
add edi, ebp
and esi, 3
je 0x4507f2
movzx eax, byte [edi]
xor byte [ebx], al
cmp esi, 1
je 0x4507f2
movzx eax, byte [edi + 1]
xor byte [ebx + 1], al
cmp esi, 2
je 0x4507f2
movzx eax, byte [edi + 2]
xor byte [ebx + 2], al
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
jmp 0x4507d5

Function at 0x450890
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
cmp edi, 3
jbe 0x450930
lea edx, [edi - 4]
mov ecx, ebp
xor ebx, ebx
shr edx, 2
lea esi, [edx*4 + 4]
mov dword [esp], esi
add esi, eax
mov edx, dword [eax]
add eax, 4
xor edx, dword [ecx]
add ecx, 4
or ebx, edx
cmp eax, esi
jne 0x4508c2
mov eax, ebx
mov edx, ebx
add ebp, dword [esp]
and edi, 3
shr eax, 8
shr edx, 0x10
or eax, edx
or eax, ebx
shr ebx, 0x18
or ebx, eax
movzx ebx, bl
test edi, edi
je 0x45091f
movzx eax, byte [ebp]
xor al, byte [esi]
movzx eax, al
or ebx, eax
cmp edi, 1
je 0x45091f
movzx eax, byte [ebp + 1]
xor al, byte [esi + 1]
movzx eax, al
or ebx, eax
cmp edi, 2
je 0x45091f
movzx eax, byte [ebp + 2]
xor al, byte [esi + 2]
movzx eax, al
or ebx, eax
test ebx, ebx
sete al
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, eax
xor ebx, ebx
jmp 0x4508ee
Function at 0x4638a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
lea edx, [ebp - 8]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x5c4a0a
mov dword [ebp - 0x38], 0x463a1e
mov dword [esp], edx
call dbg._Unwind_SjLj_Register
mov eax, dword [ebp - 0x60]
mov dword [eax], 0
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], 0xffffffff
call eax
sub esp, 0x14
test eax, eax
je 0x463930
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Crypto_RNG
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [ebp - 0x64]
call eax
sub esp, 0x14
test eax, eax
jne 0x463919
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Crypto_RNG
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [ebp - 0x64]
call eax
sub esp, 0x14
test eax, eax
jne 0x463919
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ecx
mov dword [esp], 0x20
call sym.___cxa_allocate_exception
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov dword [esp], str.CryptAcquireContext
mov dword [ebp - 0x58], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.31_
push edx
lea edx, [ebp - 0x20]
mov dword [esp], edx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 2
call dbg.CryptoPP::OS_RNG_Err::OS_RNG_Err(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x4639fc
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [esp + 8], dbg.CryptoPP::OS_RNG_Err::~OS_RNG_Err()
mov dword [esp + 4], 0x5e0598
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sym.___cxa_throw
add ebp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x463a4b
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.___cxa_free_exception
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dbg._Unwind_SjLj_Resume
sub eax, 1
jne 0x463a64
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x463a2e
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x463a2e
ud2
Function at 0x463a70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 8]
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], 0x5c4a12
mov dword [ebp - 0x38], 0x463b90
mov dword [ebp - 0x34], esp
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
movzx eax, byte [0x5fdaa8]
test al, al
jne 0x463aba
mov dword [esp], 0x5fdaa8
call sym.___cxa_guard_acquire
test eax, eax
jne 0x463af3
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [0x5fdab0]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
sub esp, 0xc
test eax, eax
je 0x463b1e
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
leave
ret 8
mov dword [ebp - 0x58], 1
mov ecx, 0x5fdab0
call dbg.CryptoPP::MicrosoftCryptoProvider::MicrosoftCryptoProvider()
mov dword [esp], 0x5fdaa8
call sym.___cxa_guard_release
mov dword [esp], dbg.__tcf_0
call sym._atexit
jmp 0x463aba
mov dword [esp], 0x20
call sym.___cxa_allocate_exception
lea edx, [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov ecx, edx
mov dword [esp], str.CryptGenRandom
mov dword [ebp - 0x58], 2
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.31_
push edx
lea edx, [ebp - 0x20]
mov dword [esp], edx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 3
call dbg.CryptoPP::OS_RNG_Err::OS_RNG_Err(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x463b6e
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [esp + 8], dbg.CryptoPP::OS_RNG_Err::~OS_RNG_Err()
mov dword [esp + 4], 0x5e0598
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sym.___cxa_throw
add ebp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x463bbe
mov dword [esp], 0x5fdaa8
call sym.___cxa_guard_abort
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dbg._Unwind_SjLj_Resume
sub eax, 1
jne 0x463be0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.___cxa_free_exception
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dbg._Unwind_SjLj_Resume
sub eax, 1
jne 0x463bf9
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x463bc3
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x463bc3
ud2
Function at 0x463c70
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
lea edx, [ebp - 8]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x44], sym.___gxx_personality_sj0
mov dword [ebp - 0x40], 0x5c4a20
mov dword [ebp - 0x38], 0x463dff
mov dword [esp], edx
call dbg._Unwind_SjLj_Register
mov dword [esp], 1
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 0xffffffff
call dbg.CryptoPP::Algorithm::Algorithm(bool)
mov eax, dword [ebp - 0x60]
sub esp, 4
mov dword [eax], fcn.00462f30
lea edx, [eax + 4]
mov dword [eax + 4], 0
mov eax, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [ebp - 0x60], edx
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [ebp - 0x64], eax
call eax
sub esp, 0x14
test eax, eax
je 0x463d15
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Crypto_RNG
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [ebp - 0x64]
call eax
sub esp, 0x14
test eax, eax
jne 0x463d08
mov dword [esp + 0x10], 0x28
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Crypto_RNG
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov eax, dword [ebp - 0x64]
call eax
sub esp, 0x14
test eax, eax
jne 0x463d08
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ecx
mov dword [esp], 0x20
call sym.___cxa_allocate_exception
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x60], eax
mov dword [esp], str.CryptAcquireContext
mov dword [ebp - 0x58], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const___clone_.isra.31_
push edx
lea edx, [ebp - 0x20]
mov dword [esp], edx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 2
call dbg.CryptoPP::OS_RNG_Err::OS_RNG_Err(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x463ddd
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [esp + 8], dbg.CryptoPP::OS_RNG_Err::~OS_RNG_Err()
mov dword [esp + 4], 0x5e0598
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sym.___cxa_throw
add ebp, 8
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x463e2c
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sym.___cxa_free_exception
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dbg._Unwind_SjLj_Resume
sub eax, 1
jne 0x463e45
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
cmp eax, edx
je 0x463e0f
mov dword [esp], eax
call sym.operator_delete_void_
jmp 0x463e0f
ud2
Function at 0x46ccd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
xor ecx, ecx
push edi
push esi
push ebx
lea esi, [esi]
lea edi, [edi]
movzx edx, byte [ecx + 0x5d5620]
mov ebx, edx
mov eax, edx
mov ebp, edx
sar ebx, 5
shr al, 7
mov esi, ebx
mov edi, ebx
and ebx, 4
movzx eax, al
and esi, 1
imul ebx, ebx, 0x11b
and edi, 2
imul edi, edi, 0x11b
imul esi, esi, 0x11b
imul eax, eax, 0x11b
xor esi, edi
lea edi, [edx*8]
xor esi, edi
xor esi, ebx
mov ebx, edx
sar ebx, 6
xor ebp, esi
mov edi, ebx
and ebx, 2
shl ebp, 0x10
and edi, 1
imul ebx, ebx, 0x11b
imul edi, edi, 0x11b
xor edi, ebx
lea ebx, [edx*4]
xor edi, ebx
lea ebx, [edx + edx]
xor eax, ebx
xor edi, esi
mov ebx, edx
xor ebx, edi
xor edi, eax
xor eax, edx
shl ebx, 8
shl edi, 0x18
xor eax, esi
or ebx, edi
or ebx, ebp
or eax, ebx
or edx, ebx
mov dword [ecx*8 + 0x5fe2e0], edx
mov dword [ecx*8 + 0x5fe2e4], eax
add ecx, 1
cmp ecx, 0x100
jne 0x46cce0
pop ebx
pop esi
mov byte [0x5fe2d0], 1
pop edi
pop ebp
ret