joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011ca0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.100567b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10011d7d
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x2888], 0x2880
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x10011d7d
lea eax, [ebp - 0x2884]
nop
cmp byte [eax + 0x194], 0
jne 0x10011d3d
cmp byte [eax + 0x195], 0
jne 0x10011d3d
cmp byte [eax + 0x196], 0
jne 0x10011d3d
cmp byte [eax + 0x197], 0
jne 0x10011d3d
cmp byte [eax + 0x198], 0
jne 0x10011d3d
cmp byte [eax + 0x199], 0
jne 0x10011d3d
mov eax, dword [eax]
test eax, eax
jne 0x10011cf0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push 0x100e4178
push 0x64
push esi
call fcn.10057794
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
Function at 0x10012940
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1320
call fcn.100567b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x2d4], ax
mov esi, ecx
lea eax, [ebp - 0x2d2]
push eax
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100dd6d4
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
push dword [esi + 0x20]
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
add esp, 0x18
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100129d9
lea ecx, [ebp - 0x2d4]
call fcn.10006a40
push str.index.dat
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0x100e3b58
push 0x100e420c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100567e0
xor eax, eax
push 0x1046
push eax
mov word [ebp - 0x131c], ax
lea eax, [ebp - 0x131a]
push eax
call fcn.100567e0
add esp, 0x18
test edi, edi
jle 0x10012ada
mov esi, 1
cmp edi, esi
jl 0x10012ada
jmp 0x10012a60
push esi
lea eax, [ebp - 0xcc]
push str.key_d
push eax
call fcn.100080e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0x824
lea eax, [ebp - 0x131c]
push eax
push 0x100e3908
lea eax, [ebp - 0xcc]
push eax
push 0x100e420c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x131c]
lea edx, [eax + 2]
jmp 0x10012ab0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012ab0
sub eax, edx
sar eax, 1
je 0x10012ad5
lea eax, [ebp - 0x131c]
push eax
push ebx
call fcn.10056d04
add esp, 8
test eax, eax
je 0x10012aef
inc esi
cmp esi, edi
jle 0x10012a60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
Function at 0x10012b10
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x2d4], ax
mov esi, ecx
lea eax, [ebp - 0x2d2]
push eax
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100dd6d4
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
push dword [esi + 0x20]
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
add esp, 0x18
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10012ba5
lea ecx, [ebp - 0x2d4]
call fcn.10006a40
push str.index.dat
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0x100e3b58
push 0x100e420c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
xor eax, eax
push 0xc6
push eax
cmp edi, 0xa
jle 0x10012c6d
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100567e0
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x2d4]
add esp, 0xc
push eax
push 0
push 0x100e3b58
push 0x100e420c
call ebx
mov esi, 1
cmp edi, esi
jle 0x10012c58
push esi
lea eax, [ebp - 0xcc]
push str.key_d
push eax
call fcn.100080e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0x100e3908
lea eax, [ebp - 0xcc]
push eax
push 0x100e420c
call ebx
inc esi
cmp esi, edi
jl 0x10012c24
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
mov word [ebp - 0x39c], ax
inc edi
lea eax, [ebp - 0x39a]
push eax
call fcn.100567e0
push edi
lea eax, [ebp - 0x39c]
push str.key_d
push eax
call fcn.100080e0
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100567e0
push edi
lea eax, [ebp - 0xcc]
push 0x100e3a14
push eax
call fcn.100080e0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x2d4]
add esp, 0x30
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x100e3b58
push 0x100e420c
call esi
test eax, eax
je 0x10012c58
lea eax, [ebp - 0x2d4]
push eax
push ebx
lea eax, [ebp - 0x39c]
push eax
push 0x100e420c
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
Function at 0x10012d20
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x2d4], ax
lea eax, [ebp - 0x2d2]
push eax
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100dd6d4
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
push dword [esi + 0x20]
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
push str.index.dat
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.10055f38
add esp, 0x24
lea eax, [ebp - 0x2d4]
push eax
push 0
push 0x100e3b58
push 0x100e420c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
test ebx, ebx
jle 0x10012e6e
push edi
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.100567e0
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x2d4]
add esp, 0xc
push eax
push 0
push 0x100e3b58
push 0x100e420c
call edi
mov esi, 1
cmp ebx, esi
jle 0x10012e5b
push esi
lea eax, [ebp - 0xcc]
push str.key_d
push eax
call fcn.100080e0
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0x100e3908
lea eax, [ebp - 0xcc]
push eax
push 0x100e420c
call edi
inc esi
cmp esi, ebx
jl 0x10012e11
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret
Function at 0x100182d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
push 0
push 0x1fffff
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001837b
test esi, esi
je 0x1001837b
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100183a5
push edi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10018378
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x10018378
mov eax, dword [ebp + 8]
add eax, ebx
cmp ecx, eax
jae 0x10018378
push esi
call edx
cmp edi, 3
jge 0x1001838b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
inc edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10018335
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret

Function at 0x100183c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x1017a23c], esi
jbe 0x10018416
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1017a234]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x1017a234]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x1017a23c]
jb 0x100183f4
pop ebx
push dword [0x1017a234]
call fcn.10055d78
add esp, 4
mov dword [0x1017a234], 0
mov dword [0x1017a23c], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001ed20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1017a2dc]
push esi
cmp dword [eax + 0x11f4], 0
mov eax, dword [0x1017b7b4]
je 0x1001ed49
mov esi, dword [eax + 0x10]
jmp 0x1001ed4c
mov esi, dword [eax + 0x14]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001edd5
push esi
call fcn.10002d20
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001edd5
push 0
push 0
push esi
push 0x1000da50
push 0
push 0
call fcn.10057f0c
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1001edb7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 1
jne 0x1001edb7
mov eax, dword [0x1017a2dc]
mov eax, dword [eax + 0x11f0]
jmp 0x1001edc2
mov eax, dword [0x1017a2dc]
mov eax, dword [eax + 0x11ec]
test eax, eax
je 0x1001edd5
mov ecx, 5
mov dword [0x1017a2dc], eax
call fcn.10020370
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10056351
mov esp, ebp
pop ebp
ret

Function at 0x1001f450
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x1017a2dc]
push esi
cmp dword [eax + 0x11f4], 0
mov eax, dword [0x1017b7b4]
je 0x1001f469
mov esi, dword [eax + 0x10]
jmp 0x1001f46c
mov esi, dword [eax + 0x14]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001f537
push ebx
push esi
call fcn.10002d20
add esp, 4
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001f536
push 0x20
call fcn.10055db0
mov ecx, dword [0x1017a2dc]
add esp, 4
mov esi, eax
add ecx, 0x190
push ecx
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [0x1017a2dc]
push 0
push 0
push esi
push fcn.1000f220
mov dword [esi], ebx
mov ecx, dword [ecx + 0x1a0]
push 0
push 0
mov dword [esi + 0x1c], ecx
call fcn.10057f0c
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1001f4f6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1017a2dc]
mov ecx, dword [eax + 0x11f0]
test ecx, ecx
je 0x1001f517
pop ebx
mov dword [0x1017a2dc], ecx
mov ecx, 5
pop esi
jmp fcn.10020370
cmp dword [eax + 0x11ec], 0
je 0x1001f536
pop ebx
mov dword [0x1017a2dc], 0
mov ecx, 5
pop esi
jmp fcn.10020370
pop ebx
pop esi
ret
Function at 0x100322c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c5c23
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
mov dword [edi + 0xc], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [edi + 0x14], 0
mov dword [esp + 0x60], 2
xor ecx, ecx
mov dword [edi], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [edi + 4], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [edi + 0x2c], 0
call fcn.10014260
mov dword [edi + 0x30], 0
mov dword [esp + 0x60], 3
xor ecx, ecx
mov dword [edi + 0x4c], 0
call fcn.10014260
mov dword [edi + 0x50], 0
push 0
push 0x10177958
push 0x10177434
mov byte [esp + 0x6c], 4
push 0
push esi
mov dword [edi], vtable.CryptoPP::StreamTransformationFilter.1.0
mov dword [edi + 4], vtable.CryptoPP::StreamTransformationFilter.0
mov dword [edi + 0x54], esi
call fcn.100c4752
add esp, 0x14
test eax, eax
je 0x10032419
push 0x87
push str.StreamTransformationFilter:_please_use_AuthenticatedEncryptionFilter_and_AuthenticatedDecryptionFilter_for_AuthenticatedSymmetricCipher
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.10006290
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 5
call fcn.10057d1f
push 0xffffffffffffffff
mov byte [esp + 0x64], 6
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], vtable.CryptoPP::Exception.0
mov dword [esp + 0x44], 1
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.10006160
push 0x100f3418
lea eax, [esp + 0x30]
mov byte [esp + 0x64], 5
push eax
mov dword [esp + 0x34], vtable.CryptoPP::InvalidArgument.0
call fcn.10056360
push ecx
lea eax, [esp + 0x10]
mov edx, str.BlockPaddingScheme
push eax
lea ecx, [esp + 0x1c]
call fcn.10032fb0
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x64], 7
call fcn.100319c0
mov byte [esp + 0x60], 4
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10032450
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10056351
add esp, 0x58
ret 0x10
Function at 0x10032fb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100c5d7c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 1
push ecx
push dword [esp + 0x34]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 1
push edx
call fcn.100331e0
mov dword [esi], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esi + 4], 0
mov byte [esp + 0x28], 2
mov cl, byte [eax + 8]
mov byte [esi + 8], cl
mov edi, dword [eax + 4]
mov dword [eax + 4], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1003303e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], edi
mov byte [esp + 0x28], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 1
test ecx, ecx
je 0x1003305c
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x10035b30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c62a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x88]
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], ebx
call fcn.100359a0
add esp, 4
mov esi, eax
push 0x100e8310
mov edx, edi
mov dword [esp + 0x84], 0
lea ecx, [esp + 0x30]
call fcn.100338e0
add esp, 4
push esi
mov edx, eax
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x18]
call fcn.100356f0
add esp, 4
push str._is_not_a_valid_key_length
mov edx, eax
mov byte [esp + 0x84], 2
lea ecx, [esp + 0x48]
call fcn.10014960
add esp, 4
mov esi, eax
mov ecx, ebx
mov byte [esp + 0x80], 3
call fcn.10057d1f
mov byte [esp + 0x80], 4
lea ecx, [ebx + 0x10]
push 0xffffffffffffffff
mov dword [ebx], vtable.CryptoPP::Exception.0
mov dword [ebx + 0xc], 1
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.10006160
cmp dword [esp + 0x58], 0x10
mov dword [ebx], vtable.CryptoPP::InvalidArgument.0
jb 0x10035c31
push dword [esp + 0x44]
call fcn.100559ce
add esp, 4
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x10035c59
push dword [esp + 0x14]
call fcn.100559ce
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x10035c81
push dword [esp + 0x2c]
call fcn.100559ce
add esp, 4
cmp dword [esp + 0x70], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x10035ca9
push dword [esp + 0x5c]
call fcn.100559ce
add esp, 4
mov eax, ebx
mov dword [ebx], vtable.CryptoPP::InvalidKeyLength.0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10056351
add esp, 0x74
ret 8
Function at 0x10036670
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
xor eax, eax
push edi
movzx esi, byte [eax + 0x100e3400]
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 + 0x1017a8d0], ecx
mov dword [eax*8 + 0x1017a8d4], edx
inc eax
cmp eax, 0x100
jl 0x10036674
xorps xmm0, xmm0
pop edi
movlpd qword [0x1017b0d8], xmm0
movlpd qword [0x1017b0d0], xmm0
mov byte [0x1017a37f], 1
pop esi
ret

Function at 0x100366e0
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 + 0x100e3300]
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 + 0x1017c0a0], eax
mov dword [edx*8 + 0x1017c0a4], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x100366f0
pop edi
pop esi
pop ebp
mov byte [0x1017a37e], 1
pop ebx
add esp, 0x10
ret
Function at 0x100378e0
Capabilities:
Decrypt 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 0x1003792e
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
mov edi, edi
movdqa xmm0, xmmword [eax]
lea ecx, [ecx + 0x20]
aesdec xmm0, xmmword [ecx - 0x20]
movdqa xmmword [eax], xmm0
aesdec xmm0, xmmword [ecx - 0x10]
movdqa xmmword [eax], xmm0
dec edx
jne 0x10037910
movdqa xmm0, xmmword [eax]
add esi, esi
aesdec xmm0, xmmword [edi + esi*8 - 0x10]
movdqa xmmword [eax], xmm0
aesdeclast xmm0, xmmword [edi + esi*8]
pop edi
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10037950
Capabilities:
Decrypt 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 0x10037a05
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 0x100379c0
dec dword [esp + 0xc]
lea edi, [edi + 0x10]
movdqa xmm1, xmmword [edi - 0x10]
movdqa xmm0, xmmword [ecx]
aesdec xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
aesdec xmm0, xmm1
movdqa xmmword [edx], xmm0
movdqa xmm0, xmmword [esi]
aesdec xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
aesdec xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x100379c0
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]
aesdeclast xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
aesdeclast xmm0, xmm1
movdqa xmmword [edx], xmm0
movdqa xmm0, xmmword [esi]
aesdeclast xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
aesdeclast xmm0, xmm1
pop edi
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret