joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4513b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47185a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 1
cmp eax, 5
ja case.0x451419.5
jmp dword [eax*4 + 0x4515d4]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
add esi, 0xc4
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00450ce0
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov eax, dword [eax + 4]
add eax, 0x10
push eax
jmp 0x4515b4
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
add esi, 0xe4
push eax
mov ecx, esi
call fcn.00450ce0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], edx
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0x1c]
call fcn.0044fca0
jmp 0x4515ad
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
add esi, 0x124
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.00450ce0
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov edx, dword [eax + 4]
add edx, 0x10
push edx
jmp 0x4515b4
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
add esi, 0x84
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00450ce0
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov eax, dword [eax + 4]
add eax, 0x10
push eax
jmp 0x4515b4
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
add esi, 0x64
push eax
mov ecx, esi
call fcn.00450ce0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edx
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov ecx, dword [eax + 4]
add ecx, 0x10
push ecx
mov ecx, edi
call dword [0x476084]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45156a
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47185a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 1
cmp eax, 5
ja case.0x451419.5
jmp dword [eax*4 + 0x4515d4]
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
add esi, 0xc4
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00450ce0
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov eax, dword [eax + 4]
add eax, 0x10
push eax
jmp 0x4515b4
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
add esi, 0xe4
push eax
mov ecx, esi
call fcn.00450ce0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], edx
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0x1c]
call fcn.0044fca0
jmp 0x4515ad
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
add esi, 0x124
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.00450ce0
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov edx, dword [eax + 4]
add edx, 0x10
push edx
jmp 0x4515b4
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
add esi, 0x84
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.00450ce0
mov ecx, dword [esi]
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov eax, dword [eax + 4]
add eax, 0x10
push eax
jmp 0x4515b4
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
add esi, 0x64
push eax
mov ecx, esi
call fcn.00450ce0
mov ecx, dword [esi + 0x18]
mov edx, dword [esi]
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edx
call fcn.0040bda0
test al, al
je case.0x451419.5
lea ecx, [esp + 0xc]
call fcn.0044fca0
mov ecx, dword [eax + 4]
add ecx, 0x10
push ecx
mov ecx, edi
call dword [0x476084]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45cbb0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x472e16
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4c6b0c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.dwgReader18::readDwgHeader_n
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0xc8], 0
call fcn.00460470
or edi, 0xffffffff
mov ecx, eax
mov dword [esp + 0xc8], edi
call fcn.004601e0
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x178]
mov dword [esp + 0x18], 2
call fcn.0045aea0
push eax
lea ecx, [esp + 0x3c]
call fcn.0045a860
cmp dword [esp + 0x38], 0
mov dword [esp + 0xac], 1
jge 0x45cc74
lea ecx, [esp + 0x38]
mov dword [esp + 0xac], edi
call fcn.0040d2e0
xor al, al
jmp 0x45cdbb
sub esp, 0x68
lea edx, [esp + 0xa0]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
call fcn.0045a860
mov ecx, esi
call fcn.00459da0
mov ecx, dword [esp + 0x84]
mov bl, al
mov eax, dword [esp + 0x80]
mov dword [esi + 0x1e8], eax
mov dword [esi + 0x1ec], ecx
test bl, bl
je 0x45cd8c
mov edx, dword [esi + 0x1e4]
lea edi, [esi + 0x1b8]
push edi
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0045dd50
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Header_section_sentinel
mov byte [esp + 0xcc], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0xc8], 3
call fcn.00460470
mov ecx, eax
mov byte [esp + 0xc8], 2
call fcn.004601e0
push 1
push 2
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0044fae0
cmp dword [esi + 0x170], 6
jne 0x45cd32
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
push ebp
mov ecx, esi
call fcn.0044fab0
mov bl, al
jmp 0x45cd78
mov eax, dword [esp + 0x80]
mov ecx, dword [esi + 0x1e4]
push edi
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045dd50
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push ebp
mov ecx, esi
mov byte [esp + 0xb8], 4
call fcn.0044fab0
lea ecx, [esp + 0x28]
mov bl, al
mov byte [esp + 0xac], 2
call fcn.0045ddf0
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 1
call fcn.0045ddf0
or edi, 0xffffffff
mov eax, dword [esi + 0x1e4]
test eax, eax
je 0x45cda9
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x1e4], 0
lea ecx, [esp + 0x38]
mov dword [esp + 0xac], edi
call fcn.0040d2e0
mov al, bl
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0046980b
add esp, 0x9c
ret 4
Function at 0x45e4f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
mov esi, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0x10]
call eax
mov esi, dword [esp + 0x20]
sub esi, ebx
push esi
call fcn.004697fb
mov ecx, dword [edi + 4]
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x20], eax
add esp, 4
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebx + 4]
mov edx, ebp
push edx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
mov ebx, dword [ecx]
cdq
push edx
mov edx, dword [ebx + 0x10]
push eax
call edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test al, al
jne 0x45e568
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov ebx, dword [esp + 0x18]
test esi, esi
jle 0x45e58e
movzx eax, byte [ebp]
movzx ecx, bl
shr bx, 8
xor eax, ecx
xor bx, word [eax*4 + 0x4c6210]
dec esi
inc ebp
movzx ebx, bx
test esi, esi
jg 0x45e570
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
pop ebp
mov ax, bx
pop ebx
pop ecx
ret 0xc

Function at 0x45e5b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi + 4]
mov esi, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0x10]
call eax
mov esi, dword [esp + 0x20]
sub esi, ebx
push esi
call fcn.004697fb
mov ecx, dword [edi + 4]
mov ebp, dword [ecx]
mov ebx, eax
mov dword [esp + 0x20], eax
add esp, 4
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp + 4]
mov edx, ebx
push edx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
mov ebp, dword [ecx]
cdq
push edx
mov edx, dword [ebp + 0x10]
push eax
call edx
mov edi, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
test al, al
jne 0x45e62a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x18]
not edi
test esi, esi
jle 0x45e650
mov al, byte [ebx]
movzx eax, al
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x4c6610]
dec esi
inc ebx
test esi, esi
jg 0x45e634
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
not eax
pop ebx
pop ecx
ret 0xc
Function at 0x465330
Capabilities:
Check http status code

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call edx
test al, al
jne 0x46534d
xor al, al
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
cmp eax, 0xa
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
jl 0x465490
cmp eax, 0x3c
jge 0x46536f
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
jmp 0x465495
cmp eax, 0x50
jge 0x46537e
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
jmp 0x465495
lea ecx, [eax - 0x5a]
cmp ecx, 9
ja 0x465390
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
jmp 0x465495
cmp eax, 0x64
je 0x465490
cmp eax, 0x66
je 0x465490
cmp eax, 0x69
je 0x465490
lea ecx, [eax - 0x6e]
cmp ecx, 0x27
jbe 0x465365
lea ecx, [eax - 0xa0]
cmp ecx, 9
ja 0x4653c8
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
jmp 0x465495
cmp eax, 0xb4
jl 0x465374
lea ecx, [eax - 0xd2]
cmp ecx, 0x1d
jbe 0x465365
lea ecx, [eax - 0x10e]
cmp ecx, 0x13
jbe 0x465374
cmp eax, 0x12c
jge 0x4653f6
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
jmp 0x465495
cmp eax, 0x172
jl 0x465490
cmp eax, 0x186
jl 0x465374
cmp eax, 0x190
jl 0x465490
cmp eax, 0x19a
jl 0x465374
cmp eax, 0x1a4
jl 0x465490
cmp eax, 0x1ae
jl 0x465386
cmp eax, 0x1b8
jl 0x465490
cmp eax, 0x1c2
jl 0x465386
cmp eax, 0x1cc
jl 0x465386
cmp eax, 0x1d6
jl 0x465365
cmp eax, 0x1e1
jl 0x465490
lea ecx, [eax - 0x3e7]
cmp ecx, 9
jbe 0x465490
cmp eax, 0x424
jl 0x465365
cmp eax, 0x42f
jl 0x465374
je 0x465386
cmp byte [esi + 0x48], 0
je 0x465346
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [esi + 0xc]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
xor eax, eax
cmp dword [edx + esi + 8], eax
pop esi
sete al
pop ecx
ret 4
Function at 0x465730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473fb2
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c6b0c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
push 0
push edi
push eax
mov dword [esi + 8], 0
call dword [sym.imp.MSVCP90.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____char_]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [esp + 0x30], 0
call fcn.00460470
or edi, 0xffffffff
mov ecx, eax
mov dword [esp + 0x30], edi
call fcn.004601e0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x476478
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x30], 1
call fcn.00460470
mov ecx, eax
mov dword [esp + 0x30], edi
call fcn.004601e0
mov esi, dword [esi + 0xc]
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
xor eax, eax
cmp dword [edx + esi + 8], eax
sete al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

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

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 4]
shr edx, 2
xor ecx, 0x4164536b
test dl, dl
jbe 0x46738a
movzx edx, dl
lea esp, [esp]
xor dword [eax], ecx
add eax, 4
sub edx, 1
jne 0x467380
ret
Function at 0x46980b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6b0c]
jne 0x469815
repz ret
jmp fcn.00469d35
Function at 0x401f00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov esi, eax
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx]
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x401f44
sub ecx, 2
jne 0x401f47
add eax, 2
jmp 0x401f47
add eax, 3
inc eax
cmp dword [ebx], eax
jae 0x401f5c
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
jle 0x401ff4
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esp, [esp]
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x401f90
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x40204c
movzx eax, byte [esi]
inc edx
cmp edx, edi
jge 0x402006
movzx esi, byte [esi + 1]
jmp 0x402008
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
cmp edx, edi
jge 0x402041
and esi, 0xf
mov dl, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], dl
jmp 0x402045
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub eax, dword [ebp + 0xc]
pop edi
mov dword [edx], eax
pop esi
mov byte [ecx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4021c0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x40235e
test eax, eax
je 0x40235e
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x4330f8]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x4334f8]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x432cf8]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x4328f8]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x4349fc
jmp 0x4022d0
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x4334f8]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4330f8]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4328f8]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x432cf8]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x434a20
jne 0x4022d0
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x402970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x439654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], esi
mov edx, eax
mov dword [ecx], 0
test edi, edi
je 0x402b25
test ebx, ebx
je 0x402b25
mov ecx, esi
test ecx, ecx
je 0x402b25
cmp dword [ebp - 0x10], 0
je 0x402b25
test eax, eax
je 0x402b25
cmp ecx, 0x10
jb 0x402a82
lea ecx, [ecx]
lea ecx, [ebx + 1]
mov ebx, edx
sub ebx, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
sub ebx, edi
lea esi, [edx + 3]
sub edx, dword [ebp - 0xc]
mov eax, edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 4
mov edx, ebx
mov ebx, dword [ebp - 0x18]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov ebx, dword [ebp - 0x28]
movzx ebx, byte [ebx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
movzx ebx, byte [eax - 2]
xor bl, byte [esi - 1]
add esi, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [esi - 4]
dec dword [ebp - 0x1c]
mov byte [ecx - 2], bl
jne 0x402a06
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push ecx
push ebx
mov eax, ebx
call fcn.00402370
add esp, 8
test eax, eax
jne 0x402b0f
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
add dword [eax], 0x10
sub esi, 0x10
mov edx, ebx
add ebx, 0x10
add edi, 0x10
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
cmp esi, 0x10
jae 0x4029e0
mov eax, dword [ebp - 0x20]
test esi, esi
je 0x402ade
mov eax, edx
sub eax, edi
mov dword [ebp - 0x18], eax
mov eax, ebx
sub eax, edi
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 0x18]
mov cl, byte [edi + ecx]
xor cl, byte [edi]
inc edi
dec dword [ebp - 8]
mov byte [edi + eax - 1], cl
jne 0x402a94
cmp esi, 0x10
jae 0x402ac0
mov edi, 0x10
sub edx, ebx
lea eax, [ebx + esi]
sub edi, esi
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
dec edi
jne 0x402ab7
mov edx, dword [ebp - 0x10]
push edx
push ebx
mov eax, ebx
call fcn.00402370
add esp, 8
test eax, eax
jne 0x402b0f
mov eax, dword [ebp - 0x14]
add dword [eax], 0x10
mov eax, dword [ebp - 0x20]
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417619
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00417619
mov esp, ebp
pop ebp
ret