joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10077190
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.MSVCR80.dll__time64]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea esi, [edi + 0x198]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.MSVCR80.dll__localtime64_s]
mov ebp, dword [esp + 0x30]
add esp, 0xc
test ebp, ebp
mov dword [edi + 0x1bc], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jne 0x1007720b
lea esi, [edi + 0x10]
push str.testLog.log
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 8
push 0x40
push 8
push esi
lea ecx, [edi + 0x110]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::open_char_const___int__int_]
jmp 0x100772dd
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10077210
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0xfde9
call fcn.1007e450
add esp, 0x14
test eax, eax
jne 0x1007726f
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x1007727b
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCR80.dll__wmkdir]
add esp, 4
test eax, eax
je 0x1007727b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1007726f
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret 4
mov ecx, edi
lea esi, [edi + 0x10]
call fcn.10077130
push eax
push str.XecureWebLog
push ebp
push str._s__s__s
push esi
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100772a0
sub eax, edx
push eax
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0xfde9
call fcn.1007e450
add esp, 0x14
test eax, eax
jne 0x1007725d
mov ecx, dword [esp + 0x10]
push 0x40
push 8
push ecx
lea ecx, [edi + 0x110]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::open_wchar_t_const___int__int_]
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x100772f1
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100772ff
push eax
call esi
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret 4
Function at 0x10077bf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, ecx
push 0x1009fc09
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x400
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10077c41
sub eax, edx
mov edx, 0x3ff
sub edx, eax
push edx
lea eax, [esp + 0x24]
push str._npki_pkcs11.cnf
push eax
call dword [sym.imp.MSVCR80.dll_strncat]
push 0x1009fc09
add esi, 4
push esi
call fcn.100809c0
add esp, 0x14
lea ecx, [esp + 4]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x420]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10090e24
add esp, 0x420
ret

Function at 0x10077d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009d609
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x1009fc09
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [0x100cffcc], 0
mov dword [esp + 0x30], 0
je 0x10077d82
mov esi, dword [esi + 4]
test esi, esi
je 0x10077d82
mov eax, dword [esi]
add eax, 0x100
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esi + 4]
test esi, esi
je 0x10077d82
push 0x100a0844
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x10077d58
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x10077d91
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10090e24
add esp, 0x2c
ret
Function at 0x1007cb40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
mov esi, ecx
push 0x1009fc09
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x400
lea eax, [esp + 0x24]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x400
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007cb91
sub eax, edx
mov edx, 0x3ff
sub edx, eax
push edx
lea eax, [esp + 0x24]
push str._npki_pkcs11.cnf
push eax
call dword [sym.imp.MSVCR80.dll_strncat]
push 0x1009fc09
add esi, 4
push esi
call fcn.10083460
add esp, 0x14
lea ecx, [esp + 4]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x420]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10090e24
add esp, 0x420
ret

Function at 0x1007cc50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009e029
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x1009fc09
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [0x100cffd4], 0
mov dword [esp + 0x30], 0
je 0x1007ccd2
mov esi, dword [esi + 4]
test esi, esi
je 0x1007ccd2
mov eax, dword [esi]
add eax, 0x100
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esi + 4]
test esi, esi
je 0x1007ccd2
push 0x100a0844
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x1007cca8
cmp dword [esp + 0x20], 0x10
mov eax, dword [esp + 0xc]
jae 0x1007cce1
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll__strdup]
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.10090e24
add esp, 0x2c
ret
Function at 0x1007ceb0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x1007cf1d
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x1007cf1d
xor al, al
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.10090e24
add esp, 0x120
ret
cmp dword [esp + 8], 6
mov ecx, dword [esp + 0x120]
setae al
pop esi
xor ecx, esp
call fcn.10090e24
add esp, 0x120
ret

Function at 0x1007cf90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push esi
push 0
push 0x1007cf40
call dword [sym.imp.MSVCR80.dll__beginthread]
add esp, 0xc
mov dword [esi + 4], eax
pop esi
ret
Function at 0x1007ec10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x4c]
or ebx, 0xffffffff
cmp edi, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
je 0x1007ed60
mov esi, dword [esp + 0x50]
cmp esi, ebp
je 0x1007ed60
xor eax, eax
mov dword [edi], eax
push 0x30
mov dword [edi + 4], eax
lea eax, [esp + 0x1c]
push ebp
push eax
call sub.MSVCR80.dll_memset
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007ec58
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0xfde9
call fcn.1007e450
mov esi, eax
add esp, 0x14
cmp esi, ebp
mov ebp, dword [esp + 0x10]
jne 0x1007ed3a
push 0
push ebp
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
je 0x1007ecca
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
cmp dword [eax], 0xd
jne 0x1007ecb1
mov esi, 0x1f5f
jmp 0x1007ed3a
call esi
mov esi, dword [eax]
sub esi, 2
neg esi
sbb esi, esi
and esi, 0xffffe09f
add esi, 0x1f60
jmp 0x1007ed3a
push 0
push 0x8000
push ebp
call dword [sym.imp.MSVCR80.dll__wopen]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jge 0x1007ece6
or esi, 0xffffffff
jmp 0x1007ed3a
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.MSVCR80.dll__wstat64i32]
add esp, 8
test eax, eax
je 0x1007ecfe
or esi, 0xffffffff
jmp 0x1007ed3a
mov eax, dword [esp + 0x2c]
mov dword [edi], eax
add eax, 1
push 1
push eax
call sub.XecureAcIO.dll_XFA_calloc
add esp, 8
test eax, eax
mov dword [edi + 4], eax
jne 0x1007ed20
mov esi, 0x1f43
jmp 0x1007ed3a
mov ecx, dword [edi]
push ecx
push eax
push ebx
call dword [sym.imp.MSVCR80.dll__read]
xor edx, edx
add esp, 0xc
test eax, eax
setg dl
sub edx, 1
mov esi, edx
test ebp, ebp
je 0x1007ed48
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
test ebx, ebx
jle 0x1007ed56
push ebx
call dword [sym.imp.MSVCR80.dll__close]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 0x1f41
pop ebx
add esp, 0x38
ret

Function at 0x1007ee60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__read]
add esp, 0xc
test eax, eax
jne 0x1007ee84
mov eax, 0x1f5e
pop esi
ret
xor edx, edx
cmp eax, esi
setge dl
pop esi
sub edx, 1
mov eax, edx
ret
Function at 0x1007f660
Capabilities:
Get common file path
Get file attributes
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x800], eax
push ebx
push edi
push str.ProgramFiles
call dword [sym.imp.MSVCR80.dll_getenv]
mov ebx, dword [sym.imp.MSVCR80.dll__access]
mov edi, eax
add esp, 4
test edi, edi
je 0x1007f6b3
push 0
push edi
call ebx
add esp, 8
test eax, eax
jne 0x1007f6b3
push 0x401
push eax
push esi
call sub.MSVCR80.dll_memset
push 0x400
push edi
jmp 0x1007f739
push 0x400
lea eax, [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x408]
push 0x100a279c
push ecx
call dword [sym.imp.MSVCR80.dll_strtok]
push eax
lea edx, [esp + 0x14]
push str._sProgram_Files
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
lea eax, [esp + 0x1c]
push 0
push eax
call ebx
add esp, 0x1c
test eax, eax
jne 0x1007f722
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x1007f722
push 0x401
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x400
lea edx, [esp + 0x18]
push edx
jmp 0x1007f739
push 0x401
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x400
push 0x1009fc09
push esi
call dword [sym.imp.MSVCR80.dll_strncpy]
mov ecx, dword [esp + 0x820]
add esp, 0x18
pop edi
pop ebx
xor ecx, esp
call fcn.10090e24
add esp, 0x804
ret
Function at 0x1007fa20
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x408
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push edi
push 0x400
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea esi, [esp + 8]
call fcn.1007f660
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007fa60
mov esi, dword [sym.imp.MSVCR80.dll_strncat]
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + 0xc]
push str.SoftForum
push edx
call esi
lea eax, [esp + 0x14]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007fa90
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + 0xc]
push str.Xecure_Mobile_Relay
push edx
call esi
lea eax, [esp + 0x14]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007fac0
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + 0xc]
push str.xcmhsmpc.dll
push edx
call esi
add esp, 0xc
push 8
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [0x100d004c], eax
jne 0x1007fb16
pop edi
mov eax, 0xffffff7f
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.10090e24
add esp, 0x408
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XcSet
push eax
call esi
test eax, eax
jne 0x1007fb2b
lea edi, [eax + 1]
mov ecx, dword [0x100d004c]
push str.XcInit
push ecx
call esi
test eax, eax
jne 0x1007fb40
or edi, 2
mov edx, dword [0x100d004c]
push str.XcInitEx
push edx
call esi
test eax, eax
jne 0x1007fb55
or edi, 4
mov eax, dword [0x100d004c]
push str.XcGetSignatureFirst
push eax
call esi
test eax, eax
jne 0x1007fb69
or edi, 8
mov ecx, dword [0x100d004c]
push str.XcGetSignatureChain
push ecx
call esi
test eax, eax
jne 0x1007fb7e
or edi, 0x10
mov edx, dword [0x100d004c]
push str.XcClose
push edx
call esi
test eax, eax
jne 0x1007fb93
or edi, 0x16
mov eax, dword [0x100d004c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x40c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10090e24
add esp, 0x408
ret
Function at 0x1007fbc0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x408
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push 0x400
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea esi, [esp + 4]
call fcn.1007f660
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007fc00
mov esi, dword [sym.imp.MSVCR80.dll_strncat]
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + 8]
push str.SoftForum
push edx
call esi
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007fc30
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + 8]
push str.Xecure_Mobile_Relay
push edx
call esi
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007fc60
sub eax, edx
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + 8]
push str.xcmhsmpc.dll
push edx
call esi
add esp, 0xc
push 8
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [0x100d004c], eax
jne 0x1007fcb5
mov eax, 0xffffff7f
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.10090e24
add esp, 0x408
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XcSet
push eax
call esi
mov ecx, dword [0x100d004c]
push str.XcInit
push ecx
mov dword [0x100cfffc], eax
call esi
mov edx, dword [0x100d004c]
push str.XcInitEx
push edx
mov dword [0x100d0000], eax
call esi
mov dword [0x100d0004], eax
mov eax, dword [0x100d004c]
push str.XcGetSignatureFirst
push eax
call esi
mov ecx, dword [0x100d004c]
push str.XcGetSignatureChain
push ecx
mov dword [0x100d0008], eax
call esi
mov edx, dword [0x100d004c]
push str.XcClose
push edx
mov dword [0x100d000c], eax
call esi
mov ecx, dword [esp + 0x408]
pop esi
mov dword [0x100d0010], eax
xor ecx, esp
xor eax, eax
call fcn.10090e24
add esp, 0x408
ret
Function at 0x10083460
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
test edi, edi
jne 0x100834b4
mov eax, 0x3e9
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.10090e24
add esp, 0x108
ret
push str.WINDOWS_system32
call dword [sym.imp.MSVCR80.dll_getenv]
add esp, 4
test eax, eax
je 0x100834df
push str._npki_pkcs11.cnf
push eax
lea ecx, [esp + 0xc]
push 0x100a1814
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
push esi
push 8
push 1
call sub.XecureAcIO.dll_XFA_calloc
mov esi, eax
push 0x809
push 1
mov dword [edi], esi
call sub.XecureAcIO.dll_XFA_calloc
push 0x100
push 0
push eax
mov dword [esi], eax
call sub.MSVCR80.dll_memset
mov edx, dword [esi]
mov edi, dword [sym.imp.MSVCR80.dll_strncpy]
push 0xff
push str.SDisk
push edx
call edi
mov eax, dword [esi]
push 0x100
add eax, 0x100
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi]
push 0xff
add ecx, 0x100
push str.SecureDisk
push ecx
call edi
mov edx, dword [esi]
add esp, 0x40
push 0x104
add edx, 0x200
push 0
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [esi]
push 0x103
add eax, 0x200
push str.C:Windowssystem32_npki_securedisk.dll
push eax
call edi
mov ecx, dword [esi]
push 0x400
add ecx, 0x408
push 0
push ecx
call sub.MSVCR80.dll_memset
mov edx, dword [esi]
push 0x3ff
add edx, 0x408
push str.C:Windowssystem32_npki_securedisk.dll
push edx
call edi
mov eax, dword [esi]
push 0x104
add eax, 0x304
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esi]
push 0x103
add ecx, 0x304
push str.C:Windowssystem32SecureDisk.der
push ecx
call edi
mov ecx, dword [esp + 0x154]
add esp, 0x48
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.10090e24
add esp, 0x108
ret
Function at 0x10090e24
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100cd8ec]
jne 0x10090e2e
repz ret
jmp fcn.10091762

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408490
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4635bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00458394
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408512
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004562b7
mov eax, dword [eax]
push 0x4771c0
push eax
call fcn.004491b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045861f
test bl, bl
je 0x408512
push 0x4771c0
lea ecx, [esp + 0xc]
call fcn.004589af
push 0x47ad20
lea ecx, [esp + 0xc]
call fcn.004589af
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40854e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045861f
jmp 0x408619
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4085d2
lea edx, [esp + 0x7c]
push 0x47ad1c
push edx
call fcn.004491b4
add esp, 8
test eax, eax
je 0x4085d2
lea eax, [esp + 0x7c]
push 0x47ad18
push eax
call fcn.004491b4
add esp, 8
test eax, eax
je 0x4085d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408562
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045861f
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408e72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc