joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a9110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
mov dword [ebp - 8], edx
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x100a91a6
mov edx, dword [ebp + 8]
push esi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x100a9165
mov esi, dword [esi]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x100a9191
test edx, edx
jne 0x100a91a3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea ecx, [eax + 0x18]
push 0
call fcn.1006a4d0
add esp, 4
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x100a9188
mov eax, dword [ebp - 0xc]
inc edi
mov edx, dword [ebp + 8]
cmp edi, dword [eax + 0x14]
jl 0x100a9130
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x102aac18]
movzx edx, byte [edx + 0x102aac18]
sub edx, ecx
jne 0x100a917c
inc eax
jmp 0x100a9153
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10105b10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10105b41
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10105b30
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x101088d0
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x10108aec
cmp eax, 0x7c
je 0x10108aec
cmp eax, 0x29
jne 0x1010890c
cmp dword [esi + 0x10], 0
jne 0x10108aec
test dword [esi + 0x50], 0x10000000
je 0x10108b03
cmp eax, 0x2e
jne 0x10108920
push 5
lea ecx, [esi + 0x24]
call fcn.10108b60
jmp 0x10108ad0
cmp eax, 0x5c
jne 0x10108985
mov ecx, esi
call fcn.10108870
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x10108952
cmp byte [esi + 0x48], 0x62
jne 0x10108952
push 4
lea ecx, [esi + 0x24]
call fcn.10108b60
mov ecx, esi
call fcn.10108870
jmp 0x10108ade
test eax, eax
je 0x10108979
cmp byte [esi + 0x48], 0x42
jne 0x10108979
push 4
lea ecx, [esi + 0x24]
call fcn.10108b60
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.10108870
jmp 0x10108ade
mov ecx, esi
call fcn.10109900
jmp 0x10108ad7
cmp eax, 0x5b
jne 0x10108a37
mov ecx, esi
call fcn.10108870
lea ecx, [esi + 0x24]
call fcn.1010ae40
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x101089b6
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.10108870
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x10108a21
cmp eax, 0x5d
jne 0x10108a21
test dword [esi + 0x2c], 0x100
mov bl, al
je 0x101089df
mov eax, dword [esi + 0x30]
push 0x5d
mov ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::ctype_char_::tolower_char_const]
mov bl, al
mov edi, dword [esi + 0x28]
mov ecx, dword [edi + 0x18]
test ecx, ecx
jne 0x10108a05
push 0x20
call fcn.1010f580
xorps xmm0, xmm0
mov dword [ebp - 4], eax
add esp, 4
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [edi + 0x18], eax
movzx edx, bl
mov eax, edx
and edx, 7
shr eax, 3
add ecx, eax
movzx eax, byte [ecx]
bts eax, edx
mov byte [ecx], al
mov ecx, esi
call fcn.10108870
mov ecx, esi
call fcn.1010a980
cmp dword [esi + 0x4c], 0x5d
jne 0x10108afc
jmp 0x10108ad0
cmp eax, 0x28
jne 0x10108a63
mov ecx, esi
call fcn.10108870
mov ecx, esi
call fcn.10109b00
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x10108b03
mov ecx, esi
call fcn.10108870
test bl, bl
je 0x10108ade
jmp 0x10108ad7
cmp eax, 0x5e
jne 0x10108a7b
push 2
lea ecx, [esi + 0x24]
call fcn.10108b60
mov ecx, esi
call fcn.10108870
jmp 0x10108ade
cmp eax, 0x24
jne 0x10108a93
push 3
lea ecx, [esi + 0x24]
call fcn.10108b60
mov ecx, esi
call fcn.10108870
jmp 0x10108ade
cmp eax, 0x2a
je 0x10108af5
cmp eax, 0x2b
je 0x10108af5
cmp eax, 0x3f
je 0x10108af5
cmp eax, 0x7b
je 0x10108af5
cmp eax, 0x7d
jne 0x10108ab5
test dword [esi + 0x50], 0x10000000
je 0x10108b0a
cmp eax, 0x5d
jne 0x10108ac3
test dword [esi + 0x50], 0x10000000
je 0x10108afc
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10109d70
mov ecx, esi
call fcn.10108870
mov ecx, esi
call fcn.10109c10
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x101088e7
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
push 0xa
call fcn.10107820
push 4
call fcn.10107820
push 5
call fcn.10107820
push 6
call fcn.10107820
int3
Function at 0x1010c490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10234d48
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x102d4008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x1010c4d3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.1005b180
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x1010c4fc
lea edx, [esi + 8]
jmp 0x1010c4fe
xor edx, edx
mov ecx, ebx
call fcn.1004d770
test al, al
jne 0x1010c510
call fcn.1004b000
jmp 0x1010c512
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x1010c533
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1010c533
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x1010c55c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1010c571
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.1010f5b0
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f56f
mov esp, ebp
pop ebp
ret 4

Function at 0x1010ed70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x102d4008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x1010edf2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x1010edf2
test ecx, ecx
je 0x1010edee
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x1010edb0
xor eax, eax
jmp 0x1010edf7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1010ee01
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010f56f
add esp, 0xc
ret 0xc
Function at 0x1010ee80
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x102d4008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x1010eeae
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1010f56f
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x1010ee97
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1010eef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1010eef4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.1010f56f
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.1010f56f
add esp, 8
ret 4

Function at 0x10112d80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10235320
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x10112de5
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x10112dd5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x10112e15
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.1004d980
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.10111440
push 0x102cd938
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.1004d980
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.10111440
push 0x102cd938
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1014b2b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1023808e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [esi + 4]
push eax
lea ecx, [edi + 4]
mov dword [edi], vtable.Poco::Data::MetaColumn.0
call fcn.10050fc0
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov al, byte [esi + 0x2c]
mov byte [edi + 0x2c], al
push dword [ebp + 0xc]
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 0
call fcn.1014be80
lea ebx, [edi + 0x38]
mov byte [ebp - 4], 1
push 8
mov dword [ebp + 8], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.1010f580
mov dword [ebx], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebx]
mov dword [eax], ebx
mov edx, dword [edi + 0x34]
mov byte [ebp - 4], 2
test edx, edx
jne 0x1014b38a
push 0xc8
push str.e:xhsundcode_remote_trunk_rhinopcinfrastructure_thirdpartypoco_srcdataincludepocodatacolumn.h
push str._pData
call fcn.10110860
mov edx, dword [edi + 0x34]
add esp, 0xc
test edx, edx
je 0x1014b3d8
mov ecx, dword [edx + 0xc]
mov esi, dword [edx]
test ecx, ecx
jns 0x1014b3ab
mov eax, ecx
neg eax
je 0x1014b3ab
mov eax, ecx
not eax
shr eax, 5
lea eax, [eax*4 + 4]
sub esi, eax
jmp 0x1014b3b3
mov eax, ecx
shr eax, 5
lea esi, [esi + eax*4]
and ecx, 0x1f
push ecx
push esi
push 0
push dword [edx]
mov ecx, ebx
call fcn.1013fa80
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 0x40]
call fcn.10111270
push 0x102cd90c
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1014bf00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102383d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
mov ebx, ecx
push edi
push 0
mov dword [ebp - 0x14], ebx
lea eax, [ebx + 0xc]
mov dword [ebp - 0x10], 0
push 0xffffffffffffffff
push eax
mov dword [ebx], vtable.Poco::Data::StatementImpl.0
mov dword [ebx + 8], 0
call fcn.1014a2f0
add esp, 0xc
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x30]
mov dword [ebx + 0x24], eax
lea ecx, [edi + 0x50]
mov dword [ebx + 0x28], 3
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
mov dword [edi], 0x102ae358
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea esi, [edi + 4]
mov byte [ebp - 4], 2
push esi
mov ecx, edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [edi]
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0
lea esi, [ebx + 0xd4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea edi, [ebx + 0xec]
mov dword [ebx + 0xe0], 0
mov dword [ebx + 0xe4], 0
mov dword [ebx + 0xe8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [ebx + 0x24]
mov byte [ebp - 4], 7
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x1014c0b5
push esi
push 1
mov ecx, esi
call fcn.1013a800
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
lea ecx, [ebx + 0x18]
push ecx
push 1
call fcn.1013a520
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push 1
mov ecx, edi
call fcn.101093e0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x24]
push 0
call fcn.1004dd00
push eax
lea ecx, [ebp - 0x44]
call fcn.10173ef0
push 0x102c79bc
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1016f360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10236418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov edi, dword [esi + 8]
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], 0
test edi, edi
je 0x1016f3c2
push dword [esi + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [esi + 0xc]
call dword [eax + 0x30]
lea ecx, [ebp - 0x14]
call fcn.10112c10
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40]
call fcn.10111270
push 0x102cd90c
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x10172be0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10238dd9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [edi]
mov dword [ebx], edx
mov eax, dword [edi + 4]
push edx
mov dword [ebx + 4], eax
call esi
mov al, byte [edi + 8]
mov byte [ebx + 8], al
mov ecx, dword [edi + 0xc]
mov dword [ebx + 0xc], ecx
mov eax, dword [edi + 0x10]
push ecx
mov dword [ebp - 4], 0
mov dword [ebx + 0x10], eax
call esi
lea ecx, [ebx + 0x14]
mov byte [ebp - 4], 1
call fcn.10110590
mov ecx, dword [edi + 0x2c]
mov dword [ebx + 0x2c], ecx
mov eax, dword [edi + 0x30]
push ecx
mov dword [ebx + 0x30], eax
call esi
lea eax, [edi + 0x34]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x34]
call fcn.101729e0
mov ecx, dword [edi + 0x40]
mov dword [ebx + 0x40], ecx
mov eax, dword [edi + 0x44]
push ecx
mov dword [ebx + 0x44], eax
call esi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0xf
mov byte [ebx + 0x48], 0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x101864f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.10231a20
mov eax, dword [0x102d4008]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x1018655d
cmp edi, eax
je 0x10186551
test ebp, ebp
je 0x101865d0
test ebx, ebx
js 0x101865d0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x10186563
test eax, eax
je 0x101865d0
mov edi, eax
push edi
call fcn.10183f70
add esp, 4
test al, 2
jne 0x101865d0
test ebp, ebp
je 0x101866db
push edi
mov dword [esp + 0x14], 1
call fcn.10184370
add esp, 4
cmp eax, 0x90
jg 0x101865d0
cmp eax, ebx
jge 0x101865eb
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.1018d990
add esp, 0xc
test eax, eax
je 0x101865d0
push ebx
push ebp
push dword [esi + 4]
call fcn.1018db30
add esp, 0xc
test eax, eax
je 0x101865d0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.1018d8f0
add esp, 0xc
test eax, eax
jne 0x10186607
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010f56f
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x101865d0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x1018662a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10186630
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.1018d990
add esp, 0xc
test eax, eax
je 0x101866e8
push edi
call fcn.10184370
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.1018db30
add esp, 0x10
test eax, eax
je 0x101866e8
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10186680
push ebp
push edi
push dword [esi + 0xc]
call fcn.1018d990
add esp, 0xc
test eax, eax
je 0x101866e8
push edi
call fcn.10184370
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.1018db30
add esp, 0x10
test eax, eax
je 0x101866e8
push dword [esi + 8]
push dword [esi + 4]
call fcn.1018db50
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x101866ea
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x101866bf
jmp 0x1018662e
xor ebp, ebp
test ebx, ebx
je 0x10186700
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.10001320
add esp, 8
mov eax, ebp
jmp 0x101865d2
Function at 0x1018c220
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.10231a20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.10185af0
mov ebx, eax
push ebx
push esi
call fcn.101859e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1018c2a9
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1018c283
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.10185a40
push esi
call fcn.10185b70
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1018c2a9
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.10185af0
mov ebx, eax
push ebx
push esi
call fcn.101859e0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1018c318
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1018c2fe
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.10185a40
push esi
call fcn.10185b70
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x1018c2a1
push esi
call fcn.10185b70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x1019fce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.10231a20
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x1019fd24
cmp ecx, edx
jb 0x1019fd24
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x1019fd13
pop edi
jmp 0x1019fd31
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.10184b20
add esp, 0x14
pop esi
test eax, eax
je 0x1019fd5b
cmp dword [esp], 0x10
jne 0x1019fd5b
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x1019fea0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x1019ff03
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1019ff03
push ebx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x1019fed6
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x1019fec7
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x1019ff01
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x1019ff01
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x1019fef0
pop edi
pop ebx
pop esi
ret

Function at 0x101a4750
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.101cefa0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x101a47f5
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.101892f0
push 0x1026efc4
push esi
push 0x1026efc8
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.10188980
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
add esp, 0x2c
call esi
cmp dword [eax], 2
je 0x101a47d2
call esi
cmp dword [eax], 6
je 0x101a47d2
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x101a47dc
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.101892f0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1026ef6c
call fcn.1018f8a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x101a4818
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.1018f270
push edi
push ebx
push 0x6a
push esi
call fcn.1018f2a0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x101ff0b0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x101ff0c4
mov dword [esp + 0x18], fcn.101fd890
jmp fcn.101f02a0
mov dword [esp + 0x18], fcn.101fcb30
jmp fcn.101effd0